WO2016165056A1 - Board testing method, board and system - Google Patents

Board testing method, board and system Download PDF

Info

Publication number
WO2016165056A1
WO2016165056A1 PCT/CN2015/076437 CN2015076437W WO2016165056A1 WO 2016165056 A1 WO2016165056 A1 WO 2016165056A1 CN 2015076437 W CN2015076437 W CN 2015076437W WO 2016165056 A1 WO2016165056 A1 WO 2016165056A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio data
audio
preset
circuit
port
Prior art date
Application number
PCT/CN2015/076437
Other languages
French (fr)
Chinese (zh)
Inventor
吉星春
易见
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580022517.3A priority Critical patent/CN106416205A/en
Priority to PCT/CN2015/076437 priority patent/WO2016165056A1/en
Publication of WO2016165056A1 publication Critical patent/WO2016165056A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Definitions

  • the present invention relates to the field of single board testing, and in particular, to a method, a single board and a system for testing a single board.
  • the manufacturing process of the smart phone is roughly to first manufacture the mobile phone board, and then assemble the whole machine on the basis of the mobile phone single board, and the whole machine is the final product.
  • the product needs to be tested before the product is sold.
  • the existing test method is: after assembling the whole machine, install the corresponding test software in the whole machine, and test the system and hardware of the whole machine.
  • the invention provides a method, a single board and a system for testing a single board, which are used for saving test time.
  • the present invention provides a method for single board testing, the board comprising at least one output circuit of audio data and at least one preset audio input circuit, an output port of the output circuit of the audio data and at least one The input ports of the preset audio input circuit are connected, and the method includes:
  • the outputting circuit of the audio data outputs the first audio data to the preset audio input circuit, specifically including :
  • the receiving the second audio data by using the preset audio input circuit includes:
  • a second possible implementation of the first aspect is also provided, in the first aspect
  • the second possible implementation manner, the obtaining the first audio data according to the test type carried in the test instruction, and determining an output circuit for outputting the audio data of the audio data specifically includes:
  • test type carried in the test command is an audio play type
  • preset audio data is read locally
  • the audio playback circuit is determined as an output circuit of the audio data.
  • a third possible implementation of the first aspect is also provided, in the first aspect
  • the third possible implementation manner, the obtaining the first audio data according to the test type carried in the test instruction, and determining the output circuit for outputting the audio data of the audio data specifically includes:
  • test type carried in the test command is an FM broadcast type
  • the preset test data is obtained by the first test terminal, and the first test terminal is configured to send the preset FM data to the board;
  • An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
  • a fourth possible implementation of the first aspect is also provided, in the first aspect
  • the fourth possible implementation manner, the obtaining the first audio data according to the test type carried in the test instruction, and determining an output circuit for outputting the audio data of the audio data specifically includes:
  • test type carried in the test command is a voice call type
  • the second test terminal obtains the preset call content, and the second test terminal is configured to perform a voice call with the board, where the content of the voice call is Preset call content;
  • the audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
  • the first aspect is further provided a fifth possible implementation manner, in a fifth possible implementation manner of the first aspect, the attribute value of the first audio data is a fixed preset frequency;
  • the present invention further provides an output circuit including at least one audio data and at least one preset audio input circuit, wherein an output port of the output circuit of the audio data and at least one of the pre- The input ports of the audio input circuit are connected, and the device comprises:
  • An obtaining unit configured to acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data
  • a first audio output unit configured to output the first audio data to the preset audio input circuit by an output circuit of the audio data determined by the acquiring unit;
  • a second audio acquiring unit configured to receive the second audio number by using the preset audio input circuit According to the second audio data, the audio data corresponding to the first audio data output by the first audio output unit received by the preset audio input circuit;
  • a fault determining unit when the difference between the attribute value of the second audio data acquired by the second audio acquiring unit and the attribute value of the first audio data acquired by the acquiring unit is greater than a preset range, determining The board has a circuit fault.
  • the first audio output unit includes:
  • a digital-to-analog conversion module configured to perform digital-to-analog conversion on the first audio data to obtain a first analog signal
  • a first analog signal output module configured to output the first analog signal to the preset audio input circuit through an output circuit of the audio data
  • the second audio acquiring unit includes:
  • a second analog signal acquiring module configured to receive, by the preset audio input circuit, a second analog signal, where the second analog signal is received by the preset audio input circuit and output by the first analog signal output module The analog signal corresponding to the first analog signal;
  • an analog-to-digital conversion module configured to perform analog-to-digital conversion on the second analog signal acquired by the second analog signal acquisition module to obtain second audio data.
  • the acquiring unit includes:
  • a reading module configured to read preset audio data locally when the test type carried in the test instruction is an audio play type
  • a first determining module configured to determine the preset audio data as the first audio data
  • the audio playback circuit is determined as an output circuit of the audio data.
  • the acquiring unit further includes:
  • the FM data acquisition module is configured to: when the test type carried in the test command is an FM broadcast type, obtain the preset FM data by using the first test terminal, where the first test terminal is configured to send the preset to the board Frequency modulation data;
  • a third determining module configured to determine the preset FM data as the first audio data
  • An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
  • the acquiring unit further includes:
  • a call content obtaining module configured to: when the test type carried in the test command is a voice call type, obtain a preset call content by using a second test terminal, where the second test terminal is configured to perform a voice call with the board.
  • the content of the voice call is the preset call content
  • a second determining module configured to determine the preset call content as the first audio data
  • the audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
  • the second aspect is further provided A fifth possible implementation manner, in a fifth possible implementation manner of the second aspect, the attribute value of the first audio data is a fixed preset frequency, and the fault determining unit is specifically configured to: :
  • the present invention provides a system for testing a single board, the system comprising the apparatus and the test control apparatus of the second aspect, the test control apparatus is configured to send a test instruction to the board; The board is also used to send a comparison result to the test control device.
  • the present invention further provides a single board, the board includes a chip level system SOC and a codec device CODEC, the SOC includes an application service AP and a digital signal processor DSP connected to the AP,
  • the CODEC includes an S1 port, a port A, and a port B.
  • the port A and the port B are connected to the S1 port through a CODEC internal circuit, and the S1 port is connected to the DSP, and the AP, DSP, S1 port, and port A are connected.
  • the port B constitutes an output circuit of the audio data
  • the CODEC further includes a multi-way selection switch MUX, the MUX is connected to the S1 port, and the MUX, the S1 port, the DSP, and the AP form a preset audio input.
  • the port A and / or port B is connected to the MUX.
  • the board further includes a frequency modulation FM circuit, where the CODEC is further an S2 port, and the S2 port is connected to the FM circuit,
  • the FM circuit and the S2 port constitute an output circuit of audio data
  • the S1 port, the DSP and the AP constitute a preset audio input circuit
  • the S1 port is connected to the S2 port.
  • the board further includes a modem Modem, where the CODEC further includes an S3 port, where the S3 port is connected to the DSP, and the Modem is connected to the DSP, the Modem,
  • the DSP and the S3 port constitute an output circuit of audio data
  • the S1 port, the DSP and the AP constitute a preset audio input circuit
  • the S1 port is connected to the S3 port.
  • the present invention further provides a system for testing a single board, the system comprising the board and the test control device according to the fourth aspect, wherein the test control device is connected to an application server AP in the board. .
  • the method, the single board and the system for testing a single board of the present invention are capable of connecting an output end of an output circuit for outputting audio data of the first audio data to an input end of the preset audio input circuit in the single board,
  • the output circuit of the audio data is enabled to output the first audio data to the preset audio input circuit, and the second audio data is acquired from the preset audio input circuit. If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, it is determined that the board has a circuit failure.
  • the hardware circuit fault is determined in the single board phase, that is, the hardware circuit fault of the board can be found in time before being assembled into the whole machine, and no need for repeated disassembly and installation, thereby saving detection time.
  • FIG. 2 is a flow chart of data flow inside a first board in the embodiment of the present invention.
  • FIG. 3 is a flow chart of data flow inside a second board in the embodiment of the present invention.
  • FIG. 4 is a data flow diagram of a third internal board in an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a test system according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for testing a first board in an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for testing a second board in an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for testing a third board in an embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for testing a fourth board in the embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for testing a fifth board in an embodiment of the present invention.
  • FIG. 11 is a flowchart of a method for testing a sixth board in an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an apparatus for testing a first single board according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a device for testing a second single board according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of an apparatus for testing a third single board according to an embodiment of the present invention.
  • 15 is a schematic structural diagram of an apparatus for testing a fourth single board according to an embodiment of the present invention.
  • 16 is a schematic structural diagram of an apparatus for testing a fifth single board according to an embodiment of the present invention.
  • 17 is a schematic diagram of a system for testing a first board in an embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram of a first single board according to an embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of a second board according to an embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of a third single board according to an embodiment of the present invention.
  • FIG. 21 is a schematic diagram of a system for testing a second board in the embodiment of the present invention.
  • the existing single board structure is as shown in FIG. 1, and includes a system on chip (SOC) and a codec device (CODER-DECoder, CODEC) connected thereto.
  • the chip-level system includes an application server AP and a digital signal processor DSP connected to the AP; the AP has a number According to the processing function, for example, receiving and parsing a test command sent by a test control device (referred to as a measurement and control device, such as a PC); the DSP is used to process the digital signal.
  • a test control device referred to as a measurement and control device, such as a PC
  • the DSP is used to process the digital signal.
  • the DSP is also connected to the modem MODEM.
  • the MODEM is used to obtain the analog information sent by the opposite end of the voice call and perform analog-to-digital conversion to obtain corresponding digital information.
  • the chip-level system is connected to a plurality of ports of the codec device, and the ports include an S1 port and an S3 port of an audio data interface (Inter-IC Sound, I2S).
  • the I2S port of the codec device also has an S2 port, and the S2 port is connected with a frequency modulation circuit (FM) for capturing a broadcast signal and performing analog-to-digital conversion to obtain a corresponding digital signal.
  • FM frequency modulation circuit
  • the S1 port and the S3 port are respectively connected to the port A and the port B on the codec device through internal circuits in the code decoding device.
  • Port A and Port B are used to connect to an external sound reinforcement device for audio and audio output, such as a speaker connected to port A and a headset amplifier connected to port B.
  • the codec device is further provided with a port C for connecting an external audio input device (such as a microphone) to receive audio information input by the user through the audio input device (microphone) through the port C (such as audio information input by the user during recording).
  • Port C is connected to the S1 port and the S3 port through a Multiplexer (MUX).
  • the MUX can select different circuits for transmission according to different signals.
  • the signal flow in the board is: enters the codec by the S1 port, S2 port or S3 port, and is output by port A and port B through the processing of the codec.
  • the signal flow direction is such that the signal enters the codec by port C and is input to the chip level system by the S1 port or the S3 port through the processing of the codec.
  • the prior art does not provide a single board test solution in the single board stage, and only provides a solution for testing in the whole machine stage. If a hardware circuit fault is detected in the whole machine phase, the whole machine needs to be disassembled, and further hardware testing is performed on the board for the circuit fault detected during the whole machine phase. This will require additional disassembly and installation operations, delaying inspection time.
  • the audio data outputted by the port A and the port B is output to the S1 port through the multiplexer MUX.
  • the MUX forwards the first audio data sent by port A and/or port B to the S1 port by a control command.
  • the control of the MUX is cancelled, and then the MUX can implement the multi-path selection function in the manner of the prior art.
  • the first audio data (such as a song) is output through the output circuit of the audio data (including the S1 port and the audio output circuit of the port A and the port B) To the preset audio input circuit (including the audio input circuits of S1 and MUX).
  • the purpose of accessing the S1 port here is to use a functional circuit that includes a voice input of the S1 port, that is, a preset audio input circuit for recording.
  • Application Server - Digital Signal Processor - S1 Port - Port A and Port B are an implementation of an output circuit for audio data.
  • the application server is an implementation of a preset audio input circuit.
  • the S2 port is connected to the FM circuit.
  • the FM circuit performs analog-to-digital conversion on the acquired FM analog signal and sends the converted digital signal to the S2 port.
  • the S2 port passes the circuit connected to the S1 port. Send to the S1 port.
  • the purpose of accessing the S1 port here is to use a functional circuit that includes a voice input of the S1 port, that is, a preset audio input circuit for recording.
  • Frequency Modulation Circuit -
  • the S2 port is another implementation of the output circuit for audio data.
  • the application server is another implementation of the preset audio input circuit.
  • the S3 port receives the voice call signal processed by the DSP.
  • the Modem After the voice call signal is received by the Modem, the Modem performs analog-to-digital conversion on the analog signal and sends the digital signal obtained by analog-to-digital conversion to the DSP.
  • the digital signal is further processed by the DSP.
  • the S3 port outputs the DSP processed signal to the S1 port through the output circuit in the CODEC to record through the audio input circuit including the S1 port.
  • the purpose of accessing the S1 port here is to use a functional circuit that includes a voice input of the S1 port, that is, a preset audio input circuit.
  • Modem - Digital Signal Processor - The S3 port is yet another implementation of the output circuitry for audio data.
  • the application server is another implementation of the preset audio input circuit.
  • the output data can be returned to the AP through the internal circuit. Therefore, whether the port A or the port B is connected to the external device in the embodiment of the present invention is implemented in the present invention. There is no limit in the example.
  • the embodiment of the present invention provides a method for testing a single board.
  • the hardware basis of the method is a test control device and a board.
  • the test control device is capable of transmitting test instructions.
  • a device such as a PC or Mac.
  • the board includes at least one output circuit of audio data and at least one preset audio input circuit, the output circuit of the audio data
  • the output port is coupled to an input port of at least one of the predetermined audio input circuits. In existing boards and even subsequent machines, the output circuit is usually not connected to the input circuit.
  • the invention realizes the detection of the single-board circuit by the circuit inside the single board without using the external device, and connects the output port of the output circuit of the audio data and the input port of the preset audio input circuit, so that the output circuit of the audio data
  • the outputted first audio data can be captured by a preset audio input circuit, and by comparing the captured second audio data with the first audio data, it can be obtained whether there is distortion in the second audio data outputted through the single-board circuit, thereby obtaining a single Whether the board circuit has a circuit failure.
  • the method includes:
  • Step 101 Acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting audio data of the first audio data.
  • the board receives the test command sent by the test control device.
  • the test command is parsed to obtain a test type carried therein, and the test type includes: an audio play type, an FM broadcast type, and a voice call type. If the test type is an audio play type, the test audio file can be read locally, and the audio file is determined as the first audio data. If the test type is an FM broadcast type, the preset FM data sent by the first test terminal is received, and the preset FM data is determined as the first audio data.
  • the first test terminal may be an FM transmitter. If the test type is an audio call type, the preset call content sent by the second test terminal is received, and the preset call content is determined as the first audio data.
  • the second test terminal may be a voice call device such as a mobile phone.
  • Step 102 Output the first audio data to the preset audio input circuit by using an output circuit of the audio data.
  • connection circuit of the port A (or the port B) is returned to the S1 port through the multiplexer MUX; as shown in FIG. 3, the connection circuit of the S1 port and the S2 port is set; As shown in FIG. 4, the connection circuit of the S1 port and the S3 port is set, and the above three circuits respectively output the first audio data to the preset audio input circuit from the output circuit of the internal audio data of the board in different scenarios.
  • the function as shown in FIG. 2, the connection circuit of the port A (or the port B) is returned to the S1 port through the multiplexer MUX; as shown in FIG. 3, the connection circuit of the S1 port and the S2 port is set; As shown in FIG. 4, the connection circuit of the S1 port and the S3 port is set, and the above three circuits respectively output the first audio data to the preset audio input circuit from the output circuit of the internal audio data of the board in different scenarios. The function.
  • Step 103 Receive second audio data by using the preset audio input circuit, where the second audio data is audio data corresponding to the first audio data received by the preset audio input circuit.
  • the preset audio input circuit After outputting the first audio data to the preset audio input circuit through the output circuit of the audio data, the preset audio input circuit monitors whether there is audio data input, and if so, receives the audio data, that is, the second Audio data.
  • Step 104 If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determine that the board has a circuit fault.
  • the attribute value is used to represent attribute characteristics of the audio data, such as frequency or maximum peak value.
  • the first audio data is sample data, that is, data that is originally desired to be output.
  • the second audio data is actual audio data that is output through an output circuit of the audio data and received by the preset audio input circuit. Comparing the attribute value of the sample data (first audio data) with the attribute value of the actual data (second audio data), it is possible to obtain whether or not there is a difference between the two. Since there is usually a small amount of interference in the audio output process, the actual data and the sample data have a difference. Therefore, when the difference is less than the predetermined difference, the obtained second audio data is determined to be the first audio data. On the contrary, it indicates that there is a circuit failure in the single-board circuit, and then the subsequent processing flow such as circuit fault location is performed.
  • the method for testing a single board is capable of connecting an output end of an output circuit of audio data to an input end of at least one of the preset audio input circuits in a single board, so that an output circuit of the audio data can be An audio data is output to the preset audio input circuit, and the second audio data is acquired from the preset audio input circuit. If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, it is determined that the board has a circuit failure. In the prior art, it is impossible to determine whether there is a circuit failure in the single board stage, and when the hardware circuit failure is found in the whole machine stage, an additional disassembly and installation operation is required, and the detection time is delayed. In the invention, the hardware circuit fault of the single board can be found in time before being assembled into the whole machine, and the repeated disassembly and installation is unnecessary, and the detection time is saved.
  • the inspector manually determines whether the audio output and the actual output audio are consistent by the audio output device, according to the manual.
  • the comparison result determines whether there is a hardware circuit failure in the single-board phone.
  • the method for testing a single board provided by the embodiment of the present invention can also be used after the whole machine is assembled, without external audio output device and without manual judgment, and only using the original audio processing capability of the board, and the audio is connected through physical connection.
  • the output end of the data output circuit is directly connected to the input end of the preset audio input circuit to realize the acquisition of the second audio data, and then the single
  • the board internal circuit (AP) compares the second audio data with the first audio data, and if the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault , reduce the complexity of circuit detection during the whole machine, and improve the efficiency of the whole circuit detection.
  • step 102 the first audio data is output through the output circuit of the audio data.
  • Outputting to the preset audio input circuit specifically includes:
  • Step 201 Perform digital-to-analog conversion on the first audio data to obtain a first analog signal.
  • Step 202 Output the first analog signal to the preset audio input circuit through an output circuit of the audio data.
  • the first audio data is outputted through an output circuit of the audio data using the same output flow as in the prior art. Different from the prior art, the output position is not output to the port where the external device is located, so that the external device outputs. Instead, the output signal is used as an input signal to the preset audio input circuit to read the second audio data from inside the board for subsequent comparison.
  • the first audio data is output, the first audio data stored in the board is first format converted to obtain a first analog signal. The first analog signal is then sent to a preset audio input circuit.
  • Step 103 Receive second audio data by using the preset audio input circuit, specifically:
  • Step 203 Receive a second analog signal by using the preset audio input circuit, where the second analog signal is an analog signal received by the preset audio input circuit and corresponding to the first analog signal.
  • Step 204 Perform analog-to-digital conversion on the second analog signal to obtain second audio data.
  • the preset audio input circuit After the preset audio input circuit receives the second analog signal output by the output circuit of the audio data, the second analog signal is subjected to analog-to-digital conversion to obtain second audio data.
  • the method for testing the board in the embodiment of the present invention can simulate the real audio data playing function and the audio data receiving function in the board, so that the result of the board testing can truly reflect the actual circuit fault and improve the accuracy of the board test. Sex.
  • test capable of determining the failure of the board circuit by the output and reception effects of the audio data
  • type of test capable of determining the failure of the board circuit by the output and reception effects of the audio data
  • other types of test types can be used to generate or use audio.
  • the type of test for the data As a detailed description of the above embodiments, three different test types and corresponding processing flows are listed below.
  • the test type is the audio play type.
  • the step 101 is to obtain the first audio data according to the test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data, as shown in FIG.
  • Step 301 If the test type carried in the test instruction is an audio play type, the preset audio data is read locally.
  • the preset audio data is stored locally, and the local may be pre-stored inside the board, or may be sent to the board by the test control device.
  • the preset audio data is used to test whether the internal circuit of the board is normal. Therefore, the preset audio data has some features that are easy to identify or easy to detect, so that the comparison result can be obtained quickly and easily when comparing later.
  • Step 302 Determine the preset audio data as the first audio data.
  • Step 303 Determine an audio playback circuit as an output circuit of the audio data.
  • the audio playback circuit includes an output circuit in which the AP and the DSP and the S1 port of the CODEC are connected.
  • the audio playback circuit is configured to convert the preset audio data and output it through an output circuit connected by the S1 port.
  • test type is an audio play type.
  • the test control device PC
  • the AP parses out that the test type carried by the test command is an audio play type.
  • the AP reads and plays the music of the fixed frequency (such as 1000HZ) (the first audio data), and is processed by the DSP algorithm, and the CODEC is input by the S1 port, and the CODEC converts the digital signal of the fixed frequency music into an analog signal, an analog signal.
  • the analog-to-digital conversion is performed in the CODEC to obtain a digital signal corresponding to the analog signal, and the digital signal is transferred to the S1 port through the circuit in the CODEC, and then sent to the DSP through the S1 port.
  • the algorithm processes, and the AP processes the processed audio data into a recording file (second audio data). 4.
  • the AP analyzes the frequency of the recorded file and the music of the fixed frequency. When the frequency is within the acceptable range (such as 950HZ ⁇ 1050HZ), it means that all the hardware circuits through which the audio data passes are normal, otherwise the hardware path is damaged, so as to achieve the purpose of detecting the audio playing and recording circuit.
  • Example 2 of the test type The test type is FM broadcast type.
  • the step 101 is to obtain the first audio data according to the test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data, as shown in FIG.
  • Step 401 If the test type carried in the test command is an FM broadcast type, the preset test data is obtained by using the first test terminal, and the first test terminal is configured to send the preset FM data to the board.
  • the first test terminal is a terminal capable of transmitting a frequency modulated signal, such as an FM transmitter.
  • the board itself has an FM circuit for receiving the FM signal, so by comparing the received FM signal (second audio data) with the preset FM data (first audio data), it is possible to determine whether there is a circuit failure.
  • the board sends a preset FM data acquisition request to the first test terminal, and the first test terminal sends the preset FM data to the board after receiving the request.
  • Step 402 Determine the preset FM data as the first audio data.
  • Step 403 Determine an audio output circuit involved in the FM broadcast function as an output circuit of the audio data.
  • the test type is the FM broadcast type.
  • the single-board structure shown in Figure 5 is used.
  • the test control device (PC) sends a detection command, and the first test terminal sends an FM signal to the board.
  • the FM circuit of the single board receives the FM signal sent by the first test terminal, converts the short wave signal into a digital signal, and sends the digital signal to the S2 port of the CODEC, and receives the connection between the S2 port and the S1 port.
  • the incoming FM signal is sent to the S1 port.
  • the FM signal is then sent to the DSP for algorithm processing and then sent to the AP.
  • the AP saves the audio data into a recording file and analyzes the audio file. When the detected audio sound data is within the range of the sound data preset in the program, all the hardware circuits through which the audio data passes are normal, otherwise the hardware path is damaged, thereby achieving the purpose of detecting the FM hardware circuit connection.
  • Example 3 of the test type is the voice call type.
  • the step 101 is to obtain the first audio data according to the test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data.
  • the method specifically includes:
  • Step 501 If the test type carried in the test command is a voice call type, the preset test content is obtained by using the second test terminal, where the second test terminal is used to perform with the board. a voice call, the content of the voice call is the preset call content.
  • the second test terminal is a terminal having a voice call type for testing, and may also be a virtual terminal capable of outputting voice call information.
  • the second test terminal sends the preset call content to the board through the connection with the board. For example, if the preset call content is “Hello China”, the second test terminal sends an analog signal of “Hello China” to the board. After receiving the analog signal, the modem of the board performs the analog signal. Converting, obtaining second audio data by preset audio input circuit.
  • Step 502 Determine the preset call content as the first audio data.
  • Step 503 Determine an audio output circuit involved in the voice call function as an output circuit of the audio data.
  • test type is a voice call type.
  • the test control device PC
  • the second test terminal simulates the process of playing a sound by the telephone.
  • the modem of the single board receives the analog signal, performs analog-to-digital conversion, and sends the converted digital signal to the DSP, and the digital signal processed by the DSP is sent to the S3 port of the CODEC, and the analog signal is sent to the S3 port to the S3 port. S1 port. 4.
  • the digital signal is sent to the DSP for processing through the S1 port, and the audio data is saved into a recording file by the AP.
  • the AP analyzes the audio file. When the detected audio sound data is within the range of the sound data preset in the program, all the hardware circuits through which the audio data passes are normal, otherwise the hardware circuit is damaged. In order to achieve the purpose of detecting the connection of the modem circuit hardware circuit.
  • the second test terminal is a terminal having a transmit FM signal
  • the first test test terminal can be located in the same electronic device, that is, the electronic device has two functions of a voice call and a transmit FM signal.
  • the second test terminal and the first test terminal can also be located in different electronic devices.
  • the embodiments of the present invention provide three methods for testing a single-board circuit to achieve detection of different functional circuits of the single board.
  • the above three usage scenarios are only used as three examples in the implementation of the present invention.
  • the audio transmitting circuit of the internal circuit of the single board using the infrared signal transmitting circuit on the single board, the transmitting circuit of the Bluetooth signal, etc. may be replaced by the above embodiment.
  • the embodiment of the present invention further provides a method for testing a single board.
  • the attribute value of the first audio data is a fixed preset frequency.
  • Step 104 If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault, specifically:
  • Step 601 Determine whether a difference between a frequency of the second audio data and a frequency of the first audio data is greater than a preset range.
  • the received second audio data may not be completely consistent with the first audio data due to interference of the magnetic field or the like.
  • the circuit is considered to have no circuit fault as long as it is within an acceptable tolerance.
  • the frequency of the first audio data is 1000 Hz
  • the preset range (error range) is ⁇ 50 Hz.
  • the difference between the frequency of the first audio data and the frequency of the first audio data is between -50 Hz and +50 Hz, and it is determined that the board has no circuit failure.
  • the difference between the frequency of the first audio data and the frequency of the first audio data is less than -50HZ or greater than +50HZ, and it is determined that the board has a circuit fault.
  • Step 602 If it is greater, determine that the board has a circuit fault.
  • Step 603 If less than, determine that the board does not have a circuit fault.
  • the embodiment of the present invention provides only a manner of comparing the frequencies of the first audio data and the second audio data, which is a preferred manner, and other methods for comparing the first audio data and the second audio data are also It can be applied to the present invention. For example, extracting a maximum peak value (or wavelength) c of the first audio data and the second audio data, and determining a maximum peak value (or wavelength) of the second audio data and a maximum peak value of the first audio data (or Whether the difference in wavelength) is greater than the preset range. If it is greater, it is determined that the board has a circuit failure. If it is smaller, it is determined that the board does not have a circuit failure.
  • the method for testing the board provided by the embodiment of the present invention can determine whether the board has a circuit fault according to the frequency of the first audio data and the frequency of the second audio data, and simplifying determining that the board is Whether there is a circuit fault determination step to improve the board detection efficiency.
  • the embodiment of the present invention further provides a device for testing a single board, the board includes at least one output circuit of audio data and at least one preset audio input circuit, and an output port of the output circuit of the audio data and at least one The input port of the preset audio input circuit is connected, and the device is used to implement the above method.
  • the apparatus 7 for testing the single board includes:
  • An obtaining unit 71 configured to acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data;
  • a first audio output unit 72 configured to output the first audio data to the preset audio input circuit by an output circuit of the audio data determined by the obtaining unit 71;
  • a second audio acquiring unit 73 configured to receive second audio data by using the preset audio input circuit, where the second audio data is received by the preset audio input circuit and output by the first audio output unit 72 Audio data corresponding to the first audio data;
  • the fault determining unit 74 is configured to: when the attribute value of the second audio data acquired by the second audio acquiring unit 73 and the attribute value of the first audio data acquired by the acquiring unit 71 are greater than a preset In the range, it is determined that the board has a circuit failure.
  • the first audio output unit 72 includes:
  • the digital-to-analog conversion module 721 is configured to perform digital-to-analog conversion on the first audio data to obtain a first analog signal.
  • a first analog signal output module 722 configured to output the first analog signal to the preset audio input circuit through an output circuit of the audio data
  • the second audio acquiring unit 73 includes:
  • a second analog signal obtaining module 731 configured to receive, by the preset audio input circuit, a second analog signal, where the second analog signal is received by the preset audio input circuit and the first analog signal output module Outputting an analog signal corresponding to the first analog signal;
  • the analog-to-digital conversion module 732 is configured to perform analog-to-digital conversion on the second analog signal acquired by the second analog signal acquisition module to obtain second audio data.
  • the obtaining unit 74 includes:
  • the reading module 741 is configured to read preset audio data from the local when the test type carried in the test instruction is an audio play type;
  • a first determining module 742 configured to determine the preset audio data as the first audio data
  • the audio playback circuit is determined as an output circuit of the audio data.
  • the acquiring unit 74 further includes:
  • the FM data obtaining module 743 is configured to: when the test type carried in the test command is an FM broadcast type, obtain the preset FM data by using the first test terminal, where the first test terminal is configured to send the preset to the board. Set FM data;
  • a third determining module 744 configured to determine the preset FM data as the first audio data
  • An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
  • the acquiring unit 74 further includes:
  • the call content obtaining module 745 is configured to: when the test type carried in the test command is a voice call type, obtain a preset call content by using the second test terminal, where the second test terminal is configured to perform a voice call with the board.
  • the content of the voice call is the preset call content;
  • a second determining module 746 configured to determine the preset call content as the first audio data
  • the audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
  • the attribute value of the first audio data is a fixed preset frequency; the fault determining unit 74 is specifically configured to:
  • determining that the board has a circuit fault If it is smaller, it is determined that the board does not have a circuit failure.
  • the embodiment of the present invention further provides a system for testing a single board.
  • the system comprises the device 7 shown in FIG. 12 to FIG. 16 and a test control device 1701.
  • the test control device is configured to send a test instruction to the board, such as a personal computer PC or a MAC machine. Wait.
  • the board is also used to send a comparison result to the test control device.
  • the tester sends a test command to the device 7 of the board test by the test control device 1701.
  • the test control device is determined based on the circuit under test selected by the tester. For example, if the test circuit selected by the tester is an audio play circuit, the test type carried in the generated test command is an audio play type.
  • the acquiring unit 71 in the device 7 of the board test parses the test command after receiving the test command, and acquires the test type carried in the test command. When the failure determining unit 74 obtains the comparison result, the comparison result is transmitted to the test control device 1701. The test control device 1701 outputs the comparison result.
  • the tester can detect the circuit in the board through the test control device (the control device external to the board).
  • the test control device the control device external to the board.
  • the test mode and type of the single board test can be enriched, and the test efficiency is further improved.
  • the embodiment of the present invention further provides a single board.
  • the board includes a chip level system SOC and a codec device CODEC.
  • the SOC includes an application service AP and a digital signal connected to the AP.
  • the processor DSP, the CODEC includes an S1 port, a port A, and a port B.
  • the port A and the port B are connected to the S1 port through a CODEC internal circuit, and the S1 port is connected to the DSP, the AP, the DSP, and the S1.
  • the port, the port A and the port B constitute an output circuit of the audio data
  • the CODEC further includes a multi-way selection switch MUX, the MUX is connected to the S1 port, and the MUX, the S1 port, the DSP and the AP form a preset audio input. Circuit; the port A and/or port B are connected to the MUX.
  • the preset audio input circuit may include port A or port B, and may also include port A and port B.
  • the board further includes a frequency modulation FM circuit
  • the CODEC further has an S2 port
  • the S2 port is connected to the FM circuit
  • the FM circuit and the S2 port form audio data.
  • the output circuit, the S1 port, the DSP and the AP constitute a preset audio input circuit, and the S1 port is connected to the S2 port.
  • the board further includes a modem Modem, where
  • the CODEC further includes an S3 port, the S3 port is connected to the DSP, the Modem is connected to the DSP, the Modem, the DSP and the S3 port constitute an output circuit of audio data, the S1 port, the DSP and the AP A preset audio input circuit is formed, and the S1 port is connected to the S3 port.
  • the embodiment of the present invention further provides a system for testing a single board.
  • the system includes a single board and a test control device as shown in FIG. 18 to FIG. 20, and the test control device and the single The application server AP in the board is connected.
  • the tester sends a test command to the board through the test control device.
  • the test control device determines the type of test based on the circuit under test selected by the tester. For example, if the test circuit selected by the tester is an audio play circuit, the test type carried in the generated test command is an audio play type.
  • the AP parses the test command and obtains the test type carried in the test command. When the AP obtains the comparison result, the comparison result is sent to the test control device.
  • the test control device outputs the comparison result.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk, etc. includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

