CN114740332A - Automatic single board detection platform and method based on RT-thread - Google Patents

Automatic single board detection platform and method based on RT-thread Download PDF

Info

Publication number
CN114740332A
CN114740332A CN202210384634.6A CN202210384634A CN114740332A CN 114740332 A CN114740332 A CN 114740332A CN 202210384634 A CN202210384634 A CN 202210384634A CN 114740332 A CN114740332 A CN 114740332A
Authority
CN
China
Prior art keywords
module
detection
single board
interface
detection platform
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210384634.6A
Other languages
Chinese (zh)
Other versions
CN114740332B (en
Inventor
王蕾
彭勇
黄卫明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Friendcom Technology Co Ltd
Original Assignee
Shenzhen Friendcom Technology Co Ltd
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 Shenzhen Friendcom Technology Co Ltd filed Critical Shenzhen Friendcom Technology Co Ltd
Priority to CN202210384634.6A priority Critical patent/CN114740332B/en
Publication of CN114740332A publication Critical patent/CN114740332A/en
Application granted granted Critical
Publication of CN114740332B publication Critical patent/CN114740332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/2818Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP] using test structures on, or modifications of, the card under test, made for the purpose of testing, e.g. additional components or connectors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/2806Apparatus therefor, e.g. test stations, drivers, analysers, conveyors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an automatic single board detection platform and method based on RT-thread, relates to the technical field of metering equipment, and solves the technical problems of low precision, poor universality and low efficiency of single board detection methods of electric energy meters in the prior art. The detection platform comprises a control module and a detection module, wherein the control module is electrically connected with the detection module; the detection module can be connected with one or more single boards to be detected; the detection module is provided with a plurality of interfaces, and receives and transmits the test data of the single board to be tested through the plurality of interfaces; the detection platform issues a test instruction through the control module to carry out omnibearing detection on the veneer to be detected. The invention reserves abundant interfaces to communicate with the single board to be tested by adopting a platform design, can be adapted to different types of single boards to be tested to test, realizes the simultaneous detection of a plurality of single boards to be tested, and improves the precision and the efficiency of single board testing.

Description

