Circuit component detection method, detection device, terminal equipment and storage medium

By collecting circuit diagram data and establishing a mapping database in the production of electronic products, the circuit connection nodes of components are recursively detected, which solves the component matching problem, achieves rapid and comprehensive detection, reduces production costs and manual errors, and improves detection efficiency.

CN114062894BActive Publication Date: 2024-09-10SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111229110.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2024-09-10
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

In the production process of traditional electronic products, the component model does not match the components used in the circuit diagram, causing the voltage to exceed the component's endurance, causing quality accidents, and manual inspection costs and time are high.

Method used

By collecting circuit diagram data, establishing a mapping database, using a recursive method to traverse the pin connection nodes of the detected components, reading the voltage parameters, and generating component withstand voltage detection results, avoiding repeated detection, and quickly and comprehensively detecting component matching.

Benefits of technology

It achieves rapid and comprehensive detection of component matching, avoids manual miscalculations and judgments, reduces production costs, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114062894B
    Figure CN114062894B
Patent Text Reader

Abstract

A circuit component detection method, detection device, terminal equipment and storage medium, the circuit component detection method includes: collecting data information of a circuit diagram and establishing a mapping database including the corresponding relationship between the position number of each component, the pin number of the component and the network name of the circuit connection node; recursively traversing the circuit connection nodes connected to the pins of each component in the detection circuit diagram according to the mapping database, and reading or calculating the voltage parameters of the circuit connection nodes involved, and establishing a node voltage database according to the voltage parameters; comparing the node voltage database with the corresponding device parameters in the component database, and generating component withstand voltage detection results. By traversing and detecting the components in the circuit diagram in a recursive manner, the detection of components under actual production conditions can be fully and quickly realized, avoiding the erroneous calculation and judgment of the voltage of the circuit connection node due to personal mistakes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic circuit technology, and in particular relates to a circuit component detection method, a detection device, a terminal device and a storage medium. Background Art

[0002] At present, in the traditional production process of electronic products, due to various reasons, the models and manufacturers of the components used in the production are different from the components used in the original circuit diagram, which may cause the electronic products produced to have component mismatches, and the voltage of the electronic product circuit exceeds the maximum tolerable voltage of the components used, resulting in quality accidents. Due to the large number of components in the circuit diagram and the complex circuit structure, manual inspection requires high labor costs and time costs. Summary of the invention

[0003] The purpose of the present application is to provide a circuit component detection method, detection device, terminal equipment and storage medium, aiming to solve the problem of difficulty in quickly detecting whether replacement parts match in the actual production process of traditional electronic products.

[0004] The first aspect of an embodiment of the present application provides a circuit component detection method, comprising: collecting data information of a circuit diagram and establishing a mapping database including the correspondence between the position number of each component, the pin number of the component, and the network name of the circuit connection node; recursively traversing and detecting the circuit connection nodes connected to the pins of each component in the circuit diagram according to the mapping database, and simultaneously reading or calculating the voltage parameters of the circuit connection nodes involved, and establishing a node voltage database according to the voltage parameters; comparing the node voltage database with the corresponding device parameters in the component database, and generating a component withstand voltage detection result, wherein the device parameters include the maximum tolerable voltage of each component.

[0005] In one embodiment, recursively traversing and detecting the circuit connection nodes connected to the pins of each component in the circuit diagram according to the mapping database includes: establishing a data table to be detected and a detected data table, the data table to be detected is used to record the position numbers of the components to be detected, and the detected data table is used to record the position numbers of the components that have been detected; starting from the component corresponding to the position number in the data table to be detected, recursively traversing and detecting all the components and the corresponding circuit connection nodes according to the mapping database; and entering the position numbers of the detected components into the detected data table to avoid repeated traversal detection.

[0006] In one embodiment, the mapping database includes a first mapping table and a second mapping table; the index of each group of mappings in the first mapping table is the position number of the component and the pin number of the component, and the stored value is the network name of the circuit connection node to which the corresponding pin of the component is connected, so as to be used to retrieve the network name of the circuit connection node to which the corresponding pin of the component is connected according to the position number and pin number of the component through the first mapping table; the index of each group of mappings in the second mapping table is the network name of the circuit connection node and the position number of the component connected to the circuit connection node, and the stored value is the model parameter of the corresponding component, so as to be used to retrieve the position number and model parameters of all the components connected to the circuit connection node according to the network name of the circuit connection node through the second mapping table.