A board testing method, board and system. The board comprises an audio data output circuit and a preset audio input circuit. An output end of the audio data output circuit and an input end of the preset audio input circuit are connected. The method comprises: according to a testing type carried in a testing instruction, acquiring first audio data and determining the audio data output circuit for outputting the first audio data (101); outputting via the audio data output circuit the first audio data to the preset audio input circuit (102); receiving via the preset audio input circuit second audio data (103); if a difference between an attribute value of the second audio data and an attribute value of the first audio data is greater than a preset range, determining that the board has a circuit failure (104).

Description

单板测试的方法、单板及系统Single board test method, board and system 技术领域Technical field
本发明涉及单板测试领域,具体涉及一种单板测试的方法、单板及系统。The present invention relates to the field of single board testing, and in particular, to a method, a single board and a system for testing a single board.
背景技术Background technique
智能手机的制造流程大致为先制造手机单板,然后在手机单板的基础上组装成整机,整机即为最终的产品。为了保证产品质量,在出售产品之前需要对产品进行测试。The manufacturing process of the smart phone is roughly to first manufacture the mobile phone board, and then assemble the whole machine on the basis of the mobile phone single board, and the whole machine is the final product. In order to guarantee the quality of the product, the product needs to be tested before the product is sold.
现有的测试方法为:在组装成整机后,在整机中安装相应的测试软件,对整机的系统和硬件进行测试。The existing test method is: after assembling the whole machine, install the corresponding test software in the whole machine, and test the system and hardware of the whole machine.
发明人发现如果整机阶段被检测出存在硬件电路故障,则需要将整机拆解,针对整机阶段检测出的电路故障对单板做进一步的硬件测试。如此将需要进行额外的拆机装机操作,耽误检测时间。The inventor found that if there is a hardware circuit failure detected in the whole machine phase, the whole machine needs to be disassembled, and further hardware testing is performed on the board for the circuit fault detected in the whole machine phase. This will require additional disassembly and installation operations, delaying inspection time.
发明内容Summary of the invention
本发明提供一种单板测试的方法、单板及系统,用于节约测试时间。The invention provides a method, a single board and a system for testing a single board, which are used for saving test time.
为达到上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
第一方面,本发明提供了一种单板测试的方法,所述单板包括至少一个音频数据的输出电路和至少一个预设音频输入电路,所述音频数据的输出电路的输出端口与至少一个所述预设音频输入电路的输入端口相连,所述方法包括:In a first aspect, the present invention provides a method for single board testing, the board comprising at least one output circuit of audio data and at least one preset audio input circuit, an output port of the output circuit of the audio data and at least one The input ports of the preset audio input circuit are connected, and the method includes:
根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路;Acquiring the first audio data according to the test type carried in the test instruction, and determining an output circuit for outputting the audio data of the first audio data;
通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路;Outputting the first audio data to the preset audio input circuit through an output circuit of the audio data;
通过所述预设音频输入电路接收第二音频数据,所述第二音频数据为所述预设音频输入电路接收到的与所述第一音频数据对应的音频数据; Receiving, by the preset audio input circuit, second audio data, where the second audio data is audio data corresponding to the first audio data received by the preset audio input circuit;
如果所述第二音频数据的属性值与所述第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障。If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault.
结合第一方面,在所述第一方面的第一种可能的实现方式中,所述通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路,具体包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the outputting circuit of the audio data outputs the first audio data to the preset audio input circuit, specifically including :
将所述第一音频数据进行数模转换,得到第一模拟信号;Performing digital-to-analog conversion on the first audio data to obtain a first analog signal;
将所述第一模拟信号通过所述音频数据的输出电路输出到所述预设音频输入电路;Outputting the first analog signal to the preset audio input circuit through an output circuit of the audio data;
所述通过所述预设音频输入电路接收第二音频数据,具体包括:The receiving the second audio data by using the preset audio input circuit includes:
通过所述预设音频输入电路接收第二模拟信号,所述第二模拟信号为所述预设音频输入电路接收到的与所述第一模拟信号对应的模拟信号;Receiving, by the preset audio input circuit, a second analog signal, where the second analog signal is an analog signal received by the preset audio input circuit and corresponding to the first analog signal;
将所述第二模拟信号进行模数转换,得到第二音频数据。And performing analog-to-digital conversion on the second analog signal to obtain second audio data.
结合第一方面,在所述第一方面或所述第一方面的第一种可能的实现方式中,还提供了所述第一方面的第二种可能的实现方式,在所述第一方面的第二种可能的实现方式中,所述根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述音频数据的音频数据的输出电路,具体包括:In conjunction with the first aspect, in the first aspect or the first possible implementation of the first aspect, a second possible implementation of the first aspect is also provided, in the first aspect The second possible implementation manner, the obtaining the first audio data according to the test type carried in the test instruction, and determining an output circuit for outputting the audio data of the audio data, specifically includes:
如果测试指令中携带的测试类型为音频播放类型,则从本地读取预设音频数据;If the test type carried in the test command is an audio play type, the preset audio data is read locally;
将所述预设音频数据确定为所述第一音频数据;Determining the preset audio data as the first audio data;
将音频播放电路确定为所述音频数据的输出电路。The audio playback circuit is determined as an output circuit of the audio data.
结合第一方面,在所述第一方面或所述第一方面的第一种可能的实现方式中,还提供了所述第一方面的第三种可能的实现方式,在所述第一方面的第三种可能的实现方式中,所述根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述音频数据的音频数据的输出电路,具体包括:In conjunction with the first aspect, in the first aspect or the first possible implementation of the first aspect, a third possible implementation of the first aspect is also provided, in the first aspect The third possible implementation manner, the obtaining the first audio data according to the test type carried in the test instruction, and determining the output circuit for outputting the audio data of the audio data, specifically includes:
如果测试指令中携带的测试类型为调频广播类型,则通过第一测试终端获取预设调频数据,所述第一测试终端用于向所述单板发送所述预设调频数据;If the test type carried in the test command is an FM broadcast type, the preset test data is obtained by the first test terminal, and the first test terminal is configured to send the preset FM data to the board;
将所述预设调频数据确定为所述第一音频数据; Determining the preset FM data as the first audio data;
将调频广播功能涉及的音频输出电路确定为所述音频数据的输出电路。An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
结合第一方面,在所述第一方面或所述第一方面的第一种可能的实现方式中,还提供了所述第一方面的第四种可能的实现方式,在所述第一方面的第四种可能的实现方式中,所述根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述音频数据的音频数据的输出电路,具体包括:In conjunction with the first aspect, in the first aspect or the first possible implementation of the first aspect, a fourth possible implementation of the first aspect is also provided, in the first aspect The fourth possible implementation manner, the obtaining the first audio data according to the test type carried in the test instruction, and determining an output circuit for outputting the audio data of the audio data, specifically includes:
如果测试指令中携带的测试类型为语音通话类型,则通过第二测试终端获取预设通话内容,所述第二测试终端用于与所述单板进行语音通话,所述语音通话的内容为所述预设通话内容;If the test type carried in the test command is a voice call type, the second test terminal obtains the preset call content, and the second test terminal is configured to perform a voice call with the board, where the content of the voice call is Preset call content;
将所述预设通话内容确定为所述第一音频数据;Determining the preset call content as the first audio data;
将语音通话功能涉及的音频输出电路确定为所述音频数据的输出电路。The audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
结合第一方面,在所述第一方面或所述第一方面的第一种可能、第二种可能、第三种可能或第四种可能的实现方式中,还提供了所述第一方面的第五种可能的实现方式,在所述第一方面的第五种可能的实现方式中,所述第一音频数据的属性值为固定的预设频率;In conjunction with the first aspect, in the first aspect or the first possible, the second possible, the third possible or the fourth possible implementation of the first aspect, the first aspect is further provided a fifth possible implementation manner, in a fifth possible implementation manner of the first aspect, the attribute value of the first audio data is a fixed preset frequency;
所述如果所述第二音频数据的属性值与所述第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障,具体包括:If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault, specifically:
当所述第二音频数据的频率与所述第一音频数据的频率的差值大于预设范围,确定所述单板存在电路故障。When the difference between the frequency of the second audio data and the frequency of the first audio data is greater than a preset range, it is determined that the board has a circuit fault.
第二方面,本发明还提供了所述单板包括至少一个音频数据的输出电路和至少一个预设音频输入电路,其特征在于,所述音频数据的输出电路的输出端口与至少一个所述预设音频输入电路的输入端口相连,所述装置包括:In a second aspect, the present invention further provides an output circuit including at least one audio data and at least one preset audio input circuit, wherein an output port of the output circuit of the audio data and at least one of the pre- The input ports of the audio input circuit are connected, and the device comprises:
获取单元,用于根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路;An obtaining unit, configured to acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data;
第一音频输出单元,用于通过所述获取单元确定的所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路;a first audio output unit, configured to output the first audio data to the preset audio input circuit by an output circuit of the audio data determined by the acquiring unit;
第二音频获取单元,用于通过所述预设音频输入电路接收第二音频数 据,所述第二音频数据为所述预设音频输入电路接收到的与所述第一音频输出单元输出的所述第一音频数据对应的音频数据;a second audio acquiring unit, configured to receive the second audio number by using the preset audio input circuit According to the second audio data, the audio data corresponding to the first audio data output by the first audio output unit received by the preset audio input circuit;
故障确定单元,当所述第二音频获取单元获取的所述第二音频数据的属性值与所述获取单元获取的所述第一音频数据的属性值的差值大于预设范围时,确定所述单板存在电路故障。a fault determining unit, when the difference between the attribute value of the second audio data acquired by the second audio acquiring unit and the attribute value of the first audio data acquired by the acquiring unit is greater than a preset range, determining The board has a circuit fault.
结合第二方面,在所述第二方面的第一种可能的实现方式中,所述第一音频输出单元,包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the first audio output unit includes:
数模转换模块,用于将所述第一音频数据进行数模转换,得到第一模拟信号;a digital-to-analog conversion module, configured to perform digital-to-analog conversion on the first audio data to obtain a first analog signal;
第一模拟信号输出模块,用于将所述第一模拟信号通过所述音频数据的输出电路输出到所述预设音频输入电路;a first analog signal output module, configured to output the first analog signal to the preset audio input circuit through an output circuit of the audio data;
所述第二音频获取单元,包括:The second audio acquiring unit includes:
第二模拟信号获取模块,用于通过所述预设音频输入电路接收第二模拟信号,所述第二模拟信号为所述预设音频输入电路接收到的与所述第一模拟信号输出模块输出的所述第一模拟信号对应的模拟信号;a second analog signal acquiring module, configured to receive, by the preset audio input circuit, a second analog signal, where the second analog signal is received by the preset audio input circuit and output by the first analog signal output module The analog signal corresponding to the first analog signal;
模数转换模块,用于将所述第二模拟信号获取模块获取的所述第二模拟信号进行模数转换,得到第二音频数据。And an analog-to-digital conversion module, configured to perform analog-to-digital conversion on the second analog signal acquired by the second analog signal acquisition module to obtain second audio data.
结合第二方面,在所述第二方面或所述第二方面的第一种可能的实现方式中,还提供了所述第二方面的第二种可能的实现方式,在所述第二方面的第二种可能的实现方式中,所述获取单元,包括:In conjunction with the second aspect, in the second aspect or the first possible implementation of the second aspect, a second possible implementation of the second aspect is also provided, in the second aspect In the second possible implementation manner, the acquiring unit includes:
读取模块,用于当测试指令中携带的测试类型为音频播放类型时,从本地读取预设音频数据;a reading module, configured to read preset audio data locally when the test type carried in the test instruction is an audio play type;
第一确定模块,用于将所述预设音频数据确定为所述第一音频数据;a first determining module, configured to determine the preset audio data as the first audio data;
将音频播放电路确定为所述音频数据的输出电路。The audio playback circuit is determined as an output circuit of the audio data.
结合第二方面,在所述第二方面或所述第二方面的第一种可能的实现方式中,还提供了所述第二方面的第三种可能的实现方式,在所述第二方面的第三种可能的实现方式中,所述获取单元,还包括:In conjunction with the second aspect, in the second aspect or the first possible implementation of the second aspect, a third possible implementation of the second aspect is also provided, in the second aspect In a third possible implementation manner, the acquiring unit further includes:
调频数据获取模块,用于当测试指令中携带的测试类型为调频广播类型时,通过第一测试终端获取预设调频数据,所述第一测试终端用于向所述单板发送所述预设调频数据; The FM data acquisition module is configured to: when the test type carried in the test command is an FM broadcast type, obtain the preset FM data by using the first test terminal, where the first test terminal is configured to send the preset to the board Frequency modulation data;
第三确定模块,用于将所述预设调频数据确定为所述第一音频数据;a third determining module, configured to determine the preset FM data as the first audio data;
将调频广播功能涉及的音频输出电路确定为所述音频数据的输出电路。An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
结合第二方面,在所述第二方面或所述第二方面的第一种可能的实现方式中,还提供了所述第二方面的第四种可能的实现方式,在所述第二方面的第四种可能的实现方式中,所述获取单元,还包括:In conjunction with the second aspect, in the second aspect or the first possible implementation of the second aspect, a fourth possible implementation of the second aspect is also provided, in the second aspect The fourth possible implementation manner, the acquiring unit further includes:
通话内容获取模块,用于当测试指令中携带的测试类型为语音通话类型时,通过第二测试终端获取预设通话内容,所述第二测试终端用于与所述单板进行语音通话,所述语音通话的内容为所述预设通话内容;a call content obtaining module, configured to: when the test type carried in the test command is a voice call type, obtain a preset call content by using a second test terminal, where the second test terminal is configured to perform a voice call with the board. The content of the voice call is the preset call content;
第二确定模块,用于将所述预设通话内容确定为所述第一音频数据;a second determining module, configured to determine the preset call content as the first audio data;
将语音通话功能涉及的音频输出电路确定为所述音频数据的输出电路。The audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
结合第二方面,在所述第二方面或所述第二方面的第一种可能、第二种可能、第三种可能或第四种可能的实现方式中,还提供了所述第二方面的第五种可能的实现方式,在所述第二方面的第五种可能的实现方式中,所述第一音频数据的属性值为固定的预设频率;所述故障确定单元,具体用于:With reference to the second aspect, in the second aspect or the first possible, the second possible, the third possible or the fourth possible implementation of the second aspect, the second aspect is further provided A fifth possible implementation manner, in a fifth possible implementation manner of the second aspect, the attribute value of the first audio data is a fixed preset frequency, and the fault determining unit is specifically configured to: :
当所述第二音频获取单元获取的所述第二音频数据的频率与所述获取单元获取的所述第一音频数据的频率的差值大于预设范围,确定所述单板存在电路故障。And determining that the board has a circuit fault when the difference between the frequency of the second audio data acquired by the second audio acquiring unit and the frequency of the first audio data acquired by the acquiring unit is greater than a preset range.
第三方面,本发明还提供了一种单板测试的系统,所述系统包括第二方面所述的装置和测试控制装置,所述测试控制装置用于向所述单板发送测试指令;所述单板还用于将比较结果发送至所述测试控制装置。In a third aspect, the present invention provides a system for testing a single board, the system comprising the apparatus and the test control apparatus of the second aspect, the test control apparatus is configured to send a test instruction to the board; The board is also used to send a comparison result to the test control device.
第四方面,本发明还提供了一种单板,所述单板包括芯片级系统SOC和编码译码器件CODEC,所述SOC包括应用服务AP和与所述AP相连的数字信号处理器DSP,所述CODEC包括S1端口、端口A和端口B,所述端口A和端口B通过CODEC内部电路与S1端口相连,所述S1端口与所述DSP相连,所述AP、DSP、S1端口、端口A和端口B组成音频数据的输出电路,所述CODEC还包括多路选择开关MUX,所述MUX与所述S1端口相连,所述MUX、S1端口、DSP和AP组成预设音频输 入电路;其特征在于,所述端口A和/或端口B与所述MUX相连。In a fourth aspect, the present invention further provides a single board, the board includes a chip level system SOC and a codec device CODEC, the SOC includes an application service AP and a digital signal processor DSP connected to the AP, The CODEC includes an S1 port, a port A, and a port B. The port A and the port B are connected to the S1 port through a CODEC internal circuit, and the S1 port is connected to the DSP, and the AP, DSP, S1 port, and port A are connected. And the port B constitutes an output circuit of the audio data, the CODEC further includes a multi-way selection switch MUX, the MUX is connected to the S1 port, and the MUX, the S1 port, the DSP, and the AP form a preset audio input. Into the circuit; characterized in that the port A and / or port B is connected to the MUX.
结合第二方面,在所述第二方面的第一种可能的实现方式中,所述单板还包括频率调制FM电路,所述CODEC还S2端口,所述S2端口与所述FM电路相连,所述FM电路和所述S2端口组成音频数据的输出电路,所述S1端口、DSP和AP组成预设音频输入电路,所述S1端口与所述S2端口相连。With reference to the second aspect, in a first possible implementation manner of the second aspect, the board further includes a frequency modulation FM circuit, where the CODEC is further an S2 port, and the S2 port is connected to the FM circuit, The FM circuit and the S2 port constitute an output circuit of audio data, and the S1 port, the DSP and the AP constitute a preset audio input circuit, and the S1 port is connected to the S2 port.
结合第四方面,在所述第四方面或所述第四方面的第一种可能的实现方式中,还提供了所述第四方面的第二种可能的实现方式,在所述第四方面的第二种可能的实现方式中,所述单板还包括调制解调器Modem,所述CODEC还包括S3端口,所述S3端口与所述DSP相连,所述Modem与所述DSP相连,所述Modem、DSP和所述S3端口组成音频数据的输出电路,所述S1端口、DSP和AP组成预设音频输入电路,所述S1端口与所述S3端口相连。With reference to the fourth aspect, in the fourth aspect or the first possible implementation manner of the fourth aspect, the second possible implementation manner of the fourth aspect is further provided, in the fourth aspect In a second possible implementation manner, the board further includes a modem Modem, where the CODEC further includes an S3 port, where the S3 port is connected to the DSP, and the Modem is connected to the DSP, the Modem, The DSP and the S3 port constitute an output circuit of audio data, and the S1 port, the DSP and the AP constitute a preset audio input circuit, and the S1 port is connected to the S3 port.
第五方面,本发明还提供了一种单板测试的系统,所述系统包括第四方面所述的单板和测试控制装置,所述测试控制装置与所述单板中的应用服务器AP相连。In a fifth aspect, the present invention further provides a system for testing a single board, the system comprising the board and the test control device according to the fourth aspect, wherein the test control device is connected to an application server AP in the board. .
本发明提供的单板测试的方法、单板及系统,能够在单板中将用于输出第一音频数据的音频数据的输出电路的输出端与所述预设音频输入电路的输入端相连,使得音频数据的输出电路能够将第一音频数据输出到预设音频输入电路,从预设音频输入电路中获取到第二音频数据。如果第二音频数据的属性值与第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障。实现在单板阶段确定硬件电路故障,即能够在组装成整机之前及时发现单板的硬件电路故障,无需重复的拆机装机,节省检测时间。The method, the single board and the system for testing a single board of the present invention are capable of connecting an output end of an output circuit for outputting audio data of the first audio data to an input end of the preset audio input circuit in the single board, The output circuit of the audio data is enabled to output the first audio data to the preset audio input circuit, and the second audio data is acquired from the preset audio input circuit. If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, it is determined that the board has a circuit failure. The hardware circuit fault is determined in the single board phase, that is, the hardware circuit fault of the board can be found in time before being assembled into the whole machine, and no need for repeated disassembly and installation, thereby saving detection time.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为现有技术中单板内部的数据流向图;1 is a data flow diagram inside a single board in the prior art;
图2为本发明实施例中第一个单板内部的数据流向图;2 is a flow chart of data flow inside a first board in the embodiment of the present invention;
图3为本发明实施例中第二个单板内部的数据流向图FIG. 3 is a flow chart of data flow inside a second board in the embodiment of the present invention;
图4为本发明实施例中第三个单板内部的数据流向图;4 is a data flow diagram of a third internal board in an embodiment of the present invention;
图5为本发明实施例的测试系统架构图;FIG. 5 is a structural diagram of a test system according to an embodiment of the present invention; FIG.
图6为本发明实施例中第一个单板测试的方法的流程图;6 is a flowchart of a method for testing a first board in an embodiment of the present invention;
图7为本发明实施例中第二个单板测试的方法的流程图;7 is a flowchart of a method for testing a second board in an embodiment of the present invention;
图8为本发明实施例中第三个单板测试的方法的流程图;8 is a flowchart of a method for testing a third board in an embodiment of the present invention;
图9为本发明实施例中第四个单板测试的方法的流程图;9 is a flowchart of a method for testing a fourth board in the embodiment of the present invention;
图10为本发明实施例中第五个单板测试的方法的流程图;10 is a flowchart of a method for testing a fifth board in an embodiment of the present invention;
图11为本发明实施例中第六个单板测试的方法的流程图;11 is a flowchart of a method for testing a sixth board in an embodiment of the present invention;
图12为本发明实施例中第一个单板测试的装置的结构示意图;12 is a schematic structural diagram of an apparatus for testing a first single board according to an embodiment of the present invention;
图13为本发明实施例中第二个单板测试的装置的结构示意图;FIG. 13 is a schematic structural diagram of a device for testing a second single board according to an embodiment of the present invention; FIG.
图14为本发明实施例中第三个单板测试的装置的结构示意图;14 is a schematic structural diagram of an apparatus for testing a third single board according to an embodiment of the present invention;
图15为本发明实施例中第四个单板测试的装置的结构示意图;15 is a schematic structural diagram of an apparatus for testing a fourth single board according to an embodiment of the present invention;
图16为本发明实施例中第五个单板测试的装置的结构示意图;16 is a schematic structural diagram of an apparatus for testing a fifth single board according to an embodiment of the present invention;
图17为本发明实施例中第一个单板测试的系统的示意图;17 is a schematic diagram of a system for testing a first board in an embodiment of the present invention;
图18为本发明实施例中第一个单板的结构示意图;FIG. 18 is a schematic structural diagram of a first single board according to an embodiment of the present invention; FIG.
图19为本发明实施例中第二个单板的结构示意图;FIG. 19 is a schematic structural diagram of a second board according to an embodiment of the present invention;
图20为本发明实施例中第三个单板的结构示意图;20 is a schematic structural diagram of a third single board according to an embodiment of the present invention;
图21为本发明实施例中第二个单板测试的系统的示意图。FIG. 21 is a schematic diagram of a system for testing a second board in the embodiment of the present invention.
具体实施方式detailed description
下面将结合本实施例中的附图,对本实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the present embodiment will be clearly and completely described in the following with reference to the drawings in the embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
现有的单板结构如图1所示,包括芯片级系统(System on Chip,SOC)和与之连接的编码译码器件(COder-DECoder,CODEC)。其中,芯片级系统包括应用服务器AP和与AP相连的数字信号处理器DSP;AP具有数 据处理功能,例如接收并解析测试控制装置(简称测控装置,如PC机)发送的测试指令;DSP用于对数字信号进行处理。DSP除了与AP连接,还与调制解调器MODEM相连,MODEM用于获取的语音通话中对端发送的模拟信息并对其进行模数转换得到相应的数字信息。芯片级系统与编码译码器件的多个端口连接,这些端口中包括类型为音频数据接口(Inter-IC Sound,I2S)的S1端口和S3端口。编码译码器件中I2S端口还有S2端口,S2端口与频率调制电路(Frequency Modulation,FM)连接,用于对广播信号进行捕获并进行模数转换得到相应的数字信号。S1端口和S3端口,分别通过编码译码器件中的内部电路与编码译码器件上的端口A和端口B相连。端口A和端口B用于与外部扩音设备进行连接,以便进行声音音频的输出,例如端口A连接有扬声器,端口B连接有耳麦扩音器。编码译码器件上还设有用于连接外部的音频输入设备(如麦克风)的端口C,以便通过端口C接收用户通过音频输入设备(麦克风)输入的音频信息(如录音时用户输入的音频信息)。端口C通过多路选择开关(Multiplexer,简称MUX)分别与S1端口和S3端口相连。MUX能够根据不同的信号选择不同的电路进行传输。单板中的信号流向为:由S1端口、S2端口或S3端口进入编码译码器中,通过编码译码器的处理由端口A和端口B输出。或者,信号流向为:信号由端口C进入编码译码器中,通过编码译码器的处理由S1端口或S3端口输入到芯片级系统。The existing single board structure is as shown in FIG. 1, and includes a system on chip (SOC) and a codec device (CODER-DECoder, CODEC) connected thereto. The chip-level system includes an application server AP and a digital signal processor DSP connected to the AP; the AP has a number According to the processing function, for example, receiving and parsing a test command sent by a test control device (referred to as a measurement and control device, such as a PC); the DSP is used to process the digital signal. In addition to being connected to the AP, the DSP is also connected to the modem MODEM. The MODEM is used to obtain the analog information sent by the opposite end of the voice call and perform analog-to-digital conversion to obtain corresponding digital information. The chip-level system is connected to a plurality of ports of the codec device, and the ports include an S1 port and an S3 port of an audio data interface (Inter-IC Sound, I2S). The I2S port of the codec device also has an S2 port, and the S2 port is connected with a frequency modulation circuit (FM) for capturing a broadcast signal and performing analog-to-digital conversion to obtain a corresponding digital signal. The S1 port and the S3 port are respectively connected to the port A and the port B on the codec device through internal circuits in the code decoding device. Port A and Port B are used to connect to an external sound reinforcement device for audio and audio output, such as a speaker connected to port A and a headset amplifier connected to port B. The codec device is further provided with a port C for connecting an external audio input device (such as a microphone) to receive audio information input by the user through the audio input device (microphone) through the port C (such as audio information input by the user during recording). . Port C is connected to the S1 port and the S3 port through a Multiplexer (MUX). The MUX can select different circuits for transmission according to different signals. The signal flow in the board is: enters the codec by the S1 port, S2 port or S3 port, and is output by port A and port B through the processing of the codec. Alternatively, the signal flow direction is such that the signal enters the codec by port C and is input to the chip level system by the S1 port or the S3 port through the processing of the codec.
现有技术未提供单板阶段的单板测试方案,仅提供了在整机阶段进行测试的方案。如果整机阶段被检测出存在硬件电路故障,则需要将整机拆解,针对整机阶段检测出的电路故障对单板做进一步的硬件测试。如此将需要进行额外的拆机装机操作,耽误检测时间。The prior art does not provide a single board test solution in the single board stage, and only provides a solution for testing in the whole machine stage. If a hardware circuit fault is detected in the whole machine phase, the whole machine needs to be disassembled, and further hardware testing is performed on the board for the circuit fault detected during the whole machine phase. This will require additional disassembly and installation operations, delaying inspection time.
本发明实施例中,如图2所示,端口A和端口B输出的音频数据通过多路开关MUX输出到S1端口。通过控制指令使得MUX将端口A和/或端口B发送的第一音频数据转发到S1端口。当第一数据传输完毕后,取消对MUX的控制,之后MUX可按现有技术中的方式实现多路选择的功能。由此达到,通过所述音频数据的输出电路(包含S1端口以及端口A和端口B的音频输出电路)将所述第一音频数据(如一段歌曲)输出 到所述预设音频输入电路(包括S1和MUX的音频输入电路)。此处接入到S1端口的目的在于,使用含有S1端口的语音输入的功能电路,即预设音频输入电路进行录音。应用服务器-数字信号处理器-S1端口-端口A和端口B为音频数据的输出电路的一种实现方式。端口A和/或端口B-MUX-S1端口-数字信号处理器-应用服务器为预设音频输入电路的一种实现方式。In the embodiment of the present invention, as shown in FIG. 2, the audio data outputted by the port A and the port B is output to the S1 port through the multiplexer MUX. The MUX forwards the first audio data sent by port A and/or port B to the S1 port by a control command. After the first data transmission is completed, the control of the MUX is cancelled, and then the MUX can implement the multi-path selection function in the manner of the prior art. Thereby, the first audio data (such as a song) is output through the output circuit of the audio data (including the S1 port and the audio output circuit of the port A and the port B) To the preset audio input circuit (including the audio input circuits of S1 and MUX). The purpose of accessing the S1 port here is to use a functional circuit that includes a voice input of the S1 port, that is, a preset audio input circuit for recording. Application Server - Digital Signal Processor - S1 Port - Port A and Port B are an implementation of an output circuit for audio data. Port A and/or Port B-MUX-S1 Port - Digital Signal Processor - The application server is an implementation of a preset audio input circuit.
如图3所示,S2端口与FM电路相连,FM电路将获取的调频模拟信号进行模数转换并将转换后的数字信号发送到S2端口,S2端口通过与S1端口连接的电路,将该信号发送到S1端口。此处接入到S1端口的目的在于,使用含有S1端口的语音输入的功能电路,即预设音频输入电路进行录音。频率调制电路-S2端口为音频数据的输出电路的另一种实现方式。S2端口-S1端口-数字信号处理器-应用服务器为预设音频输入电路的另一种实现方式。As shown in Figure 3, the S2 port is connected to the FM circuit. The FM circuit performs analog-to-digital conversion on the acquired FM analog signal and sends the converted digital signal to the S2 port. The S2 port passes the circuit connected to the S1 port. Send to the S1 port. The purpose of accessing the S1 port here is to use a functional circuit that includes a voice input of the S1 port, that is, a preset audio input circuit for recording. Frequency Modulation Circuit - The S2 port is another implementation of the output circuit for audio data. S2 Port - S1 Port - Digital Signal Processor - The application server is another implementation of the preset audio input circuit.
如图4所示,S3端口接收DSP处理后的语音通话信号,该语音通话信号为Modem接收到模拟信号后,Modem对该模拟信号进行模数转换并将模数转换得到的数字信号发送到DSP,由DSP对数字信号做进一步处理。S3端口通过CODEC中的输出电路将DSP处理后的信号输出到S1端口,以便通过包含有S1端口的音频输入电路进行录音。此处接入到S1端口的目的在于,使用含有S1端口的语音输入的功能电路,即预设音频输入电路。调制解调器-数字信号处理器-S3端口为音频数据的输出电路的再一种实现方式。S3端口-S1端口-数字信号处理器-应用服务器为预设音频输入电路的再一种实现方式。As shown in FIG. 4, the S3 port receives the voice call signal processed by the DSP. After the voice call signal is received by the Modem, the Modem performs analog-to-digital conversion on the analog signal and sends the digital signal obtained by analog-to-digital conversion to the DSP. The digital signal is further processed by the DSP. The S3 port outputs the DSP processed signal to the S1 port through the output circuit in the CODEC to record through the audio input circuit including the S1 port. The purpose of accessing the S1 port here is to use a functional circuit that includes a voice input of the S1 port, that is, a preset audio input circuit. Modem - Digital Signal Processor - The S3 port is yet another implementation of the output circuitry for audio data. S3 Port - S1 Port - Digital Signal Processor - The application server is another implementation of the preset audio input circuit.
需要说明的是,在测试单板内部电路的过程中,输出的数据能够通过内部电路返回至AP即可,因此在本发明实施例中端口A或端口B是否与外部设备进行连接在本发明实施例中不做限定。It should be noted that, in the process of testing the internal circuit of the board, the output data can be returned to the AP through the internal circuit. Therefore, whether the port A or the port B is connected to the external device in the embodiment of the present invention is implemented in the present invention. There is no limit in the example.
基于上述单板,本发明实施例提供了一种单板测试的方法,如图5所示,所述方法的硬件基础为测试控制装置和单板,所述测试控制装置为能够发送测试指令的装置,如PC机或Mac机。单板包括至少一个音频数据的输出电路和至少一个预设音频输入电路,所述音频数据的输出电路的 输出端口与至少一个所述预设音频输入电路的输入端口相连。现有的单板乃至后续的整机中,输出电路通常不会与输入电路相连。本发明为了能够不借助外接的设备,由单板内部的电路实现对单板电路的检测,将音频数据的输出电路的输出端口和预设音频输入电路的输入端口相连,使得音频数据的输出电路输出的第一音频数据能够通过预设音频输入电路进行捕获,通过对捕获的第二音频数据与第一音频数据进行比较能够得到通过单板电路输出的第二音频数据否存在失真,进而得到单板电路是否存在电路故障。如图6所示,所述方法包括:The embodiment of the present invention provides a method for testing a single board. As shown in FIG. 5, the hardware basis of the method is a test control device and a board. The test control device is capable of transmitting test instructions. A device, such as a PC or Mac. The board includes at least one output circuit of audio data and at least one preset audio input circuit, the output circuit of the audio data The output port is coupled to an input port of at least one of the predetermined audio input circuits. In existing boards and even subsequent machines, the output circuit is usually not connected to the input circuit. The invention realizes the detection of the single-board circuit by the circuit inside the single board without using the external device, and connects the output port of the output circuit of the audio data and the input port of the preset audio input circuit, so that the output circuit of the audio data The outputted first audio data can be captured by a preset audio input circuit, and by comparing the captured second audio data with the first audio data, it can be obtained whether there is distortion in the second audio data outputted through the single-board circuit, thereby obtaining a single Whether the board circuit has a circuit failure. As shown in FIG. 6, the method includes:
步骤101、根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路。Step 101: Acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting audio data of the first audio data.
单板接收测试控制装置发送的测试指令。对该测试指令进行解析,得到其中携带的测试类型,所述测试类型包括:音频播放类型、调频广播类型和语音通话类型。如果测试类型为音频播放类型,则可从本地读取测试用的音频文件,将该音频文件确定为第一音频数据。如果测试类型为调频广播类型,则接收第一测试终端发送的预设调频数据,将所述预设调频数据确定为第一音频数据。其中,第一测试终端可以为FM发射器。如果测试类型为音频通话类型,则接收第二测试终端发送的预设通话内容,将该预设通话内容确定为第一音频数据。其中,第二测试终端可以为手机等语音通话设备。The board receives the test command sent by the test control device. The test command is parsed to obtain a test type carried therein, and the test type includes: an audio play type, an FM broadcast type, and a voice call type. If the test type is an audio play type, the test audio file can be read locally, and the audio file is determined as the first audio data. If the test type is an FM broadcast type, the preset FM data sent by the first test terminal is received, and the preset FM data is determined as the first audio data. The first test terminal may be an FM transmitter. If the test type is an audio call type, the preset call content sent by the second test terminal is received, and the preset call content is determined as the first audio data. The second test terminal may be a voice call device such as a mobile phone.
步骤102、通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路。Step 102: Output the first audio data to the preset audio input circuit by using an output circuit of the audio data.
本发明实施例中如图2所示,设置了端口A(或端口B)通过多路开关MUX返回至S1端口的连接电路;如图3所示,设置了S1端口与S2端口的连接电路;如图4所示,设置了S1端口与S3端口的连接电路,上述三个电路分别在不同的场景下实现了从单板内部音频数据的输出电路将第一音频数据输出到预设音频输入电路的功能。In the embodiment of the present invention, as shown in FIG. 2, the connection circuit of the port A (or the port B) is returned to the S1 port through the multiplexer MUX; as shown in FIG. 3, the connection circuit of the S1 port and the S2 port is set; As shown in FIG. 4, the connection circuit of the S1 port and the S3 port is set, and the above three circuits respectively output the first audio data to the preset audio input circuit from the output circuit of the internal audio data of the board in different scenarios. The function.
步骤103、通过所述预设音频输入电路接收第二音频数据,所述第二音频数据为所述预设音频输入电路接收到的与所述第一音频数据对应的音频数据。 Step 103: Receive second audio data by using the preset audio input circuit, where the second audio data is audio data corresponding to the first audio data received by the preset audio input circuit.
通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路后,在预设音频输入电路监听是否有音频数据输入,如果有则接收该音频数据,即第二音频数据。After outputting the first audio data to the preset audio input circuit through the output circuit of the audio data, the preset audio input circuit monitors whether there is audio data input, and if so, receives the audio data, that is, the second Audio data.
步骤104、如果所述第二音频数据的属性值与所述第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障。Step 104: If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determine that the board has a circuit fault.
其中,属性值用于表示音频数据的属性特征,例如频率或最大峰值等。第一音频数据为样本数据,即原本希望输出的数据。第二音频数据为通过音频数据的输出电路输出并由预设音频输入电路接收后得到的实际音频数据。将样本数据(第一音频数据)的属性值和实际数据(第二音频数据)的属性值进行比较,能够得到二者是否存在差别。由于音频输出过程中,通常存在少量干扰,使得实际数据与样本数据存在差值,因此当该差值小于预定差值时,即可确定得到的第二音频数据即为第一音频数据。反之,说明单板电路存在电路故障,进而进行电路故障定位等后续处理流程。The attribute value is used to represent attribute characteristics of the audio data, such as frequency or maximum peak value. The first audio data is sample data, that is, data that is originally desired to be output. The second audio data is actual audio data that is output through an output circuit of the audio data and received by the preset audio input circuit. Comparing the attribute value of the sample data (first audio data) with the attribute value of the actual data (second audio data), it is possible to obtain whether or not there is a difference between the two. Since there is usually a small amount of interference in the audio output process, the actual data and the sample data have a difference. Therefore, when the difference is less than the predetermined difference, the obtained second audio data is determined to be the first audio data. On the contrary, it indicates that there is a circuit failure in the single-board circuit, and then the subsequent processing flow such as circuit fault location is performed.
本发明实施例提供的单板测试的方法,能够在单板中将音频数据的输出电路的输出端与至少一个所述预设音频输入电路的输入端相连,使得音频数据的输出电路能够将第一音频数据输出到预设音频输入电路,从预设音频输入电路中获取到第二音频数据。如果第二音频数据的属性值与第一音频数据的属性值的差值大于预设范围,则确定单板存在电路故障。现有技术中无法在单板阶段确定是否存在电路故障,导致在整机阶段发现硬件电路故障时,需要进行额外的拆机装机操作,耽误检测时间相比。本发明中,能够在组装成整机之前及时发现单板的硬件电路故障,无需重复的拆机装机,节省检测时间。The method for testing a single board according to an embodiment of the present invention is capable of connecting an output end of an output circuit of audio data to an input end of at least one of the preset audio input circuits in a single board, so that an output circuit of the audio data can be An audio data is output to the preset audio input circuit, and the second audio data is acquired from the preset audio input circuit. If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, it is determined that the board has a circuit failure. In the prior art, it is impossible to determine whether there is a circuit failure in the single board stage, and when the hardware circuit failure is found in the whole machine stage, an additional disassembly and installation operation is required, and the detection time is delayed. In the invention, the hardware circuit fault of the single board can be found in time before being assembled into the whole machine, and the repeated disassembly and installation is unnecessary, and the detection time is saved.
此外,现有技术中在整机阶段,检测是否存在硬件电路故障需要在单板上外接音频输出设备,由检测人员人工通过音频输出设备判断计划输出的音频和实际输出的音频是否一致,根据人工比较结果确定单板手机是否存在硬件电路故障。本发明实施例提供的单板测试的方法,还能够在组装成整机后,无需外接音频输出设备也无需由人工判断,仅使用单板原有的音频处理能力,通过物理连接的方式将音频数据的输出电路的输出端直接与预设音频输入电路的输入端相连,实现第二音频数据的获取,然后由单 板内部电路(AP)比较第二音频数据和第一音频数据,如果第二音频数据的属性值与第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障,降低整机时电路检测的复杂度,提高整机电路检测的效率。In addition, in the prior art, in the whole machine phase, if there is a hardware circuit failure, it is necessary to externally connect the audio output device on the board, and the inspector manually determines whether the audio output and the actual output audio are consistent by the audio output device, according to the manual. The comparison result determines whether there is a hardware circuit failure in the single-board phone. The method for testing a single board provided by the embodiment of the present invention can also be used after the whole machine is assembled, without external audio output device and without manual judgment, and only using the original audio processing capability of the board, and the audio is connected through physical connection. The output end of the data output circuit is directly connected to the input end of the preset audio input circuit to realize the acquisition of the second audio data, and then the single The board internal circuit (AP) compares the second audio data with the first audio data, and if the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault , reduce the complexity of circuit detection during the whole machine, and improve the efficiency of the whole circuit detection.
作为对图2所示方法的具体说明,本发明实施例还提供了一种单板测试的方法,如图7所示,步骤102、通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路,具体包括:As a specific description of the method shown in FIG. 2, the embodiment of the present invention further provides a method for testing a single board. As shown in FIG. 7, step 102, the first audio data is output through the output circuit of the audio data. Outputting to the preset audio input circuit specifically includes:
步骤201、将所述第一音频数据进行数模转换,得到第一模拟信号。Step 201: Perform digital-to-analog conversion on the first audio data to obtain a first analog signal.
步骤202、将所述第一模拟信号通过所述音频数据的输出电路输出到所述预设音频输入电路。Step 202: Output the first analog signal to the preset audio input circuit through an output circuit of the audio data.
第一音频数据采用与现有技术相同的输出流程,通过音频数据的输出电路进行输出。与现有技术不同的是,输出的位置并不是输出到外接设备所在的端口,以便外接设备进行输出。而是将输出信号作为预设音频输入电路的输入信号,以便从单板内部读取第二音频数据,进行后续比较。在输出第一音频数据时,先将单板中存储的第一音频数据进行格式转化,得到第一模拟信号。再将该第一模拟信号发送到预设音频输入电路。The first audio data is outputted through an output circuit of the audio data using the same output flow as in the prior art. Different from the prior art, the output position is not output to the port where the external device is located, so that the external device outputs. Instead, the output signal is used as an input signal to the preset audio input circuit to read the second audio data from inside the board for subsequent comparison. When the first audio data is output, the first audio data stored in the board is first format converted to obtain a first analog signal. The first analog signal is then sent to a preset audio input circuit.
步骤103、通过所述预设音频输入电路接收第二音频数据,具体包括:Step 103: Receive second audio data by using the preset audio input circuit, specifically:
步骤203、通过所述预设音频输入电路接收第二模拟信号,所述第二模拟信号为所述预设音频输入电路接收到的与所述第一模拟信号对应的模拟信号。Step 203: Receive a second analog signal by using the preset audio input circuit, where the second analog signal is an analog signal received by the preset audio input circuit and corresponding to the first analog signal.
步骤204、将所述第二模拟信号进行模数转换,得到第二音频数据。Step 204: Perform analog-to-digital conversion on the second analog signal to obtain second audio data.
预设音频输入电路接收到音频数据的输出电路输出的第二模拟信号后,对第二模拟信号进行模数转换,得到第二音频数据。After the preset audio input circuit receives the second analog signal output by the output circuit of the audio data, the second analog signal is subjected to analog-to-digital conversion to obtain second audio data.
本发明实施例提供的单板测试的方法,能够在单板中模拟真实音频数据播放功能和音频数据接收功能,使得单板检测的结果能够真实体现实际存在的电路故障,提高单板测试的准确性。The method for testing the board in the embodiment of the present invention can simulate the real audio data playing function and the audio data receiving function in the board, so that the result of the board testing can truly reflect the actual circuit fault and improve the accuracy of the board test. Sex.
只要能够通过音频数据的输出和接收效果确定单板电路电路故障的测试类型,均可纳入到本发明的范围内。需要说明的是,在实现本发明的过程中,除了使用下述三种测试类型还可使用其他能够产生或使用到音频 数据的测试类型。作为对上述实施例的具体说明,下面列举三种不同测试类型以及相应的处理流程。As long as the type of test capable of determining the failure of the board circuit by the output and reception effects of the audio data can be included in the scope of the present invention. It should be noted that in the process of implementing the present invention, other types of test types can be used to generate or use audio. The type of test for the data. As a detailed description of the above embodiments, three different test types and corresponding processing flows are listed below.
测试类型举例之一:测试类型为音频播放类型。在此场景下,步骤101、根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路,如图8所示,具体包括:One of the test type examples: the test type is the audio play type. In this scenario, the step 101 is to obtain the first audio data according to the test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data, as shown in FIG.
步骤301、如果测试指令中携带的测试类型为音频播放类型,则从本地读取预设音频数据。Step 301: If the test type carried in the test instruction is an audio play type, the preset audio data is read locally.
所述预设音频数据存储在本地,所述本地可以是单板内部预先存储的,也可以是由测试控制装置发送给单板的。预设音频数据用于测试单板内部电路是否正常,因此优选的,预设音频数据具有某些易于识别或易于检测的特征,以便后续进行比较时能够简单快捷的得到比较结果。The preset audio data is stored locally, and the local may be pre-stored inside the board, or may be sent to the board by the test control device. The preset audio data is used to test whether the internal circuit of the board is normal. Therefore, the preset audio data has some features that are easy to identify or easy to detect, so that the comparison result can be obtained quickly and easily when comparing later.
步骤302、将所述预设音频数据确定为所述第一音频数据。Step 302: Determine the preset audio data as the first audio data.
步骤303、将音频播放电路确定为所述音频数据的输出电路。Step 303: Determine an audio playback circuit as an output circuit of the audio data.
音频播放电路包括AP和DSP以及CODEC中S1端口连接的输出电路。音频播放电路用于将该预设音频数据进行转换并通过S1端口连接的输出电路进行输出。The audio playback circuit includes an output circuit in which the AP and the DSP and the S1 port of the CODEC are connected. The audio playback circuit is configured to convert the preset audio data and output it through an output circuit connected by the S1 port.
下面给出测试类型为音频播放类型的一个使用场景,本使用场景中采用如图4所示的单板结构进行实现。1、测试控制装置(PC机)向单板的AP发送测试指令。2、AP解析出该测试指令携带的测试类型为音频播放类型。3、AP读取并播放固定频率(如1000HZ)的音乐(第一音频数据),经过DSP算法处理,由S1端口输入CODEC,CODEC将该固定频率的音乐的数字信号转化成模拟信号,模拟信号先经过端口A和/或端口B再经过MUX后在CODEC中进行模数转换,得到模拟信号对应的数字信号,该数字信号通过CODEC中的电路转送至S1端口,然后经S1端口发送至DSP进行算法处理,再由AP将处理的音频数据保存成录音文件(第二音频数据)。4、AP对该录音文件和该固定频率的音乐的频率进行分析。当频率在可接受范围之内(如950HZ~1050HZ)时,表示音频数据经过的所有硬件电路正常,否则硬件通路损坏,以此来达到检测音频播放与录音电路的目的。 The following is a usage scenario in which the test type is an audio play type. In this scenario, the single-board structure shown in Figure 4 is used. 1. The test control device (PC) sends a test command to the AP of the board. 2. The AP parses out that the test type carried by the test command is an audio play type. 3. The AP reads and plays the music of the fixed frequency (such as 1000HZ) (the first audio data), and is processed by the DSP algorithm, and the CODEC is input by the S1 port, and the CODEC converts the digital signal of the fixed frequency music into an analog signal, an analog signal. First, after port M and/or port B pass through the MUX, the analog-to-digital conversion is performed in the CODEC to obtain a digital signal corresponding to the analog signal, and the digital signal is transferred to the S1 port through the circuit in the CODEC, and then sent to the DSP through the S1 port. The algorithm processes, and the AP processes the processed audio data into a recording file (second audio data). 4. The AP analyzes the frequency of the recorded file and the music of the fixed frequency. When the frequency is within the acceptable range (such as 950HZ ~ 1050HZ), it means that all the hardware circuits through which the audio data passes are normal, otherwise the hardware path is damaged, so as to achieve the purpose of detecting the audio playing and recording circuit.
测试类型举例之二:测试类型为调频广播类型。在此场景下,步骤101、根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路,如图9所示,具体包括:Example 2 of the test type: The test type is FM broadcast type. In this scenario, the step 101 is to obtain the first audio data according to the test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data, as shown in FIG.
步骤401、如果测试指令中携带的测试类型为调频广播类型,则通过第一测试终端获取预设调频数据,所述第一测试终端用于向所述单板发送所述预设调频数据。Step 401: If the test type carried in the test command is an FM broadcast type, the preset test data is obtained by using the first test terminal, and the first test terminal is configured to send the preset FM data to the board.
其中,第一测试终端为能够发射调频信号的终端,如FM发射器。单板本身具有接收调频信号的FM电路,因此通过比较接听到的FM信号(第二音频数据),与预设的调频数据(第一音频数据)即可确定是否有电路故障。当确定为调频广播类型时,单板向第一测试终端发送预设调频数据获取请求,第一测试终端接收到该请求后向单板发送所述预设调频数据。The first test terminal is a terminal capable of transmitting a frequency modulated signal, such as an FM transmitter. The board itself has an FM circuit for receiving the FM signal, so by comparing the received FM signal (second audio data) with the preset FM data (first audio data), it is possible to determine whether there is a circuit failure. When it is determined to be the FM broadcast type, the board sends a preset FM data acquisition request to the first test terminal, and the first test terminal sends the preset FM data to the board after receiving the request.
步骤402、将所述预设调频数据确定为所述第一音频数据。Step 402: Determine the preset FM data as the first audio data.
步骤403、将调频广播功能涉及的音频输出电路确定为所述音频数据的输出电路。Step 403: Determine an audio output circuit involved in the FM broadcast function as an output circuit of the audio data.
下面给出测试类型为调频广播类型的一个使用场景,本使用场景中采用如图5所示的单板结构进行实现。1、测试控制装置(PC机)发送检测命令,2、第一测试终端向单板发送FM信号。3、单板的FM电路接收第一测试终端发送的FM信号,将短波信号转换成数字信号,将该数字信号发送至CODEC的S2端口,通过S2端口与S1端口之间的连线,将接收到的FM信号发送至S1端口。该FM信号再发送给DSP进行算法处理而后发送至AP。4、AP将音频数据保存成录音文件,并对音频文件进行分析。当检测得到的音频声音数据与程序中预设的声音数据在吻合的范围之内,表示音频数据经过的所有硬件电路正常,否则硬件通路损坏,以此来达到检测FM硬件电路连接的目的。The following is a scenario in which the test type is the FM broadcast type. In this scenario, the single-board structure shown in Figure 5 is used. 1. The test control device (PC) sends a detection command, and the first test terminal sends an FM signal to the board. 3. The FM circuit of the single board receives the FM signal sent by the first test terminal, converts the short wave signal into a digital signal, and sends the digital signal to the S2 port of the CODEC, and receives the connection between the S2 port and the S1 port. The incoming FM signal is sent to the S1 port. The FM signal is then sent to the DSP for algorithm processing and then sent to the AP. 4. The AP saves the audio data into a recording file and analyzes the audio file. When the detected audio sound data is within the range of the sound data preset in the program, all the hardware circuits through which the audio data passes are normal, otherwise the hardware path is damaged, thereby achieving the purpose of detecting the FM hardware circuit connection.
测试类型举例之三:测试类型为语音通话类型。在此场景下,步骤101、根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路,如图10所示,具体包括:Example 3 of the test type: The test type is the voice call type. In this scenario, the step 101 is to obtain the first audio data according to the test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data. As shown in FIG. 10, the method specifically includes:
步骤501、如果测试指令中携带的测试类型为语音通话类型,则通过第二测试终端获取预设通话内容,所述第二测试终端用于与所述单板进行 语音通话,所述语音通话的内容为所述预设通话内容。Step 501: If the test type carried in the test command is a voice call type, the preset test content is obtained by using the second test terminal, where the second test terminal is used to perform with the board. a voice call, the content of the voice call is the preset call content.
第二测试终端为测试用的具有语音通话类型的终端,也可以是虚拟出的能够输出语音通话信息的终端。第二测试终端通过与单板的连接,向单板发送所述预设通话内容。例如:预设通话内容为:“你好中国”,则第二测试终端向单板发送“你好中国”的模拟信号,单板的Modem接收到该模拟信号后,将该模拟信号进行模数转换,通过预设音频输入电路得到第二音频数据。The second test terminal is a terminal having a voice call type for testing, and may also be a virtual terminal capable of outputting voice call information. The second test terminal sends the preset call content to the board through the connection with the board. For example, if the preset call content is “Hello China”, the second test terminal sends an analog signal of “Hello China” to the board. After receiving the analog signal, the modem of the board performs the analog signal. Converting, obtaining second audio data by preset audio input circuit.
步骤502、将所述预设通话内容确定为所述第一音频数据。Step 502: Determine the preset call content as the first audio data.
步骤503、将语音通话功能涉及的音频输出电路确定为所述音频数据的输出电路。Step 503: Determine an audio output circuit involved in the voice call function as an output circuit of the audio data.
下面给出测试类型为语音通话类型的一个使用场景,本使用场景中采用如图6所示的单板结构进行实现。1、测试控制装置(PC机)发送检测命令。2、第二测试终端模拟电话播放声音的过程。3、单板的Modem接收该模拟信号后进行模数转换,并将转换后的数字信号发送至DSP,经DSP处理后的数字信号发送至CODEC的S3端口,将该模拟信号由S3端口发送至S1端口。4、经过S1端口将该数字信号发送到DSP进行处理,由AP将音频数据保存成录音文件。5、AP对音频文件进行分析,当检测得到的音频声音数据与程序中预设的声音数据在吻合的范围之内,表示音频数据经过的所有硬件电路正常,否则硬件电路损坏。以此来达到检测Modem通话硬件电路连接的目的。The following is a scenario in which the test type is a voice call type. In this scenario, the single-board structure shown in Figure 6 is used. 1. The test control device (PC) sends a test command. 2. The second test terminal simulates the process of playing a sound by the telephone. 3. The modem of the single board receives the analog signal, performs analog-to-digital conversion, and sends the converted digital signal to the DSP, and the digital signal processed by the DSP is sent to the S3 port of the CODEC, and the analog signal is sent to the S3 port to the S3 port. S1 port. 4. The digital signal is sent to the DSP for processing through the S1 port, and the audio data is saved into a recording file by the AP. 5. The AP analyzes the audio file. When the detected audio sound data is within the range of the sound data preset in the program, all the hardware circuits through which the audio data passes are normal, otherwise the hardware circuit is damaged. In order to achieve the purpose of detecting the connection of the modem circuit hardware circuit.
需要说明的是,第二测试终端为具有发射调频信号的终端,其与第一测试测试终端可以位于同一个电子设备,即该电子设备具有语音通话和发射调频信号两个功能。第二测试终端与第一测试终端也可位于不同的电子设备中。It should be noted that the second test terminal is a terminal having a transmit FM signal, and the first test test terminal can be located in the same electronic device, that is, the electronic device has two functions of a voice call and a transmit FM signal. The second test terminal and the first test terminal can also be located in different electronic devices.
本发明实施例给出了三种测试单板电路的方法,达到对单板不同功能电路的检测。上述三个使用场景仅作为本发明实现中的三个举例,同理可推出使用单板上的红外信号发射电路、蓝牙信号的发射电路等单板内部电路的音频发射电路替换上述实施例中的音频数据的输出电路,将输出的数据输出到预设音频输入电路中,得到第二音频数据,以便对涉及的内部电 路进行电路故障的判断。The embodiments of the present invention provide three methods for testing a single-board circuit to achieve detection of different functional circuits of the single board. The above three usage scenarios are only used as three examples in the implementation of the present invention. Similarly, the audio transmitting circuit of the internal circuit of the single board using the infrared signal transmitting circuit on the single board, the transmitting circuit of the Bluetooth signal, etc. may be replaced by the above embodiment. An output circuit of the audio data, outputting the output data to a preset audio input circuit to obtain second audio data for internal electrical power involved The road makes a judgment of the circuit failure.
作为对图2所示方法的具体说明,本发明实施例还提供了一种单板测试的方法,所述第一音频数据的属性值为固定的预设频率。步骤104、如果所述第二音频数据的属性值与所述第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障,具体包括:As a specific description of the method shown in FIG. 2, the embodiment of the present invention further provides a method for testing a single board. The attribute value of the first audio data is a fixed preset frequency. Step 104: If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault, specifically:
当所述第二音频数据的频率与所述第一音频数据的频率的差值大于预设范围,确定所述单板存在电路故障。When the difference between the frequency of the second audio data and the frequency of the first audio data is greater than a preset range, it is determined that the board has a circuit fault.
上述步骤可通过下述方式进行实现,如图11所示:The above steps can be implemented in the following manner, as shown in FIG.
步骤601、判断所述第二音频数据的频率与所述第一音频数据的频率的差值是否大于预设范围。Step 601: Determine whether a difference between a frequency of the second audio data and a frequency of the first audio data is greater than a preset range.
由于单板存在磁场等干扰,接收到的第二音频数据可能无法与第一音频数据完全一致。只要在可接受的误差范围内即可认为电路无电路故障。优选的,第一音频数据的频率为1000HZ,预设范围(误差范围)为±50HZ。当第二音频数据的频率在950HZ~1050HZ时,其与第一音频数据的频率的差值在-50HZ与+50HZ之间,此时确定单板无电路故障。如果第二音频数据的频率小于950HZ大于1050HZ,则其与第一音频数据的频率的差值小于-50HZ或大于+50HZ,此时确定单板存在电路故障。The received second audio data may not be completely consistent with the first audio data due to interference of the magnetic field or the like. The circuit is considered to have no circuit fault as long as it is within an acceptable tolerance. Preferably, the frequency of the first audio data is 1000 Hz, and the preset range (error range) is ±50 Hz. When the frequency of the second audio data is between 950 Hz and 1050 Hz, the difference between the frequency of the first audio data and the frequency of the first audio data is between -50 Hz and +50 Hz, and it is determined that the board has no circuit failure. If the frequency of the second audio data is less than 950HZ greater than 1050HZ, the difference between the frequency of the first audio data and the frequency of the first audio data is less than -50HZ or greater than +50HZ, and it is determined that the board has a circuit fault.
步骤602、如果大于,则确定所述单板存在电路故障。Step 602: If it is greater, determine that the board has a circuit fault.
可选的,如果等于,则确定所述单板存在电路故障。Optionally, if equal, determining that the board has a circuit fault.
步骤603、如果小于,则确定所述单板不存在电路故障。Step 603: If less than, determine that the board does not have a circuit fault.
本发明实施例仅提供了一种对第一音频数据和第二音频数据的频率进行比较的方式,这是一种优选方式,其他可以对第一音频数据和第二音频数据进行比较的方式也可运用到本发明中。例如:提取第一音频数据和第二音频数据的最大波峰值(或波长)c,判断所述第二音频数据的最大波峰值(或波长)与所述第一音频数据的最大波峰值(或波长)的差值是否大于预设范围。如果大于,则确定所述单板存在电路故障。如果小于,则确定所述单板不存在电路故障。The embodiment of the present invention provides only a manner of comparing the frequencies of the first audio data and the second audio data, which is a preferred manner, and other methods for comparing the first audio data and the second audio data are also It can be applied to the present invention. For example, extracting a maximum peak value (or wavelength) c of the first audio data and the second audio data, and determining a maximum peak value (or wavelength) of the second audio data and a maximum peak value of the first audio data (or Whether the difference in wavelength) is greater than the preset range. If it is greater, it is determined that the board has a circuit failure. If it is smaller, it is determined that the board does not have a circuit failure.
本发明实施例提供的单板测试的方法能够根据第一音频数据的频率和第二音频数据的频率,确定单板是否存在电路故障,简化在确定单板是 否存在电路故障的判断步骤,提高单板检测效率。The method for testing the board provided by the embodiment of the present invention can determine whether the board has a circuit fault according to the frequency of the first audio data and the frequency of the second audio data, and simplifying determining that the board is Whether there is a circuit fault determination step to improve the board detection efficiency.
本发明实施例还提供了一种单板测试的装置,所述单板包括至少一个音频数据的输出电路和至少一个预设音频输入电路,所述音频数据的输出电路的输出端口与至少一个所述预设音频输入电路的输入端口相连,所述装置用于实现上述方法,如图12所示,所述单板测试的装置7包括:The embodiment of the present invention further provides a device for testing a single board, the board includes at least one output circuit of audio data and at least one preset audio input circuit, and an output port of the output circuit of the audio data and at least one The input port of the preset audio input circuit is connected, and the device is used to implement the above method. As shown in FIG. 12, the apparatus 7 for testing the single board includes:
获取单元71,用于根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路;An obtaining unit 71, configured to acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data;
第一音频输出单元72,用于通过所述获取单元71确定的所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路;a first audio output unit 72, configured to output the first audio data to the preset audio input circuit by an output circuit of the audio data determined by the obtaining unit 71;
第二音频获取单元73,用于通过所述预设音频输入电路接收第二音频数据,所述第二音频数据为所述预设音频输入电路接收到的与所述第一音频输出单元72输出的所述第一音频数据对应的音频数据;a second audio acquiring unit 73, configured to receive second audio data by using the preset audio input circuit, where the second audio data is received by the preset audio input circuit and output by the first audio output unit 72 Audio data corresponding to the first audio data;
故障确定单元74,用于当所述第二音频获取单元73获取的所述第二音频数据的属性值与所述获取单元71获取的所述第一音频数据的属性值的差值大于预设范围时,确定所述单板存在电路故障。The fault determining unit 74 is configured to: when the attribute value of the second audio data acquired by the second audio acquiring unit 73 and the attribute value of the first audio data acquired by the acquiring unit 71 are greater than a preset In the range, it is determined that the board has a circuit failure.
进一步的,如图13所示,所述第一音频输出单元72,包括:Further, as shown in FIG. 13, the first audio output unit 72 includes:
数模转换模块721,用于将所述第一音频数据进行数模转换,得到第一模拟信号;The digital-to-analog conversion module 721 is configured to perform digital-to-analog conversion on the first audio data to obtain a first analog signal.
第一模拟信号输出模块722,用于将所述第一模拟信号通过所述音频数据的输出电路输出到所述预设音频输入电路;a first analog signal output module 722, configured to output the first analog signal to the preset audio input circuit through an output circuit of the audio data;
所述第二音频获取单元73,包括:The second audio acquiring unit 73 includes:
第二模拟信号获取模块731,用于通过所述预设音频输入电路接收第二模拟信号,所述第二模拟信号为所述预设音频输入电路接收到的与所述第一模拟信号输出模块输出的所述第一模拟信号对应的模拟信号;a second analog signal obtaining module 731, configured to receive, by the preset audio input circuit, a second analog signal, where the second analog signal is received by the preset audio input circuit and the first analog signal output module Outputting an analog signal corresponding to the first analog signal;
模数转换模块732,用于将所述第二模拟信号获取模块获取的所述第二模拟信号进行模数转换,得到第二音频数据。The analog-to-digital conversion module 732 is configured to perform analog-to-digital conversion on the second analog signal acquired by the second analog signal acquisition module to obtain second audio data.
进一步的,如图14所述,所述获取单元74,包括:Further, as shown in FIG. 14, the obtaining unit 74 includes:
读取模块741,用于当测试指令中携带的测试类型为音频播放类型时,从本地读取预设音频数据; The reading module 741 is configured to read preset audio data from the local when the test type carried in the test instruction is an audio play type;
第一确定模块742,用于将所述预设音频数据确定为所述第一音频数据;a first determining module 742, configured to determine the preset audio data as the first audio data;
将音频播放电路确定为所述音频数据的输出电路。The audio playback circuit is determined as an output circuit of the audio data.
进一步的,如图15所述,所述获取单元74,还包括:Further, as shown in FIG. 15, the acquiring unit 74 further includes:
调频数据获取模块743,用于当测试指令中携带的测试类型为调频广播类型时,通过第一测试终端获取预设调频数据,所述第一测试终端用于向所述单板发送所述预设调频数据;The FM data obtaining module 743 is configured to: when the test type carried in the test command is an FM broadcast type, obtain the preset FM data by using the first test terminal, where the first test terminal is configured to send the preset to the board. Set FM data;
第三确定模块744,用于将所述预设调频数据确定为所述第一音频数据;a third determining module 744, configured to determine the preset FM data as the first audio data;
将调频广播功能涉及的音频输出电路确定为所述音频数据的输出电路。An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
进一步的,如图16所示,所述获取单元74,还包括:Further, as shown in FIG. 16, the acquiring unit 74 further includes:
通话内容获取模块745,用于当测试指令中携带的测试类型为语音通话类型时,通过第二测试终端获取预设通话内容,所述第二测试终端用于与所述单板进行语音通话,所述语音通话的内容为所述预设通话内容;The call content obtaining module 745 is configured to: when the test type carried in the test command is a voice call type, obtain a preset call content by using the second test terminal, where the second test terminal is configured to perform a voice call with the board. The content of the voice call is the preset call content;
第二确定模块746,用于将所述预设通话内容确定为所述第一音频数据;a second determining module 746, configured to determine the preset call content as the first audio data;
将语音通话功能涉及的音频输出电路确定为所述音频数据的输出电路。The audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
进一步的,所述第一音频数据的属性值为固定的预设频率;所述故障确定单元74,具体用于:Further, the attribute value of the first audio data is a fixed preset frequency; the fault determining unit 74 is specifically configured to:
当所述第二音频获取单元73获取的所述第二音频数据的频率与所述获取单元71获取的所述第一音频数据的频率的差值大于预设范围,确定所述单板存在电路故障。Determining the board presence circuit when the difference between the frequency of the second audio data acquired by the second audio acquiring unit 73 and the frequency of the first audio data acquired by the acquiring unit 71 is greater than a preset range. malfunction.
可选的,如果等于,则确定所述单板存在电路故障。如果小于,则确定所述单板不存在电路故障。Optionally, if equal, determining that the board has a circuit fault. If it is smaller, it is determined that the board does not have a circuit failure.
本发明实施例还提供了一种单板测试的系统,如图17所示,所述系统包括图12至图16所示的装置7和测试控制装置1701组成。所述测试控制装置用于向所述单板发送测试指令,例如个人电脑PC或者MAC机 等。所述单板还用于将比较结果发送至所述测试控制装置。The embodiment of the present invention further provides a system for testing a single board. As shown in FIG. 17, the system comprises the device 7 shown in FIG. 12 to FIG. 16 and a test control device 1701. The test control device is configured to send a test instruction to the board, such as a personal computer PC or a MAC machine. Wait. The board is also used to send a comparison result to the test control device.
测试人员通过测试控制装置1701向单板测试的装置7发送测试指令。测试控制装置根据测试人员选择的被测试电路确定。比如:测试人员选择的被测试电路为音频播放电路,则生成的测试指令中携带的测试类型为音频播放类型。单板测试的装置7中的获取单元71在接收到测试指令后对测试指令进行解析,获取测试指令中携带的测试类型。当故障确定单元74得到比较结果时,将该比较结果发送至测试控制装置1701。测试控制装置1701将比较结果进行输出。The tester sends a test command to the device 7 of the board test by the test control device 1701. The test control device is determined based on the circuit under test selected by the tester. For example, if the test circuit selected by the tester is an audio play circuit, the test type carried in the generated test command is an audio play type. The acquiring unit 71 in the device 7 of the board test parses the test command after receiving the test command, and acquires the test type carried in the test command. When the failure determining unit 74 obtains the comparison result, the comparison result is transmitted to the test control device 1701. The test control device 1701 outputs the comparison result.
通过本发明实施例提供的单板测试的系统,测试人员可以通过测试控制装置(单板外部的控制设备)对单板中的电路进行检测。且结合测试控制装置本身的功能,能够丰富单板测试的测试方式和种类,进一步提高测试效率。With the system for testing a single board provided by the embodiment of the present invention, the tester can detect the circuit in the board through the test control device (the control device external to the board). In combination with the functions of the test control device itself, the test mode and type of the single board test can be enriched, and the test efficiency is further improved.
本发明实施例还提供了一种单板,如图18所示,所述单板包括芯片级系统SOC和编码译码器件CODEC,所述SOC包括应用服务AP和与所述AP相连的数字信号处理器DSP,所述CODEC包括S1端口、端口A和端口B,所述端口A和端口B通过CODEC内部电路与S1端口相连,所述S1端口与所述DSP相连,所述AP、DSP、S1端口、端口A和端口B组成音频数据的输出电路,所述CODEC还包括多路选择开关MUX,所述MUX与所述S1端口相连,所述MUX、S1端口、DSP和AP组成预设音频输入电路;所述端口A和/或端口B与所述MUX相连。The embodiment of the present invention further provides a single board. As shown in FIG. 18, the board includes a chip level system SOC and a codec device CODEC. The SOC includes an application service AP and a digital signal connected to the AP. The processor DSP, the CODEC includes an S1 port, a port A, and a port B. The port A and the port B are connected to the S1 port through a CODEC internal circuit, and the S1 port is connected to the DSP, the AP, the DSP, and the S1. The port, the port A and the port B constitute an output circuit of the audio data, the CODEC further includes a multi-way selection switch MUX, the MUX is connected to the S1 port, and the MUX, the S1 port, the DSP and the AP form a preset audio input. Circuit; the port A and/or port B are connected to the MUX.
需要说明的是,由于端口A和端口B均与S1端口相连,实现音频输出,因此从端口A和端口B中的任意端口或两个端口处均可获得输出的音频数据。预设音频输入电路可以包括端口A或端口B,也可以包括端口A和端口B。It should be noted that since both port A and port B are connected to the S1 port to implement audio output, the output audio data can be obtained from any port or both ports of port A and port B. The preset audio input circuit may include port A or port B, and may also include port A and port B.
进一步的,如图19所示,所述单板还包括频率调制FM电路,所述CODEC还S2端口,所述S2端口与所述FM电路相连,所述FM电路和所述S2端口组成音频数据的输出电路,所述S1端口、DSP和AP组成预设音频输入电路,所述S1端口与所述S2端口相连。Further, as shown in FIG. 19, the board further includes a frequency modulation FM circuit, the CODEC further has an S2 port, and the S2 port is connected to the FM circuit, and the FM circuit and the S2 port form audio data. The output circuit, the S1 port, the DSP and the AP constitute a preset audio input circuit, and the S1 port is connected to the S2 port.
进一步的,如图20所示,所述单板还包括调制解调器Modem,所述 CODEC还包括S3端口,所述S3端口与所述DSP相连,所述Modem与所述DSP相连,所述Modem、DSP和所述S3端口组成音频数据的输出电路,所述S1端口、DSP和AP组成预设音频输入电路,所述S1端口与所述S3端口相连。Further, as shown in FIG. 20, the board further includes a modem Modem, where The CODEC further includes an S3 port, the S3 port is connected to the DSP, the Modem is connected to the DSP, the Modem, the DSP and the S3 port constitute an output circuit of audio data, the S1 port, the DSP and the AP A preset audio input circuit is formed, and the S1 port is connected to the S3 port.
本发明实施例还提供了一种单板测试的系统,如图21所示,所述系统包括如图18至图20所示的单板和测试控制装置,所述测试控制装置与所述单板中的应用服务器AP相连。The embodiment of the present invention further provides a system for testing a single board. As shown in FIG. 21, the system includes a single board and a test control device as shown in FIG. 18 to FIG. 20, and the test control device and the single The application server AP in the board is connected.
测试人员通过测试控制装置向单板发送测试指令。测试控制装置根据测试人员选择的被测试电路确定测试类型。比如:测试人员选择的被测试电路为音频播放电路,则生成的测试指令中携带的测试类型为音频播放类型。单板中AP在接收到测试指令后对测试指令进行解析,获取测试指令中携带的测试类型。当AP得到比较结果时,将该比较结果发送至测试控制装置。测试控制装置将比较结果进行输出。The tester sends a test command to the board through the test control device. The test control device determines the type of test based on the circuit under test selected by the tester. For example, if the test circuit selected by the tester is an audio play circuit, the test type carried in the generated test command is an audio play type. After receiving the test command, the AP parses the test command and obtains the test type carried in the test command. When the AP obtains the comparison result, the comparison result is sent to the test control device. The test control device outputs the comparison result.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on the understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention.

