Detection method and device of printed circuit board and storage medium
By acquiring and generating structural installation restriction information and target device information, the printed circuit board is inspected, which solves the problem of low inspection efficiency in printed circuit board design in the existing technology and achieves accurate and efficient inspection results.
Patent Information
- Application Number
- CN202410659155.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-26
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, the detection efficiency of the structural restriction area of printed circuit board designs in DXF files and 3D structure files is low, and it is easy to miss and make false detections, making it impossible to achieve accurate and efficient detection.
By obtaining the structural mounting restriction file of the printed circuit board, the structural mounting restriction information is generated, and the device information is used to generate the target device information. Based on this information, the device mounting in the printed circuit board is detected to determine whether there is an abnormality.
It achieves accurate and efficient detection of printed circuit board designs, improves detection efficiency, and reduces the possibility of missed detections and incorrect detections.
Smart Images

Figure CN118607463A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a printed circuit board detection method and device, and a storage medium. Background Art
[0002] Staff generally need to design the printed circuit board (PCB) of the server system based on the Drawing Exchange Format (DXF) and 3D structure files. When the PCB design does not meet the structural restriction area in the DXF file and the 3D structure file, various problems will arise, so the designed PCB needs to be tested. However, during the PCB design process, the placement inspection of the entire board components, including the placement inspection of the structural parts, is manually inspected in the later stage according to the instructions in the DXF file and the 3D structure file, which may cause missed inspections, false inspections, and low efficiency. Summary of the invention
[0003] The embodiments of the present application provide a printed circuit board detection method and device, and a storage medium, so as to at least solve the problem in the related art that the printed circuit board design cannot be accurately and efficiently detected.
[0004] According to one embodiment of the present application, a method for detecting a printed circuit board is provided, comprising: obtaining a structural installation restriction file of the printed circuit board, and generating structural installation restriction information based on the structural installation restriction file, wherein the structural installation restriction file includes a plurality of files that restrict the device installation area in the printed circuit board, and the structural installation restriction information includes a plurality of information that restricts the device installation area extracted from the structural installation restriction file, and the structural installation restriction information is information in a preset format; obtaining device information of the printed circuit board, wherein the device information includes device attribute information and structural installation information of the device installed in the device installation area; generating target device information using the device information, wherein the target device information is information in the preset format; detecting the device installation in the printed circuit board based on the structural installation restriction information and the target device information to obtain a detection result, wherein the detection result is used to indicate whether there is an abnormality in the installation of the device in the printed circuit board.
[0005] In an exemplary embodiment, a structural installation restriction file of a printed circuit board is obtained, and structural installation restriction information is generated based on the structural installation restriction file, including: obtaining a first restriction file and a second restriction file of the printed circuit board to obtain the structural installation restriction file, wherein the first restriction file includes a plurality of structural restriction categories of the device installation area, and the second restriction file includes structural restriction information corresponding to each of the structural restriction categories; extracting a plurality of the structural restriction categories from the first restriction file, and converting the plurality of structural restriction categories into information in the preset format to obtain a plurality of target structural restriction categories; extracting structural restriction information corresponding to the plurality of target structural restriction categories from the second restriction file, and converting the structural restriction information into information in the preset format to obtain target structural restriction information corresponding to the plurality of target structural restriction categories; determining the association between the plurality of target structural restrictions and the corresponding target structural restriction information to obtain the structural installation restriction information.
[0006] In an exemplary embodiment, structural restriction information corresponding to the plurality of target structural restriction categories is extracted from the second restriction file, and the structural restriction information is converted into information in the preset format to obtain target structural restriction information corresponding to the plurality of target structural restriction categories, including: importing the second restriction file into a drawing file of the printed circuit board, wherein the drawing file is used to generate a design drawing file of the printed circuit board; extracting structural restriction information corresponding to the plurality of target structural restriction categories in the second restriction file from the drawing file through a set attribute extraction instruction; converting the structural restriction information corresponding to the plurality of target structural restriction categories into information in the preset format to obtain target structural restriction information corresponding to the plurality of target structural restriction categories.
[0007] In an exemplary embodiment, the structure restriction information corresponding to the plurality of target structure restriction categories in the second restriction file is extracted from the drawing file by setting an attribute extraction instruction, including: in the case where the attribute extraction instruction includes a structure extraction instruction, in response to the structure extraction instruction, extracting the first restriction information corresponding to the structure restriction category in the second restriction file from the drawing file, wherein the structure restriction category is a restriction category among the plurality of target structure restriction categories, and the first restriction information includes at least one of the following: a height restriction of the device mounting area, a height restriction of the prohibited wiring area in the printed circuit board, a height restriction of the prohibited device mounting area in the printed circuit board, Position restriction of device installation area, position restriction of prohibited wiring area in the above-mentioned printed circuit board, position restriction of prohibited device installation area in the above-mentioned printed circuit board; in the case where the above-mentioned attribute extraction instruction includes a positioning extraction instruction, in response to the above-mentioned positioning extraction instruction, extract the second restriction information corresponding to the positioning restriction category in the above-mentioned second restriction file from the above-mentioned drawing file, wherein the above-mentioned positioning restriction category is a restriction category among the multiple above-mentioned target structure restriction categories, and the above-mentioned second restriction information includes at least one of the following: coordinate constraints of the mounting hole area in the above-mentioned printed circuit board, size constraints of the mounting hole area in the above-mentioned printed circuit board; wherein the above-mentioned structure restriction information includes the above-mentioned first restriction information and the second restriction information.
[0008] In an exemplary embodiment, when the above-mentioned attribute extraction instruction includes a positioning extraction instruction, in response to the above-mentioned positioning extraction instruction, after extracting the second restriction information corresponding to the positioning restriction category in the above-mentioned second restriction file from the above-mentioned drawing file, the above-mentioned method also includes: integrating the above-mentioned first restriction information to obtain a first structure installation restriction table; integrating the above-mentioned second restriction information to obtain a second structure installation restriction table, wherein the above-mentioned target structure restriction information includes the above-mentioned first restriction information and the above-mentioned second restriction information; and generating a structure installation restriction table using the above-mentioned first structure installation restriction table and the above-mentioned second structure installation restriction table.
[0009] In an exemplary embodiment, obtaining the device information of the printed circuit board includes: responding to a property query instruction, searching for the property display interface of the printed circuit board, wherein the property display interface is used to display the development code information of the printed circuit board; intercepting the property display interface, and extracting the device code information corresponding to the device from the development code information included in the intercepted property display interface to obtain the device information; using the device information to generate target device information, including: extracting the device property information and the structure installation information from the device information; converting the device property information and the structure installation information into the preset format, and integrating the converted information into a preset table to obtain the target device information.
[0010] In an exemplary embodiment, the device installation in the printed circuit board is detected based on the structural installation restriction information and the target device information to obtain the detection result, including: generating a device information table to be detected based on the attribute information of the device included in the target device information and the structural installation information of the device; traversing the device information table to be detected to compare the multiple installation information to be detected included in the device information table to be detected with the corresponding multiple restriction information in the structural installation restriction table to obtain the comparison result, wherein the structural installation restriction table is a restriction table generated based on the multiple information in the structural installation restriction information; and detecting the device installation in the printed circuit board using the comparison result to obtain the detection result.
[0011] According to another embodiment of the present application, a printed circuit board detection device is provided, including: a first acquisition module, used to acquire a structural installation restriction file of the printed circuit board, and generate structural installation restriction information based on the structural installation restriction file, wherein the structural installation restriction file includes multiple files that restrict the device installation area in the printed circuit board, and the structural installation restriction information includes multiple information that restricts the device installation area extracted from the structural installation restriction file, and the structural installation restriction information is information in a preset format; a second acquisition module, used to acquire device information of the printed circuit board, wherein the device information includes device attribute information and structural installation information of the device installed in the device installation area; a first generation module, used to generate target device information using the device information, wherein the target device information is information in the preset format; a first detection module, used to detect the device installation in the printed circuit board based on the structural installation restriction information and the target device information, and obtain a detection result, wherein the detection result is used to indicate whether there is an abnormality in the installation of the device in the printed circuit board.
[0012] In an exemplary embodiment, the first acquisition module includes: a first acquisition submodule, used to acquire the first restriction file and the second restriction file of the printed circuit board to obtain the structural installation restriction file, wherein the first restriction file includes multiple structural restriction categories of the device installation area, and the second restriction file includes structural restriction information corresponding to each of the structural restriction categories; a first extraction submodule, used to extract multiple structural restriction categories from the first restriction file, and convert the multiple structural restriction categories into information in the preset format to obtain multiple target structural restriction categories; a second extraction submodule, used to extract structural restriction information corresponding to multiple target structural restriction categories from the second restriction file, and convert the structural restriction information into information in the preset format to obtain target structural restriction information corresponding to multiple target structural restriction categories; a first determination submodule, used to determine the association between multiple target structural restrictions and the corresponding target structural restriction information to obtain the structural installation restriction information.
[0013] In an exemplary embodiment, the second extraction submodule includes: a first import unit, used to import the second restriction file into the drawing file of the printed circuit board, wherein the drawing file is used to generate the design drawing file of the printed circuit board; a first extraction unit, used to extract the structural restriction information corresponding to the multiple target structural restriction categories in the second restriction file from the drawing file through the set attribute extraction instruction; a first conversion unit, used to convert the structural restriction information corresponding to the multiple target structural restriction categories into the information in the preset format, and obtain the target structural restriction information corresponding to the multiple target structural restriction categories.
[0014] In an exemplary embodiment, the first extraction unit includes: a first response subunit, which is used to respond to the structure extraction instruction when the property extraction instruction includes the structure extraction instruction, and extract the first restriction information corresponding to the structure restriction category in the second restriction file from the drawing file, wherein the structure restriction category is a restriction category among the multiple target structure restriction categories, and the first restriction information includes at least one of the following: height restriction of the device mounting area, height restriction of the prohibited wiring area in the printed circuit board, height restriction of the prohibited device mounting area in the printed circuit board, position restriction of the device mounting area, position restriction of the prohibited wiring area in the printed circuit board, and position restriction of the prohibited device mounting area in the printed circuit board; a second response subunit, which is used to respond to the positioning extraction instruction when the property extraction instruction includes the positioning extraction instruction, and extract the second restriction information corresponding to the positioning restriction category in the second restriction file from the drawing file, wherein the positioning restriction category is a restriction category among the multiple target structure restriction categories, and the second restriction information includes at least one of the following: coordinate constraint of the mounting hole area in the printed circuit board, and size constraint of the mounting hole area in the printed circuit board; wherein the structure restriction information includes the first restriction information and the second restriction information.
[0015] In an exemplary embodiment, the first extraction unit further includes: a first integration subunit, which is used to respond to the positioning extraction instruction when the attribute extraction instruction includes a positioning extraction instruction, extract the second restriction information corresponding to the positioning restriction category in the second restriction file from the drawing file, and then integrate the first restriction information to obtain a first structure installation restriction table; a second integration subunit, which is used to integrate the second restriction information to obtain a second structure installation restriction table, wherein the target structure restriction information includes the first restriction information and the second restriction information; and a first generation subunit, which is used to generate a structure installation restriction table using the first structure installation restriction table and the second structure installation restriction table.
[0016] In an exemplary embodiment, the second acquisition module includes: a first response submodule, which is used to respond to the property query instruction and search the property display interface of the printed circuit board, wherein the property display interface is used to display the development code information of the printed circuit board; a first interception submodule, which is used to intercept the property display interface and extract the device code information corresponding to the device from the development code information included in the intercepted property display interface to obtain the device information; the first generation module includes: a third extraction submodule, which is used to extract the device property information and the structure installation information from the device information; a first conversion submodule, which is used to convert the device property information and the structure installation information into the preset format information, and integrate the converted information into a preset table to obtain the target device information.
[0017] In an exemplary embodiment, the above-mentioned first detection module includes: a first generation submodule, which is used to generate a device information table to be inspected based on the attribute information of the above-mentioned device included in the above-mentioned target device information and the structural installation information of the above-mentioned device; a first traversal submodule, which is used to traverse the above-mentioned device information table to be inspected, so as to compare the multiple installation information to be inspected included in the above-mentioned device information table with the corresponding multiple restriction information in the structural installation restriction table, and obtain a comparison result, wherein the above-mentioned structural installation restriction table is a restriction table generated based on multiple information in the above-mentioned structural installation restriction information; the first detection submodule is used to use the above-mentioned comparison result to detect the device installation in the above-mentioned printed circuit board to obtain the above-mentioned detection result.
[0018] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0019] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0020] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0021] Through this application, the structural installation restriction information is generated according to the structural installation restriction file, and then the device attribute information and the structural installation information of the device installed in the device installation area are used to generate the target device information, and finally the device installation in the printed circuit board is detected based on the structural installation restriction information and the target device information to obtain the detection result. Therefore, the problem that the printed circuit board design cannot be accurately and efficiently detected in the related technology can be solved, and the effect of accurately and efficiently detecting the printed circuit board design can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a hardware structure block diagram of a server device of a printed circuit board detection method according to an embodiment of the present application;
[0023] Figure 2 is a flow chart of a printed circuit board detection method according to an embodiment of the present application;
[0024] Figure 3 It is a schematic diagram of the front TOP surface of the PCB board DXF file of a specific embodiment of the present application;
[0025] Figure 4 It is a schematic diagram of the bottom side of a printed circuit board DXF file in a specific embodiment of the present application;
[0026] Figure 5 It is a schematic diagram of a PCB board card of a specific embodiment of the present application;
[0027] Figure 6 is a flow chart of device height detection of a printed circuit board according to an embodiment of the present application;
[0028] Figure 7 is a flow chart of a positioning device detection of a printed circuit board according to an embodiment of the present application;
[0029] Figure 8 It is a structural block diagram of a printed circuit board detection device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0032] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1FIG. 1 is a hardware structure block diagram of a server device of a printed circuit board detection method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a printed circuit board detection method in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to a server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0034] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0035] In this embodiment, a method for detecting a printed circuit board is provided. Figure 2 is a flow chart of a printed circuit board detection method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0036] Step S202, obtaining a structural installation restriction file of a printed circuit board, and generating structural installation restriction information based on the structural installation restriction file, wherein the structural installation restriction file includes a plurality of files restricting the device installation area in the printed circuit board, and the structural installation restriction information includes a plurality of information restricting the device installation area extracted from the structural installation restriction file, and the structural installation restriction information is information in a preset format;
[0037] Step S204, obtaining device information of the printed circuit board, wherein the device information includes device attribute information and structural installation information of the device installed in the device installation area;
[0038] Step S206, generating target device information using the device information, wherein the target device information is information in the preset format;
[0039] Step S208, detecting the device installation in the printed circuit board based on the structural installation restriction information and the target device information to obtain a detection result, wherein the detection result is used to indicate whether there is any abnormality in the device installation in the printed circuit board.
[0040] Optionally, the structural installation restriction file may include information on restricted device installation areas. For PCB boards in the overall server structure, the information on restricted device installation areas may be limited connector positions, limited height areas, limited routing areas, limited screw positions and apertures, and other points or areas with restrictions.
[0041] Optionally, the structural installation restriction information is information in a preset format and the target device information is information in a preset format, which is mainly used to clearly display the information of the PCB board card limiting the device installation area, and can be a file in a table format or a document format.
[0042] Optionally, the device attribute information includes but is not limited to the device position number, device face, device physical location, device height value, device center location coordinates, etc., and the structural installation information includes but is not limited to the connector PIN coordinate value, chip center coordinate value, screw hole PIN coordinate value and hole size, etc.
[0043] Through the above steps, the structural installation restriction information is generated according to the structural installation restriction file, and then the device attribute information and the structural installation information of the device installed in the device installation area are used to generate the target device information, and finally the device installation in the printed circuit board is detected based on the structural installation restriction information and the target device information to obtain the detection result. Therefore, the problem that the printed circuit board design cannot be accurately and efficiently detected in the related art can be solved, and the effect of accurately and efficiently detecting the printed circuit board design can be achieved.
[0044] In an exemplary embodiment, a structural installation restriction file of a printed circuit board is obtained, and structural installation restriction information is generated based on the structural installation restriction file, including: obtaining a first restriction file and a second restriction file of the printed circuit board to obtain the structural installation restriction file, wherein the first restriction file includes a plurality of structural restriction categories of the device installation area, and the second restriction file includes structural restriction information corresponding to each of the structural restriction categories; extracting a plurality of the structural restriction categories from the first restriction file, and converting the plurality of structural restriction categories into information in the preset format to obtain a plurality of target structural restriction categories; extracting structural restriction information corresponding to the plurality of target structural restriction categories from the second restriction file, and converting the structural restriction information into information in the preset format to obtain target structural restriction information corresponding to the plurality of target structural restriction categories; determining the association between the plurality of target structural restrictions and the corresponding target structural restriction information to obtain the structural installation restriction information.
[0045] Optionally, in this embodiment, the first restriction file of the printed circuit board includes but is not limited to the external dimensions, drilling information, layer information, routing and layout, and component package corresponding area information of the PCB board, and may be a DXF file corresponding to the PCB board, such as Figure 3 As shown, Figure 3 This is a schematic diagram of the front TOP surface of the PCB board DXF file of the specific embodiment of the present application. The TOP surface of the PCB board has several height-limited areas, several positioning connectors, several positioning chips, and several positioning screw holes with different requirements. Figure 4 As shown, Figure 4 It is a schematic diagram of the reverse bottom surface of a printed circuit board DXF file in a specific embodiment of the present application. There are several height-restricted areas with different requirements on the Bottom surface of the PCB board. According to the DXF file, multiple target structure restriction categories can be extracted, for example, height-restricted areas, positioning connector restrictions, positioning chip restrictions, and positioning screw restrictions.
[0046] Optionally, in the present embodiment, the second restriction file of the printed circuit board includes but is not limited to the external dimensions, drilling information, layer information, routing and layout of the PCB board, and specific restriction information of the corresponding area of the component package, and may be a 3D structure file corresponding to the PCB board, such as a neutral file EMN file used for the PCB board outline and device placement, in which the specific structural restriction information corresponding to the structural restriction category is defined. The structural restriction information corresponding to the target structural restriction category can be extracted according to the EMN file, such as the prohibited placement of components, the position limitation of the prohibited area, the height of the prohibited area, etc. corresponding to the height-restricted area category, the drilling size value restriction information corresponding to the positioning screw restriction, the position coordinate restriction information corresponding to the positioning connector restriction and the positioning chip restriction, etc.
[0047] In this embodiment, by determining the association between the target structure restriction and the target structure restriction information, the structure installation restriction information in a preset format is obtained, so that the target structure restriction category and the target structure restriction information corresponding to the device are clearly displayed, which is convenient for subsequent traversal detection.
[0048] In an exemplary embodiment, structural restriction information corresponding to the plurality of target structural restriction categories is extracted from the second restriction file, and the structural restriction information is converted into information in the preset format to obtain target structural restriction information corresponding to the plurality of target structural restriction categories, including: importing the second restriction file into a drawing file of the printed circuit board, wherein the drawing file is used to generate a design drawing file of the printed circuit board; extracting structural restriction information corresponding to the plurality of target structural restriction categories in the second restriction file from the drawing file through a set attribute extraction instruction; converting the structural restriction information corresponding to the plurality of target structural restriction categories into information in the preset format to obtain target structural restriction information corresponding to the plurality of target structural restriction categories.
[0049] Optionally, in this embodiment, electronic design automation software (EDA for short) can be used to implement the import and extraction actions. For example, cadence software can import the 3D structure file corresponding to the PCB board (corresponding to the above-mentioned second restriction file) into an empty PCB board drawing file, and the instructions for setting the consulting shape attribute and PIN attribute (corresponding to the above-mentioned attribute extraction instruction) will extract all the structural restriction information in the 3D structure file corresponding to the PCB board. This embodiment achieves the purpose of centralizing the design information of the printed circuit board by extracting the structural restriction information in the second restriction file.
[0050] In an exemplary embodiment, the structure restriction information corresponding to the plurality of target structure restriction categories in the second restriction file is extracted from the drawing file by setting an attribute extraction instruction, including: in the case where the attribute extraction instruction includes a structure extraction instruction, in response to the structure extraction instruction, extracting the first restriction information corresponding to the structure restriction category in the second restriction file from the drawing file, wherein the structure restriction category is a restriction category among the plurality of target structure restriction categories, and the first restriction information includes at least one of the following: a height restriction of the device mounting area, a height restriction of the prohibited wiring area in the printed circuit board, a height restriction of the prohibited device mounting area in the printed circuit board, Position restriction of device installation area, position restriction of prohibited wiring area in the above-mentioned printed circuit board, position restriction of prohibited device installation area in the above-mentioned printed circuit board; in the case where the above-mentioned attribute extraction instruction includes a positioning extraction instruction, in response to the above-mentioned positioning extraction instruction, extract the second restriction information corresponding to the positioning restriction category in the above-mentioned second restriction file from the above-mentioned drawing file, wherein the above-mentioned positioning restriction category is a restriction category among the multiple above-mentioned target structure restriction categories, and the above-mentioned second restriction information includes at least one of the following: coordinate constraints of the mounting hole area in the above-mentioned printed circuit board, size constraints of the mounting hole area in the above-mentioned printed circuit board; wherein the above-mentioned structure restriction information includes the above-mentioned first restriction information and the second restriction information.
[0051] Optionally, in this embodiment, the structure extraction instruction will obtain the first restriction information corresponding to two types of structure restriction categories: areas where package keepout of devices is prohibited and areas where route keepout is prohibited, where package keepout means that there cannot be any ultra-high devices, and route keepout means that routing and installation of devices are prohibited. For example, in the electronic design automation system, an instruction for consulting the shape attribute of the second restriction file of a PCB board is set, and the first restriction information corresponding to the above two structural restriction categories will be obtained. For example, the number of first restriction information in the second restriction file of a PCB board is: listing: 153 elements, and the standard restriction value of each first restriction information is, for example, the category of the first restriction information corresponding to item 1 is prohibited device class: package keepout, and the corresponding first restriction information includes: surface limitation subclass: bottom, position limitation of prohibited device installation area exterior boundary: segment: xy(8673.23118.11)xy(20783.46 118.11)width(0.00), etc., height limitation of prohibited device installation area: (package height min) = 86.61MIL value limitation, the category of the first restriction information corresponding to item 2 is prohibited routing: class-route keepout, and the corresponding first restriction information includes: surface limitation: subclass-bottom, position limitation of prohibited area: exterior boundary.
[0052] Optionally, in this embodiment, the positioning extraction instruction will obtain the second restriction information corresponding to the positioning restriction category. For example, in the electronic design automation system, the instruction for consulting the positioning device PIN attribute of the second restriction file of a PCB board will obtain the location coordinates of the PIN location-xy and the drilling size value of the PIN circle drill. For example, the number of second restriction information in the second restriction file of a PCB board is: listing: 48elements, and each second restriction information has its standard restriction value. For example, the second restriction information of item 1 includes the location coordinates of the PIN: location-xy: (720.475807.09), and the drilling size value of the PIN: circledrill: 137.80Non-Plated.
[0053] This embodiment achieves the purpose of subsequent classification detection of PCB board design conditions by respectively acquiring the first restriction information and the second restriction information of the PCB board, thereby facilitating efficient detection.
[0054] In an exemplary embodiment, when the above-mentioned attribute extraction instruction includes a positioning extraction instruction, in response to the above-mentioned positioning extraction instruction, after extracting the second restriction information corresponding to the positioning restriction category in the above-mentioned second restriction file from the above-mentioned drawing file, the above-mentioned method also includes: integrating the above-mentioned first restriction information to obtain a first structure installation restriction table; integrating the above-mentioned second restriction information to obtain a second structure installation restriction table, wherein the above-mentioned target structure restriction information includes the above-mentioned first restriction information and the above-mentioned second restriction information; and generating a structure installation restriction table using the above-mentioned first structure installation restriction table and the above-mentioned second structure installation restriction table.
[0055] Optionally, in this embodiment, the first restriction information and the second restriction information may be integrated in the form of a table, as shown in Table 1 and Table 2. Table 1 is a table of first structural installation restriction of a PCB board in a specific embodiment of the present application, including 7 device installation areas class1-class7 of the PCB board, and two structural restriction categories: prohibition of placing device package keepout and prohibition of routing route keepout. The corresponding first restriction information: surface restriction subclass, location restriction of the prohibited device installation area exterior boundary, and height restriction of the prohibited device installation area package height min. Table 2 is a table of second structural installation restriction of a PCB board in a specific embodiment of the present application, including 6 positioning restriction categories Item1_mechanical PIN-Item7 mechanical PIN. The corresponding second restriction information: location coordinates of the PIN location-xy, and the drilling size value of the PIN circledrill. This embodiment achieves the purpose of clearly displaying the device installation area information restricted by the PCB board by integrating the first restriction information and the second restriction information in the form of a table.
[0056] Table 1:
[0057]
[0058] Table 2:
[0059]
[0060]
[0061] In an exemplary embodiment, obtaining the device information of the printed circuit board includes: responding to a property query instruction, searching for the property display interface of the printed circuit board, wherein the property display interface is used to display the development code information of the printed circuit board; intercepting the property display interface, and extracting the device code information corresponding to the device from the development code information included in the intercepted property display interface to obtain the device information; using the device information to generate target device information, including: extracting the device property information and the structure installation information from the device information; converting the device property information and the structure installation information into the preset format, and integrating the converted information into a preset table to obtain the target device information.
[0062] Optionally, in this embodiment, the device information can be obtained through the electronic design automation software (EDA), for example, set the overall system interface display to off, turn off all displays, turn on the Place bound bottom and Place bound Top displays under Package geometry, return to the property display interface, set the query shape property command, select the entire interface, and extract all device information. For example, the actual device information of a PCB board includes the position number refdes: C1167, the face subclass: top, the location of the device entity exterior boundary: segment: xy (1651.561494.98) xy (1651.561464.98) width (0.00), the device height value package height max = 39.37mil, and the device center location coordinates 1606.561479.98.
[0063] Optionally, in this embodiment, if Figure 5 As shown, Figure 5It is a schematic diagram of a PCB board of a specific embodiment of the present application. The device position numbers (refdes) of the connectors, chips, screw holes, etc. that need to be placed at corresponding positions thereon are all determined according to the functional definition requirements. The device information can be obtained by executing the query symbol (or PIN) list command. For example, a list file containing all the positioning device information is created using a writing board. If the device is a chip, only the position number such as U1 is written in the list file. If the device is a connector and a screw hole, the PIN information such as J15.1 and MH1.1 is added. Then the query symbol (or PIN) list command is executed, and the created list file is imported to extract all the device information, including but not limited to: the actual position coordinates of the PIN location-xy: 1246.1315.19.06, the actual drilling size value of the PIN circledrill: 138.00Plated.
[0064] This embodiment can classify and detect the design of PCB boards by integrating and acquiring the actual device information of PCB boards, thereby achieving the purpose of efficiently detecting PCB boards.
[0065] In an exemplary embodiment, the device installation in the printed circuit board is detected based on the structural installation restriction information and the target device information to obtain the detection result, including: generating a device information table to be detected based on the attribute information of the device included in the target device information and the structural installation information of the device; traversing the device information table to be detected to compare the multiple installation information to be detected included in the device information table to be detected with the corresponding multiple restriction information in the structural installation restriction table to obtain the comparison result, wherein the structural installation restriction table is a restriction table generated based on the multiple information in the structural installation restriction information; and detecting the device installation in the printed circuit board using the comparison result to obtain the detection result.
[0066] Optionally, based on the device attribute information and the device structural installation information included in the target device information, the device information table to be inspected is generated, as shown in Table 3, which is a PCB board device information table 1 to be inspected in a specific embodiment of the present application, including: the position number refdes, the face subclass, the position exterior boundary, the height package heightmax, and the center coordinates of the device to be inspected, as shown in Table 4, which is a PCB board device information table 2 to be inspected in a specific embodiment of the present application, including: the position number refdes, the coordinates, and the drill size of the device to be inspected. The detection result can be clearly presented to the user in the form of a table, as shown in Table 5, which is a PCB board detection result table in a specific embodiment of the present application. This embodiment achieves the purpose of efficiently detecting the design status of the printed circuit board by comparing the multiple installation information to be detected included in the device information table to be inspected with the corresponding multiple restriction information in the structural installation restriction table.
[0067] Table 3:
[0068]
[0069] Table 4:
[0070]
[0071] Table 5:
[0072]
[0073]
[0074] The present application is described below in conjunction with specific embodiments:
[0075] In this specific embodiment, a method for detecting a printed circuit board is provided, which is described by taking the detection of the height data of a PCB board component and the data of a positioning component, a chip, and a screw hole as an example. Figure 6 As shown, Figure 6 This is a flow chart of device height detection of a printed circuit board according to an embodiment of the present application, which specifically includes the following steps:
[0076] S602, traverse and detect the items in the serial number of Table 3 in turn, first determine the face information, call out the face subclass value in item1, and call out the face subclass value in class1 of Table 1, and determine the first bit of these two values. If the first bit of the face subclass of item1 in Table 3 is Top, the first bit of the face subclass value in Table 1 is also Top, or the first bit of the face subclass of item1 in Table 3 is Bottom, the first bit of the face subclass value in Table 1 is also Bottom, the face values are the same and the determination is passed. Otherwise, the determination in class1 of Table 1 is no longer continued, and the face subclass value of item1 in Table 3 is determined to be the same as the face subclass value of class2 in Table 1, until the determination is the same, go to S604. If none of the face information in Table 3 matches the face information in Table 1, go to S608.
[0077] S604, determine the location restriction exterior boundary item of the prohibited device installation area of the class in Table 1, and subtract all coordinates (X1, Y1)(X2, Y2)(X3, Y3)(X4, Y4) of the location exterior boundary in Table 3 from the four coordinate values (x1, y1)(x2, y2)(x3, y3)(x4, y4) of the four rows of location restriction exterior boundary of the prohibited device installation area in Table 1 to determine whether the actual device position meets the location restriction. As long as any point of (X1, Y1)(X2, Y2)(X3, Y3)(X4, Y4) falls into the area formed by (x1, y1)(x2, y2)(x3, y3)(x4, y4), it is judged to be passed, that is, when X1-x1>0, X1-x4<0 and Y1-y4>0, Y1-y3<0 are satisfied at the same time, it is judged that (X1, Y1) is in the inspection area and the judgment is passed. When X2-x1>0, X2-x4<0 and Y2-y4>0, Y2-y3<0 are satisfied at the same time, then (X2, Y2) is judged to be in the inspection area and the judgment is passed. When X3-x1>0, X3-x4<0 and Y3-y4>0, Y3-y3<0 are satisfied at the same time, then (X3, Y3) is judged to be in the inspection area and the judgment is passed. When X4-x1>0, X4-x4<0 and Y4-y4>0, Y4-y3<0 are satisfied at the same time, then (X4, Y4) is judged to be in the inspection area and the judgment is passed. If any of the above judgments are passed, the process goes to S606 to determine whether the device height meets the inspection area height requirement. Otherwise, the inspection of the class will be terminated and the process will return to the next class in Table 1 for judgment until the judgment is passed and the process goes to S606. If all the position exterior boundaries in Table 3 do not meet the position limit exterior boundaries of the prohibited device installation area in Table 1, the process goes to S610 to detect non-compliance and output the position number.
[0078] S606, when the height package height max in Table 3 and the height limit package height min in Table 1 of the prohibited device installation area are subtracted, if the result is greater than 0, it is judged that it fails and the device is too high, and the process goes to S610 to return the item number and center coordinates of the current check in Table 3 for modification. If the result is greater than 0, it is judged that it passes, and the process goes to S608 to place the device in accordance with the height restriction area requirements;
[0079] S608, check compliance and check the next device item in Table 3;
[0080] S610, detect non-compliance, output the bit number, and check the next device item in Table 5.
[0081] Take the detection of PCB board component height data and the data of positioning components, chips, and screw holes as an example. Figure 7 As shown, Figure 7 This is a flow chart of a positioning device detection of a printed circuit board according to an embodiment of the present application, which specifically includes the following steps:
[0082] S702, traverse and check all items in the sequence number of Table 4 in turn, first determine the position number information, if it starts with MH, it means it is a screw, then go to S704 to continue to determine the coordinate information, if it does not start with MH, it is not a screw, then go to S706 to determine the coordinates only;
[0083] S704, obtain the coordinate value of item 1 in Table 4, and compare it with the location coordinates of the PINs of all items in Table 2, location-xy. If xx=0, yy=0 exists, it is determined that the coordinates of the item currently checked in Table 4 are accurate, and the process goes to S708 to obtain the drill size value of the item, otherwise, the process goes to S712;
[0084] S706, obtain the coordinate value of item 1 in Table 4, and compare it with the location coordinates of the PINs of all items in Table 2, location-xy. If xx=0, yy=0 exists, the device position under the item currently checked in Table 4 is correct, and the process goes to S710. If there is no xx=0, yy=0 after the traversal check, it is determined that the device position under the item is wrong, and the process goes to S713 to return the position number and coordinates under the item for modification.
[0085] S708, if the drill size value in Table 4 minus the circledrill size value of the PIN in Table 2 is zero, then the judgment is passed and the process goes to S710, otherwise the process goes to S712 and the position number and coordinates are returned for modification;
[0086] S710, if the test is in compliance, proceed to the next device inspection;
[0087] S712, detect non-compliance, output the bit number, and proceed to check the next device.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0089] In this embodiment, a printed circuit board detection device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0090] Figure 8 is a structural block diagram of a printed circuit board detection device according to an embodiment of the present application, such as Figure 8 As shown, the device comprises:
[0091] A first acquisition module 802 is used to acquire a structural installation restriction file of a printed circuit board, and generate structural installation restriction information based on the structural installation restriction file, wherein the structural installation restriction file includes a plurality of files restricting the device installation area in the printed circuit board, and the structural installation restriction information includes a plurality of information restricting the device installation area extracted from the structural installation restriction file, and the structural installation restriction information is information in a preset format;
[0092] The second acquisition module 804 is used to acquire the device information of the printed circuit board, wherein the device information includes device attribute information and structural installation information of the device installed in the device installation area;
[0093] A first generating module 806, configured to generate target device information using the device information, wherein the target device information is information in the preset format;
[0094] The first detection module 808 is used to detect the device installation in the above-mentioned printed circuit board based on the above-mentioned structural installation restriction information and the above-mentioned target device information to obtain a detection result, wherein the above-mentioned detection result is used to indicate whether there is any abnormality in the installation of the device in the above-mentioned printed circuit board.
[0095] In an exemplary embodiment, the first acquisition module includes: a first acquisition submodule, used to acquire the first restriction file and the second restriction file of the printed circuit board to obtain the structural installation restriction file, wherein the first restriction file includes multiple structural restriction categories of the device installation area, and the second restriction file includes structural restriction information corresponding to each of the structural restriction categories; a first extraction submodule, used to extract multiple structural restriction categories from the first restriction file, and convert the multiple structural restriction categories into information in the preset format to obtain multiple target structural restriction categories; a second extraction submodule, used to extract structural restriction information corresponding to multiple target structural restriction categories from the second restriction file, and convert the structural restriction information into information in the preset format to obtain target structural restriction information corresponding to multiple target structural restriction categories; a first determination submodule, used to determine the association between multiple target structural restrictions and the corresponding target structural restriction information to obtain the structural installation restriction information.
[0096] In an exemplary embodiment, the second extraction submodule includes: a first import unit, used to import the second restriction file into the drawing file of the printed circuit board, wherein the drawing file is used to generate the design drawing file of the printed circuit board; a first extraction unit, used to extract the structural restriction information corresponding to the multiple target structural restriction categories in the second restriction file from the drawing file through the set attribute extraction instruction; a first conversion unit, used to convert the structural restriction information corresponding to the multiple target structural restriction categories into the information in the preset format, and obtain the target structural restriction information corresponding to the multiple target structural restriction categories.
[0097] In an exemplary embodiment, the first extraction unit includes: a first response subunit, which is used to respond to the structure extraction instruction when the property extraction instruction includes the structure extraction instruction, and extract the first restriction information corresponding to the structure restriction category in the second restriction file from the drawing file, wherein the structure restriction category is a restriction category among the multiple target structure restriction categories, and the first restriction information includes at least one of the following: height restriction of the device mounting area, height restriction of the prohibited wiring area in the printed circuit board, height restriction of the prohibited device mounting area in the printed circuit board, position restriction of the device mounting area, position restriction of the prohibited wiring area in the printed circuit board, and position restriction of the prohibited device mounting area in the printed circuit board; a second response subunit, which is used to respond to the positioning extraction instruction when the property extraction instruction includes the positioning extraction instruction, and extract the second restriction information corresponding to the positioning restriction category in the second restriction file from the drawing file, wherein the positioning restriction category is a restriction category among the multiple target structure restriction categories, and the second restriction information includes at least one of the following: coordinate constraint of the mounting hole area in the printed circuit board, and size constraint of the mounting hole area in the printed circuit board; wherein the structure restriction information includes the first restriction information and the second restriction information.
[0098] In an exemplary embodiment, the first extraction unit further includes: a first integration subunit, which is used to respond to the positioning extraction instruction when the attribute extraction instruction includes a positioning extraction instruction, extract the second restriction information corresponding to the positioning restriction category in the second restriction file from the drawing file, and then integrate the first restriction information to obtain a first structure installation restriction table; a second integration subunit, which is used to integrate the second restriction information to obtain a second structure installation restriction table, wherein the target structure restriction information includes the first restriction information and the second restriction information; and a first generation subunit, which is used to generate a structure installation restriction table using the first structure installation restriction table and the second structure installation restriction table.
[0099] In an exemplary embodiment, the second acquisition module includes: a first response submodule, which is used to respond to the property query instruction and search the property display interface of the printed circuit board, wherein the property display interface is used to display the development code information of the printed circuit board; a first interception submodule, which is used to intercept the property display interface and extract the device code information corresponding to the device from the development code information included in the intercepted property display interface to obtain the device information; the first generation module includes: a third extraction submodule, which is used to extract the device property information and the structure installation information from the device information; a first conversion submodule, which is used to convert the device property information and the structure installation information into the preset format information, and integrate the converted information into a preset table to obtain the target device information.
[0100] In an exemplary embodiment, the above-mentioned first detection module includes: a first generation submodule, which is used to generate a device information table to be inspected based on the attribute information of the above-mentioned device included in the above-mentioned target device information and the structural installation information of the above-mentioned device; a first traversal submodule, which is used to traverse the above-mentioned device information table to be inspected, so as to compare the multiple installation information to be inspected included in the above-mentioned device information table with the corresponding multiple restriction information in the structural installation restriction table, and obtain a comparison result, wherein the above-mentioned structural installation restriction table is a restriction table generated based on multiple information in the above-mentioned structural installation restriction information; the first detection submodule is used to use the above-mentioned comparison result to detect the device installation in the above-mentioned printed circuit board to obtain the above-mentioned detection result.
[0101] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0102] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0103] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0104] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0105] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0106] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0107] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0108] The embodiments of the present application also provide a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0109] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0110] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0111] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting a printed circuit board, characterized in that: include: Obtaining a structural installation restriction file of a printed circuit board, and generating structural installation restriction information based on the structural installation restriction file, wherein the structural installation restriction file includes a plurality of files restricting the device installation area in the printed circuit board, the structural installation restriction information includes a plurality of information restricting the device installation area extracted from the structural installation restriction file, and the structural installation restriction information is information in a preset format; Acquiring device information of the printed circuit board, wherein the device information includes device attribute information and structural installation information of the device installed in the device installation area; Generate target device information using the device information, wherein the target device information is information in the preset format; The device installation in the printed circuit board is detected based on the structural installation restriction information and the target device information to obtain a detection result, wherein the detection result is used to indicate whether there is an abnormality in the installation of the device in the printed circuit board.
2. The method according to claim 1, characterized in that: Acquiring a structural installation restriction file of a printed circuit board, and generating structural installation restriction information based on the structural installation restriction file, including: Acquire a first restriction file and a second restriction file of the printed circuit board to obtain the structural installation restriction file, wherein the first restriction file includes a plurality of structural restriction categories of the device installation area, and the second restriction file includes structural restriction information corresponding to each structural restriction category; Extracting a plurality of the structural restriction categories from the first restriction file, and converting the plurality of the structural restriction categories into information in the preset format, to obtain a plurality of target structural restriction categories; Extracting structural restriction information corresponding to the plurality of target structural restriction categories from the second restriction file, and converting the structural restriction information into information in the preset format, to obtain target structural restriction information corresponding to the plurality of target structural restriction categories; Determine the association relationship between the plurality of target structure restrictions and the corresponding target structure restriction information to obtain the structure installation restriction information.
3. The method according to claim 2, characterized in that Extracting structural restriction information corresponding to the plurality of target structural restriction categories from the second restriction file, and converting the structural restriction information into information in the preset format, to obtain target structural restriction information corresponding to the plurality of target structural restriction categories, includes: Importing the second restriction file into a drawing file of the printed circuit board, wherein the drawing file is used to generate a design drawing file of the printed circuit board; extracting the structural restriction information corresponding to the plurality of target structural restriction categories in the second restriction file from the drawing file through a set attribute extraction instruction; The structure restriction information corresponding to the plurality of target structure restriction categories is converted into information in the preset format to obtain the target structure restriction information corresponding to the plurality of target structure restriction categories.
4. The method according to claim 3, characterized in that Extracting the structure restriction information corresponding to the plurality of target structure restriction categories in the second restriction file from the drawing file through the set attribute extraction instruction includes: In the case where the attribute extraction instruction includes a structure extraction instruction, in response to the structure extraction instruction, extracting first restriction information corresponding to the structure restriction category in the second restriction file from the drawing file, wherein the structure restriction category is a restriction category among the plurality of target structure restriction categories, and the first restriction information includes at least one of the following: a height restriction of the device mounting area, a height restriction of the prohibited wiring area in the printed circuit board, a height restriction of the prohibited device mounting area in the printed circuit board, a position restriction of the device mounting area, a position restriction of the prohibited wiring area in the printed circuit board, and a position restriction of the prohibited device mounting area in the printed circuit board; In the case where the attribute extraction instruction includes a positioning extraction instruction, in response to the positioning extraction instruction, second restriction information corresponding to the positioning restriction category in the second restriction file is extracted from the drawing file, wherein the positioning restriction category is a restriction category among the plurality of target structure restriction categories, and the second restriction information includes at least one of the following: coordinate constraints of the mounting hole area in the printed circuit board, and size constraints of the mounting hole area in the printed circuit board; The structural restriction information includes the first restriction information and the second restriction information.
5. The method according to claim 4, characterized in that In the case where the attribute extraction instruction includes a positioning extraction instruction, after extracting the second restriction information corresponding to the positioning restriction category in the second restriction file from the drawing file in response to the positioning extraction instruction, the method further includes: Integrate the first restriction information to obtain a first structure installation restriction table; Integrating the second restriction information to obtain a second structure installation restriction table, wherein the target structure restriction information includes the first restriction information and the second restriction information; A structure installation restriction table is generated using the first structure installation restriction table and the second structure installation restriction table.
6. The method according to claim 1, characterized in that Acquiring the device information of the printed circuit board includes: responding to a property query instruction, searching for a property display interface of the printed circuit board, wherein the property display interface is used to display the development code information of the printed circuit board; intercepting the property display interface, and extracting the device code information corresponding to the device from the development code information included in the intercepted property display interface to obtain the device information; The target device information is generated by using the device information, including: extracting the device attribute information and the structural installation information from the device information; converting the device attribute information and the structural installation information into information in the preset format, and integrating the converted information in a preset table to obtain the target device information.
7. The method according to claim 1, characterized in that Detecting the device installation in the printed circuit board based on the structural installation restriction information and the target device information to obtain a detection result, including: Generate a device-to-be-tested information table based on the device attribute information and the device structure installation information included in the target device information; Traversing the device to be inspected information table to compare the plurality of installation information to be inspected included in the device to be inspected information table with the plurality of restriction information corresponding to the structure installation restriction table to obtain a comparison result, wherein the structure installation restriction table is a restriction table generated based on the plurality of information in the structure installation restriction information; The device installation in the printed circuit board is detected using the comparison result to obtain the detection result.
8. A printed circuit board detection device, characterized in that: include: A first acquisition module is used to acquire a structural installation restriction file of a printed circuit board, and generate structural installation restriction information based on the structural installation restriction file, wherein the structural installation restriction file includes a plurality of files restricting a device installation area in the printed circuit board, the structural installation restriction information includes a plurality of information restricting the device installation area extracted from the structural installation restriction file, and the structural installation restriction information is information in a preset format; A second acquisition module is used to acquire device information of the printed circuit board, wherein the device information includes device attribute information and structural installation information of the device installed in the device installation area; A first generating module, configured to generate target device information using the device information, wherein the target device information is information in the preset format; The first detection module is used to detect the device installation in the printed circuit board based on the structural installation restriction information and the target device information to obtain a detection result, wherein the detection result is used to indicate whether there is any abnormality in the installation of the device in the printed circuit board.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Design drawing inspection system and design drawing inspection method
TWI931113B