[0007] In one embodiment, the recursive traversal detection of all the components and the corresponding circuit connection nodes according to the mapping database includes: during the traversal detection process, when it is determined according to the first mapping table that the network name of the circuit connection node connected to the target pin to be traversed is a ground terminal or a power input terminal, that is, when the target pin is a ground pin or a power input pin, the target pin will be skipped and the other pins of the component will continue to be detected.

[0008] In one embodiment, the recursive traversal detection of all the components and the corresponding circuit connection nodes according to the mapping database includes: during the traversal detection process, when it is determined according to the second mapping table that the target component to be traversed and detected is a chip, the target component will be skipped and the other components connected to the corresponding circuit connection nodes will continue to be detected.

[0009] In one embodiment, collecting data information of the circuit diagram includes: segmenting the circuit diagram according to circuit connection nodes, and segmentally collecting data information of each segment.

[0010] In one embodiment, the simultaneous reading or calculation of the voltage parameters of the circuit connection nodes involved includes: reading a fixed voltage, wherein the fixed voltage is the voltage of the circuit connection node with a fixed voltage value; calculating an operating voltage based on the read parameters of the fixed voltage and the parameters of the components, wherein the operating voltage is the voltage of the circuit connection node with a non-fixed voltage value; and the voltage parameters include the fixed voltage and the operating voltage.

[0011] The second aspect of an embodiment of the present application provides a circuit diagram detection device, including: a data sorting unit, used to collect data information of the circuit diagram and establish a mapping database including the correspondence between the position number of each component, the pin number of the component and the network name of the circuit connection node; a traversal detection unit, used to recursively traverse and detect the circuit connection nodes connected to the pins of each component in the circuit diagram according to the mapping database, and simultaneously read or calculate the voltage parameters of the circuit connection nodes involved, and establish a node voltage database according to the voltage parameters; a comparison detection unit, used to compare the node voltage database with the corresponding device parameters in the component database, and generate a component withstand voltage detection result, wherein the device parameters include the maximum tolerable voltage of each component.

[0012] A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the circuit component detection method as described above when executing the computer program.

[0013] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the circuit component detection method as described above are implemented.

[0014] Compared with the prior art, the embodiments of the present application have the following beneficial effects: by traversing and detecting the components in the circuit diagram in a recursive manner, the components can be fully and quickly detected under actual production conditions, and the incorrect calculation and judgment of the voltage of the circuit connection nodes due to personal errors can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flow chart of a circuit component detection method provided in one embodiment of the present application;

[0016] Figure 2 for Figure 1 The specific flow chart of step S100 of the circuit component detection method shown;

[0017] Figure 3 for Figure 1 The specific flow chart of step S200 of the circuit component detection method shown;

[0018] Figure 4 for Figure 3 The specific flow chart of step S230 of the circuit component detection method shown;

[0019] Figure 5A schematic diagram of a circuit diagram detection device provided in one embodiment of the present application;

[0020] Figure 6 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0022] When an element is referred to as being “connected to” another element, it can be directly connected to the other element or indirectly connected to the other element.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] Figure 1 A flow chart of a circuit component detection method provided by the first embodiment of the present application is shown. For ease of description, only the part related to the present embodiment is shown, which is described in detail as follows:

[0025] Circuit component detection methods include S100~S300:

[0026] S100, collecting data information of the circuit diagram and establishing a mapping database including the corresponding relationship between the bit number of each component, the pin number of the component and the network name of the circuit connection node.

[0027] The storage type of the mapping database can be a database or a dictionary. By establishing a mapping database, it is helpful to improve the subsequent traversal detection speed.

[0028] Furthermore, if Figure 2 As shown, as another embodiment of the present application, step S100 may specifically include S110 to S120, which are specifically described as follows:

[0029] S110, segmenting the circuit diagram according to circuit connection nodes, and collecting data information of each segment in segments.