Automatic single board detection platform and method based on RT-thread
Technical Field
The invention relates to the technical field of metering equipment, in particular to an automatic single board detection platform and method based on RT-thread.
Background
With the progress of the technology, the production process and process inspection data of electric energy meter products are continuously required to be accessed to a power grid platform for unified management and control. Wherein, the veneer test is listed in the necessary flow. The electric energy meter mainly aims at the PCB single board to be detected, after the PCB single board is subjected to a mounting inspection process and before the whole-meter assembly detection process is executed, the circuit, the function and the like on the PCB single board need to be detected in an all-round mode, and detection information conclusion of the PCB single board to be detected is synchronously uploaded to a production data server and can be inquired and traced at any time.
The current mainstream single board test method mainly reads the data of the power supply test point through a header, and the precision is extremely low; the method has the advantages that the master control system is not provided, once the PCB single board is changed, the single board testing tool needs to be redesigned once, and the universality is extremely poor; the data of the single board test flow is not accessed into the database, so that the single board test flow is inconvenient to trace and inquire. In the single board test process of most traditional meter factories, only the power supply test points are tested, and the circuit welding is preliminarily judged to have no fault, so that the next link can be accessed, and the data can be recorded and identified only by manual work.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the existing electric energy meter form detection method is low in precision and poor in universality, and a master control system is not used for tracing and searching the single board test flow data.
Disclosure of Invention
The invention aims to provide an automatic single board detection platform and method based on RT-thread to solve the technical problems of low precision, poor universality and low efficiency of single board detection methods of electric energy meters in the prior art. The technical effects produced by the preferred technical scheme in the technical schemes provided by the invention are described in detail in the following.
In order to achieve the purpose, the invention provides the following technical scheme:
the invention provides an automatic single board detection method based on RT-thread, which is used for detecting a single board to be detected, wherein the single board to be detected is arranged in a single-phase meter after being detected to be qualified; the detection method adopts a detection platform with an RT-thread system as a kernel, and comprises the following steps:
s10: inputting information of the single board to be tested, and uploading the information to an upper computer device;
s20: the upper computer equipment receives the information and issues a test instruction to the detection platform; the detection platform receives the test instruction and then tests the single board to be tested;
s30: and after the test is finished, the upper computer equipment stores the test result.
Preferably, in the step S20, the step of testing the single board to be tested by the detection platform includes:
the detection platform sets a state number for the test item of the single board to be tested, and the state number corresponds to the test item one by one;
the test items comprise a pre-test sub-item, a battery power consumption detection sub-item, a communication detection sub-item and a result processing sub-item; the pre-detection sub-item, the battery power consumption detection sub-item, the communication detection sub-item and the result processing sub-item are sequentially executed;
each of said sub-items including at least two of said state numbers; the detection platform executes each item in sequence according to the state number.
Preferably, in the step S20, before issuing the test instruction to the detection platform, the method further includes:
the veneer to be detected is accessed to the detection platform and enters a state to be detected;
the detection platform is connected with the upper computer equipment and is connected with an alternating current power supply;
and starting and initializing the detection platform by the upper computer equipment, and enabling the single board to be detected to enter a detection state.
In addition, the invention also provides an automatic single board detection platform based on the RT-thread, which comprises a control module and a detection module, wherein the control module is electrically connected with the detection module; the detection module can be connected with one or more single boards to be detected; the detection module is provided with a plurality of interfaces, and receives and transmits the test data of the single board to be tested through the plurality of interfaces; the detection platform issues a test instruction through the control module to carry out all-direction detection on the single board to be detected.
Preferably, the chip model of the control module is AT32F403VGT6/SCM 402F.
Preferably, the plurality of interfaces include a first interface, a second interface, a third interface, and a fourth interface; the first interface, the second interface, the third interface and the fourth interface are all connected with the control module; the first interface is a starting interface for the control module to start the detection module to detect; the second interface is an RS485 communication port, and the detection module is communicated with the control module through the second interface.
Preferably, the detection platform further comprises a sampling module; the sampling modules are electrically connected with the control module and the detection module; the control module sends a sampling signal to the sampling module, and the sampling module receives the sampling signal and samples the voltages of a plurality of detection points; and the sampling module sends the detection point voltage to the detection module through the fourth interface.
Preferably, the detection platform further comprises a power consumption module and an AD conversion module; the power consumption module is electrically connected with the single board to be tested through the detection module; the third interface is accessed to the differential signal generated by the detection module; the differential signal is accessed to an operational amplifier circuit of the power consumption module through the fourth interface, and the output analog voltage is converted into digital voltage through the AD conversion module; and the AD conversion module transmits the digital voltage to the control module through an SPI interface.
Preferably, the detection platform further comprises a voltage control amplification module and a voltage reference module; the voltage control amplification module provides VCA input voltage for the power consumption module, the voltage reference module and the AD conversion module; the voltage reference module provides 2.5V reference voltage for the AD conversion module.
Preferably, the detection platform further comprises a pulse acquisition module; the pulse acquisition module is in communication connection with a 37 th pin and a 38 th pin of the control module; the pulse acquisition module can acquire electric energy pulses and clock pulses when the single board to be detected is connected with the control module for communication.
The implementation of one of the technical schemes of the invention has the following advantages or beneficial effects:
the invention reserves abundant interfaces to communicate with the single board to be tested by adopting a platform design, can be adapted to different types of single boards to be tested to test, realizes the simultaneous detection of a plurality of single boards to be tested, has extremely high efficiency, and solves the problems of low precision, poor universality and low efficiency of the electric energy form board detection method in the prior art.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without any inventive work, wherein:
FIG. 1 is a flow chart of a method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a second embodiment of the present invention;
FIG. 3 is a pin connection diagram of a control module according to a second embodiment of the present invention;
FIG. 4 is a circuit diagram of a second embodiment of the present invention;
fig. 5 is a circuit diagram 1 of a sampling module according to a second embodiment of the present invention;
fig. 6 is a circuit diagram 2 of a sampling module according to a second embodiment of the present invention;
fig. 7 is a circuit diagram 3 of a sampling module according to a second embodiment of the present invention;
fig. 8 is a circuit diagram of a sampling module of a second embodiment of the present invention;
fig. 9 is a circuit diagram 5 of a sampling module according to a second embodiment of the present invention;
fig. 10 is a circuit diagram of a sampling module of the second embodiment of the present invention;
fig. 11 is a pin connection diagram of four interfaces of the detection module according to the second embodiment of the present invention;
fig. 12 is a circuit diagram 1 of an RS485 communication port according to a second embodiment of the present invention;
fig. 13 is a circuit diagram 2 of an RS485 communication port according to a second embodiment of the present invention;
fig. 14 is a pin connection diagram of an RS232 communication port according to a second embodiment of the present invention;
fig. 15 is a circuit diagram of an RS232 communication port according to a second embodiment of the present invention;
fig. 16 is a circuit diagram of a relay module according to a second embodiment of the invention;
fig. 17 is a circuit diagram of a pulse acquisition module according to a second embodiment of the present invention;
FIG. 18 is a diagram of pin connections of an LCD display module according to a second embodiment of the present invention;
fig. 19 is a circuit diagram of an LCD display module according to a second embodiment of the present invention;
FIG. 20 is a circuit diagram of a CAP according to a second embodiment of the invention;
fig. 21 is a block diagram of AD conversion according to the second embodiment of the present invention;
FIG. 22 is an enlarged block diagram of voltage control according to a second embodiment of the present invention;
FIG. 23 is a block diagram of a voltage reference module according to a second embodiment of the present invention;
fig. 24 is a circuit diagram of a power consumption module of the second embodiment of the present invention 1;
FIG. 25 is a circuit diagram of a power consumption module of the second embodiment of the present invention, FIG. 2;
fig. 26 is a circuit diagram of a power consumption module of the second embodiment of the present invention, fig. 3;
fig. 27 is a pin connection diagram of a key module according to a second embodiment of the present invention;
fig. 28 is a pin connection diagram of an LED module according to a second embodiment of the present invention;
fig. 29 is a pin connection diagram of a storage module according to a second embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, various exemplary embodiments to be described below will refer to the accompanying drawings, which form a part hereof, and in which are described various exemplary embodiments by which the present invention may be practiced. The same numbers in different drawings identify the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. It is to be understood that they are merely examples of processes, methods, apparatus, etc. consistent with certain aspects of the present disclosure as detailed in the appended claims, and that other embodiments may be used or structural and functional modifications may be made to the embodiments set forth herein without departing from the scope and spirit of the present disclosure.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," and the like are used in the orientations and positional relationships illustrated in the accompanying drawings for the purpose of facilitating the description of the present invention and simplifying the description, and do not indicate or imply that the elements so referred to must have a particular orientation, be constructed and operated in a particular orientation. The terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. The term "plurality" means two or more. The terms "connected" and "coupled" are to be construed broadly and may include, for example, a fixed connection, a removable connection, a unitary connection, a mechanical connection, an electrical connection, a communicative connection, a direct connection, an indirect connection via intermediate media, and may include, but are not limited to, an internal connection between two elements or an interactive relationship between two elements. The term "and/or" includes any and all combinations of one or more of the associated listed items. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In order to explain the technical solution of the present invention, the following description is made by using specific examples, and only the parts related to the examples of the present invention are shown.
The first embodiment is as follows:
as shown in fig. 1, the present invention provides an automatic board detection method based on RT-read, which is used for detecting a board to be detected, and the board to be detected is set in a single-phase meter after being detected qualified; the detection method adopts a detection platform with an RT-thread system as a kernel, and comprises the following steps: s10: inputting information of the single board to be tested, and uploading the information to the upper computer equipment; s20: the upper computer equipment receives the information and issues a test instruction to the detection platform; the detection platform receives the test instruction and then tests the single board to be tested; s30: and after the test is finished, the upper computer equipment stores the test result. Specifically, the information of the veneer to be tested can be recorded by setting identification codes such as a bar code or a two-dimensional code on the veneer to be tested, and the information of the veneer to be tested can be acquired from the identification codes by scanning the identification codes through code scanning equipment or directly inputting the identification codes. The upper computer equipment is connected with the code scanning equipment, information of the veneer to be detected can be input, and after the veneer to be detected is detected, the detection result is bound, searched and traced conveniently.
Furthermore, the detection platform can be connected with a plurality of single boards to be detected, and can detect a plurality of single boards to be detected simultaneously. Correspondingly, the upper computer equipment can display the test queue of the detection platform. When the queue of the single board to be tested accessed by the detection platform is full, the upper computer equipment sends a test instruction to the detection platform, and after receiving the instruction, the detection platform establishes connection with the single board to be tested through the control module to sequentially perform project test on the single board to be tested. Different interfaces are arranged on the detection platform, and can be accessed to different interfaces according to different adaptations of the model of the veneer to be detected, and detection is carried out. During detection, the upper computer equipment stores the detection result in real time and binds the detection result with the single board to be detected, so that subsequent inquiry is facilitated.
Furthermore, the upper computer device uploads the detection result of each item of the single board to be detected to a Manufacturing Execution System (MES) system, and the manufacturing execution system is connected with the execution system through field control of workshop operation. The MES system provides the necessary interfaces to establish a partnership with the manufacturer that provides the production field control facility. The query and the trace of the detection result of the single board to be detected in the operation are more convenient.
As an optional implementation manner, in the step S20, the testing of the board to be tested by the testing platform includes: the detection platform is provided with a state number for the test item of the single board to be detected, and the state number corresponds to the test item one by one; the test items comprise a pre-test sub-item, a battery power consumption detection sub-item, a communication detection sub-item and a result processing sub-item; the pre-detection sub-item, the battery power consumption detection sub-item, the communication detection sub-item and the result processing sub-item are sequentially executed; each sub-item includes at least two state numbers; the detection platform executes each item in sequence according to the state number. Specifically, as shown in table 1, after the system of the detection platform is initialized, the single board to be detected is detected from the pre-detection item according to the state number, and after the completion of the realization of one state number, one is automatically added, that is, the state numbers are sequentially executed. The test items comprise a result display sub-item and a power-off initialization sub-item besides a pre-test sub-item, a battery power consumption detection sub-item, a communication detection sub-item and a result processing sub-item. The state number of the pre-detection item is 0-1; the state number of the battery power consumption detection sub item is 10-12; the status number of the communication detection sub item is 18-27; the status number of the result processing sub-item is 88-90; the result shows that the state number of the sub item is 100-101; the state number of the power-off initialization sub-item is 110-111. When the detection platform tests the single board to be tested for the project, the detection platform can adaptively select to carry out one or more sub-project targeted tests on the single board to be tested. The detection platform can identify the state numbers and carry out different processing according to the difference of the state numbers. If not specifically stated, the sub-entries and the state numbers under the sub-entries are executed sequentially. It should be noted that, for multiple batches of boards to be tested, each time a batch of boards to be tested is tested, a power-off initialization sub-item needs to be performed.
Table 1: test item table
Figure RE-GDA0003646722830000091
Figure RE-GDA0003646722830000101
As an optional implementation manner, in the step S20, before issuing the test instruction to the detection platform, the method further includes: the single board to be detected is accessed to the detection platform and enters a state to be detected; the detection platform is connected with the upper computer equipment and is connected with an alternating current power supply; the upper computer equipment starts and initializes the detection platform, and the single board to be detected enters a detection state. Specifically, a module for placing the board to be tested or a circuit connected to the board to be tested is arranged on the detection platform, and when the detection platform is not connected to the power supply, the board to be tested is in a state to be tested. The detection platform is connected with the power supply and establishes a connection relation with the upper computer equipment through an isolation RS232 interface. And the upper computer equipment starts the detection platform and issues an initialized instruction, and the single board to be detected enters a detection state at the moment and waits for the detection platform to detect the single board to be detected. As shown in fig. 14 and 15, the control module of the detection platform sends data to the optocoupler U11 through the 78 th pin, when the upper computer device is connected and powered on with the detection platform, the optocoupler U9 and U11 are turned on, the sent data is input to the SP3232EEY chip through the optocoupler U11, and the electrical signal in the module is converted into a TTL signal which can be recognized by the upper computer device. The TTL signal sent by the upper computer equipment can be converted into an analog signal through the SP3232EEY chip, and the analog signal sends and receives data to the control module through the optical coupler U9, so that the effect of communication between the control module and the upper computer equipment is achieved.
The second embodiment:
as shown in fig. 2-4, the present invention further provides an RT-thread based automated single board detection platform, which comprises a control module and a detection module, wherein the control module is electrically connected with the detection module; the detection module can be connected with one or more single boards to be detected; the detection module is provided with a plurality of interfaces, and receives and transmits the test data of the single board to be tested through the plurality of interfaces; the detection platform issues a test instruction through the control module to carry out all-dimensional detection on the single board to be detected. Specifically, the RT-Thread system is a technical platform integrating a real-time operating system (RTOS) kernel, a middleware component and a developer community, and is an Internet of things operating system with complete and rich components, high scalability, simple development, ultra-low power consumption and high security. The RT-Thread system is used as a detection platform of the kernel, so that detection equipment adjusted to other products can be easily modified, and the production cost is effectively saved.
The control module is a core module of the detection platform, and the single board to be detected is connected to the detection platform through the detection module. The detection platform is operated by matching with the state number, and sends power signals to each module through the control module, so that project testing of the single board to be tested is realized. The single board to be detected is in communication connection with the detection platform, the voltage and the current in the circuit are sampled and detected, the voltage change of each detection point of the single board to be detected is detected, the battery power consumption and the capacitor power consumption of the single board to be detected can be evaluated, and only the single board to be detected which is qualified can be delivered to a factory for use. The detection platform is provided with the operation lamp and the state lamp, when the detection platform detects the veneer to be detected, the unqualified veneer to be detected is detected, the operation lamp and the state lamp of the detection platform can flicker to prompt a user, and unqualified characters can be displayed on the LCD display screen.
The detection module is prepared with abundant interfaces, on one hand, the detection module can be adapted to veneers to be detected with different models, and on the other hand, the detection module can be communicated with different modules. In the embodiment, by adopting a platform design, abundant interfaces are reserved for communicating with the single boards to be tested, the single boards to be tested can be adapted to different models for testing, simultaneous detection of a plurality of single boards to be tested is realized, and the problems of low precision, poor universality and low efficiency of the existing electric energy form board detection method are solved.
As an alternative embodiment, the chip model of the control module is AT32F403VGT6/SCM 402F. Specifically, the detection platform is provided with abundant interfaces for adapting to different types of veneers to be detected, and the control module needs a chip with a large number of pins and abundant functions to maintain the stable detection of the platform on the veneers for matching the functions of the plurality of interfaces. The AT32F403 family has built-in high speed storage (up to 1024K bytes of memory and 96+128K bytes of SRAM) and can use external storage (up to 16 Mbytes of SPI flash), rich enhanced I/O ports and peripherals coupled to both APB buses. The device comprises 3 12-bit ADCs, 8 universal 16-bit timers, 2 universal 32-bit timers and up to 3 PWM timers, and further comprises standard and advanced communication interfaces: up to 3I 2C interfaces, 4 SPI interfaces (multiplexing as I2S interface), 2 SDIO interfaces, 5 USART interfaces, 1 USB interface and 1 CAN interface, CAN satisfy testing platform's requirement. Among them, the chip AT32F403VGT6/SCM402F is the preferred scheme of the embodiment of the invention.
As an optional implementation, the plurality of interfaces includes a first interface, a second interface, a third interface, and a fourth interface; the first interface, the second interface, the third interface and the fourth interface are all connected with the control module; the first interface is a starting interface for the control module to start the detection module for detection; the second interface is an RS485 communication port, and the detection module is communicated with the control module through the second interface. Specifically, as shown in fig. 11, J6 is a first interface; j11 is a second interface; j7 is the third interface; j8 is the fourth interface. The first interface is connected with a second USART port of the control module, pins 86-87 of the control module receive and transmit the electric number to the detection module through the first interface, and a start loading program of a system memory in the control module can be started. The second interface is the main communication port of detection module and control module, and optionally can use RS485 communication. As shown in fig. 12 and 13, the second interface is connected to the third USART port of the control module via the HD588EESA chip. The control module communicates with the detection module via the HD588EESA chip. The control module inputs low level to the base electrode of the PNP type triode Q1, at the moment, the Q1 is conducted, and the 55 th pin of the control module is connected with the HD588EESA chip. The DE pin of the HD588EESA chip is connected with the high level of the collector of the Q1 to control the normal communication of the transceiving port of the HD588EESA chip, and the 56 th pin of the control module receives the data of the detection module. The detection module receives data of the control module through pins 485A and 485B of the HD588EESA chip. The HD588EESA chip is a high-speed transceiver for half-duplex communication of RS-485/RS-422 communication, comprises a driver and a receiver, and can realize error-free data transmission.
Furthermore, an infrared interface is also arranged on the detection platform. The infrared communication can be carried out through the infrared adapter plate between the detection module and the control module. One end of the infrared adapter plate is in infrared receiving and transmitting with the detection module, and the other end of the infrared adapter plate is connected with the control module through a UART port.
As an optional embodiment, the detection platform further comprises a sampling module; the sampling modules are electrically connected with the control module and the detection module; the control module sends a sampling signal to the sampling module, and the sampling module receives the sampling signal and samples the voltages of the plurality of detection points; and the sampling module sends the voltage of the detection point to the detection module through the fourth interface. Specifically, as shown in fig. 5 to 10, the control module inputs a high level through the sampling control pins such as pins 2, 41, 62, 63, 64, and 65, so as to turn on the NPN transistor in the sampling module. The transistors are all model LMBT2222ALT 1G. At this time, the collectors of the triodes are respectively supplied with power by the 15 th, 16 th, 33 th, 36 th, 35 th and 34 th pins of the control module. The collector current can be amplified by changing the current of the sampling control pin. The sampling module performs AD sampling on the data of the 6 voltage detection points of the single board to be detected shown in the figures 5-10 through the fourth interface, and transmits the data to the control module through the detection module for integration and analysis. And the sampling module performs AD sampling for 20 times on each voltage detection point, then averages the AD sampling values, transmits the average values to the control module, judges the performance of the single board to be detected and further detects the power consumption of the single board to be detected.
As an optional implementation manner, the detection platform further includes a power consumption module and an AD conversion module; the power consumption module is electrically connected with the single board to be detected through the detection module; the third interface is accessed to a differential signal generated by the detection module; the differential signal is connected to an operational amplifier circuit of the power consumption module through a fourth interface, and the output analog voltage is converted into digital voltage through an AD conversion module; and the AD conversion module transmits the digital voltage to the control module through the SPI interface. Specifically, the power consumption module is connected to a fourth interface of the detection module. As shown in FIGS. 24-26, the control module inputs an electrical signal to the power consumption module via pin 59, activating the SGM2036-ADJYN5G chip output. At the moment, the 60 th pin of the control module inputs high level to the base electrode of a triode Q5 of the power consumption module to be conducted, the 4 th pin and the 5 th pin of the SPDT relay are electrified, and the 3 rd pin is changed from normally open to closed. The chip SGM2036-ADJYN5G outputs BAT + signal, which forms a loop with BAT-signal output by pin 1 of SPDT relay. As shown in FIG. 4, the detection module generates a differential signal IP + through resistors R83-R86, the differential signal is connected to the third interface, and is connected to the MCP6V02-E operational amplification circuit of the power consumption module through the fourth interface. The output AIN +, AIN-signal of the operational amplification circuit can be converted from an analog value to a data value via an AD conversion module. As shown in fig. 21, the AD conversion module receives the signal from the 54 th pin of the control module, and transmits the data value of the AIN + and AIN-signals to the control module through the 53 th pin. The data values are sampled for 20 times and then averaged, and the voltage values are reversely deduced to be current values, so that the power consumption of the battery can be obtained.
Further, as shown IN fig. 20, the 61 st pin of the control module outputs an electrical signal, the capacitor CAP starts to discharge, the 2 nd pin of the SPDT relay shown IN fig. 25 is normally closed, and the CAP _ IN pin is connected to the fourth interface of the detection module. The power consumption of the capacitor can be calculated by performing AD sampling on the voltage detection point after the capacitor is discharged for 20 times and then averaging.
As an optional implementation manner, the detection platform further comprises a voltage control amplification module and a voltage reference module; the voltage control amplification module provides VCA input voltage for the power consumption module, the voltage reference module and the AD conversion module; the voltage reference module provides a 2.5V reference voltage for the AD conversion module. Specifically, as shown in fig. 22, the voltage control amplifying module includes a PS78H05KA chip, amplifies the 18V dc voltage into a VCA input voltage, and provides VDD power for the power consumption module, the voltage reference module, and the AD conversion module. As shown in fig. 23, the voltage reference module includes an MCP1501 to 25E chip, and the MCP1501 to 25E chip is used as the voltage reference chip to provide a high-precision 2.5V reference voltage for the AD conversion module, thereby ensuring high-precision conversion of data in the AD conversion module.
As an optional embodiment, the detection platform further comprises a pulse acquisition module; the pulse acquisition module is in communication connection with a 37 th pin and a 38 th pin of the control module; the pulse acquisition module can acquire electric energy pulses and clock pulses when the single board to be detected is connected with the control module for communication. Specifically, as shown in fig. 17, when the board to be tested is in communication, an electric energy pulse and a clock pulse are generated. The 37 th pin of the control module is connected with the input of a clock pulse; the 38 th pin of the control module is connected to the input of the electric energy pulse. The control module collects and counts the electric energy pulse and the clock pulse, and can judge the performance of the single board to be tested according to the output of the pulse measurement. When the pulse measurement is qualified, a qualified character pattern can be displayed on a display screen test bar of the upper computer equipment.
In addition, the detection platform also comprises an LCD display module. As shown in fig. 18, the display module includes an LCD display unit; the LCD display unit is connected with the control module through a liquid crystal interface and can display the detection result of the single board to be detected. Specifically, the LCD display unit is connected with the control module through the liquid crystal interface, can convert the electric signal on the control module into a visual TTL signal, and can judge whether the communication function of the veneer to be tested is qualified or not by detecting the TTL signal. As shown in fig. 19, the LCD display unit is further provided with a backlight function, and a light source can be provided to the LCD display screen at a side surface or a lateral surface of the LCD display screen.
Furthermore, the detection platform further comprises a key module, an LED module and a storage module. As shown in FIG. 27, the key module is electrically connected to the control module via pins 29-31 of the control module. Including trip notification, restart, and emergency notification buttons. Optionally, the detection can be started and stopped by the control module through software or manual keys. As shown in fig. 28, the operation lamp and the status lamp are disposed on the detection platform, when the detection platform detects the board to be detected, an unqualified board to be detected is detected, the operation lamp and the status lamp of the detection platform flash to prompt a user, and an unqualified character pattern also appears on the LCD display unit. As shown in fig. 29, the system memory of the control module stores data and programs in the control module through pins 95 and 96.
Furthermore, the detection platform also comprises a relay module. Specifically, as shown in fig. 16, the relay module is connected to the detection module through a third interface; the relay module is electrically connected with a 58 th pin of the control module; the relay module can control the signal output of the single board to be tested. And the single board to be tested is connected and communicated with the relay module through the third interface of the detection module. The control module can send an electric signal to the relay module through the 58 th pin to control the relay to open and close in the circuit, so that the communication between the single board to be tested and the control module is connected or disconnected, and the single board to be tested is conveniently subjected to a switching-on and switching-off test.
As an alternative embodiment, as shown in fig. 4, the relay RY1 on the detection module is electrically connected with the 57 th pin of the control module. The control module sends an electric signal through a 57 th pin, the relay RY1 is conducted, and the single board to be tested and the alternating current power supply are connected into the detection module. The 220V alternating current power supply accessed by the detection module passes through the coupling circuit, and the output end of the coupling circuit is connected with the linear voltage regulator SGM2203 chip, the rectifier bridge MB10S chip, the MP2457 chip and the XC6214P332PR chip. Through the chip, the detection module can provide different currents for each module in the detection platform.
The embodiment is only a specific example and does not indicate such an implementation of the invention.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.