Claims (17)

  1. 一种单板测试的方法,所述单板包括至少一个音频数据的输出电路和至少一个预设音频输入电路,其特征在于,所述音频数据的输出电路的输出端口与至少一个所述预设音频输入电路的输入端口相连,所述方法包括:A method for testing a single board, the board comprising at least one output circuit of audio data and at least one preset audio input circuit, wherein an output port of the output circuit of the audio data and at least one of the presets The input ports of the audio input circuit are connected, and the method includes:
    根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路;Acquiring the first audio data according to the test type carried in the test instruction, and determining an output circuit for outputting the audio data of the first audio data;
    通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路;Outputting the first audio data to the preset audio input circuit through an output circuit of the audio data;
    通过所述预设音频输入电路接收第二音频数据,所述第二音频数据为所述预设音频输入电路接收到的与所述第一音频数据对应的音频数据;Receiving, by the preset audio input circuit, second audio data, where the second audio data is audio data corresponding to the first audio data received by the preset audio input circuit;
    如果所述第二音频数据的属性值与所述第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障。If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault.
  2. 根据权利要求1所述的单板测试的方法,其特征在于,所述通过所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路,具体包括:The method for testing a single board according to claim 1, wherein the outputting the first audio data to the preset audio input circuit by the output circuit of the audio data comprises:
    将所述第一音频数据进行数模转换,得到第一模拟信号;Performing digital-to-analog conversion on the first audio data to obtain a first analog signal;
    将所述第一模拟信号通过所述音频数据的输出电路输出到所述预设音频输入电路;Outputting the first analog signal to the preset audio input circuit through an output circuit of the audio data;
    所述通过所述预设音频输入电路接收第二音频数据,具体包括:The receiving the second audio data by using the preset audio input circuit includes:
    通过所述预设音频输入电路接收第二模拟信号,所述第二模拟信号为所述预设音频输入电路接收到的与所述第一模拟信号对应的模拟信号;Receiving, by the preset audio input circuit, a second analog signal, where the second analog signal is an analog signal received by the preset audio input circuit and corresponding to the first analog signal;
    将所述第二模拟信号进行模数转换,得到第二音频数据。And performing analog-to-digital conversion on the second analog signal to obtain second audio data.
  3. 根据权利要求1或2所述的单板测试的方法,其特征在于,所述根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路,具体包括:The method for testing a single board according to claim 1 or 2, wherein the obtaining the first audio data according to the test type carried in the test instruction, and determining the output of the audio data for outputting the first audio data The circuit specifically includes:
    如果测试指令中携带的测试类型为音频播放类型,则从本地读取预设音频数据;If the test type carried in the test command is an audio play type, the preset audio data is read locally;
    将所述预设音频数据确定为所述第一音频数据; Determining the preset audio data as the first audio data;
    将音频播放电路确定为所述音频数据的输出电路。The audio playback circuit is determined as an output circuit of the audio data.
  4. 根据权利要求1或2所述的单板测试的方法,其特征在于,所述根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路,具体包括:The method for testing a single board according to claim 1 or 2, wherein the obtaining the first audio data according to the test type carried in the test instruction, and determining the output of the audio data for outputting the first audio data The circuit specifically includes:
    如果测试指令中携带的测试类型为调频广播类型,则通过第一测试终端获取预设调频数据,所述第一测试终端用于向所述单板发送所述预设调频数据;If the test type carried in the test command is an FM broadcast type, the preset test data is obtained by the first test terminal, and the first test terminal is configured to send the preset FM data to the board;
    将所述预设调频数据确定为所述第一音频数据;Determining the preset FM data as the first audio data;
    将调频广播功能涉及的音频输出电路确定为所述音频数据的输出电路。An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
  5. 根据权利要求1或2所述的单板测试的方法,其特征在于,所述根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路,具体包括:The method for testing a single board according to claim 1 or 2, wherein the obtaining the first audio data according to the test type carried in the test instruction, and determining the output of the audio data for outputting the first audio data The circuit specifically includes:
    如果测试指令中携带的测试类型为语音通话类型,则通过第二测试终端获取预设通话内容,所述第二测试终端用于与所述单板进行语音通话,所述语音通话的内容为所述预设通话内容;If the test type carried in the test command is a voice call type, the second test terminal obtains the preset call content, and the second test terminal is configured to perform a voice call with the board, where the content of the voice call is Preset call content;
    将所述预设通话内容确定为所述第一音频数据;Determining the preset call content as the first audio data;
    将语音通话功能涉及的音频输出电路确定为所述音频数据的输出电路。The audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
  6. 根据权利要求1至5中任一项所述的单板测试的方法,其特征在于,所述第一音频数据的属性值为固定的预设频率;The method for testing a board according to any one of claims 1 to 5, wherein the attribute value of the first audio data is a fixed preset frequency;
    所述如果所述第二音频数据的属性值与所述第一音频数据的属性值的差值大于预设范围,则确定所述单板存在电路故障,具体包括:If the difference between the attribute value of the second audio data and the attribute value of the first audio data is greater than a preset range, determining that the board has a circuit fault, specifically:
    当所述第二音频数据的频率与所述第一音频数据的频率的差值大于预设范围,确定所述单板存在电路故障。When the difference between the frequency of the second audio data and the frequency of the first audio data is greater than a preset range, it is determined that the board has a circuit fault.
  7. 一种单板测试的装置,所述单板包括至少一个音频数据的输出电路和至少一个预设音频输入电路,其特征在于,所述音频数据的输出电路的输出端口与至少一个所述预设音频输入电路的输入端口相连,所述装置包括: A device for testing a single board, the board comprising at least one output circuit of audio data and at least one preset audio input circuit, wherein an output port of the output circuit of the audio data and at least one of the presets The input ports of the audio input circuit are connected, and the device comprises:
    获取单元,用于根据测试指令中携带的测试类型获取第一音频数据,确定用于输出所述第一音频数据的音频数据的输出电路;An obtaining unit, configured to acquire first audio data according to a test type carried in the test instruction, and determine an output circuit for outputting the audio data of the first audio data;
    第一音频输出单元,用于通过所述获取单元确定的所述音频数据的输出电路将所述第一音频数据输出到所述预设音频输入电路;a first audio output unit, configured to output the first audio data to the preset audio input circuit by an output circuit of the audio data determined by the acquiring unit;
    第二音频获取单元,用于通过所述预设音频输入电路接收第二音频数据,所述第二音频数据为所述预设音频输入电路接收到的与所述第一音频输出单元输出的所述第一音频数据对应的音频数据;a second audio acquiring unit, configured to receive second audio data by using the preset audio input circuit, where the second audio data is received by the preset audio input circuit and output by the first audio output unit Decoding audio data corresponding to the first audio data;
    故障确定单元,当所述第二音频获取单元获取的所述第二音频数据的属性值与所述获取单元获取的所述第一音频数据的属性值的差值大于预设范围时,确定所述单板存在电路故障。a fault determining unit, when the difference between the attribute value of the second audio data acquired by the second audio acquiring unit and the attribute value of the first audio data acquired by the acquiring unit is greater than a preset range, determining The board has a circuit fault.
  8. 根据权利要求7所述的单板测试的装置,其特征在于,The apparatus for testing a single board according to claim 7, wherein
    所述第一音频输出单元,包括:The first audio output unit includes:
    数模转换模块,用于将所述第一音频数据进行数模转换,得到第一模拟信号;a digital-to-analog conversion module, configured to perform digital-to-analog conversion on the first audio data to obtain a first analog signal;
    第一模拟信号输出模块,用于将所述第一模拟信号通过所述音频数据的输出电路输出到所述预设音频输入电路;a first analog signal output module, configured to output the first analog signal to the preset audio input circuit through an output circuit of the audio data;
    所述第二音频获取单元,包括:The second audio acquiring unit includes:
    第二模拟信号获取模块,用于通过所述预设音频输入电路接收第二模拟信号,所述第二模拟信号为所述预设音频输入电路接收到的与所述第一模拟信号输出模块输出的所述第一模拟信号对应的模拟信号;a second analog signal acquiring module, configured to receive, by the preset audio input circuit, a second analog signal, where the second analog signal is received by the preset audio input circuit and output by the first analog signal output module The analog signal corresponding to the first analog signal;
    模数转换模块,用于将所述第二模拟信号获取模块获取的所述第二模拟信号进行模数转换,得到第二音频数据。And an analog-to-digital conversion module, configured to perform analog-to-digital conversion on the second analog signal acquired by the second analog signal acquisition module to obtain second audio data.
  9. 根据权利要求7或8所述的单板测试的装置,其特征在于,所述获取单元,包括:The apparatus for testing a single board according to claim 7 or 8, wherein the acquiring unit comprises:
    读取模块,用于当测试指令中携带的测试类型为音频播放类型时,从本地读取预设音频数据;a reading module, configured to read preset audio data locally when the test type carried in the test instruction is an audio play type;
    第一确定模块,用于将所述预设音频数据确定为所述第一音频数据;a first determining module, configured to determine the preset audio data as the first audio data;
    将音频播放电路确定为所述音频数据的输出电路。The audio playback circuit is determined as an output circuit of the audio data.
  10. 根据权利要求7或8所述的单板测试的装置,其特征在于,所述 获取单元,还包括:The apparatus for testing a veneer according to claim 7 or 8, wherein The acquisition unit also includes:
    调频数据获取模块,用于当测试指令中携带的测试类型为调频广播类型时,通过第一测试终端获取预设调频数据,所述第一测试终端用于向所述单板发送所述预设调频数据;The FM data acquisition module is configured to: when the test type carried in the test command is an FM broadcast type, obtain the preset FM data by using the first test terminal, where the first test terminal is configured to send the preset to the board Frequency modulation data;
    第三确定模块,用于将所述预设调频数据确定为所述第一音频数据;a third determining module, configured to determine the preset FM data as the first audio data;
    将调频广播功能涉及的音频输出电路确定为所述音频数据的输出电路。An audio output circuit involved in the FM broadcast function is determined as an output circuit of the audio data.
  11. 根据权利要求7或8所述的单板测试的装置,其特征在于,所述获取单元,还包括:The apparatus for testing a single board according to claim 7 or 8, wherein the acquiring unit further comprises:
    通话内容获取模块,用于当测试指令中携带的测试类型为语音通话类型时,通过第二测试终端获取预设通话内容,所述第二测试终端用于与所述单板进行语音通话,所述语音通话的内容为所述预设通话内容;a call content obtaining module, configured to: when the test type carried in the test command is a voice call type, obtain a preset call content by using a second test terminal, where the second test terminal is configured to perform a voice call with the board. The content of the voice call is the preset call content;
    第二确定模块,用于将所述预设通话内容确定为所述第一音频数据;a second determining module, configured to determine the preset call content as the first audio data;
    将语音通话功能涉及的音频输出电路确定为所述音频数据的输出电路。The audio output circuit involved in the voice call function is determined as an output circuit of the audio data.
  12. 根据权利要求7至11中任一项所述的单板测试的装置,其特征在于,所述第一音频数据的属性值为固定的预设频率;所述故障确定单元,具体用于:The apparatus for testing a single board according to any one of claims 7 to 11, wherein the attribute value of the first audio data is a fixed preset frequency; and the fault determining unit is specifically configured to:
    当所述第二音频获取单元获取的所述第二音频数据的频率与所述获取单元获取的所述第一音频数据的频率的差值大于预设范围,确定所述单板存在电路故障。And determining that the board has a circuit fault when the difference between the frequency of the second audio data acquired by the second audio acquiring unit and the frequency of the first audio data acquired by the acquiring unit is greater than a preset range.
  13. 一种单板测试的系统,其特征在于,所述系统包括权利要求7至权利要求12中任一项所述的装置和测试控制装置,所述测试控制装置用于向所述单板发送测试指令;所述单板还用于将比较结果发送至所述测试控制装置。A system for testing a single board, the system comprising the apparatus and test control apparatus according to any one of claims 7 to 12, wherein the test control apparatus is configured to send a test to the board An instruction; the board is further configured to send a comparison result to the test control device.
  14. 一种单板,所述单板包括芯片级系统SOC和编码译码器件CODEC,所述SOC包括应用服务AP和与所述AP相连的数字信号处理器DSP,所述CODEC包括S1端口、端口A和端口B,所述端口A和端口B通过CODEC内部电路与S1端口相连,所述S1端口与所述DSP相连,所述AP、DSP、 S1端口、端口A和端口B组成音频数据的输出电路,所述CODEC还包括多路选择开关MUX,所述MUX与所述S1端口相连,所述MUX、S1端口、DSP和AP组成预设音频输入电路;其特征在于,所述端口A和/或端口B与所述MUX相连。A single board comprising a chip level system SOC and a codec device CODEC, the SOC comprising an application service AP and a digital signal processor DSP connected to the AP, the CODEC comprising an S1 port and a port A And port B, the port A and the port B are connected to the S1 port through a CODEC internal circuit, and the S1 port is connected to the DSP, the AP, the DSP, The S1 port, the port A and the port B constitute an output circuit of the audio data, the CODEC further includes a multi-way selection switch MUX, the MUX is connected to the S1 port, and the MUX, the S1 port, the DSP and the AP form a preset audio. An input circuit; characterized in that said port A and/or port B are connected to said MUX.
  15. 根据权利要求14所述的单板,其特征在于,所述单板还包括频率调制FM电路,所述CODEC还包括S2端口,所述S2端口与所述FM电路相连,所述FM电路和所述S2端口组成音频数据的输出电路,所述S1端口、DSP和AP组成预设音频输入电路,所述S1端口与所述S2端口相连。The board according to claim 14, wherein the board further comprises a frequency modulation FM circuit, the CODEC further comprising an S2 port, the S2 port is connected to the FM circuit, and the FM circuit and the The S2 port constitutes an output circuit of audio data, and the S1 port, the DSP, and the AP constitute a preset audio input circuit, and the S1 port is connected to the S2 port.
  16. 根据权利要求14或15所述的单板,其特征在于,所述单板还包括调制解调器Modem,所述CODEC还包括S3端口,所述S3端口与所述DSP相连,所述Modem与所述DSP相连,所述Modem、DSP和所述S3端口组成音频数据的输出电路,所述S1端口、DSP和AP组成预设音频输入电路,所述S1端口与所述S3端口相连。The board according to claim 14 or 15, wherein the board further comprises a modem Modem, the CODEC further comprises an S3 port, the S3 port is connected to the DSP, the Modem and the DSP Connected, the Modem, the DSP, and the S3 port form an output circuit of audio data, and the S1 port, the DSP, and the AP constitute a preset audio input circuit, and the S1 port is connected to the S3 port.
  17. 一种单板测试的系统,其特征在于,所述系统包括权利要求14至16中任一项所述的单板和测试控制装置,所述测试控制装置与所述单板中的应用服务器AP相连。 A system for testing a single board, the system comprising the board and the test control device according to any one of claims 14 to 16, the test control device and an application server AP in the board Connected.
PCT/CN2015/076437 2015-04-13 2015-04-13 Board testing method, board and system WO2016165056A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580022517.3A CN106416205A (en) 2015-04-13 2015-04-13 Board testing method, board and system
PCT/CN2015/076437 WO2016165056A1 (en) 2015-04-13 2015-04-13 Board testing method, board and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/076437 WO2016165056A1 (en) 2015-04-13 2015-04-13 Board testing method, board and system

Publications (1)

Publication Number Publication Date
WO2016165056A1 true WO2016165056A1 (en) 2016-10-20

Family

ID=57125510

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076437 WO2016165056A1 (en) 2015-04-13 2015-04-13 Board testing method, board and system

Country Status (2)

Country Link
CN (1) CN106416205A (en)
WO (1) WO2016165056A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637751A (en) * 2020-12-21 2021-04-09 龙尚科技(上海)有限公司 Voice module test circuit, method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154175A (en) * 2006-09-25 2008-04-02 佛山市顺德区顺达电脑厂有限公司 Audio testing method and system combining with voice recognition
CN101729635A (en) * 2009-12-30 2010-06-09 中兴通讯股份有限公司 Method and device for testing audio loop of communication terminal
JP2011010466A (en) * 2009-06-26 2011-01-13 Yokogawa Electric Corp Switching power supply device and semiconductor testing device using the same
CN102156671A (en) * 2011-03-22 2011-08-17 苏州龙雨电子设备有限公司 System for automatically testing computer mainboard
CN203151680U (en) * 2012-11-26 2013-08-21 中山圣马丁电子元件有限公司 Single-board test system for digital-video-broadcasting (DVB) main board

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201994944U (en) * 2010-12-22 2011-09-28 宁波翼动通讯科技有限公司 Bluetooth module testing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154175A (en) * 2006-09-25 2008-04-02 佛山市顺德区顺达电脑厂有限公司 Audio testing method and system combining with voice recognition
JP2011010466A (en) * 2009-06-26 2011-01-13 Yokogawa Electric Corp Switching power supply device and semiconductor testing device using the same
CN101729635A (en) * 2009-12-30 2010-06-09 中兴通讯股份有限公司 Method and device for testing audio loop of communication terminal
CN102156671A (en) * 2011-03-22 2011-08-17 苏州龙雨电子设备有限公司 System for automatically testing computer mainboard
CN203151680U (en) * 2012-11-26 2013-08-21 中山圣马丁电子元件有限公司 Single-board test system for digital-video-broadcasting (DVB) main board