[0030] S120, establishing a mapping database including the corresponding relationship between the bit number of each component, the pin number of the component, and the network name of the circuit connection node.

[0031] By segmenting the circuit diagram and establishing a mapping database, a complex circuit diagram can be simplified and digitized for subsequent traversal detection.

[0032] S200, recursively traverse the circuit connection nodes connected to the pins of each component in the detection circuit diagram according to the mapping database, and simultaneously read or calculate the voltage parameters of the circuit connection nodes involved, and establish a node voltage database according to the voltage parameters.

[0033] Furthermore, if Figure 3 As shown, as another embodiment of the present application, step S200 may specifically include S210 to S230, which are specifically described as follows:

[0034] S210, establishing a table of data to be tested and a table of tested data, wherein the table of data to be tested is used to record the bit numbers of components to be tested, and the table of tested data is used to record the bit numbers of components that have been tested.

[0035] S220, starting from the components corresponding to the bit numbers in the data table to be tested, all components and corresponding circuit connection nodes are traversed and tested in a recursive manner according to the mapping database; and the bit numbers of the tested components are entered into the tested data table to avoid repeated traversal testing.

[0036] S230, reading or calculating the voltage parameters of the circuit connection nodes involved, and establishing a node voltage database according to the voltage parameters. Step S230 is executed synchronously with step S220.

[0037] The mapping database includes a first mapping table and a second mapping table.

[0038] The index of each group of mappings in the first mapping table is the bit number of the component and the pin number of the component, and the stored value is the network name of the circuit connection node connected to the corresponding pin of the component, for example: index = [bit number] [pin number], stored value = network name. One group of mappings can be index = [C10][1], stored value = WL789, index = [C10][1] means the pin number of the component with bit number C10 is 1, and stored value = WL789 means the network name of the circuit connection node connected to the above pin is WL789.

[0039] The index of each group of mappings in the second mapping table is the network name of the circuit connection node and the bit number of the component connected to the circuit connection node, and the stored value is the model parameter of the corresponding component. For example: index = [network name] [bit number], stored value = {pin number, model, pin name}. One group of mappings can be index = [WL789][C10], stored value = {1, C, IN}, index = [WL789][C10] means that the circuit connection node with the network name WL789 is connected to a component with the bit number C10, and the stored value = {1, C, IN} means that the pin number of the component connected to the circuit connection node is 1 and the pin name is IN, and the model of the component is C (capacitor).

[0040] Through the first mapping table, the network name of the circuit connection node to which the pin of the corresponding component is connected can be quickly retrieved according to the position number and pin number of the component. Through the second mapping table, the position number and model parameters of all components connected to the circuit connection node can be quickly retrieved according to the network name of the circuit connection node, thereby obtaining the connection relationship between each component and the circuit connection node, and based on the connection relationship, it is possible to start from the component corresponding to the position number in the data table to be detected, and recursively traverse the circuit diagram for detection.

[0041] In step S220 of another embodiment, during the traversal detection process, when it is determined according to the first mapping table that the network name of the circuit connection node connected to the target pin to be traversed is the ground terminal or the power input terminal, that is, when the target pin is the ground pin or the power input pin, the target pin will be skipped and other pins of the component will continue to be detected. For example, during the traversal detection process, when the pin of one of the components is traversed, if it is determined according to the first mapping table that the network name of the circuit connection node connected to the target pin to be traversed is GND (ground terminal), then the target pin will be skipped and the traversal detection will continue from other pins of the component.

[0042] In step S220 of another embodiment, during the traversal detection process, when it is determined according to the second mapping table that the target component to be traversed is a chip, the target component will be skipped and other components connected to the circuit connection node will continue to be detected. For example, during the traversal detection process, when the component connected to one of the circuit connection nodes is traversed, if it is determined according to the second mapping table that the model of the target component to be traversed is a chip, the target component will be skipped and the traversal detection will continue starting from other components connected to the circuit connection node.

[0043] Furthermore, if Figure 4 As shown, as another embodiment of the present application, step S230 may specifically include S231 to S233, which are specifically described as follows:

[0044] S231 . Read a fixed voltage, where the fixed voltage is a voltage of a circuit connection node with a fixed voltage value.

[0045] S232: Calculate the operating voltage according to the read fixed voltage parameters and component parameters.

[0046] The operating voltage is the voltage of a circuit connection node whose voltage value is not fixed. The operating voltage cannot be directly extracted and can only be calculated during the traversal detection process based on the connection relationship between components and the specific parameters of each component.

[0047] The voltage parameters include fixed voltage and operating voltage.

[0048] S233: Establish a node voltage database according to the voltage parameters and the bit numbers of the components connected to the circuit connection nodes.

[0049] In this embodiment, the node voltage database stores the bit number of each component that has completed the traversal detection and the voltage of the circuit connection node connected to the component. The actual voltage of each component that has completed the traversal detection can be obtained through the node voltage database.

[0050] S300 , comparing the node voltage database with the corresponding device parameters in the component database, and generating component withstand voltage test results.

[0051] Among them, the device parameters include the maximum withstand voltage of each component.

[0052] If the actual voltage of a component exceeds the maximum tolerable voltage in the corresponding device parameters, the component withstand voltage test result will mark the difference between the actual voltage of the component and the maximum tolerable voltage in the corresponding device parameters.

[0053] In another embodiment, multiple components with the same position number are used in the circuit diagram. In step S300, only the maximum actual voltage of the multiple components with the same position number detected is compared with the maximum tolerable voltage in the corresponding device parameters, thereby improving detection efficiency.

[0054] Figure 5 A schematic diagram of a circuit diagram detection device provided by the second embodiment of the present application is shown. For ease of explanation, only the part related to the present embodiment is shown, which is described in detail as follows:

[0055] A circuit diagram detection device includes a data sorting unit 410, a traversal detection unit 420 and a comparison detection unit 430:

[0056] The data sorting unit 410 is used to collect data information of the circuit diagram and establish a mapping database including the corresponding relationship between the bit number of each component, the pin number of the component and the network name of the circuit connection node;

[0057] The traversal detection unit 420 is used to traverse and detect the circuit connection nodes connected to the pins of each component in the circuit diagram in a recursive manner according to the mapping database, and at the same time read or calculate the voltage parameters of the circuit connection nodes involved, and establish a node voltage database according to the voltage parameters;

[0058] The comparison detection unit 430 is used to compare the node voltage database with the corresponding device parameters in the component database and generate a component withstand voltage detection result. The device parameters include the maximum tolerable voltage of each component.

[0059] Figure 6 A schematic diagram of a terminal device provided in the third embodiment of the present application is shown. For ease of explanation, only the part related to the present embodiment is shown, which is described in detail as follows:

[0060] A terminal device includes a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 530, the steps of the circuit component detection method described above are implemented.

[0061] The terminal device disclosed in the embodiment of the present invention may be a mobile phone, a tablet computer, an e-book reader, a game console, a wearable device (such as a smart watch), etc. The embodiment of the present invention does not limit the specific type of the terminal device.

[0062] A computer-readable storage medium is provided in the fourth embodiment of the present application. For the sake of convenience, only the part related to this embodiment is shown, which is described in detail as follows:

[0063] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the circuit component detection method as described above are implemented.

[0064] The computer-readable storage medium disclosed in the embodiment of the present invention may be a semiconductor, a magnetic core, a magnetic drum, a magnetic tape, a laser disk or other storage medium. The embodiment of the present invention does not limit the specific type of the computer-readable storage medium.

[0065] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0066] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A circuit component detection method, It is characterized in that include: Collecting data information of the circuit diagram and establishing a mapping database including the corresponding relationship between the bit number of each component, the pin number of the component and the network name of the circuit connection node; Wherein, the mapping database includes a first mapping table and a second mapping table; The index of each group of mappings in the first mapping table is the bit number of the component and the pin number of the component, and the stored value is the network name of the circuit connection node to which the corresponding pin of the component is connected, so as to retrieve the network name of the circuit connection node to which the corresponding pin of the component is connected according to the bit number and the pin number of the component through the first mapping table; The index of each group of mappings of the second mapping table is the network name of the circuit connection node and the bit number of the component connected to the circuit connection node, and the stored value is the model parameter of the corresponding component, so as to retrieve the bit number and model parameter of all the components connected to the circuit connection node according to the network name of the circuit connection node through the second mapping table; Recursively traverse and detect the circuit connection nodes connected to the pins of each component in the circuit diagram according to the mapping database, and read or calculate voltage parameters of the circuit connection nodes involved, and establish a node voltage database according to the voltage parameters; The node voltage database is compared with the corresponding device parameters in the component database, and a component withstand voltage test result is generated, wherein the device parameters include the maximum tolerable voltage of each of the components.

