Burning detection method, device and equipment for core board and medium
Patent Information
- Application Number
- CN202311475951.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-11-07
AI Technical Summary
[0004]本发明实施例提供了一种用于核心板的烧录检测方法、装置、设备及介质,旨在解决现有技术方法中用于核心板的检测方法所存在的无法实现对核心板的烧录进行全流程检测的问题
[0018] This invention provides a method, apparatus, device, and medium for core board programming and testing. The method includes: receiving monitoring configuration parameters and reading programming monitoring data of each core board from the corresponding port of the hub; determining whether a short circuit has occurred on each core board; if a short circuit has occurred, generating a disconnect command and sending it to an overcurrent control switch to disconnect the power connection of the core board; if programming is complete and no short circuit has occurred, performing anomaly detection on the monitoring data of each stage of each core board according to the stage detection rules in the monitoring configuration parameters, and saving the detected anomaly detection information of the core board. The above control method reads the programming monitoring data of the core board through the corresponding connection port and determines in real time whether a short circuit has occurred on the core board, detects whether anomalies occur in the monitoring data of each stage of the core board, and generates and saves corresponding anomaly detection information, thereby enabling full-process testing of the core board programming and improving the completeness of the testing of the core board programming process.
Smart Images

Figure CN117453483B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer control technology, and in particular to a method, apparatus, device, and medium for programming and testing core boards. Background Technology
[0002] In the power industry, terminal products such as concentrators, dedicated transformers, and energy controllers require core boards. After the core board hardware is manufactured, the software program needs to be burned into it. Traditional methods typically involve connecting a debugging serial port to monitor the printing information when an anomaly occurs during the burning process. Technical maintenance personnel then rely on their experience to interpret the printing information, replace components on the core board, and re-burn the program. This method cannot accurately and efficiently monitor the core board burning process and fails to meet actual production needs.
[0003] Existing patent technology discloses a testing device and method for detecting the stability of a core board. The testing device includes a power input interface for connecting a power supply to provide power to each core board; a voltage detection circuit for detecting the voltage value of the connected power supply; several current detection circuits, each connected to the input current of a core board, for measuring the current value of each core board after startup; and several serial data interfaces, each connected to a core board, for acquiring the startup process of the core board. This method detects the startup process of the core board by collecting the operating current of the core board during startup and determining whether the current is within its respective standard value range. However, this method cannot perform real-time detection of the core board's programming process, and cannot achieve full-process detection of the core board's programming. Therefore, the existing core board testing methods have the problem of not being able to achieve full-process detection of the core board's programming. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for programming and testing core boards, aiming to solve the problem that existing core board testing methods cannot achieve full-process testing of core board programming.
[0005] In a first aspect, embodiments of the present invention provide a method for programming and testing a core board. This method is applied to a monitoring terminal of a programming and testing device, which further includes a hub and an overcurrent switch control module. The monitoring terminal and each core board establish a communication connection with the hub via a converter. A programming control terminal establishes a communication connection with the hub, and the hub also establishes a programming transmission connection with each of the core boards. The overcurrent switch control module is electrically connected to both the monitoring terminal and each of the core boards. The method includes:
[0006] Upon receiving monitoring configuration parameters from the programming control terminal, the programming monitoring data corresponding to each core board is read from the port corresponding to the hub according to the monitoring configuration parameters.
[0007] The system performs real-time detection of short circuits on each core board based on the recorded monitoring data.
[0008] If a short circuit is detected in any of the core boards, a disconnect command is generated and sent to the overcurrent switch control module, so that the overcurrent switch control module disconnects the power connection of the core board according to the disconnect command;
[0009] If the programming is completed and no short circuit is detected in any of the core boards, the programming monitoring data of each stage in the programming monitoring information of each core board is subjected to anomaly detection according to the stage detection rules in the monitoring configuration parameters, so as to determine whether the programming monitoring information of each core board contains abnormal monitoring data.
[0010] Based on the abnormal monitoring data of the core board obtained from the detection, corresponding abnormal detection information is generated and saved.
[0011] Secondly, embodiments of the present invention also provide a programming and testing device for a core board, wherein the device is configured in the monitoring terminal of a programming and testing equipment, the programming and testing equipment further includes a hub and an overcurrent switch control module; the monitoring terminal and each core board establish a communication connection with the hub through a converter, the programming control terminal establishes a communication connection with the hub, and the hub also establishes a programming transmission connection with each of the core boards; the overcurrent switch control module is electrically connected to the monitoring terminal and each of the core boards respectively, and the device is used to execute the programming and testing method for a core board as described in the first aspect above.
[0012] Thirdly, embodiments of the present invention also provide a programming and testing device for a core board, wherein the programming and testing device includes a monitoring terminal, a hub, and an overcurrent switch control module. The monitoring terminal and each core board establish a communication connection with the hub through a converter. The programming control terminal establishes a communication connection with the hub through an isolator. The hub also establishes a programming transmission connection with each of the core boards. The overcurrent switch control module is electrically connected to the monitoring terminal and each of the core boards respectively.
[0013] The first output terminal of the power module is electrically connected to the first power connection terminal of the monitoring terminal and the power connection terminal of the overcurrent switch control module, respectively; the second output terminal of the power module is electrically connected to the second power connection terminal of the monitoring terminal.
[0014] The monitoring terminal includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0015] Memory, used to store computer programs;
[0016] When the processor executes a program stored in memory, it implements the programming and detection method for the core board as described in the first aspect above.
[0017] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the programming and detection method for a core board as described in the first aspect above.
[0018] This invention provides a method, apparatus, device, and medium for core board programming and testing. The method includes: receiving monitoring configuration parameters and reading programming monitoring data of each core board from the corresponding port of the hub; determining whether a short circuit has occurred on each core board; if a short circuit has occurred, generating a disconnect command and sending it to an overcurrent control switch to disconnect the power connection of the core board; if programming is complete and no short circuit has occurred, performing anomaly detection on the monitoring data of each stage of each core board according to the stage detection rules in the monitoring configuration parameters, and saving the detected anomaly detection information of the core board. The above control method reads the programming monitoring data of the core board through the corresponding connection port and determines in real time whether a short circuit has occurred on the core board, detects whether anomalies occur in the monitoring data of each stage of the core board, and generates and saves corresponding anomaly detection information, thereby enabling full-process testing of the core board programming and improving the completeness of the testing of the core board programming process. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart of a method for programming and testing a core board according to an embodiment of the present invention.
[0021] Figure 2 A schematic block diagram of a core board programming and testing device provided in an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of the circuit structure of a core board programming and testing device provided in an embodiment of the present invention;
[0023] Figure 4 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0026] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0027] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0028] Please see Figure 1 and Figure 3As shown in the figure, an embodiment of this invention provides a method for programming and testing core boards. This method is applied to a monitoring terminal 101 of a programming and testing device 10. The programming and testing device 10 also includes a hub 102 and an overcurrent switch control module 103. The monitoring terminal 101 and each core board 20 establish a communication connection with the hub 102 via a converter 104. A programming control terminal 30 establishes a communication connection with the hub 102, and the hub 102 also establishes a programming transmission connection with each core board 20. The overcurrent switch control module 103 is electrically connected to the monitoring terminal 101 and each core board 20. The programming control terminal 30 can be a desktop computer, laptop computer, tablet computer, or other terminal device. The programming control terminal 30 can also consist of a terminal device and a server, with the terminal device establishing communication connections with both the hub 102 and the server. The programming control terminal 30 programs the application to the core board 20 through the programming transmission connection established with the core board 20. The core board 20 is a PCB board equipped with electronic components. The converter is used to convert the interface. The monitoring terminal 101 is used to acquire the programming monitoring data of the core board 20 and perform real-time detection. The monitoring terminal 101 can be a monitoring device with display function. The monitoring terminal 101 can display the programming monitoring data of each core board in real time, and the operator can simultaneously check whether there are any abnormalities in the programming monitoring data of each core board 20. The monitoring terminal 101 can be a desktop computer, laptop computer, tablet computer, or other devices. The overcurrent switch control module 103 is a switching component used to control the on and off of the circuit. When the overcurrent switch control module 103 is on, it can connect the core board 20 to the power supply. The monitoring terminal 101 can issue a disconnect command to control the switch control module 104 to disconnect, at which time the power connection of the core board 20 is disconnected. Figure 3 The illustration only shows an application scenario where a core board 20 is connected to the programming and testing device 10. In actual production, multiple core boards 20 can be connected through multiple ports respectively, and the programming process of multiple core boards 20 can be monitored simultaneously.
[0029] like Figure 1 As shown, the method includes steps S110 to S150.
[0030] S110. Receive monitoring configuration parameters from the programming control terminal, and read programming monitoring data corresponding to each core board from the port corresponding to the hub according to the monitoring configuration parameters.
[0031] The system receives monitoring configuration parameters from the programming control terminal and reads the programming monitoring data corresponding to each core board from the corresponding port of the hub according to these parameters. Operators can customize various parameters through the programming control terminal. After setting the parameters, the monitoring configuration parameters can be sent to the monitoring terminal, which will then receive them. These monitoring configuration parameters may include monitoring serial port information, debugging serial port information, voltage threshold, current threshold, programming progress duration, core board identifier, etc. Next, multiple core boards are placed into the programming fixture, and the core boards are connected to the corresponding ports of the converter and the programming control terminal. Once the core boards are powered on and the software programming begins, the monitoring terminal can read the programming monitoring data corresponding to each core board from the corresponding port of the hub according to the monitoring configuration parameters.
[0032] In a specific embodiment, step S110 includes the following steps: establishing a monitoring transmission channel corresponding to each core board according to the monitoring serial port information and debugging serial port information configured in the monitoring configuration parameters; reading the corresponding programming monitoring data from each monitoring transmission channel according to the monitoring items configured in the monitoring configuration parameters; determining whether the programming duration is greater than the programming progress duration in the monitoring configuration parameters based on the start time of reading the programming monitoring data; if the programming duration is greater than the programming progress duration, then terminating the reading of the programming monitoring data.
[0033] First, monitoring transmission channels corresponding to each core board can be established based on the monitoring serial port information and debugging serial port information configured in the monitoring configuration parameters. The monitoring serial port information can be a UART (Universal Asynchronous Receiver-Transmitter) voltage and current monitoring serial port, and the debugging serial port information can be a UART debugging serial port. A corresponding transmission channel can be established between the monitoring terminal and the hub using the monitoring serial port information, and between the core board and the hub using the debugging serial port information. The hub bridges the two transmission channels to establish the corresponding monitoring transmission channel. Thus, each core board can have one corresponding monitoring transmission channel established, and the programming process of one core board can be monitored through a single monitoring transmission channel. Furthermore, the monitoring terminal can obtain the basic identifier of each core board through the established monitoring transmission channel. Matching the obtained basic identifier of each core board with the core board identifiers in the pre-received monitoring configuration parameters determines the core board to which the established monitoring transmission channel belongs. The core board identifier is also the unique identifier (UID) corresponding to the main control chip in the core board.
[0034] The monitoring configuration parameters also include monitoring items. These items allow for the reading of corresponding programming monitoring data from each monitoring transmission channel, resulting in a set of programming monitoring data for each core board. For example, if the monitoring items are current and voltage monitoring, programming monitoring data containing both current and voltage monitoring values can be obtained. When the first set of programming monitoring data for the core board is obtained, the start time of reading the data is recorded. The time difference between the start time and the current time is determined as the programming duration. It is then determined whether the programming duration is greater than the programming progress duration in the monitoring configuration parameters. If the programming duration is greater than the programming progress duration, the programming test of the core board is complete, and reading the programming monitoring data can be stopped. If the programming duration is not greater than the programming progress duration, the programming test of the core board is not complete, and the programming monitoring data of the core board needs to be read repeatedly.
[0035] Furthermore, the monitoring terminal reads the programming monitoring data of each core board in real time. For example, the reading interval can be set to 400-500ms, meaning the monitoring terminal reads the programming monitoring data sequentially every 400-500ms. After obtaining the programming monitoring data of the core boards, the monitoring terminal can simultaneously remotely save all the obtained programming monitoring data to avoid data loss. For example, all programming monitoring data can be synchronously uploaded to the cloud for remote storage, and the programming monitoring data corresponding to each core board can be distinguished by the core board identifier. The time for each programming stage is dynamically generated based on the hardware differences of the core boards, and the monitoring data acquisition interval is determined by frequency. Therefore, the number of monitoring data in each stage is not fixed, but it can be guaranteed to be greater than or equal to a fixed number.
[0036] S120. Real-time detection is performed to check whether a short circuit has occurred on each core board based on the burning and monitoring data.
[0037] The system performs real-time detection of short circuits on each core board based on the programming monitoring data. The monitoring configuration parameters include current and voltage thresholds. Upon acquiring programming monitoring data, the system performs real-time detection of short circuits on each core board; that is, for each set of programming monitoring data acquired for a core board, a short circuit detection is performed on that core board.
[0038] In a specific embodiment, step S120 includes the following steps: determining whether the current monitoring value in the core board's programming monitoring data is not greater than the current threshold and whether the voltage monitoring value is not greater than the voltage threshold, so as to detect whether each core board has not experienced a short circuit.
[0039] The monitoring configuration parameters include current and voltage thresholds, which can be used to determine whether a short circuit has occurred on the core board. Specifically, the system can simultaneously check whether the monitored current value of the core board is greater than the current threshold and whether the monitored voltage value is greater than the voltage threshold. If either the current or voltage threshold is greater, a short circuit is detected on the core board; if neither the current nor the voltage threshold is greater, no short circuit is detected. In other words, only when both the monitored current and voltage values are not greater than the current threshold are the core board determined not to be short-circuited.
[0040] S130. If a short circuit is detected in any of the core boards, a disconnect command is generated and sent to the overcurrent switch control module so that the overcurrent switch control module disconnects the power supply connection of the core board according to the disconnect command.
[0041] If a short circuit is detected in any of the core boards, a disconnect command is generated and sent to the overcurrent switch control module, causing the overcurrent switch control module to disconnect the power connection of the core board according to the disconnect command. If a short circuit is detected in any core board, a corresponding disconnect command is generated and sent to the overcurrent switch control module, which then disconnects the voltage connection of the core board according to the disconnect command. In practical applications, when a short circuit occurs in a core board, the overcurrent switch control module can disconnect the power connection of the short-circuited core board, thus unaffecting other core boards that are not short-circuited, and terminating the programming process of the short-circuited core board. In other embodiments, when a short circuit occurs in a core board, the overcurrent switch control module can disconnect the power connection of all core boards, ensuring safety by disconnecting the power connection of all core boards, and terminating the programming process of all core boards.
[0042] S140. If the burning process is completed and no short circuit is detected in any of the core boards, perform anomaly detection on the burning monitoring data of each stage in the burning monitoring information of each core board according to the stage detection rules in the monitoring configuration parameters, so as to determine whether the burning monitoring information of each core board contains abnormal monitoring data.
[0043] If the programming is completed and no short circuit is detected in any of the core boards, anomaly detection is performed on the programming monitoring data of each stage in the programming monitoring information of each core board according to the stage detection rules in the monitoring configuration parameters to determine whether the programming monitoring information of each core board contains abnormal monitoring data. The monitoring configuration parameters also include stage detection rules. If programming is completed and no short circuit is detected in any core board, the programming monitoring information composed of the programming monitoring data of each core board throughout the entire programming process can be completely obtained. Anomaly detection can be performed on the complete programming monitoring information of each core board through stage detection rules. That is, anomaly detection is performed on the programming monitoring data of each stage in the programming monitoring information of the core board separately. The anomaly detection determines whether the programming monitoring information of the core board contains abnormal programming monitoring data. If abnormal programming monitoring data is found, the abnormal programming monitoring data is treated as abnormal monitoring data.
[0044] In a specific embodiment, step S140 includes the following steps: recording the core board's burning monitoring information in segments according to the data volume of each stage in the burning progress duration, so as to obtain the monitoring data corresponding to each stage; and determining whether the monitoring data of each stage is within the corresponding valid value range according to the valid value range of each stage in the stage detection rules, so as to perform anomaly detection on the monitoring data of each stage.
[0045] Specifically, the burning progress time includes multiple stages of data. Therefore, it can be recorded in segments according to the stage data volume and the multiple sets of burning monitoring data contained in each burning monitoring information. Each burning monitoring data corresponds to a collection time. The recorded burning monitoring data can be arranged sequentially according to the collection time of the burning monitoring data. Then, according to the data volume of each stage, the burning monitoring data corresponding to the stage data volume of each stage can be extracted sequentially and recorded and stored in segments. This allows the multiple burning monitoring data in the burning monitoring information to be split and the monitoring data corresponding to each stage in each burning monitoring information to be obtained.
[0046] The stage detection rules include the valid numerical range for each stage. For example, in stage 1, the valid numerical range for voltage is [v1, v2], and the valid numerical range for current is [i1, i2]. In stage 2, the valid numerical range for voltage is [v3, v4], and the valid numerical range for current is [i3, i4]. The monitoring data for each stage can be matched against the corresponding valid numerical range in the stage detection rules. This means determining whether multiple monitoring data points for the same stage are all within the valid numerical range of the corresponding stage, thus enabling anomaly detection for the monitoring data in each stage. If the monitoring data is not within the valid numerical range of the corresponding stage, then that monitoring data is considered abnormal monitoring data obtained through anomaly detection.
[0047] S150. Generate and save the corresponding anomaly detection information based on the anomaly monitoring data of the core board obtained from the detection.
[0048] Based on the anomaly monitoring data obtained from the core board, corresponding anomaly detection information is generated and saved. If the programming monitoring information of a certain core board contains anomaly monitoring data, then corresponding anomaly monitoring information is generated based on the anomaly monitoring data. Specifically, each anomaly monitoring data of the core board and the stage to which each anomaly monitoring data belongs can be combined to generate anomaly detection information. The anomaly detection information includes the anomaly monitoring data obtained from the anomaly detection and the stage to which each anomaly monitoring data belongs. The stage to which each anomaly monitoring data belongs is also the anomaly stage that occurred during the programming process. The obtained anomaly detection information of the core board is saved.
[0049] In a specific embodiment, after step S150, the following steps are also included: designating the core board corresponding to the anomaly detection information as the abnormal core board, and obtaining hardware detection information from the monitoring transmission channel corresponding to the abnormal core board; determining whether the abnormal core board has a hardware fault based on the hardware detection information; if the abnormal core board has a hardware fault, adding a fault tag to the anomaly detection information of the abnormal core board; if the abnormal core board does not have a hardware fault, re-programming the abnormal core board and returning to execute the step of reading the programming monitoring data corresponding to each core board from the port corresponding to the hub according to the monitoring configuration parameters.
[0050] Furthermore, if anomaly detection information of the core board is obtained, the core board corresponding to the anomaly detection information is designated as the abnormal core board, and the corresponding hardware detection information is obtained from the monitoring transmission channel corresponding to the abnormal core board. The hardware detection information is the detection information obtained to check whether the hardware structure of the core board is normal. The hardware detection information can be used to determine whether the abnormal core board has a hardware fault. Specifically, it can be determined whether each detection value in the hardware detection information is within the preset detection range, thereby determining whether the core board has a hardware fault. If all detection values are within the detection range, it is determined that the core board does not have a hardware fault; otherwise, it is determined that the core board has a hardware fault.
[0051] If the core board does not have a hardware fault, it indicates that the abnormality during the current programming process was caused by the software program. The abnormal core board can be programmed again, and the process returns to step S110, which is the process of reprogramming the core board for testing. If the core board has a hardware fault, a fault tag can be added to the abnormality detection information of the core board. The abnormal core board with the fault tag can then be sent to the repair process for hardware repair.
[0052] The core board programming detection method disclosed in the above embodiments includes: receiving monitoring configuration parameters and reading programming monitoring data of each core board from the corresponding port of the hub; determining whether a short circuit has occurred in each core board; if a short circuit has occurred, generating a disconnect command and sending it to the overcurrent control switch to disconnect the power connection of the core board; if programming is completed and no short circuit has occurred, performing anomaly detection on the monitoring data of each stage of each core board according to the stage detection rules in the monitoring configuration parameters, and saving the detected anomaly detection information of the core board. The above control method reads the programming monitoring data of the core board through the corresponding connection port and determines in real time whether a short circuit has occurred in the core board, detects whether anomalies occur in the monitoring data of each stage of the core board, and generates and saves corresponding anomaly detection information, thereby enabling full-process detection of the core board programming and improving the completeness of the detection of the core board programming process.
[0053] This invention also provides a programming and testing device for a core board. This device can be configured in the monitoring terminal of a programming and testing equipment. The programming and testing equipment further includes a hub and an overcurrent switch control module. The monitoring terminal and each core board establish a communication connection with the hub via a converter. The programming control terminal also establishes a communication connection with the hub. The hub further establishes a programming transmission connection with each core board. The overcurrent switch control module is electrically connected to both the monitoring terminal and each core board. This programming and testing device for the core board is used to execute any embodiment of the aforementioned programming and testing method for the core board. Specifically, please refer to... Figure 2 , Figure 2 This is a schematic block diagram of a core board programming and testing device provided in an embodiment of the present invention.
[0054] like Figure 2 As shown, the programming and testing device 100 for the core board includes a programming monitoring data reading unit 110, a short circuit detection unit 120, a disconnection command sending unit 130, an anomaly detection unit 140, and an anomaly detection information storage unit 150.
[0055] The programming monitoring data reading unit 110 is used to receive monitoring configuration parameters from the programming control terminal and read programming monitoring data corresponding to each core board from the port corresponding to the hub according to the monitoring configuration parameters.
[0056] The short circuit detection unit 120 is used to detect in real time whether a short circuit has occurred on each core board based on the recorded monitoring data.
[0057] The disconnect command sending unit 130 is used to generate a disconnect command and send it to the overcurrent switch control module if a short circuit is detected in any of the core boards, so that the overcurrent switch control module disconnects the power connection of the core board according to the disconnect command.
[0058] An anomaly detection unit 140 is used to perform anomaly detection on the burning monitoring data of each stage in the burning monitoring information of each core board according to the stage detection rules in the monitoring configuration parameters if the burning is completed and no short circuit is detected in any of the core boards, so as to determine whether the burning monitoring information of each core board contains abnormal monitoring data.
[0059] The anomaly detection information storage unit 150 is used to generate and store corresponding anomaly detection information based on the anomaly monitoring data of the core board obtained from the detection.
[0060] The core board programming and testing device provided in this embodiment of the invention applies the above-described core board programming and testing method. It receives monitoring configuration parameters and reads programming monitoring data from the corresponding ports of the hub for each core board. It determines whether a short circuit has occurred on any core board. If a short circuit occurs, a disconnect command is generated and sent to the overcurrent control switch to disconnect the power connection of the core board. If programming is complete and no short circuit has occurred, anomaly detection is performed on the monitoring data of each stage of each core board according to the stage detection rules in the monitoring configuration parameters, and the detected anomaly detection information of the core board is saved. This control method reads the core board programming monitoring data through the corresponding connection ports and determines in real time whether a short circuit has occurred on the core board. It detects whether any anomalies occur in the monitoring data of each stage of the core board and generates and saves corresponding anomaly detection information. This enables full-process testing of the core board programming process, improving the completeness of the testing of the core board programming process.
[0061] The aforementioned programming and testing device for the core board can be implemented as a computer program that can run on a computer device.
[0062] Please see Figure 3 , Figure 3 This is a schematic diagram of the circuit structure of a core board programming and testing device provided in an embodiment of the present invention. The monitoring terminal in this core board programming and testing device is used to execute the core board programming and testing method.
[0063] See Figure 3The programming and testing equipment includes a monitoring terminal 101, a hub 102, and an overcurrent switch control module 103. The monitoring terminal 101 and each core board 20 establish a communication connection with the hub 102 via a converter 104. The programming control terminal 30 establishes a communication connection with the hub 102 via an isolator 105. The hub 102 also establishes a programming transmission connection with each of the core boards 20. The overcurrent switch control module 103 is electrically connected to the monitoring terminal 101 and each of the core boards 20. The first output terminal of the power module 106 is connected to the monitoring terminal 101... The first power connection terminal and the power connection terminal of the overcurrent switch control module 103 are electrically connected. The second output terminal of the power module 106 is electrically connected to the second power connection terminal of the monitoring terminal 101. The first output terminal of the power module 106 outputs 5V DC power, and the second output terminal of the power module 106 is a ground terminal. The first power connection terminal of the monitoring terminal 101 and the power connection terminal of the overcurrent switch control module 103 are used to input 5V DC power. The input terminal of the power module 106 is connected to 220V AC mains power. The positive connection terminal of the monitoring terminal 101 is also connected to the ground terminal of each core board 20. The hub 102 is a USB hub, and the isolator 105 is a USB isolator. The isolator 105 is used to isolate the signal between the programming control terminal 30 and the hub, so that the acquired programming monitoring data and the programming control terminal 30 are fully isolated. The converter 104 is a USB to serial interface converter (USB to TTL converter, TTL stands for Transistor-Transistor Logic, serial interface). Specifically, the interface connecting the monitoring terminal 101 to the adapter board 104 is a Universal Asynchronous Receiver-Transmitter (UART) serial port; the interfaces connecting each core board 20 to the adapter board 104 are also UART serial ports. The UART serial port connecting the monitoring terminal 101 to the adapter board 104 is used to read current and voltage values, while the UART serial port connecting the core board 20 to the adapter board 104 is used for debugging the core board. The power module 106 is an AC-DC power module with an isolating switch. Using a power module with isolation function allows for complete isolation from external power sources during core board operation, preventing external power interference from damaging the core board and improving the safety and reliability of the tooling.
[0064] Please see Figure 4 , Figure 4This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device may be a monitoring terminal used to execute a core board programming detection method to detect the core board programming process.
[0065] See Figure 4 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a communication bus 501. The memory may include a storage medium 503 and internal memory 504.
[0066] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to execute a programming and testing method for the core board. The storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0067] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0068] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a burning and detection method for the core board.
[0069] This network interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device 500 to which the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0070] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned burning and testing method for the core board.
[0071] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 4 The embodiments shown are consistent and will not be described again here.
[0072] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0073] In another embodiment of the invention, a computer-readable storage medium is provided. This computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps included in the above-described method for programming and testing a core board.
[0074] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0075] In the embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function can be encapsulated into one unit. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed can be indirect couplings or communication connections through some interfaces, devices, or units, or they can be electrical, mechanical, or other forms of connection.
[0076] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0077] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0078] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.
[0079] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for programming and testing a core board, characterized in that, The method is applied to the monitoring terminal of a programming and testing device, which further includes a hub and an overcurrent switch control module. The monitoring terminal and each core board establish a communication connection with the hub via a converter. The programming control terminal establishes a communication connection with the hub. The hub also establishes a programming transmission connection with each of the core boards. The overcurrent switch control module is electrically connected to the monitoring terminal and each of the core boards. The method includes: Upon receiving monitoring configuration parameters from the programming control terminal, the programming monitoring data corresponding to each core board is read from the port corresponding to the hub according to the monitoring configuration parameters. The system performs real-time detection of short circuits on each core board based on the recorded monitoring data. If a short circuit is detected in any of the core boards, a disconnect command is generated and sent to the overcurrent switch control module, so that the overcurrent switch control module disconnects the power connection of the core board according to the disconnect command; If the programming is completed and no short circuit is detected in any of the core boards, the programming monitoring data of each stage in the programming monitoring information of each core board is subjected to anomaly detection according to the stage detection rules in the monitoring configuration parameters, so as to determine whether the programming monitoring information of each core board contains abnormal monitoring data. Based on the abnormal monitoring data of the core board obtained from the detection, corresponding abnormal detection information is generated and saved; The step of performing anomaly detection on the monitoring data of each stage in the burning monitoring data of each core board according to the stage detection rules in the monitoring configuration parameters includes: The core board's programming monitoring information is recorded in segments based on the amount of data at each stage of the programming progress, so as to obtain the monitoring data corresponding to each stage. Based on the valid value range of each stage in the stage detection rules, it is determined whether the monitoring data of each stage are all within the corresponding valid value range, so as to perform anomaly detection on the monitoring data of each stage.
2. The programming and testing method for a core board according to claim 1, characterized in that, The step of reading the programming monitoring data corresponding to each core board from the port corresponding to the hub according to the monitoring configuration parameters includes: Establish a monitoring transmission channel corresponding to each core board based on the monitoring serial port information and debugging serial port information configured in the monitoring configuration parameters; According to the monitoring items configured in the monitoring configuration parameters, the corresponding burning monitoring data is read from each of the monitoring transmission channels respectively; Determine whether the burning duration is greater than the burning progress duration in the monitoring configuration parameters based on the start time of reading the burning monitoring data. If the burning process continues for a longer period than the burning progress duration, the reading of burning monitoring data will be terminated.
3. The programming and testing method for a core board according to claim 1, characterized in that, The monitoring configuration parameters include current threshold and voltage threshold. The real-time detection of short circuits on each core board based on the programmed monitoring data includes: The current monitoring value and voltage monitoring value in the core board's programming monitoring data are judged to be no greater than the current threshold and no greater than the voltage threshold, in order to detect whether a short circuit has occurred in each core board.
4. The programming and testing method for a core board according to claim 2, characterized in that, After generating and saving the corresponding anomaly detection information based on the anomaly monitoring data of the core board obtained from the detection, the method further includes: The core board corresponding to the anomaly detection information is designated as the abnormal core board, and hardware detection information is obtained from the monitoring transmission channel corresponding to the abnormal core board. Determine whether the abnormal core board has a hardware fault based on the hardware detection information. If the abnormal core board has a hardware fault, add a fault tag to the abnormal detection information of the abnormal core board. If the abnormal core board does not have a hardware fault, the abnormal core board is programmed again and the process returns to the step of reading the programming monitoring data corresponding to each core board from the port corresponding to the hub according to the monitoring configuration parameters.
5. A programming and testing device for a core board, characterized in that, The device is configured in the monitoring terminal of the programming and testing equipment, which further includes a hub and an overcurrent switch control module. The monitoring terminal and each core board establish a communication connection with the hub through a converter. The programming control terminal establishes a communication connection with the hub. The hub also establishes a programming transmission connection with each of the core boards. The overcurrent switch control module is electrically connected to the monitoring terminal and each of the core boards respectively. The device is used to perform the programming and testing method for core boards as described in any one of claims 1-4.
6. A programming and testing device for a core board, characterized in that, The programming and testing equipment includes a monitoring terminal, a hub, and an overcurrent switch control module. The monitoring terminal and each core board establish a communication connection with the hub through a converter. The programming control terminal establishes a communication connection with the hub through an isolator. The hub also establishes a programming transmission connection with each of the core boards. The overcurrent switch control module is electrically connected to the monitoring terminal and each of the core boards respectively. The first output terminal of the power module is electrically connected to the first power connection terminal of the monitoring terminal and the power connection terminal of the overcurrent switch control module, respectively; the second output terminal of the power module is electrically connected to the second power connection terminal of the monitoring terminal. The monitoring terminal includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor, when executing a program stored in memory, implements the programming and detection method for a core board as described in any one of claims 1-4.
7. The programming and testing equipment for a core board according to claim 6, characterized in that, The hub is a USB hub, the isolator is a USB isolator, and the converter is a USB to serial interface converter.
8. The programming and testing equipment for a core board according to claim 6 or 7, characterized in that, The interface connecting the monitoring terminal to the converter is a universal asynchronous transceiver serial port; the interface connecting each core board to the converter is also a universal asynchronous transceiver serial port.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the programming and detection method for the core board as described in any one of claims 1-4.
Citation Information
Patent Citations
Tax-controlled disk core board function test method and burning tool
CN106597255A
Burn-in real-time detection method and system
CN113190391A