Claims (10)

1. An automatic single board detection method based on RT-thread is characterized in that the method is used for detecting a single board to be detected, and the single board to be detected is arranged in a single-phase meter after being detected to be qualified; the detection method adopts a detection platform with an RT-thread system as a kernel, and comprises the following steps:
s10: inputting information of the veneer to be tested, and uploading the information to upper computer equipment;
s20: the upper computer equipment receives the information and issues a test instruction to the detection platform; the detection platform receives the test instruction and then tests the single board to be tested;
s30: and after the test is finished, the upper computer equipment stores the test result.
2. The method according to claim 1, wherein in the step S20, the testing platform tests the board to be tested, including:
the detection platform sets a state number for the test item of the single board to be tested, and the state number corresponds to the test item one by one;
the test items comprise a pre-test sub-item, a battery power consumption detection sub-item, a communication detection sub-item and a result processing sub-item; the pre-detection sub-item, the battery power consumption detection sub-item, the communication detection sub-item and the result processing sub-item are sequentially executed;
each of said sub-items including at least two of said state numbers; and the detection platform executes each item according to the state number in sequence.
3. The method according to claim 1, wherein before issuing the test instruction to the detection platform in step S20, the method further comprises:
the veneer to be detected is accessed to the detection platform and enters a state to be detected;
the detection platform is connected with the upper computer equipment and is connected with an alternating current power supply;
and starting and initializing the detection platform by the upper computer equipment, and enabling the single board to be detected to enter a detection state.
4. An automatic board detection platform based on RT-thread, which is used for executing the detection method according to any one of claims 1-3; the device comprises a control module and a detection module, wherein the control module is electrically connected with the detection module; the detection module can be connected with one or more single boards to be detected; the detection module is provided with a plurality of interfaces, and receives and transmits the test data of the single board to be tested through the plurality of interfaces; the detection platform issues a test instruction through the control module to carry out omnibearing detection on the veneer to be detected.
5. The RT-thread based automatic veneer detection platform according to claim 4, wherein the chip model of the control module is AT32F403VGT6/SCM 402F.
6. The RT-thread based automatic single board detection platform of claim 4, wherein the plurality of interfaces comprise a first interface, a second interface, a third interface and a fourth interface; the first interface, the second interface, the third interface and the fourth interface are all connected with the control module; the first interface is a starting interface for the control module to start the detection module to detect; the second interface is an RS485 communication port, and the detection module is communicated with the control module through the second interface.
7. The RT-thread based automated single board detection platform of claim 6, wherein the detection platform further comprises a sampling module; the sampling modules are electrically connected with the control module and the detection module; the control module sends a sampling signal to the sampling module, and the sampling module receives the sampling signal and samples the voltages of a plurality of detection points; and the sampling module sends the detection point voltage to the detection module through the fourth interface.
8. The RT-thread based automatic single board detection platform of claim 6, wherein the detection platform further comprises a power consumption module and an AD conversion module; the power consumption module is electrically connected with the single board to be detected through the detection module; the third interface is accessed to the differential signal generated by the detection module; the differential signal is accessed to an operational amplifier circuit of the power consumption module through the fourth interface, and the output analog voltage is converted into digital voltage through the AD conversion module; and the AD conversion module transmits the digital voltage to the control module through an SPI interface.
9. The RT-thread based automated single board detection platform of claim 8, wherein the detection platform further comprises a voltage control amplification module and a voltage reference module; the voltage control amplification module provides VCA input voltage for the power consumption module, the voltage reference module and the AD conversion module; the voltage reference module provides a 2.5V reference voltage for the AD conversion module.
10. The RT-thread based automated single board detection platform of claim 9, wherein the detection platform further comprises a pulse acquisition module; the pulse acquisition module is in communication connection with a 37 th pin and a 38 th pin of the control module; the pulse acquisition module can acquire electric energy pulses and clock pulses when the single board to be detected is connected with the control module for communication.
CN202210384634.6A 2022-04-13 2022-04-13 Automatic single board detection platform based on RT-thread Active CN114740332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210384634.6A CN114740332B (en) 2022-04-13 2022-04-13 Automatic single board detection platform based on RT-thread

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210384634.6A CN114740332B (en) 2022-04-13 2022-04-13 Automatic single board detection platform based on RT-thread