2. The circuit component detection method according to claim 1, It is characterized in that The recursive traversal of the circuit connection nodes for detecting the pin connections of each of the components in the circuit diagram according to the mapping database comprises: Establishing a data table to be tested and a data table that has been tested, wherein the data table to be tested is used to record the bit numbers of the components that need to be tested, and the tested data table is used to record the bit numbers of the components that have been tested; Starting from the component corresponding to the position number in the data table to be tested, all the components and the corresponding circuit connection nodes are traversed and tested in a recursive manner according to the mapping database; and the position numbers of the tested components are entered into the tested data table to avoid repeated traversal testing.

3. The circuit component detection method according to claim 2, It is characterized in that The recursive traversal detection of all the components and the corresponding circuit connection nodes according to the mapping database includes: During the traversal detection process, when it is determined according to the first mapping table that the network name of the circuit connection node connected to the target pin to be traversed is the ground terminal or the power input terminal, that is, when the target pin is the ground pin or the power input pin, the target pin will be skipped and the other pins of the component will continue to be detected.

4. The circuit component detection method according to claim 2, It is characterized in that The recursive traversal detection of all the components and the corresponding circuit connection nodes according to the mapping database includes: During the traversal detection process, when it is determined according to the second mapping table that the target component to be traversed and detected is a chip, the target component will be skipped and the detection of other components connected to the corresponding circuit connection nodes will continue.

5. The circuit component detection method according to claim 1, It is characterized in that The data information of the acquisition circuit diagram includes: The circuit diagram is segmented according to circuit connection nodes, and data information of each segment is collected segment by segment.

6. The circuit component detection method according to claim 1, It is characterized in that The voltage parameters of the circuit connection nodes involved in the simultaneous reading or calculation include: Reading a fixed voltage, where the fixed voltage is a voltage of a connection node of the circuit having a fixed voltage value; Calculating an operating voltage according to the read parameters of the fixed voltage and the parameters of the components, wherein the operating voltage is a voltage of a circuit connection node whose voltage value is not fixed; The voltage parameters include the fixed voltage and the operating voltage.

7. A circuit diagram detection device, It is characterized in that include: A data sorting unit, used to collect data information of the circuit diagram and establish a mapping database including the corresponding relationship between the bit number of each component, the pin number of the component and the network name of the circuit connection node; Wherein, the mapping database includes a first mapping table and a second mapping table; The index of each group of mappings in the first mapping table is the bit number of the component and the pin number of the component, and the stored value is the network name of the circuit connection node to which the corresponding pin of the component is connected, so as to retrieve the network name of the circuit connection node to which the corresponding pin of the component is connected according to the bit number and the pin number of the component through the first mapping table; The index of each group of mappings of the second mapping table is the network name of the circuit connection node and the bit number of the component connected to the circuit connection node, and the stored value is the model parameter of the corresponding component, so as to retrieve the bit number and model parameter of all the components connected to the circuit connection node according to the network name of the circuit connection node through the second mapping table; A traversal detection unit, configured to traverse and detect the circuit connection nodes connected to the pins of each component in the circuit diagram in a recursive manner according to the mapping database, and simultaneously read or calculate voltage parameters of the circuit connection nodes involved, and establish a node voltage database according to the voltage parameters; The comparison detection unit is used to compare the node voltage database with the corresponding device parameters in the component database and generate a component withstand voltage detection result, wherein the device parameters include the maximum tolerable voltage of each of the components.

8. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the circuit component detection method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the circuit component detection method according to any one of claims 1 to 6 are implemented.