Also Published As

Publication number Publication date
CN106416205A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US8879744B2 (en) Audio testing system and audio testing method for device under test
JP5173032B2 (en) Test system using a digital calibration generator
CN103179495A (en) Audio test method and system for earphone microphone and receiver of mobile terminal
US20090280800A1 (en) Testing system and method for testing mobile phone
CN109831733A (en) Test method, device, equipment and the storage medium of audio broadcast performance
CN102572672A (en) Audio frequency module test system and method
CN109493883B (en) Intelligent device and audio time delay calculation method and device of intelligent device
CN103179240A (en) Audio test method and system for mobile terminal
CN103179496A (en) Audio test method and system for earphone microphone and receiver of mobile terminal
CN1979440A (en) Plate-carried audio-frequency module testing system and method
CN112017693B (en) Audio quality assessment method and device
CN100437506C (en) Method for detecting audio connection function of audio receiver and computer mainframe board
TWI540912B (en) Audio processing apparatus and audio processing method
US8116466B2 (en) Apparatus and method for testing sound input and output of sound card
CN109510636A (en) Receive test method, device, medium and the equipment of FM signal function
CN105764008B (en) A kind of method and device for debugging sound reinforcement system transmission frequency characteristic
CN111883158A (en) Echo cancellation method and device
CN105516712A (en) Audio and video decoding chip test platform and method
WO2016165056A1 (en) Board testing method, board and system
CN112104969B (en) Detection method and device for Bluetooth headset
US20090013345A1 (en) Method and equipment for monitoring tone quality of audio player and broadcast system
WO2017185602A1 (en) Earphone mode switching method and electronic device
CN103152669A (en) Method for utilizing intelligent terminal to operate voice frequency effector
CN112995882A (en) Intelligent equipment audio open loop test method
CN113556661B (en) Electroacoustic detection and information output method, system, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15888761

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15888761

Country of ref document: EP

Kind code of ref document: A1