Publications (2)

Publication Number Publication Date
CN114740332A true CN114740332A (en) 2022-07-12
CN114740332B CN114740332B (en) 2024-03-15

Family

ID=82282211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210384634.6A Active CN114740332B (en) 2022-04-13 2022-04-13 Automatic single board detection platform based on RT-thread

Country Status (1)

Country Link
CN (1) CN114740332B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325517A (en) * 2008-07-07 2008-12-17 中兴通讯股份有限公司 Communication system equipment and detection method thereof
CN103557910A (en) * 2013-10-26 2014-02-05 新天科技股份有限公司 Intelligent water meter automatic detection device and method
CN104062934A (en) * 2014-06-17 2014-09-24 珠海翔翼航空技术有限公司 Simulator universal single-board controller and control method based on USB bus transfer
CN104639039A (en) * 2014-12-30 2015-05-20 南京南瑞太阳能科技有限公司 Small and medium-sized photovoltaic grid-connected inverter single-board automated test platform
CN105512030A (en) * 2015-11-30 2016-04-20 中国空间技术研究院 Satellite test efficiency improving method based on satellite order code word intelligent construction
CN205427131U (en) * 2015-11-11 2016-08-03 南京南瑞集团公司 Regimen data acquisition module circuit board automatic test equipment
CN106788786A (en) * 2016-11-21 2017-05-31 上海卫星工程研究所 Standardization satellite RF index testing system
CN107065660A (en) * 2017-03-24 2017-08-18 深圳市艾特讯科技有限公司 A kind of method of testing and system
WO2018028215A1 (en) * 2016-08-09 2018-02-15 深圳大学 Device and system for power consumption detection
CN110108965A (en) * 2019-05-27 2019-08-09 山东德佑电气股份有限公司 Power quality controlling device sampling plate test platform and its test method
CN110855320A (en) * 2019-11-07 2020-02-28 江苏芯云电子科技有限公司 Automatic detection system and method for broadband power line carrier communication module PCBA single board
CN210427730U (en) * 2019-07-09 2020-04-28 保定四方三伊电气有限公司 Circuit board switching value input automatic checkout device
US20210033661A1 (en) * 2019-08-01 2021-02-04 Cheng Uei Precision Industry Co., Ltd. Automatic circuit board test system and automatic circuit board test method applied therein
CN113268386A (en) * 2021-05-26 2021-08-17 天津市职业大学 Debugging platform and testing method for AOCC system software and identification-level principle sample machine
CN113341301A (en) * 2021-06-30 2021-09-03 重庆前卫科技集团有限公司 Single board signal change travel time detection equipment and method
CN215263835U (en) * 2021-06-30 2021-12-21 重庆前卫科技集团有限公司 Veneer detection equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325517A (en) * 2008-07-07 2008-12-17 中兴通讯股份有限公司 Communication system equipment and detection method thereof
CN103557910A (en) * 2013-10-26 2014-02-05 新天科技股份有限公司 Intelligent water meter automatic detection device and method
CN104062934A (en) * 2014-06-17 2014-09-24 珠海翔翼航空技术有限公司 Simulator universal single-board controller and control method based on USB bus transfer
CN104639039A (en) * 2014-12-30 2015-05-20 南京南瑞太阳能科技有限公司 Small and medium-sized photovoltaic grid-connected inverter single-board automated test platform
CN205427131U (en) * 2015-11-11 2016-08-03 南京南瑞集团公司 Regimen data acquisition module circuit board automatic test equipment
CN105512030A (en) * 2015-11-30 2016-04-20 中国空间技术研究院 Satellite test efficiency improving method based on satellite order code word intelligent construction
WO2018028215A1 (en) * 2016-08-09 2018-02-15 深圳大学 Device and system for power consumption detection
CN106788786A (en) * 2016-11-21 2017-05-31 上海卫星工程研究所 Standardization satellite RF index testing system
CN107065660A (en) * 2017-03-24 2017-08-18 深圳市艾特讯科技有限公司 A kind of method of testing and system
CN110108965A (en) * 2019-05-27 2019-08-09 山东德佑电气股份有限公司 Power quality controlling device sampling plate test platform and its test method
CN210427730U (en) * 2019-07-09 2020-04-28 保定四方三伊电气有限公司 Circuit board switching value input automatic checkout device
US20210033661A1 (en) * 2019-08-01 2021-02-04 Cheng Uei Precision Industry Co., Ltd. Automatic circuit board test system and automatic circuit board test method applied therein
CN110855320A (en) * 2019-11-07 2020-02-28 江苏芯云电子科技有限公司 Automatic detection system and method for broadband power line carrier communication module PCBA single board
CN113268386A (en) * 2021-05-26 2021-08-17 天津市职业大学 Debugging platform and testing method for AOCC system software and identification-level principle sample machine
CN113341301A (en) * 2021-06-30 2021-09-03 重庆前卫科技集团有限公司 Single board signal change travel time detection equipment and method
CN215263835U (en) * 2021-06-30 2021-12-21 重庆前卫科技集团有限公司 Veneer detection equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙克辉;杨强;: "基于pSOS和MPC852T的智能测试系统开发" *

