Board component grouping method and device, electronic equipment and storage medium
By acquiring and analyzing grouping rules on the board detection interface, the grouping of board components is automatically processed, and the problems of cumbersome and insufficient flexibility in the existing technology are solved, and efficient and flexible board grouping is achieved.
Patent Information
- Application Number
- CN202310751236.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2024-12-24
AI Technical Summary
In the prior art, the grouping methods of board and card components are cumbersome, and the combination of attributes, complex logic and logic nesting cannot be realized, and the flexibility and scalability are insufficient, resulting in low grouping efficiency.
Get grouping rules on the board detection interface, call a pre-written interpreter to analyze grouping rules, traverse the components on the board to be tested, and automate grouping processing based on the grouping attributes and grouping attribute values, supporting composite grouping rules and complex logic.
It realizes automated grouping of board parts, improves grouping efficiency and flexibility, saves time and cost, and can directly group components on multiple boards.
Smart Images

Figure CN119175940A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a method and device for grouping board components, an electronic device, and a computer storage medium. Background Art
[0002] The Solder Paste Inspection (SPI) machine is based on the principle of optical imaging to detect the thickness, flatness, and printing volume of solder paste on boards before solder paste printing and SMT, so as to screen out defective boards. Before testing defective boards, you need to use the layout editing software that comes with SPI to scan and edit the pads of the boards, group and classify the pads, and uniformly give corresponding parameters.
[0003] At present, the manual grouping method is used to group the board components by various attributes. However, the manual grouping method requires manual grouping of each board, and selects a certain attribute for the SPI board type corresponding to each board, searches for components that meet the attribute value, and manually adds the group name of the component, which is cumbersome. It is also impossible to realize the combination of attributes, complex logic, and logical nesting, and lacks flexibility and scalability. Summary of the invention
[0004] The present application proposes a method and device for grouping board components, an electronic device and a computer storage medium, which can improve the flexibility and efficiency of board grouping.
[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a method for grouping board components, the grouping method comprising: on the board detection interface, obtaining the grouping rules for the components on the target board type displayed in the edit box, and one target board type corresponds to at least one board; calling a pre-written interpreter to parse the grouping rules and obtain grouping attributes and grouping attribute values; traversing the components on the board to be tested, and grouping the components on the board to be tested based on the grouping attributes and grouping attribute values.
[0006] The grouping attributes include attributes of components on the board, and the components on the board to be tested are grouped based on the grouping attributes and grouping attribute values, including: grouping the components on the board to be tested that match the grouping attributes and grouping attribute values into the same group.
[0007] Among them, the grouping rules include compound grouping rules, calling a pre-written interpreter to parse the grouping rules, and obtaining grouping attributes and grouping attribute values, including: calling a pre-written interpreter to parse the compound grouping rules, obtaining multiple grouping attributes of the components on the target board and the grouping attribute value corresponding to each grouping attribute.
[0008] The component includes at least one of a pad and a component.
[0009] The plurality of grouping attributes include the version number of the board and the attributes of the components. The boards to be tested are grouped based on the grouping attributes and the grouping attribute values, including: the components with the same attributes on the boards to be tested that have the same version number are grouped into the same group.
[0010] The method of obtaining the grouping rules written by the editor includes: constructing the editor; determining the grouping rules according to the detection requirements, and using the editor to write the grouping rules; adding a group name to the grouping rules, and saving the grouping rules to apply the grouping rules to the same type of boards.
[0011] The process of grouping the boards to be tested based on the grouping attributes and the grouping attribute values includes: inputting the attribute values corresponding to the grouping attributes of all boards to be tested and their components into the interpreter; and controlling the interpreter to group the components based on the grouping attribute values.
[0012] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a grouping device for board and card components, including: an information display and acquisition module, used to display a board and card detection interface, and obtain the grouping rules for components on the target board type displayed in the edit box on the board and card detection interface, and one target board type corresponds to at least one board and card; an interpreter, connected to the information acquisition module, used to parse the grouping rules, obtain grouping attributes and grouping attribute values; a grouping module, connected to the interpreter, used to traverse the components on the board and card to be tested, and group the components on the board and card to be tested based on the grouping attributes and grouping attribute values.
[0013] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, the electronic device includes a processor and a memory connected to the processor, the memory stores program data, and the processor executes the program data stored in the memory to execute any of the above grouping methods.
[0014] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a computer storage medium, which stores program instructions internally, and the program instructions are executed by a processor to implement any of the above grouping methods.
[0015] The beneficial effects of the present application are as follows: different from the prior art, the grouping method of the board and card components of the present application is to first obtain the grouping rules for the target board-type components displayed in the edit box on the board and card detection interface, then call the pre-written interpreter to parse the grouping rules, obtain the grouping attributes and grouping attribute values, and traverse the components on the board and card to be tested, and group the components on the board and card to be tested based on the grouping attributes and grouping attribute values. In this way, the grouping attributes and grouping attribute values in the grouping rules are used to group the components on the board and card to be tested, which can realize the automatic grouping of the components on the board and card, improve the grouping efficiency of the components on the board and card, and can improve the flexibility of the grouping of the components on the board and card. Therefore, the present application can improve the flexibility and efficiency of the board and card grouping. Further, the present application formulates the grouping rules for the board type, and there is no need to group each board and card, and the components on multiple boards under the board type can be directly grouped, which can save the time cost of grouping and further improve the grouping efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of an embodiment of a method for grouping board components of the present application;
[0017] Figure 2 yes Figure 1 A specific flow chart of step S11 in the embodiment;
[0018] Figure 3 yes Figure 1 A specific flow chart of step S13 in the embodiment;
[0019] Figure 4 It is a structural schematic diagram of an embodiment of a grouping device for board components of the present application;
[0020] Figure 5 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0021] Figure 6 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] This application first proposes a method for grouping board components, such as Figure 1 As shown, Figure 11 is a flow chart of an embodiment of a method for grouping board components of the present application. The method for grouping boards in this embodiment specifically includes the following steps:
[0024] Step S11: On the board detection interface, obtain the grouping rule for the components on the target board type displayed in the edit box, and one target board type corresponds to at least one board type.
[0025] In this embodiment, the grouping rule can be input or selected through the edit box of the board detection interface.
[0026] Among them, the board type is the electronic version of the board, and one board type can correspond to one or more identical physical boards; grouping rules can be written for one board type and applied to the classification of components on multiple similar boards. Grouping rules can also group multiple board components corresponding to one board type at the same time.
[0027] Since the solder paste inspection machine (Solder Paste Inspection, SPI) cannot accurately detect the exact value of each component on the board, it is necessary to group the components on the board to be tested. The board can be a printed circuit board (Printed Circuit Board, PCB). The grouping rules are used to assign corresponding qualified detection ranges to the components of each group, and the components of the same group are tested to obtain the test results. If the test results are within the qualified detection range, the boards in the same group are qualified. Grouping the components on the board through grouping rules can improve the efficiency of board screening.
[0028] Optionally, this embodiment may adopt Figure 2 The method shown implements step S11, and the method of this embodiment specifically includes steps S21 to S23.
[0029] Step S21: Build an editor.
[0030] Step S22: Determine the grouping rules according to the detection requirements, and use an editor to write the grouping rules.
[0031] The editor can support the combination of complex logic, logical nesting or grouping attributes. For example, the editor can be used to group components of the component type boardtype=1 into the same group. The grouping rule is the component type boardtype=1. The editor can be used to write the statement boardtype=1 to group the components corresponding to the component type. For example, the editor can be used to group components on the board with version number boardId=1 or components with an area less than 10 into the same group. The grouping rule is version number boardId=1 or area less than 10. The editor can be used to write the statement boardId==1||boardId==2 to group the corresponding components, which can solve the problem that manual grouping cannot support or logical grouping. For example, the editor can also be used to obtain the corresponding grouping rules when selecting a group within the range of component size greater than 1 and less than 10. The editor can be used to write the statement size>1||size<10 to select the corresponding components for grouping, so as to realize logical grouping of components. When grouping components, grouping using the grouping rules obtained by the editor can improve the flexibility and efficiency of component grouping.
[0032] Step S23: adding a group name to the grouping rule and saving the grouping rule to apply the grouping rule to the same type of boards.
[0033] Add a group name to the grouping rules that have been written and save them to facilitate subsequent operations of obtaining and parsing the grouping rules.
[0034] Step S12: calling a pre-written interpreter to parse the grouping rules and obtain grouping attributes and grouping attribute values.
[0035] An interpreter is pre-built, and the interpreter is used to parse the grouping rules for the components on the target board displayed in the edit box, and parse out the grouping attributes and grouping attribute values of the components to be obtained.
[0036] The above-mentioned editor and interpreter are used to compile and parse the grouping rules of the components on the board, so as to realize the automatic grouping of the components on the board, thereby improving the efficiency of the grouping of the components on the board.
[0037] The grouping attributes may be the board version number and the attributes of the components on the board, such as name, size, type, dimension, thickness, solder paste viscosity, etc. The grouping attribute value is the parameter set corresponding to the board version number and the attributes of the components on the board.
[0038] Optionally, the grouping rule may include a composite grouping rule, and a pre-written interpreter may be called to parse the composite grouping rule to obtain multiple grouping attributes of the components on the target board and the grouping attribute value corresponding to each grouping attribute.
[0039] The composite grouping rule includes complex logic, logical nesting or a combination of grouping attributes supported by the above editor. The composite grouping rule is parsed by the above interpreter to obtain multiple grouping attributes and a grouping attribute value corresponding to each grouping attribute. The multiple grouping attributes and the grouping attribute value corresponding to each grouping attribute can support complex logic, logical nesting or a combination of grouping attributes.
[0040] Step S13: traverse the components on the board to be tested, and group the board to be tested based on the grouping attributes and the grouping attribute values.
[0041] The interpreter can also be used to traverse all components on all boards to be tested, and compare the attributes and attribute values of the traversed components with the grouping attributes and grouping attribute values obtained by the interpreter to determine whether the components on the board to be tested meet the grouping rules, so as to complete the grouping of the components on the board to be tested.
[0042] This implementation utilizes the grouping attributes and grouping attribute values in the grouping rules to group the components on the board to be tested, which can realize the automatic grouping of the components on the board, improve the grouping efficiency of the components on the board, and improve the flexibility of the grouping of the components on the board. Therefore, the present application can improve the flexibility and efficiency of the board grouping. Further, this embodiment formulates grouping rules for the board type, and there is no need to group each board. The components on multiple boards under the board type can be directly grouped, which can save the time cost of grouping and further improve the grouping efficiency.
[0043] Optionally, this embodiment may adopt Figure 3 The method shown implements step S13, and the method of this embodiment specifically includes steps S31 to S32.
[0044] Step S31: inputting the attribute values corresponding to the grouping attributes of all boards to be tested and their components into the interpreter.
[0045] The interpreter is used to parse the attribute values of all boards and components to be tested corresponding to the grouping attributes, and compared with the grouping rules to determine whether the boards and components to be tested are divided into the same group or different groups. The interpreter is used to perform parsing so that the boards and components to be tested are grouped according to the parsing results, which can realize the automatic grouping of the components on the boards and improve the efficiency of the grouping of the components on the boards.
[0046] Step S32: The control interpreter groups the components based on the grouping attribute values.
[0047] The interpreter compares the properties of the components to the grouping property values to group the components.
[0048] Optionally, the grouping attribute includes attributes of components on the board, and components on the board that match the grouping attribute and the grouping attribute value are grouped into the same group.
[0049] Based on the attributes and attribute values of the components, the components on the board that match the grouping attributes and the grouping attribute values are grouped into the same group to complete the grouping of the components.
[0050] Optionally, the multiple grouping attributes include the version number of the board and the attributes of the components, and the components with the same attributes on the board to be tested that has the same version number are grouped into the same group.
[0051] Components with the same attributes can be components with attributes corresponding to complex logic, logical nesting, or a combination of grouping attributes in the grouping rules. Components with the same attributes on the board to be tested that are consistent with the version number are grouped together, and the components in the same group are tested using the qualified test range to determine whether the components are qualified. The test results can be found by searching the version number.
[0052] Optionally, the component includes at least one of a pad and a component.
[0053] The editor can be used to write the grouping rules of pads and components, and the interpreter can be used to parse the grouping rules of pads and components and group the pads and components.
[0054] By using the grouping attributes and grouping attribute values in the grouping rules to group the boards to be tested, it is possible to realize automatic grouping of components on the boards, improve the efficiency of component grouping on the boards, and improve the flexibility of component grouping. Therefore, the present application can improve the flexibility and efficiency of component grouping on the boards.
[0055] Furthermore, after grouping is completed, the same parameters can be set for the solder paste of the boards in the same group, and different parameters can be set for the solder paste of the boards in different groups. The solder paste inspection machine is used to inspect the thickness, flatness, printing volume, etc. of the boards before solder paste printing and patching according to the set parameters to determine whether the boards are qualified.
[0056] In an application scenario, an editor is used to write grouping rules, and an interpreter is used to parse the grouping rules and traverse the components on the board to be tested to determine whether the properties of the components on the board to be tested meet the grouping rules. For example, the editor is used to write the rule statement size>10&&size<100&&boardId==1, and the components with a size range greater than 10 and less than 100 and a board version number of 1 are selected and grouped into group a. The rule statement is input into the interpreter, and the interpreter parses the size and board version number of the components to be obtained, and traverses all components, and inputs the size and board version number of all components into the interpreter. Then a logical judgment is made on the data of the components. If the size of the component is greater than 10 and less than 100, and the board version number is equal to 1, the output is true, otherwise false. The components with the output of true are divided into the same group, the components with the output of false are divided into different groups, and the components with the output of true are added with the corresponding group group name. After writing the grouping rules, you can also add corresponding group names for the grouping rules. You only need to edit the grouping rules on the solder paste inspection machine once, and the grouping rules will be applied to all SPI formats on the solder paste inspection machine.
[0057] The present application further proposes a device for grouping board components, such as Figure 4 As shown, Figure 4 It is a structural schematic diagram of an embodiment of the board component grouping device of the present application. The board component grouping device of the present embodiment includes: an information display acquisition module 41, an interpreter 42 and a grouping module 43. The information display acquisition module 41 is used to display the board detection interface and obtain the grouping rules for the components on the target board type displayed in the edit box on the board detection interface. One target board type corresponds to at least one board; the interpreter 42 is connected to the information acquisition module and is used to parse the grouping rules and obtain the grouping attributes and grouping attribute values; the grouping module 43 is connected to the interpreter 42 and is used to traverse the components on the board to be tested and perform grouping processing on the components on the board to be tested based on the grouping attributes and grouping attribute values.
[0058] The information display acquisition module 41 includes a display interface and an editor, and the grouping rules determined according to the detection requirements can be written by the editor through the display interface.
[0059] The working principles of the information display acquisition module 41, the interpreter 42 and the grouping module 43 may refer to the above embodiments.
[0060] The present application further proposes an electronic device, such as Figure 5 As shown, Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The electronic device 200 includes a processor 201 and a memory 202 connected to the processor 201 .
[0061] The processor 201 may also be referred to as a CPU (Central Processing Unit). The processor 201 may be an integrated circuit chip having signal processing capabilities. The processor 201 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0062] The memory 202 is used to store program data required for the processor 201 to run.
[0063] The processor 201 is further configured to execute the program data stored in the memory 202 to implement the above-mentioned board component grouping method.
[0064] The present application further proposes a computer-readable storage medium. Figure 6 As shown, Figure 6 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application.
[0065] The computer-readable storage medium 400 of the embodiment of the present application stores program instructions 410 therein, and the program instructions 410 are executed to implement the above-mentioned board component grouping method.
[0066] Among them, the program instructions 410 can form a program file and be stored in the above-mentioned storage medium in the form of a software product, so that an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or terminal devices such as computers, servers, mobile phones, tablets, etc.
[0067] The computer-readable storage medium 400 of this embodiment may be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, and the like.
[0068] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the steps in the above-mentioned method embodiments.
[0069] In addition, if the above functions are implemented in the form of software functions and sold or used as independent products, they can be stored in a storage medium readable by a mobile terminal, that is, the present application also provides a storage device storing program data, the program data can be executed to implement the method of the above embodiment, and the storage device can be, for example, a USB flash drive, an optical disk, a server, etc. In other words, the present application can be embodied in the form of a software product, which includes a number of instructions for enabling a smart terminal to execute all or part of the steps of the method described in each embodiment.
[0070] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0071] Any process or method description in a flowchart or otherwise described herein may be understood to represent a mechanism, segment or portion of a code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0072] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (which can be a personal computer, server, network device or other system that can fetch instructions from the instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0073] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for grouping board components, characterized in that: include: On the board detection interface, obtain the grouping rule for the components on the target board type displayed in the edit box, wherein one target board type corresponds to at least one board type; Calling a pre-written interpreter to parse the grouping rule to obtain grouping attributes and grouping attribute values; The components on the board to be tested are traversed, and the components on the board to be tested are grouped based on the grouping attribute and the grouping attribute value.
2. The grouping method according to claim 1, characterized in that: The grouping attribute includes an attribute of a component on the board, and the grouping process of the components on the board to be tested based on the grouping attribute and the grouping attribute value includes: The components on the board to be tested that match the grouping attribute and the grouping attribute value are grouped into the same group.
3. The grouping method according to claim 1, characterized in that: The grouping rule includes a composite grouping rule, and the calling of a pre-written interpreter to parse the grouping rule to obtain a grouping attribute and a grouping attribute value includes: A pre-written interpreter is called to parse the composite grouping rule to obtain a plurality of grouping attributes of the components on the target plate type and a grouping attribute value corresponding to each of the grouping attributes.
4. The grouping method according to claim 2, characterized in that: The component includes at least one of a pad and a component.
5. The grouping method according to claim 3, characterized in that: The plurality of grouping attributes include the version number of the board and the attributes of the component, and the grouping process of the board to be tested based on the grouping attributes and the grouping attribute values includes: Components with the same properties on the board to be tested that are consistent with the version number are grouped into the same group.
6. The grouping method according to claim 1, characterized in that: Obtaining the grouping rule includes: Build the editor; Determine a grouping rule according to the detection requirements, and use the editor to write the grouping rule; A group name is added to the grouping rule, and the grouping rule is saved to apply the grouping rule to boards of the same type.
7. The grouping method according to claim 6, characterized in that: The grouping process of the boards to be tested based on the grouping attributes and the grouping attribute values includes: Inputting the attribute values corresponding to the grouping attributes of all the boards to be tested and their components into the interpreter; The interpreter is controlled to group the components based on the grouping attribute value.
8. A device for grouping board components, characterized in that: include: An information display acquisition module is used to display a board detection interface and acquire the grouping rules for the components on the target board type displayed in the edit box on the board detection interface, wherein one target board type corresponds to at least one board; An interpreter, connected to the information acquisition module, for parsing the grouping rules to obtain grouping attributes and grouping attribute values; The grouping module is connected to the interpreter and is used to traverse the components on the board to be tested and perform grouping processing on the components on the board to be tested based on the grouping attributes and the grouping attribute values.
9. An electronic device, comprising a processor and a memory connected to the processor, characterized in that: The memory stores program data, and the processor executes the program data stored in the memory to implement the grouping method according to any one of claims 1 to 8.
10. A computer storage medium, characterized in that: Program instructions are stored therein, and the program instructions are executed to implement the grouping method according to any one of claims 1 to 8.
