CN114740332B - Automatic single board detection platform based on RT-thread - Google Patents

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

Info

Publication number
CN114740332B
CN114740332B CN202210384634.6A CN202210384634A CN114740332B CN 114740332 B CN114740332 B CN 114740332B CN 202210384634 A CN202210384634 A CN 202210384634A CN 114740332 B CN114740332 B CN 114740332B
Authority
CN
China
Prior art keywords
detection
module
state
single board
interface
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.)
Active
Application number
CN202210384634.6A
Other languages
Chinese (zh)
Other versions
CN114740332A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses an automatic single board detection platform based on RT-thread, relates to the technical field of metering equipment, and solves the technical problems of low accuracy, poor universality and low efficiency of an electric energy meter single board detection method 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 through which test data of the single board to be tested are received and transmitted; and the detection platform issues a test instruction through the control module to carry out omnibearing detection on the single board to be detected. By adopting the platform design, the invention reserves rich interfaces for communication with the single boards to be tested, can adapt to different types of single boards to be tested for testing, realizes the simultaneous detection of a plurality of single boards to be tested, and improves the accuracy and efficiency of single board testing.

Description

Automatic single board detection platform 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 based on RT-thread.
Background
With the progress of technology, the production process and process inspection data of electric energy meter products are required to be accessed to a power grid platform for unified management and control. Wherein, the single board test is listed in the necessary flow. The electric energy meter mainly aims at the PCB single board to detect, after the PCB single board completes the mounting inspection process, the circuit, the function and the like on the PCB single board need to be detected in one time in all directions before the whole meter assembly detection process is executed, and the detection information conclusion of the PCB single board to be detected is synchronously uploaded to the production data server to be inquired and traced at any time.
The current mainstream single board test method mainly comprises the steps of reading data of a power supply test point through a gauge head, wherein the accuracy is extremely low; without a main control system, once the PCB single board is changed, the single board test fixture needs to be redesigned once, so that the universality is extremely poor; the single board test flow data is not accessed into a database, and is inconvenient to trace and inquire. Most of single board test flows in traditional table factories only need to test power supply test points, and the circuit welding is primarily judged to be fault-free, so that the next link can be flown, and the data can only be recorded and identified manually.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
the existing electric energy meter single board detection method has low precision and poor universality, and a main control system does not trace and search single board test flow data.
Disclosure of Invention
The invention aims to provide an automatic single board detection platform based on RT-thread, which solves the technical problems of low accuracy, poor universality and low efficiency of the single board detection method of the electric energy meter in the prior art. The preferred technical solutions of the technical solutions provided by the present invention can produce a plurality of technical effects described below.
In order to achieve the above purpose, the present invention provides the following technical solutions:
the invention provides an automatic single board detection platform based on RT-thread, which is used for executing an automatic single board detection method based on RT-thread; 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 through which test data of the single board to be tested are received and transmitted; the detection platform issues a test instruction through the control module to carry out omnibearing detection on the single board to be detected; the plurality of interfaces comprises 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; 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; the sampling module sends the detection point voltage to the detection module through the fourth interface;
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 connected with a differential signal generated by the detection module; the differential signal is connected to the 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; the AD conversion module transmits the digital voltage to the control module through an SPI interface;
the detection method is used for detecting the single board to be detected, and the single board to be detected is arranged in the 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 tests the single board to be tested after receiving the test instruction;
s30: after the test is completed, the upper computer equipment stores the test result;
in the step S20, the testing platform tests the board to be tested, including:
the detection platform is provided with state numbers for the test items of the single board to be detected, and the state numbers correspond to the test items one by one;
the test items comprise a pre-detection 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 the sub-items includes at least two of the status numbers; the detection platform sequentially executes each item according to the state number;
in the step S20, before issuing a 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;
the test item further comprises a result display sub-item and a power-off initialization sub-item;
the pre-detection sub-item comprises a reset state and a waiting state, the battery power consumption detection sub-item comprises an indication device ready state, a power consumption test ready state and a battery power consumption detection state, the communication detection sub-item comprises a switching ready state, a super capacitor detection state, a pulse detection state, a voltage detection state, a 485 detection state, an in-factory mode entering, an address setting state, a date and time setting state, a switching-off detection state and a switching-on detection state, the result processing sub-item comprises a graph self-detection hardware state, an initialization state and a result processing state, the result display sub-item comprises a display result state and a recovery initial state, and the power-off initialization sub-item comprises an ammeter power-off state and a recovery initial state.
Preferably, the chip model of the control module is AT32F403VGT6/SCM402F.
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 a reference voltage of 2.5V 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 in communication with the control module.
By implementing one of the technical schemes, the invention has the following advantages or beneficial effects:
by adopting the platform design, the invention reserves rich interfaces for communication with the single boards to be tested, can adapt to different types of single boards to be tested for testing, realizes the simultaneous detection of a plurality of single boards to be tested, has extremely high efficiency, and solves the problems of low accuracy, poor universality and low efficiency of the single board detection method of the electric energy meter in the prior art.
Drawings
For a clearer description of the technical solutions of embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art, in which:
FIG. 1 is a flow chart of a method according to a first embodiment of the invention;
FIG. 2 is a schematic 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 connection diagram of a detection module according to a second embodiment of the present invention;
FIG. 5 is a circuit diagram of a sampling module according to a second embodiment of the present invention;
FIG. 6 is a circuit diagram of a sampling module according to a second embodiment of the present invention;
FIG. 7 is a circuit diagram of a sampling module according to a second embodiment of the present invention;
FIG. 8 is a circuit diagram of a sampling module according to a second embodiment of the present invention in FIG. 4;
FIG. 9 is a circuit diagram of a sampling module according to a second embodiment of the present invention in FIG. 5;
FIG. 10 is a circuit diagram of a sampling module according to a second embodiment of the present invention;
FIG. 11 is a diagram showing pin connection relationships of four interfaces of a detection module according to a 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 invention;
fig. 13 is a circuit diagram of an RS485 communication port according to the second embodiment of the invention 2;
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 port according to a second embodiment of the invention;
fig. 16 is a circuit diagram of a relay module according to a second embodiment of the present 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 showing a pin connection relationship of an LCD 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 present invention;
fig. 21 is an AD conversion block diagram of the second embodiment of the present invention;
FIG. 22 is a voltage control amplifying block diagram of a second embodiment of the present invention;
FIG. 23 is a voltage reference block diagram of a second embodiment of the invention;
FIG. 24 is a circuit diagram of a power consumption module of FIG. 1 in accordance with a second embodiment of the present invention;
FIG. 25 is a circuit diagram of a power consumption module in accordance with a second embodiment of the present invention;
FIG. 26 is a circuit diagram of a power consumption module of FIG. 3 in accordance with a second embodiment of the present invention;
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 relationship diagram of an LED module according to the 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
For a better understanding of the objects, technical solutions and advantages of the present invention, reference should be made to the various exemplary embodiments described hereinafter with reference to the accompanying drawings, which form a part hereof, and in which are described various exemplary embodiments which may be employed in practicing the present invention. The same reference numbers in different drawings identify the same or similar elements unless expressly stated otherwise. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. It is to be understood that they are merely examples of processes, methods, apparatuses, etc. that are consistent with certain aspects of the present disclosure as detailed in the appended claims, other embodiments may be utilized, 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 should be understood that the terms "center," "longitudinal," "transverse," and the like are used in an orientation or positional relationship based on that shown in the drawings, and are merely for convenience in describing the present invention and to simplify the description, rather than to indicate or imply that the elements referred to must have a particular orientation, be constructed and operate in a particular orientation. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "plurality" means two or more. The terms "connected," "coupled" and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, integrally connected, mechanically connected, electrically connected, communicatively connected, directly connected, indirectly connected via intermediaries, or may be in communication with each other between two elements or in an interaction relationship between the two elements. The term "and/or" includes any and all combinations of one or more of the associated listed items. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In order to illustrate the technical solutions of the present invention, the following description is made by specific embodiments, only the portions related to the embodiments of the present invention are shown.
Embodiment one:
as shown in fig. 1, the invention provides an automatic single board detection method based on RT-thread, which is used for single board detection to be detected, and the single board detection to be detected is qualified and then is arranged in a single-phase table; the detection method adopts a detection platform with an RT-thread system as a kernel, and comprises the following steps: s10: inputting information of a single board 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 tests the single board to be tested after receiving the test instruction; s30: after the test is completed, the upper computer equipment stores the test result. Specifically, the information of the single board to be tested can be recorded by setting the identification code such as the bar code or the two-dimensional code on the single board to be tested, and the identification code is scanned by the code scanning equipment or is directly recorded, so that the information of the single board to be tested can be obtained from the identification code. The upper computer equipment is connected with the code scanning equipment, so that information of the single board to be detected can be input, and after the single board to be detected is detected, the detection result is conveniently bound, searched and traced.
Furthermore, the detection platform can be connected with a plurality of single boards to be detected, and the plurality of single boards to be detected can be detected simultaneously. Correspondingly, the upper computer equipment can display a test queue of the detection platform. When the to-be-tested single board queue accessed by the detection platform is full, the upper computer equipment issues a test instruction to the detection platform, and after the detection platform receives the instruction, the detection platform establishes connection with the to-be-tested single board through the control module, and sequentially performs project test on the to-be-tested single board. Different interfaces are arranged on the detection platform, and different interfaces can be accessed according to different adaptations of the type of the single board to be detected and detection can be performed. During detection, the upper computer device stores the detection result in real time and binds information with the single board to be detected, so that subsequent inquiry is facilitated.
Further, the upper computer equipment uploads the detection results of each item of the single board to be detected to a manufacturing execution (manufacturing execution system, abbreviated as MES) system, and the detection results are connected with workshop operation site control through the execution system. The MES system is provided with necessary interfaces to establish cooperation with manufacturers providing production field control facilities. The inquiry and the tracing of the detection result of the single board to be detected in the operation are more convenient.
In an optional implementation manner, in step S20, the testing platform tests the board to be tested, including: the detection platform is provided with state numbers for test items of the single board to be detected, and the state numbers correspond to the test items one by one; the test items comprise a pre-detection 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 status numbers; the detection platform sequentially executes each item 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 sub-item according to the state number, and after the implementation of one state number is completed, the state number is automatically added, i.e. the state numbers are sequentially executed. The test items include a result display sub-item and a power-off initialization sub-item in addition to 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-examination item is 0-1; the state number of the battery power consumption detection sub-item is 10-12; the state number of the communication detection sub-item is 18-27; the state 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 power-off initialization sub-items have state numbers of 110-111. When the detection platform performs project test on the single board to be tested, the detection platform can adaptively select to perform one or more items of sub-project targeted test on the single board to be tested. The detection platform can identify the state numbers and process different treatments according to the different state numbers. If not, sequentially executing the sub-items and the state numbers under the sub-items. It should be noted that, for a plurality of batches of boards to be tested, each time a batch of boards to be tested is tested, it is necessary to go through a power-off initialization sub-item.
Table 1: test item table
Status number Processing items Detailed description of the invention
0 Reset state All IO, LED, LCD are reset to the original state
1 Waiting state Originally used for outputting 3.6v battery analog voltage, is currently empty
10 Indicating device readiness LCD is set to run display and LED is set to run-time flicker
11 Power consumption test ready state Outputting the 3.6V battery analog voltage and waiting for 1s
12 Battery power consumption detection state 20 AD acquisitions, reduction of data before 200 times of amplification, and taking the average value of 20 times
18 Switching readiness Preparation for battery-supercapacitor switching
19 Super capacitor detection state 20 AD acquisitions, reduction of data before 200 times of amplification, and taking the average value of 20 times
20 Pulse detection state Ammeter power-on- & gtsecond pulse number and metering pulse number zero clearing
21 Voltage detection state After 3s, collecting each detection voltage value and converting the detection voltage value into an actual value
22 485 detection state Reading the communication address of the ammeter- & gt: the next state; failure: jump 90 state
23 Entering into the factory mode The ammeter can carry out switching-on and switching-off detection and set communication address only when entering an in-field mode
24 Setting address state Setting a designated communication address for an ammeter
25 Setting a date and time status The electric meter is provided with a designated date and time, and the opening and closing needs to be accessed with a time tag
26 Switch-off detection state The ammeter is operated to switch off and whether the ammeter is successful or not is detected
27 Closing detection state Closing the ammeterOperate and detect success or failure
88 Self-checking hardware state of graph Sending a message of self-checking hardware to the ammeter and waiting for a reply result
89 Initialization of Clearing freezing data generated in the testing process of the ammeter and restoring the factory state
90 Result processing state Judging the result stored in the detection state
100 Displaying the result state LCD display and LED blinking status setting based on inspection results
101 Restoring the initial state The state number is restored to 0, and according to the state setting of the travel switch, the travel switch is not needed
110 Ammeter power-off state Ammeter outage
111 Restoring the initial state The state number returns to 0 after 2s, and waits for the next test
In an optional embodiment, before issuing the test instruction to the test platform in step S20, 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 single board to be tested or a circuit connected with the single board to be tested is arranged on the testing platform, and when the testing platform is not connected with a power supply, the single board to be tested is in a state to be tested. The detection platform is connected with a power supply and establishes a connection relation with the upper computer equipment through an isolated RS232 interface. The upper computer equipment starts the detection platform and issues an initialization instruction, and at the moment, the single board to be detected enters a detection state 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 with the detection platform and is electrified, the optocouplers U9 and U11 are turned on, the sent data is input into the SP3232EEY chip through the optocoupler U11, and the electrical signals in the module are converted into TTL signals 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.
Embodiment two:
as shown in fig. 2-4, the invention also provides an automatic single board detection platform based on 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 through which test data of the single board to be tested are received and transmitted; the detection platform issues a test instruction through the control module, and the single board to be detected is detected in all directions. Specifically, the RT-Thread system is a technical platform integrating a real-time operating system (RTOS) kernel, middleware components and a developer community, and is an Internet of things operating system with complete and abundant components, high scalability, simple development, ultra-low power consumption and high safety. The RT-Thread system is used as a detection platform of the kernel, so that detection equipment of other products can be easily modified and adjusted, 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 accessed to the detection platform through the detection module. The detection platform operates in cooperation with the state number, and sends an electric signal to each module through the control module to realize project test of the single board to be tested. The single board to be tested 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 tested is detected, the battery power consumption and the capacitor power consumption of the single board to be tested can be evaluated, and only the single board to be tested with qualified detection can be delivered for use. The detection platform is provided with an operation lamp and a status lamp, when the detection platform detects the single board to be detected, the unqualified single board to be detected is detected, the operation lamp and the status lamp of the detection platform can flash to prompt a user, and unqualified word patterns can be displayed on the LCD display screen.
The detection module is provided with rich interfaces, so that on one hand, the detection module can adapt to single boards to be detected of different models, and on the other hand, communication can be established with different modules. According to the embodiment, by adopting a platformization design, abundant interfaces are reserved for communication with the single boards to be tested, and the single boards to be tested of different models can be adapted for testing, so that the simultaneous detection of a plurality of single boards to be tested is realized, and the problems of low accuracy, poor universality and low efficiency of the existing single board detection method of the electric energy meter are solved.
As an alternative embodiment, the control module has a chip model number of AT32F403VGT6/SCM402F. Specifically, the detection platform is provided with rich interfaces for adapting to different types of single boards to be detected, and for matching the functions of realizing a plurality of interfaces, the control module needs chips with multiple pin numbers and rich functions to maintain stable detection of the platform on the single boards. The AT32F403 family has built-in high speed memory (up to 1024K bytes of memory and 96+128K bytes of SRAM) and can use external memory (up to 16 Mbytes of SPI flash), rich enhanced I/O ports and peripherals coupled to the two 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 to be I2S interfaces), 2 SDIO interfaces, 5 USART interfaces, 1 USB interface and 1 CAN interface, CAN satisfy the requirement of testing platform. The chip AT32F403VGT6/SCM402F is a preferred scheme of the embodiment of the invention.
As an alternative embodiment, 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 a third interface; j8 is the fourth interface. The first interface is connected with a second USART port of the control module, and pins 86-87 of the control module transmit and receive electric signals to the detection module through the first interface, so that a start loading program of a system memory in the control module can be started. The second interface is a main communication port of the detection module and the control module, and can be used for RS485 communication. As shown in fig. 12 and 13, the second interface is connected to the third USART port of the control module through the HD588EESA chip. The control module communicates with the detection module through the HD588EESA chip. The control module inputs low level to the base electrode of PNP triode Q1, and Q1 switches on at this moment, and the 55 th pin of control module establishes the connection with HD588EESA chip. The DE pin of the HD588EESA chip is connected to the high level of the Q1 collector, the receiving and transmitting port of the HD588EESA chip is controlled to normally communicate, 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 485A and 485B pins of the HD588EESA chip. The HD588EESA chip is a half-duplex communication high-speed transceiver for RS-485/RS-422 communication, and comprises a driver and a receiver, so that error-free data transmission can be realized.
Furthermore, an infrared interface is also arranged on the detection platform. Infrared communication can be performed through an infrared adapter plate between the detection module and the control module. One end of the infrared adapter plate is subjected to 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 implementation manner, 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 sampling signals to the sampling module, and the sampling module receives the sampling signals and samples voltages of a plurality of detection points; the sampling module sends the detection point voltage to the detection module through a fourth interface. Specifically, as shown in fig. 5-10, the control module inputs a high level through sampling control pins such as pins 2, 41, 62, 63, 64, 65, etc., so that an NPN triode in the sampling module is turned on. The model of the triode is LMBT2222ALT1G. At this time, the collectors of the triodes are respectively supplied by pins 15, 16, 33, 36, 35 and 34 of the control module. By varying the sampling control pin current, the collector current can be amplified. The sampling module performs AD sampling on the 6 voltage detection point data of the single board to be tested shown in fig. 5-10 through the fourth interface, and transmits the data to the control module for integrated analysis through the detection module. The sampling module performs AD sampling for 20 times on each voltage detection point, then takes an average value, and transmits the average value to the control module, so that the performance of the single board to be detected can be judged, and further the power consumption of the single board to be detected is detected.
As an optional implementation manner, 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 connected with a differential signal generated by the detection module; the differential signal is connected into an operational amplifier amplifying 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; the AD conversion module transmits the digital voltage to the control module through the SPI interface. Specifically, the power consumption module is connected with the fourth interface of the detection module. 24-26, the control module inputs an electrical signal to the power consumption module through pin 59 to activate the SGM2036-ADJYN5G chip to output. At this time, the 60 th pin of the control module inputs high level to the base electrode of the 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 normally opened and closed. The SGM2036-ADJYN5G chip outputs a BAT+ signal and forms a loop with the BAT-signal output by the 1 st pin of the SPDT relay. As shown in fig. 4, the detection module generates a differential signal ip+ after passing through the resistors R83-R86, and the differential signal is connected to the third interface and connected to the MCP6V02-E operational amplifier circuit of the power consumption module through the fourth interface. The output AIN +, AIN-signal of the operational amplifier 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 of the 54 th pin of the control module, and transmits the data value of ain+ and AIN-signals to the control module through the 53 th pin. And sampling for 20 times according to the data value, then taking an average value, and reversely pushing the voltage value into a current value, so that the battery power consumption 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, as shown IN fig. 25, the 2 nd pin of the SPDT relay is normally closed, and the cap_in pin is connected with the fourth interface of the detection module. The capacitor power consumption can be calculated by sampling the voltage detection point after the capacitor is discharged for 20 times and then taking an average value.
As an optional implementation manner, the detection platform further comprises a voltage control amplifying module and a voltage reference module; the voltage control amplifying 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 reference voltage of 2.5V for the AD conversion module. Specifically, as shown in fig. 22, the voltage control amplification module includes a PS78H05KA chip, amplifies the 18V dc voltage to the 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 MCP1501-25E chips, and the MCP1501-25E chips serve as voltage reference chips to provide the AD conversion module with high-precision 2.5V reference voltage, thereby ensuring high-precision conversion of data in the AD conversion module.
As an optional implementation manner, 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 in communication with the control module. Specifically, as shown in fig. 17, the board to be tested generates a power pulse and a clock pulse during communication. The 37 th pin of the control module is connected with the input of clock pulse; the 38 th pin of the control module is connected with 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 pulse metering output. And when the pulse measurement is qualified, a qualified word is 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 the 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 single board 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 or a side of the LCD display screen.
Further, 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 with the control module through pins 29-31 of the control module. Including trip notification, restart, and emergency notification buttons. Alternatively, the detection can be initiated and terminated by the control module via software or manual keys. As shown in fig. 28, an operation lamp and a status lamp are arranged on the detection platform, when the detection platform detects a board to be detected, the detection platform detects an unqualified board to be detected, the operation lamp and the status lamp of the detection platform flash to prompt a user, and an unqualified word can appear 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.
Further, the detection platform further comprises a relay module. Specifically, as shown in fig. 16, the relay module is connected with 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 signal output of the single board to be tested. The single board to be tested is connected and communicated with the relay module through a 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 can be conveniently subjected to opening and closing test.
As an alternative embodiment, as shown in fig. 4, relay RY1 on the detection module is electrically connected to pin 57 of the control module. The control module sends an electric signal through the 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 connected with the detection module is connected with the linear voltage stabilizer SGM2203 chip, the rectifier bridge MB10S chip, the MP2457 chip and the XC6214P332PR chip through the coupling circuit. Through the chip, the detection module can provide different currents for each module in the detection platform.
The embodiment is a specific example only and does not suggest one such implementation of the invention.
The foregoing is only illustrative of the preferred embodiments of the invention, and it will be appreciated by those skilled in the art that various changes in the features and embodiments may be made and equivalents may be substituted 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 (4)

1. An automatic single board detection platform based on RT-thread is characterized by being used for executing an automatic single board detection method based on RT-thread; 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 through which test data of the single board to be tested are received and transmitted; the detection platform issues a test instruction through the control module to carry out omnibearing detection on the single board to be detected; the plurality of interfaces comprises 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; 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; the sampling module sends the detection point voltage to the detection module through the fourth interface;
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 connected with a differential signal generated by the detection module; the differential signal is connected to the 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; the AD conversion module transmits the digital voltage to the control module through an SPI interface;
the detection method is used for detecting the single board to be detected, and the single board to be detected is arranged in the 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 tests the single board to be tested after receiving the test instruction;
s30: after the test is completed, the upper computer equipment stores the test result;
in the step S20, the testing platform tests the board to be tested, including:
the detection platform is provided with state numbers for the test items of the single board to be detected, and the state numbers correspond to the test items one by one;
the test items comprise a pre-detection 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 the sub-items includes at least two of the status numbers; the detection platform sequentially executes each item according to the state number;
in the step S20, before issuing a 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;
the test item further comprises a result display sub-item and a power-off initialization sub-item;
the pre-detection sub-item comprises a reset state and a waiting state, the battery power consumption detection sub-item comprises an indication device ready state, a power consumption test ready state and a battery power consumption detection state, the communication detection sub-item comprises a switching ready state, a super capacitor detection state, a pulse detection state, a voltage detection state, a 485 detection state, an in-factory mode entering, an address setting state, a date and time setting state, a switching-off detection state and a switching-on detection state, the result processing sub-item comprises a graph self-detection hardware state, an initialization state and a result processing state, the result display sub-item comprises a display result state and a recovery initial state, and the power-off initialization sub-item comprises an ammeter power-off state and a recovery initial state.
2. The automated single board detection platform based on RT-thread according to claim 1, wherein the chip model of the control module is AT32F403VGT6/SCM402F.
3. The automated single board detection platform based on RT-thread according to claim 1, wherein the detection platform further comprises a voltage control amplifying 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 reference voltage of 2.5V for the AD conversion module.
4. An automated single board detection platform based on RT-thread according to claim 3, wherein said 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 in communication with the control module.
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 CN114740332A (en) 2022-07-12
CN114740332B true 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 (15)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112305398A (en) * 2019-08-01 2021-02-02 富港电子(东莞)有限公司 Automatic circuit board testing system and method thereof

Patent Citations (15)

* 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
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的智能测试系统开发.计算机测量与控制.2009,(第8期),第1486-1488页. *

Also Published As

Publication number Publication date
CN114740332A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN106059582B (en) A kind of Testing of mixed signal chipset system and method
CN205427131U (en) Regimen data acquisition module circuit board automatic test equipment
CN210108419U (en) Equipment and system for automatic comprehensive test and aging of laser
CN109521357A (en) A kind of single board testing system integrating program burn writing, circuit functionality test
CN103149527A (en) Printed circuit board (PCB) detecting device and corresponding method
CN111983546B (en) Ammeter detection configuration device and method
CN103149495A (en) Comprehensive test instrument for testing multi-path conducting wire\connector
CN200997633Y (en) Automatic testing system based on graphic testing platform
CN107659336B (en) Function test method of power line carrier module
CN203522710U (en) Signal converter multifunctional detection apparatus
CN215219508U (en) A test fixture for machine controller
CN114740332B (en) Automatic single board detection platform based on RT-thread
CN112034280B (en) Portable platform door system multiplex detection switch testing arrangement
CN109752641A (en) A kind of method, apparatus, equipment and the storage medium of batch testing Devices to test
CN106546936B (en) Virtual detection system and detection method for detecting energy efficiency monitoring equipment
CN202720285U (en) Detection system of electric power terminal
CN111458634A (en) Handheld power equipment relay on-line tester and testing method
CN104750101B (en) A kind of airborne inquisitor digital signal processing module detection method
CN2884656Y (en) Simulator for testing power loading management terminal communication
CN201556293U (en) Intelligent electric energy meter hand-held unit
CN201408246Y (en) Infrared receiver module automatic test instrument
CN203520072U (en) Signal converter assembly detection device
CN214201621U (en) New energy automobile fills function check out test set that charges fast and slowly
CN104678349A (en) Interface detection device for electric energy meter and system of interface detection device
CN203981871U (en) Single-phase intelligent electric energy meter module testing circuit

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