Corrosion resistance testing circuit
By designing a corrosion resistance test circuit that includes a main control chip and a variety of interface circuits, it solves the problem of performance testing of electronic circuits in complex corrosion environments in the existing technology, realizes automated testing, and improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202323667578.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2033-12-29
AI Technical Summary
It is difficult to effectively test and evaluate the corrosion resistance of electronic circuits in complex corrosive environments with existing technology, and manual testing involves a huge workload and the impact of human factors.
A corrosion resistance test circuit is designed, including a main control chip, discrete output and acquisition circuit, PWM output and analog acquisition circuit, RS422 sending and receiving circuit and CAN interface circuit. It is connected to the host computer through the CAN bus to achieve automation. Function and performance testing.
It realizes automated testing of electronic circuits, reduces the workload of manual testing, improves the accuracy and convenience of test results, and can easily obtain data such as power supply, communication, storage and discrete functional test parameters.
Smart Images

Figure CN221899033U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of corrosion resistance, in particular to a corrosion resistance capability testing circuit. Background Art
[0002] Anti-corrosion technology is mainly used in aviation, navigation, automobile, construction, electricity, chemical and other industries to perform surface treatment on mechanical structures, electronic circuits, containers and other objects that need to resist corrosion in order to improve their corrosion resistance. The test of the anti-corrosion effect is generally determined by observing the anti-corrosion surface through surface protection layer adhesion test and anti-corrosion environment test, but the impact of the corrosive environment on the protected electronic circuits and other products is difficult to directly test and evaluate. The main reason is that there are many types of products such as electronic circuits, and the circuit functions are complex and diverse. The test requirements for the impact of the corrosive environment on the performance of electronic products are relatively professional and complex. The test workload after the environmental test is huge, and the human factors of manual testing have a greater impact on the test results. Utility Model Content
[0003] Purpose of the utility model: to provide a corrosion resistance test circuit.
[0004] Technical solution:
[0005] A corrosion resistance test circuit includes: a main control chip, a discrete quantity output and acquisition circuit, a PWM output and analog quantity acquisition circuit, an RS422 sending and receiving circuit, and a CAN interface circuit, wherein:
[0006] The discrete quantity output and acquisition circuit connects the discrete quantity output port of the main control chip with the discrete quantity acquisition port;
[0007] The PWM output and analog quantity acquisition circuit includes a PWM duty cycle to voltage circuit, wherein the input end and the output end of the PWM duty cycle to voltage circuit are respectively connected to the PWM output port and the analog acquisition port, and are used to convert the output of the PWM output port of the main control chip into a 0-5V voltage, and then input it to the analog acquisition port;
[0008] The RS422 sending and receiving circuits are respectively connected to the two UART interfaces of the main control chip, and the two RS422 interfaces are connected to each other;
[0009] One end of the CAN interface circuit is connected to the host computer, and the other end is connected to the CAN interface of the main control chip.
[0010] Furthermore, the main control chip is an AC7811 main control chip.
[0011] Furthermore, the CAN bus circuit is intended to adopt the TJA1040 transceiver.
[0012] Furthermore, the CAN bus circuit is isolated by NSI8221N0-DSPR magnetic isolation chip with an isolation voltage of 10KV. The overvoltage and overcurrent caused by surges are suppressed by TVS protection circuit, and the communication protocol adopts CAN2.0B extended frame format.
[0013] Furthermore, the RS422 sending and receiving circuits use the UT-M482 transceiver.
[0014] Furthermore, the baud rate of the RS422 interface is set to 115200 bps, 8 data bits, 1 stop bit, even parity, and the interface meets the electrical performance requirements of IEC61000-4-2.
[0015] Beneficial effects:
[0016] The utility model is selected based on the list of common components of airborne equipment in current aircraft; the circuit board can be connected to the chassis panel electrical connector through the CAN interface, and the signal is output to the special detection equipment to obtain the following related detection function parameters such as power supply function test parameters, communication function test parameters, storage function test parameters, discrete quantity function test parameters, analog signal acquisition data, etc. The special detection equipment can be connected to a computer to obtain the above parameters through special software, and the operation is very convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of the corrosion circuit composition of the present invention;
[0018] Figure 2 This is a flowchart of the corrosion circuit software processing of the present invention. DETAILED DESCRIPTION
[0019] like Figure 1-2 The corrosion resistance test circuit is mainly composed of a host computer and a circuit board assembly, which are connected by a CAN bus and interactively tested. The circuit board assembly is used as the protected object for corrosion resistance test. When the corrosion resistance test is in progress or after completion, the test host computer can be used to connect the CAN interface of the circuit board assembly test to perform function and performance tests. The test host computer can start the test program with one click, and automatically complete the CAN interface test, discrete output and acquisition function test, PWM output and analog acquisition function performance test, RS422 interface sending and receiving function test in sequence, and the test results are directly displayed on the test host computer interface. The specific circuit connection relationship and circuit board assembly circuit principle are as follows. Figure 1 .
[0020] Hardware circuit description:
[0021] The circuit board assembly includes the main control chip circuit, discrete quantity output and acquisition circuit, PWM output and analog quantity acquisition circuit, RS422 sending and receiving circuit, and CAN interface circuit.
[0022] The characteristic of discrete quantity output and acquisition circuit is
[0023] The discrete quantity output port is connected to the discrete quantity acquisition port. The discrete quantity output status sent by the test host computer will be directly collected by the discrete quantity acquisition port and reported to the test host computer. The test host computer compares whether the discrete quantity output is consistent with the collected data to determine whether each discrete quantity circuit is working properly. At the same time, each discrete port is connected in parallel with an indicator light to facilitate observation during the test process.
[0024] The characteristics of the PWM output and analog quantity acquisition circuit are that the PWM output port converts the PWM duty cycle into 0-5V voltage through the PWM duty cycle to voltage circuit, and then connects to the analog acquisition port to test the PWM duty cycle specified by the host computer, and collects the corresponding analog port voltage at the same time. By comparing the duty cycle with the voltage value, it can be determined whether each PWM output and analog quantity acquisition circuit is normal. At the same time, each PWM port is connected in parallel with the indicator light to facilitate observation during the test process.
[0025] The characteristic of RS422 sending and receiving circuit is that the two UART serial ports of the main control chip are connected to two RS422 transceiver circuits respectively, and the two RS422 interfaces are connected to each other. The test host computer sends data to the RS422 sending port, and at the same time, the data received by the RS422 receiving port is transmitted back to the test host computer. The test host computer compares whether the data sent and received by RS422 are consistent to determine whether the RS422 circuit is working properly.
[0026] The characteristic of the CAN interface circuit is that it is directly connected to the test host computer, and the test host computer determines whether the CAN interface works normally based on the heartbeat frame sent by the CAN interface.
[0027] Software Description:
[0028] The main control chip on the circuit board assembly runs a test program. The main function of the test program is to receive the test data of the CAN interface and transmit the collected discrete quantity, analog quantity, and RS422 communication data back to the test host computer. For specific software flow, see Figure 2 .
[0029] The test program run by the test host computer is mainly used to configure the parameters of each port of the circuit board component, and at the same time collect the data sent back by the circuit board component to judge whether the function and performance are normal.
[0030] When testing, click the "Start Test" button, and the host computer will perform four test procedures in sequence: CAN interface test, discrete quantity test, PWM and voltage acquisition test, and RS422 interface test:
[0031] a.CAN interface test
[0032] After the test host computer is running, first check whether the heartbeat frame sent by the circuit board assembly on the CAN bus has changed. If there is a change within every 200ms, the CAN interface function is normal and the corresponding indicator light shows green, otherwise it shows red.
[0033] b. Discrete quantity test
[0034] The test host computer sends discrete port configuration data in sequence: At the same time, after each step of configuration is completed, there is a stabilization delay of 200ms, and then a comparison is made based on the port data fed back by the circuit board component. If they are equal, the corresponding test result of the port displays a green indicator light, otherwise a red indicator light is displayed.
[0035] c.PWM and voltage acquisition test
[0036] Test that the host computer sends configuration data to the 8 PWM ports in sequence at the same time: After each step of configuration is completed, the stabilization delay is 500ms, and at the same time, the 8-channel AD voltage values are collected to see if they correspond to the voltage:
[0037] If the corresponding voltage at each level is normal, the corresponding test result of the port will display a green indicator light, otherwise it will display a red indicator light.
[0038] d.RS422 interface test
[0039] Test that the host computer sends data to the RS422 interface in sequence: After each step of configuration is completed, the stabilization delay is 200ms, and the data received from the RS422 receiving port is compared with it. If all steps are equal, the interface test result will display a green light, otherwise it will display a red light.
[0040] After all tests are completed, if everything is normal, the test result will display "Pass" in green, otherwise it will display "Fail" in red.
Claims
1. A corrosion resistance test circuit, characterized in that: include: Main control chip, discrete quantity output and acquisition circuit, PWM output and analog quantity acquisition circuit, RS422 sending and receiving circuit, CAN interface circuit, among which, The discrete quantity output and acquisition circuit connects the discrete quantity output port of the main control chip with the discrete quantity acquisition port; The PWM output and analog quantity acquisition circuit includes a PWM duty cycle to voltage circuit, wherein the input end and the output end of the PWM duty cycle to voltage circuit are respectively connected to the PWM output port and the analog acquisition port, and are used to convert the output of the PWM output port of the main control chip into a 0-5V voltage, and then input it to the analog acquisition port; The RS422 sending and receiving circuits are respectively connected to the two UART interfaces of the main control chip, and the two RS422 interfaces are connected to each other; One end of the CAN interface circuit is connected to the host computer, and the other end is connected to the CAN interface of the main control chip.
2. The corrosion resistance test circuit according to claim 1, characterized in that: The main control chip is AC7811 main control chip.
3. The corrosion resistance test circuit according to claim 1, characterized in that: The CAN bus circuit is planned to use the TJA1040 transceiver.
4. The corrosion resistance test circuit according to claim 3, characterized in that: The CAN bus circuit is isolated by NSI8221N0-DSPR magnetic isolation chip with an isolation voltage of 10KV. The overvoltage and overcurrent caused by surges are suppressed by TVS protection circuit. The communication protocol adopts CAN2.0B extended frame format.
5. The corrosion resistance test circuit according to claim 3, characterized in that: The RS422 sending and receiving circuit uses UT-M482 transceiver.
6. The corrosion resistance test circuit according to claim 1, characterized in that: The baud rate of the RS422 interface is set to 115200bps, 8 data bits, 1 stop bit, even parity, and the interface meets the electrical performance requirements of IEC61000-4-2.
