Vehicle-mounted equipment circuit test method and system, electronic equipment and storage medium

By configuring and testing the audio amplification chip and buzzer of the vehicle equipment circuit, the problem of incomplete coverage of test items was solved, more in-depth fault analysis and recovery was achieved, and the accuracy and efficiency of the test were improved.

CN118671564APending Publication Date: 2024-09-20CHINA FAW CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410967452.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the circuit testing of on-board equipment, the existing technology leads to the problem of incomplete coverage of test items, and it is difficult to gain an in-depth understanding of fault situations in recurring circuits.

Method used

By configuring the audio amplification chip and buzzer in the circuit to be tested, the circuit logic is obtained, positive and negative response tests are performed, feedback is detected, and fault recovery is performed to reproduce normal working conditions, using transistor switches, resistors and diodes Set up a test circuit to determine the working status of the buzzer and perform diagnosis.

Benefits of technology

It achieves more comprehensive and accurate testing, reduces testing difficulty and complexity, improves testing efficiency, reduces dependence on professional knowledge, and enables a clearer understanding of the testing requirements and goals of each module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118671564A
    Figure CN118671564A
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted equipment circuit testing method and system, electronic equipment and a storage medium, a to-be-tested circuit of the vehicle-mounted equipment is provided with an audio amplification chip and a buzzer, the circuit logic of the to-be-tested circuit is obtained, circuit testing is performed according to the circuit logic, the feedback of the testing circuit is detected, and if the feedback of the testing circuit is positive response, the circuit is not detected. If yes, negative response test is carried out on the circuit to be tested, and the negative response test is test feedback of the circuit to be tested in an abnormal working state; and fault recovery is carried out after the test feedback of the negative response is obtained, so that the normal working condition of the circuit to be tested can be reproduced. According to the invention, the test requirement and target of each module can be more clearly understood, so that the test difficulty and complexity are reduced, the working principles of the modules can be more comprehensively and accurately understood, and the test accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a circuit testing method, system, electronic equipment and storage medium, and in particular to a circuit testing method, system, electronic equipment and storage medium for vehicle-mounted equipment. Background Art

[0002] In the prior art, when conducting diagnostic tests on vehicle-mounted equipment circuits, the tester asks the developer for the test method of each diagnostic service ID, or the developer provides the tester with the test method of the diagnostic service ID in his module, but the diagnostic service ID in each module is tested independently. This will result in incomplete coverage of test items, which urgently needs to be improved. Summary of the invention

[0003] The purpose of the present invention is to provide a method, system, electronic device and storage medium for testing the circuit of a vehicle-mounted device. The first technical problem to be solved is to achieve comprehensive coverage when testing the circuit of the vehicle-mounted device. The second problem to be solved is to reproduce the possible fault conditions in the circuit, which can help testers to cover the content to be tested more comprehensively and deeply, and solve the shortcomings of the existing technology.

[0004] The present invention provides the following scheme:

[0005] A vehicle-mounted device circuit testing method, applied to a vehicle-mounted device circuit testing system, comprising:

[0006] The audio amplifier chip and buzzer in the circuit to be tested are configured in the vehicle-mounted device, the circuit logic of the circuit to be tested is obtained, the circuit test is performed according to the circuit logic, and the feedback of the test circuit is detected;

[0007] If the feedback of the test circuit is a positive response, a negative response test is then performed on the circuit to be tested, wherein the negative response test is a test feedback of the circuit to be tested in an abnormal working state;

[0008] After obtaining the test feedback of the negative response, fault recovery is performed to reproduce the normal working condition of the circuit under test.

[0009] Furthermore, the circuit to be tested is a buzzer control circuit, and the feedback of the test circuit is a positive response, specifically:

[0010] The test circuit includes a transistor switch, a resistor, a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch and the GPIO pin;

[0011] Set the level of the chip's GPIO pin to 0, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 1;

[0012] Check whether the circuit from the audio output control pin to the buzzer is connected. If it is connected, it is determined that the buzzer is in normal working state.

[0013] Further, the negative response test is performed on the circuit to be tested, specifically:

[0014] The test circuit includes a transistor switch, a resistor, a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch and the GPIO pin;

[0015] Set the level of the chip's GPIO pin to 1, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 0;

[0016] Check whether the circuit from the audio output control pin to the buzzer is open circuit. If it is open circuit, it is determined that the buzzer is in an abnormal working state.

[0017] Furthermore, the fault recovery is performed after obtaining the test feedback of the negative response to reproduce the normal working condition of the circuit under test, further comprising:

[0018] Reset the level of the chip's GPIO pin to 0, set the current normal high-level pin to 0 for a certain period of time and then set it to 1, so that the GPIO pin and the current normal high-level pin return to the default state.

[0019] Furthermore, the setting of the current normal high level pin to 0 for a certain period of time and then to 1 is specifically, setting the current normal high level pin to 0 for more than one second and then to 1.

[0020] Furthermore, the fault recovery is performed after obtaining the test feedback of the negative response to reproduce the normal working condition of the circuit under test, further comprising: the test circuit sends a diagnostic instruction to the circuit under test, and determines the state of the circuit under test according to the state code returned by the circuit under test.

[0021] Furthermore, the

[0022] The buzzer control circuit includes: a gate circuit for connecting the positive and negative poles of the buzzer, a pin SPK_OUTPUT_CTRL for controlling the on / off of the buzzer, and a buzzer output SPKER_OUT. The audio amplifier chip sends an audio signal to the buzzer output through the gate circuit.

[0023] A vehicle-mounted device circuit testing system, used to implement the vehicle-mounted device circuit testing method, comprising:

[0024] A test circuit setting module configures the audio amplifier chip and buzzer in the circuit to be tested in the vehicle-mounted device, obtains the circuit logic of the circuit to be tested, performs circuit testing according to the circuit logic, and detects feedback of the test circuit;

[0025] A positive / negative response feedback acquisition module, if the feedback of the test circuit is a positive response, performs a negative response test on the circuit to be tested, wherein the negative response test is a test feedback of the circuit to be tested in an abnormal working state;

[0026] The test feedback fault recovery module performs fault recovery after obtaining the test feedback of a negative response, so as to reproduce the normal working condition of the circuit under test.

[0027] An electronic device comprises: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the aforementioned method.

[0028] A computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the method.

[0029] Compared with the prior art, the present invention has the following advantages:

[0030] The present invention can more clearly understand the test requirements and objectives of each module, reduce the difficulty and complexity of the test, and through in-depth understanding of the working principles of DID / RID, their working principles can be understood more comprehensively and accurately, thereby improving the accuracy of the test.

[0031] The present invention improves test efficiency and reduces dependence on professional knowledge and experience. By reading the circuit schematic diagram and combining related DID / RIDs for diagnostic testing, repeated testing can be avoided, thereby improving test efficiency. It not only reduces the difficulty and complexity of the test, but also reduces the dependence of testers on the professional knowledge and experience of developers, allowing more people to participate in the testing work. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 It is a flow chart of a vehicle-mounted equipment circuit testing method.

[0034] Figure 2 This is the architecture diagram of the vehicle equipment circuit test system.

[0035] Figure 3 It is the principle block diagram of the circuit to be tested and the test circuit.

[0036] Figure 4a This is the test flow chart when the buzzer works normally.

[0037] Figure 4b This is a test flow chart when the buzzer fails to work properly.

[0038] Figure 4c It is a flow chart of fault recovery of the circuit under test.

[0039] Figure 4d It is a flowchart of the joint test case.

[0040] Figure 5 It is a structural diagram of an electronic device. DETAILED DESCRIPTION

[0041] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] like Figure 1 The vehicle-mounted device circuit testing method shown is applied to a vehicle-mounted device circuit testing system, and the method steps include:

[0043] Step S1, configuring the audio amplifier chip and buzzer in the circuit to be tested in the vehicle-mounted device, obtaining the circuit logic of the circuit to be tested, performing circuit testing according to the circuit logic, and detecting feedback of the test circuit;

[0044] Step S2, if the feedback of the test circuit is a positive response, a negative response test is performed on the circuit to be tested, wherein the negative response test is a test feedback of the circuit to be tested in an abnormal working state;

[0045] Step S3, performing fault recovery after obtaining the test feedback of the negative response, so as to reproduce the normal working condition of the circuit to be tested.

[0046] Preferably, in step S1, the circuit to be tested is a buzzer control circuit, and the feedback of the test circuit is a positive response, specifically:

[0047] The test circuit includes a transistor switch, a resistor, a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch and the GPIO pin;

[0048] Set the level of the chip's GPIO pin to 0, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 1;

[0049] Check whether the circuit from the audio output control pin to the buzzer is connected. If it is connected, it is determined that the buzzer is in normal working state.

