Analysis method and device for PCB welding, terminal equipment and storage medium
By generating and displaying the PCB design UI interface based on Gerber files and BOM files, the problems of poor information correlation and insufficient positioning accuracy in traditional analysis methods are solved, and efficient and accurate PCB welding analysis and automated welding process are achieved.
Patent Information
- Application Number
- CN202510060039.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-06
AI Technical Summary
The traditional PCB welding analysis method has problems such as poor information correlation, complex data analysis, and insufficient positioning accuracy when processing Gerber files and BOM files, resulting in low efficiency in the welding process.
By generating and displaying a PCB design UI interface based on Gerber files and BOM files, combining the component information panel and the PCB layout view module, realizing the instant association and synchronous display of component information and PCB layout information.
It improves the accuracy and efficiency of PCB welding, realizes rapid positioning and automated analysis of the welding process, and significantly improves the overall efficiency of welding operations.
Smart Images

Figure CN119940273A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of industrial automation, and in particular relates to an analysis method, device, terminal equipment and storage medium for PCB welding. Background Art
[0002] In modern electronic manufacturing, the design and welding quality of PCB (printed circuit board) directly affect the performance and reliability of the product. Currently, the industry generally uses Gerber files to describe the physical layout of PCBs and BOM (bill of materials) files to manage component information. However, traditional PCB welding analysis methods have multiple problems when processing these files, such as poor information correlation, complex data analysis, and insufficient positioning accuracy. This leads to inefficient welding process. A new technical solution is needed to solve the above technical problems. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a PCB welding analysis method, apparatus, terminal device and storage medium, which can solve the problem of low efficiency of the welding process caused by the traditional PCB welding analysis method in the related art.
[0004] A first aspect of the present invention provides a method for analyzing PCB welding, comprising: Generate and display the PCB design UI interface based on the Gerber file and BOM file. The PCB design UI interface includes the component information panel and the PCB layout view module to show the specific location of each component on the PCB board; When the target component control in the component information panel is selected, in the PCB layout view module, the target rendering area corresponding to the target component control is displayed in the first preset display style; When the target rendering area in the PCB layout view module is selected, in the component information panel, the target component control corresponding to the target rendering area is displayed in the second preset display style.
[0005] Optionally, in a first implementation of the first aspect of the present invention, when a target rendering area in the PCB layout view module is selected, in the component information panel, the step of displaying a target component control corresponding to the target rendering area in a second preset display style includes: When the layer control in the PCB layout view module is selected, the specified layer rendering corresponding to the layer control is displayed in the PCB layout view module; Use the specified layer rendering as the selected target rendering area; In the component information panel, the target component controls corresponding to the target rendering area are displayed in the second preset display style.
[0006] Optionally, in a second implementation of the first aspect of the present invention, the step of generating and displaying a PCB design UI interface based on a Gerber file and a BOM file includes: When an analysis request is detected, the analysis request is parsed to obtain the Gerber file and the BOM file; Perform data association operation on the Gerber file and the BOM file to obtain an associated data file; Generate and display the PCB design UI interface based on the Gerber file, BOM file and associated data files to respond to analysis requests.
[0007] Optionally, in a third implementation of the first aspect of the present invention, the step of performing a data association operation on the Gerber file and the BOM file to obtain an associated data file includes: Perform data association operation on the component designator in the Gerber file and the component coordinates in the BOM file to obtain an associated data file.
[0008] Optionally, in a fourth implementation of the first aspect of the present invention, after the step of generating and displaying a PCB design UI interface based on a Gerber file and a BOM file, the method further includes: When the welding report generation instruction is detected, the UI interface snapshot is exported, and the UI interface snapshot reflects the current status of the PCB design UI interface; The report generation operation is performed according to the UI interface information to obtain the welding report in response to the generation instruction.
[0009] Optionally, in a fifth implementation of the first aspect of the present invention, the step of displaying the target component control corresponding to the target rendering area in a second preset display style includes: Only target component controls corresponding to the target render region are displayed.
[0010] Optionally, in a sixth implementation of the first aspect of the present invention, the step of displaying the target rendering area corresponding to the target component control in the first preset display style includes: Highlights the target rendering area corresponding to the target component control.
[0011] In a second aspect, an embodiment of the present invention provides a PCB welding analysis device, comprising: The display module is used to generate and display the PCB design UI interface based on the Gerber file and BOM file. The PCB design UI interface includes the component information panel and the PCB layout view module to show the specific location of each component on the PCB board; A first display module, used for displaying a target rendering area corresponding to the target component control in a first preset display style in a PCB layout view module when the target component control in the component information panel is selected; The second display module is used to display the target component control corresponding to the target rendering area in the component information panel in a second preset display style when the target rendering area in the PCB layout view module is selected.
[0012] In a third aspect, an embodiment of the present invention 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 above-mentioned PCB welding analysis method when executing the computer program.
[0013] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned PCB welding analysis method are implemented.
[0014] In a fifth aspect, an embodiment of the present invention provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the above-mentioned PCB welding analysis method.
[0015] The beneficial effects of the embodiments of the present invention compared with the prior art are: based on the Gerber file and the BOM file, a PCB design UI interface is generated and displayed, and the PCB design UI interface includes a component information panel and a PCB layout view module to present the specific position of each component on the PCB board; when the target component control in the component information panel is selected, the target rendering area corresponding to the target component control is displayed in the PCB layout view module in a first preset display style; when the target rendering area in the PCB layout view module is selected, the target component control corresponding to the target rendering area is displayed in the component information panel in a second preset display style. By parsing the Gerber and BOM files, the bit number is accurately associated with the PCB position, which can realize the rapid positioning of the welding process and improve the accuracy of PCB welding. In addition, the automated analysis of the welding process can be realized, which significantly improves the overall efficiency of the welding operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1A schematic diagram of an embodiment of a method for analyzing PCB welding in an embodiment of the present invention; Figure 2 A schematic diagram of a specific embodiment of step S103 of the PCB welding analysis method in an embodiment of the present invention; Figure 3 A schematic diagram of a specific embodiment of step S101 of the PCB welding analysis method in an embodiment of the present invention; Figure 4 A schematic diagram of an embodiment of a PCB welding analysis device according to an embodiment of the present invention; Figure 5 The figure is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are protected by the present invention.
[0019] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specifications and drawings of the present invention, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.
[0020] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0021] PCB (Printed Circuit Board) design refers to the design of circuit boards using electronic design automation software.
[0022] In the traditional design view presentation method, component information and PCB layout information are usually displayed separately, which may cause designers to frequently switch between multiple interfaces during design, reducing design efficiency. A new technical solution is needed to solve the above technical problems.
[0023] In view of this, the embodiments of the present invention provide a PCB welding analysis method, device, terminal device and storage medium. By combining the component information panel with the PCB layout view module, designers can view and edit components in the layout view more intuitively and obtain detailed information of the components instantly. By simultaneously displaying the component information panel and the PCB layout view module in the same UI interface (i.e., the PCB design UI interface), the instant association and synchronous display of component information and PCB layout information are achieved. Designers do not need to switch frequently between multiple interfaces, which significantly improves design efficiency.
[0024] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0025] Figure 1 The present invention provides a schematic diagram of the implementation process of a PCB welding analysis method provided by an embodiment of the present invention, which can be applied to a terminal device. The terminal device can be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.
[0026] Specifically, the above PCB welding analysis method may include the following steps S101 to S103.
[0027] Step S101, based on the Gerber file and the BOM file, generate and display the PCB design UI interface, the PCB design UI interface includes a component information panel and a PCB layout view module to present the specific position of each component on the PCB board.
[0028] In the embodiment of the present invention, in step S101, the user can upload the Gerber\PCB file and the BOM file through the initial interface. The PCB welding analysis device automatically parses the file and renders the PCB layer.
[0029] Specifically, the PCB soldering analysis device supports the analysis of multiple Gerber file formats, including but not limited to RS-274X and Gerber X2 formats. During the analysis process, the information of silk screen, copper, pad and line layers is extracted and visualized through the graphics rendering engine.
[0030] Specifically, the PCB welding analysis device supports extracting component number, description, quantity and other information from BOM files in CSV or Excel format, and generates associated data objects of number and coordinates. Through the center point data in the coordinate file, the center position of the pad in the corresponding layer can be quickly found.
[0031] Based on the Gerber\PCB file and BOM file, create a PCB design UI interface, which includes a component information panel and a PCB layout view module. The component information panel is used to display detailed information of the component, while the PCB layout view module is used to display the actual layout of the PCB.
[0032] The generated UI interface is displayed to the user, and the user can start to interact with the interface. Combined with the PCB design UI interface, the user can easily view the specific location of each component on the PCB board, which is convenient for subsequent welding and inspection.
[0033] Step S102, when the target component control in the component information panel is selected, in the PCB layout view module, the target rendering area corresponding to the target component control is displayed in a first preset display style.
[0034] In an embodiment of the present invention, a user may interact by clicking or selecting a target component control in the component information panel.
[0035] In response to the selection of the component control, the PCB welding analysis device displays the target rendering area corresponding to the target component control in the PCB layout view module in a first preset display style.
[0036] Optionally, the target rendering area corresponding to the target component control is highlighted.
[0037] Step S103, when the target rendering area in the PCB layout view module is selected, the target component control corresponding to the target rendering area is displayed in the component information panel in a second preset display style.
[0038] When the user clicks or selects the target rendering area in the PCB layout view module, the PCB welding analysis device responds to the selection of the target rendering area and displays the target component control corresponding to the target rendering area in the component information panel in a second preset display style (such as highlighting or displaying only relevant information).
[0039] Users can iterate through component and layout selections to view detailed information on different components and their locations on the PCB.
[0040] The program updates the UI interface in real time based on user interaction, so that the information the user sees is the latest.
[0041] When the user finishes viewing or analyzing, he can choose to close the program or save the current state. If the user chooses to save, the program saves the current UI state or related analysis results to the specified location.
[0042] The beneficial effects of the embodiments of the present invention compared with the prior art are: based on the Gerber file and the BOM file, a PCB design UI interface is generated and displayed, and the PCB design UI interface includes a component information panel and a PCB layout view module to present the specific position of each component on the PCB board; when the target component control in the component information panel is selected, the target rendering area corresponding to the target component control is displayed in the PCB layout view module in a first preset display style; when the target rendering area in the PCB layout view module is selected, the target component control corresponding to the target rendering area is displayed in the component information panel in a second preset display style. By parsing the Gerber and BOM files, the bit number is accurately associated with the PCB position, which can realize the rapid positioning of the welding process and improve the accuracy of PCB welding. In addition, the automated analysis of the welding process can be realized, which significantly improves the overall efficiency of the welding operation.
[0043] In the traditional method of PCB design, designers usually need to perform layout and wiring work on a two-dimensional plane. However, with the increasingly obvious trend of miniaturization and complexity of electronic products, the limitations of the two-dimensional design method have gradually emerged. In order to overcome these limitations, modern PCB design software has begun to introduce three-dimensional design functions. In a three-dimensional design environment, designers can view and modify various parts of the PCB design more intuitively. However, this three-dimensional design environment also brings new challenges, namely how to establish effective association and synchronization between the three-dimensional layout and the two-dimensional information panel. Based on this, the present invention proposes an optional embodiment.
[0044] Figure 2 Schematic diagram of a specific embodiment of step S103 of the method for analyzing PCB welding in an embodiment of the present invention. Step 103 also includes the following specific implementation methods.
[0045] Step S1031, when the layer control in the PCB layout view module is selected, a specified layer rendering corresponding to the layer control is displayed in the PCB layout view module.
[0046] In an embodiment of the present invention, if a user selects a layer control in the PCB layout view module, the layer control represents a specific layer in the PCB design, such as the top layer, bottom layer, mechanical layer, etc.
[0047] In response to the selection event of the layer control, the specified layer rendering corresponding to the layer control is displayed in the PCB layout view module. The specified layer rendering shows the actual layout of all components and wiring on the layer.
[0048] Step S1032: The designated layer rendering image is used as the selected target rendering area.
[0049] In an embodiment of the present invention, if a user selects a specific target rendering area from a specified layer rendering, the corresponding target component control is searched and associated in the component information panel according to the information of the target rendering area. The target rendering area is a specific component, a set of wirings, or a specific functional area. The target component control represents a specific component in the PCB design, and its properties, specifications, and location information match the target rendering area.
[0050] Step S1033: displaying the target component control corresponding to the target rendering area in the component information panel in a second preset display style.
[0051] Optionally, only target component controls corresponding to the target rendering area are displayed.
[0052] In an embodiment of the present invention, in response to a selection event of a target rendering area, the target component control is displayed in the component information panel in a second preset display style. The display style may include highlighting, enlarged display, border thickening or color change, etc., so that the user can clearly identify the selected target component control.
[0053] In the embodiment of the present invention, by establishing an intuitive association between the PCB layout view module and the component information panel, the user can more conveniently search and modify the component information in the PCB design, thereby reducing errors and omissions in the design process and improving design efficiency.
[0054] Figure 3 Schematic diagram of a specific embodiment of step S101 of the method for analyzing PCB welding in an embodiment of the present invention. Step 101 also includes the following specific implementation methods.
[0055] Step S1011, when an analysis request is detected, the analysis request is parsed to obtain a Gerber file and a BOM file.
[0056] In an embodiment of the present invention, when a user issues an analysis request for analyzing a PCB design, the analysis request is parsed to extract the required Gerber file and BOM file information.
[0057] Step S1012, performing a data association operation on the Gerber file and the BOM file to obtain an associated data file.
[0058] In an embodiment of the present invention, the extracted Gerber file is associated with the BOM file, and the accurate position information of the components in the PCB layout can be established by matching and associating the component designations in the Gerber file with the component coordinates in the BOM file.
[0059] After the data association operation is completed, an associated data file containing the association information is generated.
[0060] Step S1013, generating and displaying a PCB design UI interface based on the Gerber file, BOM file and associated data files to respond to the analysis request.
[0061] In an embodiment of the present invention, a PCB design UI interface is generated based on the Gerber file, BOM file and associated data file. The interface includes a component information panel and a PCB layout view module for intuitively displaying various aspects of PCB design.
[0062] In the embodiment of the present invention, by automatically parsing the analysis request, executing the data association operation and generating the PCB design UI interface, the design cycle is shortened and the design efficiency is improved.
[0063] Step 1012 also includes the following specific implementation.
[0064] Step S10121, performing data association operation on the component number in the Gerber file and the component coordinates in the BOM file to obtain an associated data file.
[0065] In an embodiment of the present invention, the component reference numbers in the Gerber file are matched with the component coordinates in the BOM file, which can be achieved by comparing the unique identifiers (such as component reference numbers) in the two files.
[0066] During the matching process, each component number has corresponding coordinate information in the BOM file, and the coordinate information is accurate.
[0067] The successfully matched component part numbers and coordinate information are integrated into a new data file, namely the associated data file. The associated data file will serve as the basis for the subsequent PCB design UI interface generation and display.
[0068] In the embodiment of the present invention, by associating the Gerber file with the BOM file, the workload of manual input and verification is reduced, thereby improving the efficiency of PCB design. The association process reduces errors caused by human factors.
[0069] Since PCB design may undergo multiple revisions and updates, manually generated soldering reports are easily inconsistent with the latest design status. Traditional report generation methods require engineers to manually input or copy and paste a large amount of information, which is not only time-consuming but also prone to errors. Based on this, the present invention proposes an optional embodiment.
[0070] Step 101 also includes the following specific implementation.
[0071] Step S201, when a welding report generation instruction is detected, a UI interface snapshot is exported, and the UI interface snapshot reflects the current state of the PCB design UI interface.
[0072] In an embodiment of the present invention, when a user needs to generate a welding report, a generation instruction is triggered. The generation instruction may be generated by clicking a button of a user interface (UI), selecting a menu, or other methods.
[0073] When receiving the soldering report command, a snapshot of the current PCB design UI interface will be exported. This snapshot is a static image or image sequence that reflects the current state of the PCB design UI interface, including the contents of all component information panels and PCB layout view modules.
[0074] Step S202, performing a report generation operation according to the UI interface information to obtain a welding report in response to a generation instruction.
[0075] In an embodiment of the present invention, a soldering report generation operation is performed based on the exported UI interface snapshot. The soldering report may include detailed information about the PCB design, such as component locations, soldering points, electrical connections, etc.
[0076] In the embodiment of the present invention, by exporting the UI interface snapshot and generating a welding report based on it, it is possible to ensure that the information in the report is completely consistent with the state during PCB design, thereby improving the accuracy of the report. This avoids the tedious process of manually inputting or copying and pasting information, and simplifies the process of report generation.
[0077] Since PCB design may undergo multiple revisions and updates, manually generated soldering reports are easily inconsistent with the latest design status. Traditional report generation methods require engineers to manually input or copy and paste a large amount of information, which is not only time-consuming but also prone to errors. Based on this, the present invention proposes an optional embodiment.
[0078] Step 101 also includes the following specific implementation.
[0079] Step S201, when a welding report generation instruction is detected, a UI interface snapshot is exported, and the UI interface snapshot reflects the current state of the PCB design UI interface.
[0080] In an embodiment of the present invention, when a user needs to generate a welding report, a generation instruction is triggered. The generation instruction may be generated by clicking a button of a user interface (UI), selecting a menu, or other methods.
[0081] When receiving the soldering report command, a snapshot of the current PCB design UI interface will be exported. This snapshot is a static image or image sequence that reflects the current state of the PCB design UI interface, including the contents of all component information panels and PCB layout view modules.
[0082] Step S202, performing a report generation operation according to the UI interface information to obtain a welding report in response to a generation instruction.
[0083] In an embodiment of the present invention, a soldering report generation operation is performed based on the exported UI interface snapshot. The soldering report may include detailed information about the PCB design, such as component locations, soldering points, electrical connections, etc.
[0084] In the embodiment of the present invention, by exporting the UI interface snapshot and generating a welding report based on it, it is possible to ensure that the information in the report is completely consistent with the state during PCB design, thereby improving the accuracy of the report. This avoids the tedious process of manually inputting or copying and pasting information, and simplifies the process of report generation.
[0085] Figure 4 The schematic diagram of the structure of a PCB welding analysis device provided by an embodiment of the present invention is shown. The PCB welding analysis device 400 can be configured on a terminal device. Specifically, the PCB welding analysis device 400 can include: The display module 401 is used to generate and display the PCB design UI interface based on the Gerber file and the BOM file. The PCB design UI interface includes a component information panel and a PCB layout view module to present the specific position of each component on the PCB board; A first display module 402 is used to display a target rendering area corresponding to the target component control in a first preset display style in a PCB layout view module when the target component control in the component information panel is selected; The second display module 403 is used to display the target component control corresponding to the target rendering area in the component information panel in a second preset display style when the target rendering area in the PCB layout view module is selected.
[0086] The beneficial effects of the embodiments of the present invention compared with the prior art are: based on the Gerber file and the BOM file, a PCB design UI interface is generated and displayed, and the PCB design UI interface includes a component information panel and a PCB layout view module to present the specific position of each component on the PCB board; when the target component control in the component information panel is selected, the target rendering area corresponding to the target component control is displayed in the PCB layout view module in a first preset display style; when the target rendering area in the PCB layout view module is selected, the target component control corresponding to the target rendering area is displayed in the component information panel in a second preset display style. By parsing the Gerber and BOM files, the bit number is accurately associated with the PCB position, which can realize the rapid positioning of the welding process and improve the accuracy of PCB welding. In addition, the automated analysis of the welding process can be realized, which significantly improves the overall efficiency of the welding operation.
[0087] In some embodiments of the present invention, the second display module 403 is further used for: When the layer control in the PCB layout view module is selected, the specified layer rendering corresponding to the layer control is displayed in the PCB layout view module; Use the specified layer rendering as the selected target rendering area; In the component information panel, the target component controls corresponding to the target rendering area are displayed in the second preset display style.
[0088] In some embodiments of the present invention, the display module 401 is further used for: When an analysis request is detected, the analysis request is parsed to obtain the Gerber file and the BOM file; Perform data association operation on the Gerber file and the BOM file to obtain an associated data file; Generate and display the PCB design UI interface based on the Gerber file, BOM file and associated data files to respond to analysis requests.
[0089] In some embodiments of the present invention, the display module 401 is further used for: Perform data association operation on the component designator in the Gerber file and the component coordinates in the BOM file to obtain an associated data file.
[0090] In some embodiments of the present invention, the PCB welding analysis device 400 further includes an export module for: When the welding report generation instruction is detected, the UI interface snapshot is exported, and the UI interface snapshot reflects the current status of the PCB design UI interface; The report generation operation is performed according to the UI interface information to obtain the welding report in response to the generation instruction.
[0091] In some embodiments of the present invention, the second display module 403 is further used for: Only target component controls corresponding to the target render region are displayed.
[0092] In some embodiments of the present invention, the first display module 402 is further used for: Highlights the target rendering area corresponding to the target component control.
[0093] like Figure 5 , which is a schematic diagram of a terminal device provided by an embodiment of the present invention. The terminal device 5 may include: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as an analysis program for PCB welding. When the processor 501 executes the computer program 503, the steps in the above-mentioned analysis embodiments of PCB welding are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0094] The computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 502 and executed by the processor 501 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0095] The terminal device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0096] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0097] The memory 502 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 502 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 502 may also include both an internal storage unit of the terminal device and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the terminal device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
[0098] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.
[0099] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0100] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned PCB welding analysis method can be implemented.
[0101] An embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the steps in the above-mentioned PCB welding analysis method can be implemented when the mobile terminal executes the computer program product.
[0102] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0103] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0104] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0106] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0107] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0108] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these 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 invention, and should be included in the protection scope of the present invention.
Claims
1. A method for analyzing PCB welding, characterized in that: include: Generate and display a PCB design UI interface based on the Gerber file and the BOM file. The PCB design UI interface includes a component information panel and a PCB layout view module to present the specific location of each component on the PCB board. When a target component control in the component information panel is selected, a target rendering area corresponding to the target component control is displayed in a first preset display style in the PCB layout view module; When the target rendering area in the PCB layout view module is selected, the target component control corresponding to the target rendering area is displayed in the component information panel in a second preset display style.
2. The PCB welding analysis method according to claim 1, characterized in that: When the target rendering area in the PCB layout view module is selected, the step of displaying the target component control corresponding to the target rendering area in the component information panel in a second preset display style includes: When a layer control in the PCB layout view module is selected, a designated layer rendering corresponding to the layer control is displayed in the PCB layout view module; Using the designated layer rendering image as the selected target rendering area; In the component information panel, the target component control corresponding to the target rendering area is displayed in a second preset display style.
3. The PCB welding analysis method according to claim 1, characterized in that: The steps of generating and displaying the PCB design UI interface based on the Gerber file and the BOM file include: When an analysis request is detected, the analysis request is parsed to obtain the Gerber file and the BOM file; Performing a data association operation on the Gerber file and the BOM file to obtain an associated data file; The PCB design UI interface is generated and displayed according to the Gerber file, the BOM file and the associated data file to respond to the analysis request.
4. The PCB welding analysis method as claimed in claim 3, characterized in that: The step of performing a data association operation on the Gerber file and the BOM file to obtain an associated data file comprises: The data association operation is performed on the component number in the Gerber file and the component coordinates in the BOM file to obtain the associated data file.
5. The PCB welding analysis method according to claim 1, characterized in that: After the step of generating and displaying the PCB design UI interface based on the Gerber file and the BOM file, the method further includes: When a welding report generation instruction is detected, a UI interface snapshot is exported, wherein the UI interface snapshot reflects the current state of the PCB design UI interface; A report generation operation is performed according to the UI interface information to obtain the welding report in response to the generation instruction.
6. The PCB welding analysis method according to claim 1, characterized in that: The step of displaying the target component control corresponding to the target rendering area in a second preset display style comprises: Only the target component controls corresponding to the target rendering area are displayed.
7. The PCB welding analysis method according to claim 1, characterized in that: The step of displaying the target rendering area corresponding to the target component control in a first preset display style comprises: The target rendering area corresponding to the target component control is highlighted.
8. A PCB welding analysis device, characterized in that: include: A display module is used to generate and display a PCB design UI interface based on a Gerber file and a BOM file. The PCB design UI interface includes a component information panel and a PCB layout view module to present the specific location of each component on the PCB board; A first display module, used for displaying a target rendering area corresponding to the target component control in a first preset display style in the PCB layout view module when the target component control in the component information panel is selected; The second display module is used to display the target component control corresponding to the target rendering area in the component information panel in a second preset display style when the target rendering area in the PCB layout view module is selected.
9. A terminal device, comprising 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 PCB welding analysis method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the PCB welding analysis method according to any one of claims 1 to 7 are implemented.