Also Published As

Publication number Publication date
CN114740332B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN205427131U (en) Regimen data acquisition module circuit board automatic test equipment
CN109521357A (en) A kind of single board testing system integrating program burn writing, circuit functionality test
CN111026077A (en) Automatic test bench of response system based on GPIB bus and test method thereof
CN203178431U (en) Full-automatic testing system for circuit boards
CN215219508U (en) A test fixture for machine controller
CN203522710U (en) Signal converter multifunctional detection apparatus
CN212258965U (en) Automatic test system of radio frequency module
CN114740332A (en) Automatic single board detection platform and method based on RT-thread
CN210835714U (en) Automatic test bench of response system based on GPIB bus
CN217385736U (en) MCU's ATE equipment and system thereof
CN203520072U (en) Signal converter assembly detection device
CN214253205U (en) Modular jig based on multi-module functional test
CN210427730U (en) Circuit board switching value input automatic checkout device
CN201556293U (en) Intelligent electric energy meter hand-held unit
CN204926066U (en) No computer control's general test platform
CN209728111U (en) A kind of single-board testing equipment
CN112763897A (en) Wearable medical product mainboard function testing device
CN111950963A (en) Electronic components intelligent management platform based on internet
CN104639039A (en) Small and medium-sized photovoltaic grid-connected inverter single-board automated test platform
CN116859894B (en) Automatic test method for helicopter internal electronic regulator based on multi-agent technology
CN103714320B (en) Raster control circuit for spraying robot figure sampling
CN220040622U (en) Detection tool for testing multiple external nixie tubes
CN220691052U (en) Device for rapidly detecting RTC function
CN217007505U (en) Special debugging table for airplane disc box
CN216083449U (en) Environmental parameter wisdom sensor based on STM32 operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 3rd Floor, Building 6, Guangqian Industrial Zone, Longzhu 3rd Road, Longzhu 3rd Road, Longguang Community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province, 518000

Applicant after: SHENZHEN FRIENDCOM TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 518000 6th floor, building 17, Guangqian Industrial Zone, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN FRIENDCOM TECHNOLOGY DEVELOPMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant