Automatic matching recommendation method for electric connector headstock
Through the automatic matching method based on rules and regular expressions, the problem of manual selection of connectors in electrical system design is solved, and the automatic matching of connector models is achieved, which improves design efficiency and accuracy, and reduces design complexity and cost. .
Patent Information
- Application Number
- CN202411309325.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-20
AI Technical Summary
In electrical system design, users need to manually select the connector head seat, which leads to cumbersome and inefficient design and easily leads to incompatibility problems, especially when facing multiple series and models of connectors, it consumes a lot of time.
The recommended method for automatic matching of electrical connector heads based on rules and regular expressions is adopted. By establishing an identification model, including rule base and historical matching library, it automatically recognizes and matches connector models, reducing manual selection and improving design efficiency.
Significantly improves the efficiency and accuracy of connector selection, reduces design complexity and cost, and improves the level of automation of electrical system design.
Smart Images

Figure CN119167560A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electric connector matching methods, and in particular to an automatic matching recommendation method for an electric connector header. Background Art
[0002] Electrical system design software is a type of computer application used to assist in the design of electrical systems and is widely used in various engineering projects. At present, many countries use software-aided design mode when designing cable diagrams, moving towards automated design.
[0003] Connectors play a vital role in electrical system design. They are physical interfaces used to connect different devices and modules together to ensure the transmission of power and signals. In current design software, users still rely on manual selection when designing the matching relationship of connector headers, which is cumbersome and inefficient and prone to errors. A typical cable diagram system may involve multiple series and multiple models of connectors. Users need to have an in-depth understanding of various connector series, models, and specifications, which will take a lot of time when facing the design of cable networks with large-scale, multi-model connectors, and may also cause incompatibility issues. Summary of the invention
[0004] The purpose of the present invention is to provide an automatic matching recommendation method for an electrical connector header, so as to improve the efficiency of electrical system design, shorten the design cycle, reduce the complexity of design, and thus reduce the design cost.
[0005] To achieve the above object, the present invention provides a method for automatically matching and recommending an electrical connector header, comprising the following steps:
[0006] S1: Establish a recognition model, including a rule base and a historical matching base;
[0007] The rule base includes the connector manufacturer name, connector series name, connector model name, connector matching expression and the connection rules corresponding to the connector series; the historical matching base records the corresponding connector models that have been successfully matched;
[0008] S2: The user inputs the connector model to be matched, and the recognition model segments the connector model to be matched according to the name rule, and recognizes the segmented content according to the rule library to obtain the corresponding connector series name;
[0009] S3: The recognition model searches the historical matching library according to the connector series name to find the corresponding matching record. If the matching record is found, the successfully matched connector in the corresponding record is returned and step S5 is executed; if the matching record is not found, step S4 is executed;
[0010] S4: The recognition model searches for the connection rules of the series in the rule library according to the name of the connector series. If found, the connector model to be matched in step S2 is matched in the database based on the found connection rules. If the match is successful, it is recorded in the historical matching library and the recommended connector is returned. If the match fails, a failure result is returned and the matching is terminated. If not found, a matching failure is returned and the matching is terminated.
[0011] S5: The user selects a suitable connector based on the recommended connector returned.
[0012] Preferably, in step S1, the connector matching expression is a character string that matches all connector models in the connector series through a regular expression, and classifies the connector model names in the series.
[0013] Preferably, in step S1, the connection rules corresponding to the connector series are as follows:
[0014] Equality matching: the values of the corresponding positions in the two connector models must be exactly the same to be considered a successful match, otherwise it is considered a failed match;
[0015] Condition matching: The values of the corresponding positions in the two connector models are compared only when a certain condition of the model is met, otherwise no operation is performed;
[0016] Range match: The values of the corresponding positions in the two connector models must be within the range defined by the rule. If the values of the two connectors meet this condition, the partial match is considered successful, otherwise it is considered a partial match failure.
[0017] Existence matching: Some rules allow the values of some positions in the connector model to be empty. In this case, the match is successful only when the values of the corresponding positions of the two connectors are both empty or non-empty and equal, otherwise the match fails.
[0018] Preferably, in step S2, the connector model name is segmented, and a segmentation result is as follows:
[0019] Series main name, type, shell category, shell number, shell plating, contact arrangement, contact type, key position, welding contact type, and safety hole identification.
[0020] Therefore, the present invention adopts the above-mentioned method for automatically matching and recommending an electrical connector header, which has the following advantages:
[0021] (1) The present invention proposes a rule-based method for automatically matching electrical connector headers. Through this rule-based and regular expression-based method, the automatic matching of the device-side connector model and the cable-side connector model can be achieved, thereby reducing the workload of manual selection, significantly improving the efficiency and accuracy of connector selection in electrical system design, and improving the automation level of electrical system design software.
[0022] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A method flow chart of an automatic matching recommendation method for an electrical connector header of the present invention;
[0024] Figure 2 A matching effect diagram of a recommended method for automatic matching of an electrical connector header of the present invention; DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations. The specific model specifications need to be selected and determined according to the actual specifications of the device, and the specific selection calculation method adopts the existing technology in the field, so it will not be described in detail.
[0026] Example
[0027] like Figure 1 As shown, the present invention provides an automatic matching recommendation method for an electrical connector header, comprising the following steps:
[0028] S1: Establish a recognition model, including a rule base and a historical matching base;
[0029] The rule base includes the connector manufacturer name, connector series name, connector model name, connector matching expression and the connection rules corresponding to the connector series. The connector matching expression uses regular expressions to match the strings of all connector models under the connector series, and classifies the connector model names under the series. The regular expressions are used to simplify the amount of information, thereby quickly organizing relevant information.
[0030] The rule base is mainly used to record the relevant information and connection rules of the connector. Each connector series corresponds to a connection rule. The connection rule indicates the connector corresponding to the current connector. The connection rules include the following:
[0031] Equality matching: the values of the corresponding positions in the two connector models must be exactly the same to be considered a successful match, otherwise it is considered a failed match;
[0032] Condition matching: The values of the corresponding positions in the two connector models will be compared only when a certain prerequisite is met, otherwise no operation will be performed;
[0033] Range match: The values of the corresponding positions in the two connector models must be within the range defined by the rule. If the values of both connectors meet this condition, the partial match is considered successful, otherwise it is considered a partial match failure;
[0034] Existence matching: Some rules allow the values of some positions in the connector model to be empty. In this case, the match is successful only when the values of the corresponding positions of the two connectors are both empty or non-empty and equal, otherwise the match fails.
[0035] During the matching process, the above single match or multiple match combinations are used as connection rules.
[0036] The historical matching library records the successfully matched connector models for pre-verification. When the same model appears, the historical matching library can quickly give the corresponding matching results.
[0037] S2: The user inputs the connector model to be matched, and the recognition model segments the connector model to be matched according to the corresponding naming rules, and recognizes the segmented content according to the rule base to obtain the corresponding connector series name;
[0038] An example of the above segmentation process is as follows:
[0039] The segmentation is based on the naming rules of the manufacturer. Taking the J599I series connector as an example, one of the models is JY27467T17F35PN-HS, and the segmentation results are "JY", "27467", "T", "17", "F", "35", "P", "N", "-H", and "-S", which correspond to the series main name, type, shell category, shell number, shell plating, contact arrangement, contact type, key position, welding contact type, and safety hole identification.
[0040] The content corresponding to the connector matching expression is as follows:
[0041] Construct a regular expression for the names of the components of the connector model according to the connector manual of the J599I series:
[0042] Series main name: such as "JY", which is usually a fixed prefix. All connectors starting with JY belong to the J599I series, which can be expressed as: ^(JY);
[0043] Type: For example, "27467" indicates a plug type. In contrast, there are wall-mounted square plate front-mounted sockets, wall-mounted square plate rear-mounted sockets, box-mounted square plate front-mounted sockets, box-mounted square plate rear-mounted sockets, nut-mounted sockets, etc., which can be expressed as: (27466T|27467T|27468T|27496E|27505E|27656T), where all possible types are listed;
[0044] Shell type: "T" means the tail is threaded and can be installed with accessories; "E" means the tail is not threaded and cannot be installed with accessories. The shell type is related to the type and therefore is part of the same category as the type.
[0045] Shell number: For example, "17" indicates the specific size of the connector shell, which can be expressed as: (\d{2}), which consists of two numbers;
[0046] Shell plating: For example, "F" represents chemical nickel plating, "B" represents cadmium plating military green, "E" represents stainless steel passivation, etc., which can be expressed as: ([AZ]{1,2});
[0047] Contact arrangement: such as "35", the contact arrangement describes the layout of the contacts, usually associated with the shell number, the shell number indicates the size of the connector, and the contact arrangement represents the number and arrangement of contacts under a certain shell number. For example, "35" in "JY27467T17F35PN-HS" means the "35" arrangement under the "17" size. It can be expressed as: (\d{2}[A-Za-z]?);
[0048] Contact type: If "P" represents a pin and "S" represents a socket, then it can be represented as: (P|S|PL|SL|PC|SC), where all possible options are listed;
[0049] Key position: For example, "N" represents the normal key position, while other letters "A", "B", "C", and "D" represent the variable key positions, which can be expressed as: (N|A|B|C|D)? Here all possible options are listed, and this item can be omitted;
[0050] Welding contact type: For example, "-H" represents welding contact, which can be expressed as: (-H)? This item can be omitted;
[0051] With safety hole identification: such as "-S", "-SC", etc., representing different screw configurations, it can be expressed as: (-S(\w{1,3})?)? This item can be omitted.
[0052] Combining these, we get the regular expression
[0053] ^(JY)(27466T|27467T|27468T|27496E|27505E|27656T)(\d{2})([AZ]{1,2})(\d{2}[A-Za-z]?)(P|S|PL|SL|PC|SC)(N|A|B|C|D)? (-H)? (-S(\w{1,3})?)? $”
[0054] S3: The recognition model searches the historical matching library according to the connector series name to find the corresponding matching record. If the matching record is found, the successfully matched connector in the corresponding record is returned and step S5 is executed; if the matching record is not found, step S4 is executed;
[0055] S4: The recognition model searches for the connection rules of the series in the rule library according to the name of the connector series. If found, the connector model to be matched in step S2 is matched in the database based on the found connection rules. If the match is successful, it is recorded in the historical matching library and the recommended connector is returned. If the match fails, a failure result is returned and the matching is terminated. If not found, a matching failure is returned and the matching is terminated.
[0056] S5: The user selects a suitable connector or automatically selects a suitable connector based on the returned matching recommendation results.
[0057] Therefore, the present invention adopts a method for automatically matching and recommending electrical connector headers. Through this method based on rules and regular expressions, it is possible to automatically match the device-side connector model with the cable-side connector model, thereby reducing the workload of manual selection, significantly improving the efficiency and accuracy of connector selection in electrical system design, and improving the automation level of electrical system design software.
[0058] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for automatically matching and recommending an electrical connector header, characterized in that: The following steps are involved: S1: Establish a recognition model, including a rule base and a historical matching base; The rule base includes the connector manufacturer name, connector series name, connector model name, connector matching expression and the connection rules corresponding to the connector series; the historical matching base records the corresponding connector models that have been successfully matched; S2: The user inputs the connector model to be matched, and the recognition model segments the connector model to be matched according to the name rule, and recognizes the segmented content according to the rule library to obtain the corresponding connector series name; S3: The recognition model searches the historical matching library according to the connector series name to find the corresponding matching record. If the matching record is found, the successfully matched connector in the corresponding record is returned and step S5 is executed; if the matching record is not found, step S4 is executed; S4: The recognition model searches for the connection rules of the series in the rule library according to the name of the connector series. If found, the connector model to be matched in step S2 is matched in the database based on the found connection rules. If the match is successful, it is recorded in the historical matching library and the recommended connector is returned. If the match fails, a failure result is returned and the matching is terminated. If not found, a matching failure is returned and the matching is terminated. S5: The user selects a suitable connector based on the recommended connector returned.
2. The method for automatically matching and recommending electrical connector headers according to claim 1, characterized in that: In step S1, the connector matching expression is a character string that matches all connector models in the connector series through a regular expression, and classifies the connector model names in the series.
3. The method for automatically matching and recommending electrical connector headers according to claim 1, characterized in that: In step S1, the connection rules corresponding to the connector series are as follows: Equality matching: the values of the corresponding positions in the two connector models must be exactly the same to be considered a successful match, otherwise it is considered a failed match; Condition matching: The values of the corresponding positions in the two connector models are compared only when a certain condition of the model is met, otherwise no operation is performed; Range match: The values of the corresponding positions in the two connector models must be within the range defined by the rule. If the values of the two connectors meet this condition, the partial match is considered successful, otherwise it is considered a partial match failure. Existence matching: Some rules allow the values of some positions in the connector model to be empty. In this case, the match is successful only when the values of the corresponding positions of the two connectors are both empty or non-empty and equal, otherwise the match fails.
4. The method for automatically matching and recommending electrical connector headers according to claim 1, characterized in that: In step S2, the connector model name is segmented, and a segmentation result is as follows: Series main name, type, shell category, shell number, shell plating, contact arrangement, contact type, key position, welding contact type, and safety hole identification.