[0050] In step S1, the buzzer control circuit refers to a group of circuits or electronic components used to control the working state of other components or devices. In this embodiment, the buzzer control circuit gate circuit used to control the buzzer includes two gate circuits, and the two gate circuits are respectively connected to the positive and negative poles of the buzzer. When testing the circuit to be tested of the vehicle-mounted equipment, a test signal source can be used to generate a specific signal and input it into the audio amplifier chip to be tested, and the chip outputs the signal to the buzzer to emit a corresponding sound. At the same time, the control loop lines of the two gate circuits correspond to the positive and negative poles of the buzzer, respectively, so that the working state (on / off) of the buzzer can be accurately controlled.

[0051] For example, when it is necessary to check whether the vehicle-mounted equipment can correctly respond to the alarm signal, the test system can be used to generate a simulated alarm signal and input it into the audio amplifier chip to be tested for processing. After passing through the chip, the processed signal will be transmitted to the connected buzzer to make a sound to simulate the alarm sounding in a real scene. The process of the alarm sounding and turning off can be accurately simulated, and the corresponding circuit function can be tested for this process.

[0052] Preferably, in step S2, the feedback of the test circuit is a positive response, specifically:

[0053] The test circuit includes a transistor switch, a resistor, a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch and the GPIO pin;

[0054] Set the level of the chip's GPIO pin to 0, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 1;

[0055] Check whether the circuit from the audio output control pin to the buzzer is connected. If it is connected, it is determined that the buzzer is in normal working state.

[0056] For example, suppose that a test circuit mentioned in step S1 is integrated in the vehicle's on-board equipment circuit, and the test circuit is electrically connected to the circuit to be tested, so as to detect whether the on-board equipment circuit connected to the speaker panel button is working properly. Then we can follow step S1: first connect the on-board equipment circuit to the speaker, pull down the GPIO lead at the connection to 0V, then cut off the audio signal transmission path through the transistor switch, and turn on the speaker function module driven by the audio output control port, and finally determine whether the speaker is in normal working condition by detecting whether there is connectivity between the audio amplifier chip and the speaker-related function modules.

[0057] Preferably, in step S2, the negative response test is performed on the circuit to be tested, specifically:

[0058] The test circuit includes a transistor switch, a resistor, a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch and the GPIO pin;

[0059] Set the level of the chip's GPIO pin to 1, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 0;

[0060] Check whether the circuit from the audio output control pin to the buzzer is open circuit. If it is open circuit, it is determined that the buzzer is in an abnormal working state.

[0061] In step S2, the GPIO pin of the chip is set to a high level (1), and by controlling the on and off of the transistor switch, by setting the GPIO pin to a high level, the device or function connected thereto can be activated, the path of the test circuit or the circuit to be tested can be realized, and the test feedback of a positive response can be realized. Correspondingly, the GPIO pin used to control the control circuit is set to a low level (0), and by setting the pin to a low level, the device or function associated therewith can be turned off, and the circuit of the test circuit or the circuit to be tested can be broken. Then, it is detected whether there is a break from the audio output control pin to the buzzer. If there is a break, it means that the signal cannot be transmitted to the buzzer normally, and then it is determined that a fault occurs.

[0062] Preferably, in step S3, fault recovery is performed after obtaining the test feedback of a negative response to reproduce the normal working condition of the circuit under test, further comprising: the test circuit sends a diagnostic instruction to the circuit under test, and determines the state of the circuit under test according to the state code returned by the circuit under test.

[0063] Reset the level of the chip's GPIO pin SCC_CHIEM_DIAG_ON1_3V3 to 0, set the current normal high-level pin SCC_CHIEM_CTRL_3V3 to 0 for a certain period of time and then set it to 1, so that the GPIO pin and the normal high-level pin return to the default state. The function of the normal high-level pin SCC_CHIEM_CTRL_3V3 is to reset the audio amplifier chip, so it can also be called the reset pin.

[0064] Exemplarily, the setting of the normal high level pin SCC_CHIEM_CTRL_3V3 to 0 for a certain period of time and then to 1 is, specifically, setting the current normal high level pin to 0 for more than one second and then to 1.

[0065] Preferably, in step S3, the fault recovery is performed after obtaining the test feedback of a negative response to reproduce the fault condition of the circuit under test, further comprising: the test circuit sends a diagnostic instruction to the circuit under test, and determines the state of the circuit under test according to the state code returned by the circuit under test.

[0066] In some embodiments, the negative response process of obtaining test feedback in step S3 can be further refined into the following steps:

[0067] Step S31, based on the fault diagnosis and recovery principle of the GPIO pin, the GPIO pin level is set to 0 to ensure that the GPIO pin is in a known initial state;

[0068] Step S32, setting the normal high level pin to 0, and keeping the normal high level pin at 0 level for a certain period of time to isolate or test a specific circuit part;

[0069] Step S33, resetting the normally high level pin that maintains level 0 to high level 1;

[0070] Step S34, if a negative response is received during the test, i.e. the test feedback indicates a problem, the system will perform a fault recovery step;

[0071] Exemplary: resending the diagnostic instruction, or taking other measures to try to restore the circuit to a normal working state;

[0072] Step S35: Based on the status code returned by the circuit under test, the system determines whether the status of the circuit under test is normal.

[0073] Steps S31 to S35 are based on the basic principles of hardware testing and fault diagnosis, and are intended to ensure the reliability and functionality of the vehicle-mounted equipment during production or use.

[0074] For the method steps disclosed in the above embodiments, the method steps are described as a series of action combinations for the purpose of simple description, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0075] Any process or method description described in a flowchart or other manner may be understood as representing a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations, in which the order shown or discussed may not be followed, including executing and implementing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, or executing computer instructions and implementing the corresponding functions according to program structures such as loops and branches, which will naturally be understood by those skilled in the art when implementing the embodiments of the present invention.

[0076] like Figure 2 The vehicle-mounted device circuit testing system shown is used to implement the vehicle-mounted device circuit testing method, including:

[0077] A test circuit setting module configures the audio amplifier chip and buzzer in the circuit to be tested in the vehicle-mounted device, obtains the circuit logic of the circuit to be tested, performs circuit testing according to the circuit logic, and detects feedback of the test circuit;

[0078] A positive / negative response feedback acquisition module, if the feedback of the test circuit is a positive response, performs a negative response test on the circuit to be tested, wherein the negative response test is a test feedback of the circuit to be tested in an abnormal working state;

[0079] The test feedback fault recovery module performs fault recovery after obtaining the test feedback of a negative response, so as to reproduce the normal working condition of the circuit under test.

[0080] The implementation methods of the system described above are merely illustrative, for example, the various functional modules, units or subsystems in the system may or may not be physically separated, or may or may not be physical units, that is, they may be located in the same place, or they may be distributed to multiple different systems and their subsystems or modules. Those skilled in the art may select some or all of the functional modules, units or subsystems according to actual needs to achieve the purpose of the embodiments of the present invention, and those of ordinary skill in the art may understand and implement the above-mentioned situations without creative work.

[0081] like Figure 3As shown in the principle block diagram of the circuit to be tested and the test circuit, in this embodiment, first, the principles and test methods of each module in the circuit are understood, so as to better understand and master the test method of each module and reduce the difficulty and complexity of the test. Then, the working principle of DID / RID is deeply understood, and its working principle and operation mechanism are understood to avoid inaccurate test results due to insufficient understanding of the principle; then, the related DID / RID are combined for diagnostic testing - in this way, the performance and function of the system can be tested more comprehensively and accurately, and the dependence on the professional skills and experience of the testers can also be reduced; finally, according to the actual test results, the test method and test process are optimized and adjusted to improve the efficiency and accuracy of the test, and at the same time, the difficulty and complexity of the test can be further reduced, and finally the test process and results are achieved with lower test difficulty, higher test accuracy and higher test efficiency.

[0082] exist Figure 3 It includes a transistor switch element Q1 - it is worth noting that the transistor switch element Q1 is not limited to one transistor, but can be a cascade amplifier circuit composed of multiple transistors, a cascade switch element, etc., including at least one transistor and its peripheral circuit. The base of the transistor switch element Q1 is connected to the first resistor R1 and a voltage regulator diode, and the cathode of the voltage regulator diode is connected to the test circuit enable pin SCC_CHIME_DIAG_ON1_3V3. The collector of the transistor switch element Q1 is connected to the second resistor R2, and the second resistor R2 is also connected in series with the power supply VCC. The normal high level pin SCC_CHIME_DIAG_ON1_3V3 is connected between the power supply VCC and the second resistor R2 through the normally closed switch SW. The control pin SPK_OUTPUT_CTRL for controlling the audio amplifier chip is connected between the second resistor R2 and the collector of the transistor switch element Q1. Control pin

[0083] SPK_OUTPUT_CTRL is connected to the audio amplifier chip TAS2505, and the audio amplifier chip is connected to a buzzer control circuit. V9716 and V9731 are set in the buzzer control circuit. V9716 is used to control the positive pole of the buzzer, and V9731 is used to control the negative pole of the buzzer. The two form a gate circuit. SPK_OUTPUT_CTRL is the pin that controls the gate circuit of V9716 and V9731. The buzzer control circuit is connected to the buzzer SPKR_OUT.

[0084] When the test circuit enable pin SCC_CHIME_DIAG_ON1_3V3 is at a high level, after the voltage stabilization of the voltage stabilizing diode, the current limiting of the first resistor R1, and the filtering of the capacitor C1, the base voltage of the transistor switch Q1 exceeds its conduction voltage, the transistor switch Q1 is turned on, one end of the second resistor R2 is grounded, and the level of the control pin SPK_OUTPUT_CTRL is connected between the second resistor R2 and the ground, so the level of the control pin SPK_OUTPUT_CTRL is pulled down to a low level, so the audio amplifier chip connected to the control pin SPK_OUTPUT_CTRL does not work. When the enable pin SCC_CHIME_DIAG_ON1_3V3 is at a low level, the transistor switch Q1 is not turned on, and the voltage from the power supply VCC to the ground is equivalent to an open circuit state, and at this time the voltage drop on the control pin SPK_OUTPUT_CTRL is an open circuit, that is, the control pin SPK_OUTPUT_CTRL is at a high level. In summary, the inverse relationship between the enable pin SCC_CHIME_DIAG_ON1_3V3 and the control pin SPK_OUTPUT_CTRL is realized through a specific circuit structure, that is, when the enable pin SCC_CHIME_DIAG_ON1_3V3 is high level (1), the control pin SPK_OUTPUT_CTRL is low level (0), and when the enable pin SCC_CHIME_DIAG_ON1_3V3 is high level (1), the control pin SPK_OUTPUT_CTRL is low level (0).

[0085] When SCC_CHIME_DIAG_ON1_3V3 is low (0), the control reference SPK_OUTPUT_CTRL is high (1).

[0086] SCC_CHIEM_CTRL_3V3 is connected to the power supply VCC through the normally closed switch SW, so the normally high level pin SCC_CHIEM_CTRL_3V3 is high level under normal conditions. When the normally high level pin SCC_CHIEM_CTRL_3V3 needs to be set to a low circuit, it is only necessary to open the normally closed switch SW to cut off the electrical connection between the normally high level pin SCC_CHIEM_CTRL_3V3 and the power supply VCC, so that the normally high level pin SCC_CHIEM_CTRL_3V3 can be turned into a low level.

[0087] (1) Based on the ISO 14229 standard, the Unified Diagnostic Service (UDS) combines standards such as KWP 2000 (ISO 14230) and CAN-based diagnostics (ISO 15765) and is independent of the vehicle manufacturer. It is a communication protocol between the diagnostic system and the vehicle ECU. By sending UDS diagnostic instructions from the host computer (PC) to the ECU, functions such as controlling the ECU to switch session modes, control communication, read / write information, control DTC generation / disablement, and read / clear diagnostic faults are realized.

[0088] (2) Some basic concepts related to circuit testing:

[0089] Diagnostic Service: A way of information exchange between diagnostic equipment and ECU. Usually the diagnostic equipment sends a request and the ECU responds. The details are shown in the following table:

[0090]

[0091]

[0092] Data Identifier: DID for short, a 2-byte unsigned integer ID used to identify a diagnostic data unit stored in the ECU. Combined with diagnostic services, it can achieve many specific functions.

[0093] Routine Identifier: RID for short. It is a branch of DID and is mainly used for diagnostic execution in factory production lines, including software flashing, parameter configuration, functional testing, etc.:

[0094] Request, taking the vehicle intelligent cockpit controller CSC as an example:

[0095] Request Format <1> : <sid> + <sub-function>, take 10 services as an example:

[0096] Request 10 03

[0097] The 10 service represents the switch session, and 0x03 refers to the extended session. The CSC controller is in the default session by default, so the meaning of this instruction is to switch the session mode of the CSC controller to the extended session.

[0098] Request Format <2> : <sid> + <sub-function> + <parameter>,

[0099] Take 2E service as an example:

[0100] 2E FD03 00 00 00

[0101] 2E service represents write; FD03 is the SCC GPIO pin DID; the first 0x00 in the subsequent content represents setting the pin to 0 (low), and the 0x00 00 of the last two bytes are reserved and meaningless. Therefore, the meaning of this instruction is to set the GPIO pin of the CSC controller to 0 (low).

[0102] Take 31 services as an example:

[0103] 31 01FE00 03

[0104] Among them, service 31 represents (factory production line) routine control; 0x01 represents the start of execution; RID FE03 is the MCU-side buzzer control; 0x03 represents the number of buzzer ringing rounds.

[0105] Response is divided into positive response and negative response. Taking the vehicle intelligent cockpit controller CSC as an example, the positive response is:

[0106] Response Format <1> :<SID+0x40> + <parameter>, taking the above 10 services as an example:

[0107] Response 50 03 00 32 01F4

[0108] Among them, 0x50 is the result of 0x10+0x40; 0x03 is the requested parameter.

[0109] 0x 00 32 Yes Figure 1 P2Server_max parameter in

[0110] 0x01 F4 is Figure 1 The P2Server_max parameter in .

[0111] Response Format <2> :<SID+0x40> + <sub-function> + <parameter>,

[0112] Take the above 2E service as an example:

[0113] Response 6E FD03

[0114] Among them, 0x6E is the result of 0x2E+0x40; 0xFD03 is the requested DID parameter.

[0115] Take the above 31 services as an example:

[0116] Response 71 01FE03 00

[0117] Among them, 0x71 is the result of 0x31+0x40; 0x01 corresponds to the 0x01 parameter of the request; 0xFE03 is the RID corresponding to the request; 0x00 is the returned data, indicating successful execution.

[0118] Negative response:

[0119] Basic format + <sid> + <nrc>

[0120] Among them, 0x7F is a fixed format; SID corresponds to the requested SID; NRC corresponds to different negative response codes according to the negative response reason. Common negative response codes are as follows:

[0121]

[0122] Take the above 31 services as an example:

[0123] The response is 7F 31 12, indicating that the 0x01 sub-function is currently not supported.

[0124] (3) Taking the diagnostic test of the CSC controller as a specific embodiment:

[0125] The diagnostic test contents of the CSC controller are divided into different modules, such as:

[0126] IO&ADC test module, responsible for controlling the high and low settings of CSC's GPIO pins and reading ADC values;

[0127] USB module, responsible for controlling the reading of USB related information and the on-off of the circuit;

[0128] The Audio module is responsible for controlling parameter changes of functions such as sound, microphone, speaker, etc.

[0129] Among them, DID FD03 in the IO&ADC test module (Chinese meaning, SCC GPIO control, controls the high and low settings of the SCC_CHIME_DIAG_ON1_3V3 pin in the circuit diagram) and RID FE03 in the Audio module (Chinese meaning, MCU-side buzzer test, controls the playback and stop of the buzzer).

[0130] In the previous test ideas, the two were tested separately and had no connection.

[0131] After learning about the working principle of SCC GPIO control and the working principle of the buzzer on the MCU side, the testers proposed the idea of ​​combining the two for testing.

[0132] The CSC controller includes two major systems: SCC (also known as MCU) and SOC. The MCU system main chip is S32K148, and there are some slave chips to implement certain specific functions. The audio amplifier chip TAS2505 is one of the many slave chips, which can realize GPIO pin setting control and buzzer related function control by sending diagnostic instructions.

[0133] exist Figure 3 In the example, SCC_CHIEM_DIAG_ON1_3V3 is the GPIO pin controlled by the diagnostic DID FD03 (SCC GPIO control), which is set to 0 (low) by default.

[0134] The first resistor R1 and the diode BAS40 VB551 together form

[0135] The circuit controlled by SCC_CHIEM_DIAG_ON1_3V3, Q1 is a transistor switch, C1 is a capacitor, V9716 (full name V9716 FD05661N-F0B5) is the circuit that controls the positive pole of the buzzer, V9731 (full name V9731 FD05661N-F0B5) is the circuit that controls the negative pole of the buzzer, and the two form a gate circuit. SPK_OUTPUT_CTRL is the pin that controls the gate circuits of V9716 and V9731, and SCC_CHIEM_CTRL_3V3 is a normal high level pin, which is set to 1 (high) by default;

[0136] Circuit working logic example:

[0137] like Figure 4a As shown, the logic of the normal operation of the buzzer is:

[0138] When SCC_CHIEM_DIAG_ON1_3V3 is set to 0 (low), the Q1 transistor is disconnected;

[0139] SPK_OUTPUT_CTRL is set to 1 (high), the V9716 & V9731 gate circuit is connected, the TAS2505 to SPKR_OUT link is also connected, and the buzzer can work normally.

[0140] like Figure 4b As shown, the manufacturing buzzer does not work properly:

[0141] When SCC_CHIEM_DIAG_ON1_3V3 is set to 1 (high), the Q1 transistor is turned on;

[0142] SPK_OUTPUT_CTRL is set to 0 (low), the gate circuits of V9716 and V9731 are disconnected, the link from TAS2505 to SPKR_OUT is also disconnected, and the buzzer cannot work normally.

[0143] like Figure 4c As shown, fault recovery (I):

[0144] SCC_CHIEM_DIAG_ON1_3V3 is reset to 0 (low), SCC_CHIEM_CTRL_3V3 is reset to 0 (low) for 1.5s and then reset to 1 (high). In this way, SCC_CHIEM_DIAG_ON1_3V3 and SCC_CHIEM_CTRL_3V3 will return to the default state, the Q1 transistor will remain disconnected again, the buzzer link will be connected, and the buzzer will resume its function.

[0145] like Figure 4d As shown in Figure 2, fault recovery (II): Another way of fault recovery. When the power is turned on and off again, SCC_CHIEM_DIAG_ON1_3V3 and SCC_CHIEM_CTRL_3V3 will also be restored to the default state, and the buzzer can restore its function. However, in the actual production line test scenario, considering the time cost, this method will not be included in the test steps.

[0146] When the above logic relationship of the circuit is not known, the use case design for the DID FD03 single test is:

[0147] Send the diagnostic command 2E FD03 00 00 00 (set the GPIO pin of the CSC controller to 0-low), expect a positive response 6E FD03, and the multimeter measures the pin voltage as 0V;

[0148] Send the diagnostic command 2E FD03 01 00 00 (set the GPIO pin of the CSC controller to 1 high), expect a positive response 6E FD03, and the multimeter measures the pin voltage to be 3.3V;

[0149] The use case design for testing RID FE03 alone: ​​Send the diagnostic command 31 01FE03 03 (make the buzzer sound normally and play it three times in a loop), and expect the response 71 01FE03 00, and the buzzer sounds normally for three rounds;

[0150] Send the diagnostic command 31 02FE03 (to stop the buzzer) and expect the response 71 02FE03 00, and the buzzer will stop.

[0151] In summary, the test cases can be written by combining FD03 (SCC GPIO control) in the IO&ADC test module and RID FE03 (MCU-side buzzer test) in the Audio module.

[0152] The specific contents are as follows:

[0153] Execute 2E FD 03 00 00 00, expect reply 6E FD03;

[0154] Execute 31 01FE03 03, expect the reply 71 01FE03 00 and the buzzer sounds normally for 3 rounds;

[0155] Execute 2E FD03 01 00 00, expect reply 6E FD03;

[0156] Execute 31 01FE03 03, expect the reply 7F 31 12 and the buzzer will not sound;

[0157] Execute 2E FD03 00 00 00, expect reply 6E FD03;

[0158] Execute 31 01FE03 03, expect the reply 71 01FE03 00 and the buzzer to sound 3 times normally.

[0159] like Figure 5 As shown, the present invention provides a vehicle-mounted device circuit testing method and system, and also provides corresponding electronic equipment and storage medium:

[0160] An electronic device comprises: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of a vehicle-mounted equipment circuit testing method.

[0161] A computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of a vehicle-mounted device circuit testing method.

[0162] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 5 As shown, the device 800 includes a processor 801, a memory 802, a communication interface 803 and a bus 804. The processor 801, the memory 802 and the communication interface 803 communicate through the bus 804, and can also communicate through other means such as wireless transmission. The memory 802 is used to store instructions, and the processor 801 is used to execute the instructions stored in the memory 802. The memory 802 stores program code 8021, and the processor 801 can call the program code 8021 stored in the memory 802 to execute the steps of the vehicle-mounted device circuit testing method.

[0163] It should be understood that in the embodiment of the present application, the processor 801 may be a CPU, and the processor 801 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0164] The memory 802 may include a read-only memory ROM and a random access memory RAM, and provide instructions and data to the processor 801. The memory 802 may also include a non-volatile random access memory. The memory 802 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), and the like.

[0165] (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (doubledate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).

[0166] The bus 804 may include, in addition to the data bus, a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are labeled as bus 804 in the figure.

[0167] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).

[0168] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0169] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, any one of the embodiments claimed in the claims can be used in any combination in the embodiments of the present invention.

[0170] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0171] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0172] All features disclosed in this specification, or steps in all methods or processes disclosed, except mutually exclusive features and / or steps, can be combined in any way. Any feature disclosed in this specification, unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features. Throughout the specification, the same reference numerals indicate the same elements.

[0173] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including corresponding claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including corresponding claims, abstracts and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.< / nrc> < / sid> < / parameter> < / sub-function> < / parameter> < / parameter> < / sub-function> < / sid> < / sid>

Claims

1. A vehicle-mounted device circuit testing method, applied to a vehicle-mounted device circuit testing system, characterized in that: include: The audio amplifier chip and buzzer in the circuit to be tested are configured in the vehicle-mounted device, the circuit logic of the circuit to be tested is obtained, the circuit test is performed according to the circuit logic, and the feedback of the test circuit is detected; If the feedback of the test circuit is a positive response, a negative response test is then performed on the circuit to be tested, wherein the negative response test is a test feedback of the circuit to be tested in an abnormal working state; After obtaining the test feedback of the negative response, fault recovery is performed to reproduce the normal working condition of the circuit under test.

2. The vehicle-mounted device circuit testing method according to claim 1, characterized in that: The circuit to be tested is a buzzer control circuit, and the feedback of the test circuit is a positive response, specifically: The test circuit includes a transistor switch device resistor and a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch device and the GPIO pin; Set the level of the chip's GPIO pin to 0, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 1; Check whether the circuit from the audio output control pin to the buzzer is connected. If it is connected, it is determined that the buzzer is in normal working state.

3. The vehicle-mounted device circuit testing method according to claim 1, characterized in that: The negative response test of the circuit to be tested is specifically performed as follows: The test circuit includes a transistor switch, a resistor, a diode and a GPIO pin of the chip, wherein the resistor and the diode are arranged between the transistor switch and the GPIO pin; Set the level of the chip's GPIO pin to 1, disconnect the transistor switch, and set the audio output control pin used to control the buzzer control circuit to 0; Check whether the circuit from the audio output control pin to the buzzer is open circuit. If it is open circuit, it is determined that the buzzer is in an abnormal working state.

4. The vehicle-mounted device circuit testing method according to claim 1, characterized in that: The method of performing fault recovery after obtaining the test feedback of the negative response to reproduce the normal working condition of the circuit under test further includes: Reset the level of the chip's GPIO pin to 0, set the current normal high-level pin to 0 for a certain period of time and then set it to 1, so that the GPIO pin and the current normal high-level pin return to the default state.

5. The vehicle-mounted device circuit testing method according to claim 4, characterized in that: The setting of the current normal high level pin to 0 for a certain period of time and then setting it to 1 is specifically, setting the current normal high level pin to 0 for more than one second and then setting it to 1.

6. The vehicle-mounted device circuit testing method according to claim 1, characterized in that: The fault recovery is performed after obtaining the test feedback of the negative response to reproduce the normal working condition of the circuit under test, and further includes: the test circuit sends a diagnostic instruction to the circuit under test, and determines the state of the circuit under test according to the state code returned by the circuit under test.

7. The vehicle-mounted device circuit testing method according to claim 1, characterized in that: Said The buzzer control circuit includes: a gate circuit for connecting the positive and negative poles of the buzzer, a pin SPK_OUTPUT_CTRL for controlling the on / off of the buzzer, and a buzzer output SPKER_OUT. The audio amplifier chip sends an audio signal to the buzzer output through the gate circuit.

8. A vehicle-mounted device circuit testing system, used to implement the vehicle-mounted device circuit testing method according to any one of claims 1 to 7, characterized in that: include: A test circuit setting module configures the audio amplifier chip and buzzer in the circuit to be tested in the vehicle-mounted device, obtains the circuit logic of the circuit to be tested, performs circuit testing according to the circuit logic, and detects feedback of the test circuit; A positive / negative response feedback acquisition module, if the feedback of the test circuit is a positive response, performs a negative response test on the circuit to be tested, wherein the negative response test is a test feedback of the circuit to be tested in an abnormal working state; The test feedback fault recovery module performs fault recovery after obtaining the test feedback of a negative response, so as to reproduce the normal working condition of the circuit under test.

9. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 7.