Terminal-oriented wiring validity function detection method and device
By constructing an optical scanning path and using multi-channel electrical excitation technology, the terminal block array is synchronously detected, solving the problems of low efficiency and poor accuracy in the existing terminal block detection technology, and realizing efficient and reliable detection of terminal block validity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN XIANGNUODA TECH CO LTD
- Filing Date
- 2026-02-02
- Publication Date
- 2026-05-12
AI Technical Summary
Existing methods cannot simultaneously verify the consistency of physical contact and electrical connection status of multiple parallel-arranged terminals without damaging the original wiring structure, resulting in low efficiency and poor accuracy of manual inspection, and easy to miss or misjudge.
Based on the physical layout information of the terminal block array, an optical scanning path is constructed. The insertion status image of the wire is obtained by scanning line by line through an optical imaging device. Combined with the application of transient excitation signals by a multi-channel electrical excitation unit, synchronous detection of the terminal blocks is achieved.
It enables synchronous, efficient, and reliable detection of the physical insertion and electrical connectivity consistency of dense terminal block arrays, improves the accuracy of wiring validity detection, and avoids missed detections and misjudgments caused by manual point-by-point detection.
Smart Images

Figure CN122017686A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for detecting the validity of wiring terminals. Background Technology
[0002] In the assembly and maintenance of electrical equipment, the effectiveness of terminal block wiring directly affects the safety and reliability of the circuit system. Existing methods typically involve manual visual inspection combined with multimeter continuity testing to check the effectiveness of terminal blocks. This method relies on the operator's experience to determine whether the wires are fully inserted into the terminal slots and to manually measure the continuity using a contact probe to confirm whether an electrical connection has been established.
[0003] However, existing methods cannot simultaneously verify the consistency of physical contact and electrical connection status for multiple parallel-arranged terminals without disrupting the original wiring structure. Manual testing is highly subjective and inefficient, and multimeters can only measure point-by-point, making it difficult to cover densely packed terminal arrays. This leads to a high risk of missed detections or misjudgments, reducing the accuracy of terminal block validity testing. Summary of the Invention
[0004] This invention provides a method and apparatus for detecting the validity of wiring terminals, thereby improving the accuracy of detecting the validity of wiring terminals.
[0005] In a first aspect, the present invention provides a method for detecting the validity of wiring terminals, comprising:
[0006] Based on the analysis of the physical layout information of the terminal block array, an optical scanning path is constructed using the terminal position mapping map. Based on the optical scanning path, the optical imaging device is controlled to scan the terminal block array line by line to obtain an optical image sequence of the wire insertion status of each terminal block.
[0007] Based on the optical image sequence, the physical positioning determination result of the wire is obtained by identifying whether the end of the wire corresponding to each terminal is located in the preset valid insertion area.
[0008] Based on the physical placement determination result of the conductor, a subset of physically placed terminals is selected, an electrical excitation command sequence is generated, and a multi-channel electrical excitation unit is driven to apply transient excitation signals to each terminal in the subset of terminals in turn based on the electrical excitation command sequence to obtain an electrical connection response dataset.
[0009] Based on the electrical connection response dataset, it is determined whether each physically positioned terminal forms a valid electrical path, and the wiring validity determination result is obtained.
[0010] In a second aspect, the present invention also provides a terminal block detection device with wiring validity function, applied to the terminal block detection method with wiring validity function as described in the first aspect; the terminal block detection device with wiring validity function includes:
[0011] An optical image generation module is used to construct an optical scanning path based on the terminal position mapping obtained by analyzing the physical layout information of the terminal array, and to control the optical imaging device to scan the terminal array line by line based on the optical scanning path to obtain an optical image sequence of the wire insertion status of each terminal.
[0012] The positioning determination module is used to identify whether the end of the wire corresponding to each terminal is located in the preset effective insertion area based on the optical image sequence, and to obtain the physical positioning determination result of the wire;
[0013] The excitation instruction generation module is used to filter out a subset of physically positioned terminals based on the physical positioning determination result of the conductor, generate an electrical excitation instruction sequence, and drive a multi-channel electrical excitation unit to apply transient excitation signals to each terminal in the subset of terminals in sequence based on the electrical excitation instruction sequence to obtain an electrical connection response dataset.
[0014] The wiring validity determination module is used to determine whether each physically positioned terminal forms a valid electrical path based on the electrical connection response dataset, and to obtain the wiring validity determination result.
[0015] Thirdly, the present invention also provides an electronic device, comprising: a memory for storing computer software programs; and a processor for reading and executing the computer software programs, thereby realizing the above-described method for detecting the validity of wiring terminals.
[0016] Fourthly, the present invention also provides a non-transitory computer-readable storage medium storing a computer software program, which, when executed by a processor, implements the above-described terminal block-oriented method for detecting wiring validity.
[0017] Fifthly, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-described method for detecting the validity of wiring terminals.
[0018] The present invention provides a terminal block detection method with wiring validity function. Based on the analysis of the physical layout information of the terminal block array, a terminal position mapping map is obtained. An optical scanning path is constructed to accurately match the terminal arrangement. The optical imaging device scans the terminal block array line by line through the path control, achieving synchronous coverage acquisition of multiple parallel-arranged terminals. This results in an optical image sequence of the wire insertion status of each terminal block, replacing subjective judgment by manual visual inspection. Based on the optical image sequence, image recognition technology is used to determine whether the wire end corresponding to each terminal block is located in a preset valid insertion area. The image information is converted into a clear wire physical positioning determination result, accurately distinguishing between physically positioned and non-positioned terminals, thus filtering out target objects for subsequent electrical testing. Based on the physical positioning determination result, a subset of terminals that are only physically positioned is selected, avoiding invalid electrical testing of non-positioned terminals and improving the targeting of the detection. Simultaneously, an electrical excitation command sequence adapted to this subset is generated. The commands drive a multi-channel electrical excitation unit to sequentially apply transient excitation signals to each terminal in the subset, simultaneously completing the application and response acquisition of electrical signals to multiple target terminals, obtaining an electrical connectivity response dataset, overcoming the limitations of point-by-point measurement with a multimeter. Finally, based on the electrical connection response dataset, the system analyzes and determines whether each physically positioned terminal forms a valid electrical path, ultimately obtaining a wiring validity determination result that integrates the physical contact state and the electrical connection state. Therefore, this embodiment of the invention achieves synchronous, non-destructive detection of the physical state of multiple terminals through optical scanning, and then accurately performs multi-channel electrical detection based on the physical determination result. This enables synchronous, efficient, and reliable detection of the consistency of physical insertion and electrical connection in a dense terminal block array without disassembly or interference with the original wiring. It solves the problems of missed detections, misjudgments, and inability to synchronously verify caused by manual point-by-point detection, thus improving the accuracy of terminal block wiring validity detection. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating a terminal block detection method with wiring validity function provided in an embodiment of the present invention.
[0020] Figure 2 This is a schematic diagram of the structure of a terminal block-oriented device with wiring validity detection function provided in an embodiment of the present invention;
[0021] Figure 3 An embodiment diagram of the electronic device provided in this invention;
[0022] Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with the present invention. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] Optionally, see Figure 1 , Figure 1 This is a flowchart illustrating the functional detection method for terminal blocks with wiring validity provided by the present invention. In this embodiment, the executing entity of the functional detection method for terminal blocks with wiring validity is a functional detection device. Therefore, the functional detection method for terminal blocks with wiring validity includes:
[0025] Step 10: Based on the terminal position mapping obtained by analyzing the physical layout information of the terminal block array, construct an optical scanning path, and control the optical imaging device to scan the terminal block array line by line based on the optical scanning path to obtain an optical image sequence of the wire insertion status of each terminal block.
[0026] Optionally, a terminal block array refers to a collection of multiple terminals arranged according to a preset rule, each terminal block having an independent wire insertion interface and installation position.
[0027] Physical layout information refers to quantifiable physical parameters such as the actual installation coordinates, spacing, number of rows and columns, terminal dimensions, and overall array boundary of each terminal in the terminal block array. A terminal position mapping diagram converts the physical layout information of the terminal block array into a graphical data file recognizable by the functional testing device. This file clearly marks the relative position and unique identifier of each terminal in the array. An optical imaging device refers to an imaging device with continuous imaging capabilities that can move and scan along a preset path, such as an industrial CCD camera. Its imaging accuracy must meet the requirements for identifying the insertion status of the terminal block wires. An optical image sequence refers to a continuous set of images composed of single-frame optical images of each terminal block acquired and stored sequentially during line-by-line scanning by the optical imaging device. Each frame corresponds to only one terminal block wire insertion area, ensuring the specificity of the image information.
[0028] Optionally, the functional testing device analyzes the physical layout information of the terminal block array to obtain a terminal position mapping map, and constructs an optical scanning path to guide the optical imaging device to scan the terminal block array line by line, as described in steps 101 to 104. For example, in this embodiment of the invention, based on the terminal position mapping map, and combined with the imaging range, scanning step distance, and arrangement pattern of the terminal blocks of the optical imaging device, a continuous scanning trajectory is planned from the starting row to the ending row of the array, and from the starting terminal to the ending terminal of each row, ensuring that each terminal block can be completely imaged without scanning redundancy.
[0029] Furthermore, the function detection device sends a path execution command to the optical imaging device, controlling the optical imaging device to scan the terminal block array line by line along a preset optical scanning path. During the scanning process, the function detection device simultaneously sends an imaging trigger signal to the optical imaging device. The frequency of the trigger signal is matched with the moving speed of the optical imaging device and the spacing of the terminal blocks, ensuring that the optical imaging device completes the acquisition of a single frame image precisely when it moves to the preset imaging position of each terminal block. Each acquired optical image must include the complete insertion interface area of the terminal block and its surrounding preset range, with an image resolution of no less than 1024*768 pixels to ensure clear identification of the wire end position later. Simultaneously, the function detection device numbers and stores the acquired optical images according to the scanning order, forming an optical image sequence, with the numbering rule corresponding one-to-one with the row and column order of the terminal block array.
[0030] In one embodiment, there is a 10x8 terminal block array with the following physical layout information: row spacing 5 mm, column spacing 3 mm, and the external dimensions of each terminal block insertion interface are as follows. The overall array boundary ranges from (0, 0) to (21 mm, 45 mm) (with the top left corner of the array as the origin, the horizontal axis as the x-axis, and the vertical axis as the y-axis). Based on this information, the functional testing device generates a terminal position mapping and constructs a row-by-row scanning path: starting from the terminal in the first column of the first row (coordinates: 1 mm, 2.5 mm), it scans horizontally to the terminal in the eighth column of the first row (coordinates: 20 mm, 2.5 mm). After completing the first row scan, it moves vertically downwards 5 mm to the starting position of the second row (coordinates: 1 mm, 7.5 mm), repeating the horizontal scanning process until the terminal in the eighth column of the tenth row is scanned. The functional testing device controls the optical imaging device to move along this path at a speed of 5 mm / s, simultaneously sending an imaging trigger signal every 0.6 seconds (corresponding to a column spacing of 3 mm and a movement time of 0.6 seconds). After each trigger, a frame with a resolution of [missing information] is acquired. The optical image is captured at a pixel count, with the image acquisition area covering the corresponding terminal insertion interface and a 1 mm surrounding area. After scanning, the functional testing device... The rules assign image numbers, for example, the image number corresponding to the terminal in the first row and first column is... This process continues, generating a total of 80 frames to form an optical image sequence, which is then stored in the device's built-in storage module.
[0031] Step 20: Based on the optical image sequence, identify whether the end of the wire corresponding to each terminal is located in the preset valid insertion area to obtain the physical positioning determination result of the wire.
[0032] Optionally, the wire end guide line is used for one end inserted into the terminal block, including the end area of the wire conductor and the outer insulation layer. The preset effective insertion area refers to a specific area within the terminal block insertion interface pre-defined by the function testing device. This area represents the minimum insertion range required for effective wire connection, and its boundary is determined based on the physical dimensions of the terminal block insertion interface. Exceeding this area is considered ineffective insertion. The wire physical positioning judgment result refers to the binary judgment conclusion output by the function testing device for each terminal block, including only two cases: "physically positioned" and "not physically positioned." "Physically positioned" indicates that the wire end is within the preset effective insertion area, while "not physically positioned" indicates that the wire end is not within the preset effective insertion area (including cases of no wire insertion, wire insertion position offset, wire only partially contacting the interface edge, etc.).
[0033] Optionally, the functional detection device invokes a built-in image preprocessing module to preprocess each frame of the optical image sequence. The preprocessing steps include image denoising, image enhancement, and edge contour extraction. Optionally, the image denoising in this embodiment of the invention employs a grayscale smoothing method to remove random noise points in the image. Specifically, it takes the average grayscale value of each pixel and its eight surrounding pixels as the final grayscale value of that pixel, reducing the impact of ambient light interference on image recognition.
[0034] Image enhancement employs contrast adjustment to stretch the image's grayscale value range to 0-255, enhancing the grayscale difference between the wire tip, the terminal block insertion interface, and the background area, thus facilitating edge recognition. Edge contour extraction utilizes a grayscale gradient thresholding method, setting the grayscale gradient threshold to 50 (grayscale gradient range 0-255). When the grayscale difference between adjacent pixels exceeds 50, it is identified as an edge point. All edge points are then connected sequentially to extract the contours of the terminal block insertion interface and the wire tip.
[0035] Furthermore, after preprocessing, the function detection device locates the position and range of the region in each frame image based on the parameters of the preset effective insertion region. The parameters of the preset effective insertion region are set based on the physical dimensions of the terminal block insertion interface. Optionally, in this embodiment of the invention, the region is specifically: taking the geometric center of the insertion interface outline as the origin, extending 0.8 mm to both sides in the horizontal and vertical directions to form a square region with a side length of 1.6 mm. This region is completely located inside the terminal block insertion interface and is the core area for effective contact of the wire.
[0036] Furthermore, the functional detection device determines whether the extracted wire end profile completely falls within the preset effective insertion area. The judgment criteria are: all edge points of the wire end profile are located within the boundary range of the preset effective insertion area, and the projected area of the wire end profile within this area is not less than 90% of the total projected area of the wire end. If the above conditions are met, the wire corresponding to the terminal is determined to be physically in place; if not met (including cases where the wire end profile is not extracted, the wire end profile only partially falls within the area, or the wire end profile exceeds the area range), it is determined to be not physically in place.
[0037] Furthermore, the functional testing device performs the above-mentioned identification and judgment operations on each terminal block, and finally generates a list of physical placement judgment results for the wires. The list contains the unique identifier of each terminal block and the corresponding judgment conclusion.
[0038] In one embodiment, for the optical image sequence obtained in step 10, images numbered "3-5" (corresponding to the terminal block in the 3rd row and 5th column) are selected for processing. The functional detection device performs preprocessing on the image: first, noise reduction is performed, replacing the original gray value with the average gray value of each pixel and its surrounding 8 pixels to remove light noise in the image; then, the image gray value is stretched from the original range (50-200) to 0-255 to improve the contrast between the wire end and the interface; then, the edge contour is extracted using a gray gradient threshold of 50 to obtain the square contour (2 mm side length) of the terminal block insertion interface and the circular contour (1.2 mm diameter) of the wire end.
[0039] The functional testing device locates a preset effective insertion area: with the geometric center of the insertion interface contour as the origin, it extends 0.8 mm horizontally and vertically to form a square area with a side length of 1.6 mm. Then, it determines whether the wire end contour meets the positioning conditions: Upon inspection, all edge points of the wire end contour are located within the preset effective insertion area, and the projected area of the wire end within this area accounts for 95% of the total projected area, meeting the judgment criteria. Therefore, it is determined that the wire of the terminal is physically in place.
[0040] Next, image number "6-2" (corresponding to the terminal block in row 6, column 2) is processed. After preprocessing, only the outline of the terminal block insertion interface is extracted, but the outline of the wire end is not extracted. The function detection device determines that the wire of this terminal block is not physically in place. Image number "8-7" is selected. After preprocessing, the outline of the wire end is extracted, but only 40% of the projected area of this outline falls within the preset effective insertion area, and the rest exceeds the area range. The function detection device also determines that it is not physically in place. The identification and judgment of all 80 terminals are completed in the above manner, and a list of wire physical placement judgment results is generated, in which 20 terminals are determined to be not physically in place, and 60 terminals are determined to be physically in place.
[0041] Step 30: Based on the physical placement determination result of the wire, a subset of physically placed terminals is selected, an electrical excitation command sequence is generated, and a multi-channel electrical excitation unit is driven to apply transient excitation signals to each terminal in the subset of terminals in sequence based on the electrical excitation command sequence to obtain an electrical connection response dataset.
[0042] Optionally, the physically positioned terminal subset refers to the set of terminals selected from all terminals and determined to be "physically positioned". This subset only includes terminals that meet the conditions for further electrical testing. The electrical excitation command sequence refers to the set of commands generated by the functional testing device for controlling the output of transient excitation signals of the multi-channel electrical excitation unit. Each command corresponds to a physically positioned terminal, specifying the command execution order, excitation signal parameters and corresponding terminal interface.
[0043] A multi-channel electrical excitation unit refers to a unit with multiple independent output channels that can output electrical signals with specific parameters according to instructions. Each channel can be independently connected to a terminal block, and the number of channels is not less than the number of the physically located terminal block subset. A transient excitation signal refers to an electrical signal with short duration and stable parameters. In this embodiment of the invention, a DC pulse signal is used, and its parameters must meet the requirements of not damaging the terminal block and wires and being able to effectively detect electrical paths. An electrical connectivity response dataset refers to the set of electrical response parameters generated by each physically located terminal block after receiving a transient excitation signal, collected by the functional testing device, including parameters such as response voltage, response current, and response time.
[0044] Optionally, the functional testing device filters the list of physical placement results for the wires, removing terminals judged as "not physically in place" and retaining all terminals judged as "physically in place," forming a subset of physically in place terminals. Each terminal in this subset is then reassigned a temporary number (incrementing from 1) according to the original array row and column order to facilitate the sequential execution of subsequent electrical excitation commands. After filtering, the functional testing device generates a sequence of electrical excitation commands. Each command corresponds to a terminal in the subset. The command content includes: a temporary number, the corresponding multi-channel electrical excitation unit channel number, transient excitation signal parameters (pulse voltage 12 volts, pulse width 50 milliseconds, pulse rise time 1 millisecond, pulse fall time 1 millisecond), and a command execution interval (100 milliseconds). The command execution order is consistent with the temporary number order to avoid mutual interference caused by multiple channels outputting signals simultaneously.
[0045] Furthermore, the functional testing device sends the signal to the multi-channel electrical excitation unit, simultaneously controlling each channel of the multi-channel electrical excitation unit to establish an electrical connection with the corresponding terminal in the physically positioned subset of terminals. The connection method involves precise docking with the conductive contacts of the terminals via a dedicated probe interface, ensuring good contact and eliminating contact resistance interference. Subsequently, the functional testing device controls the multi-channel electrical excitation unit to output transient excitation signals sequentially according to the instruction sequence. Specifically, following the order of temporary numbers 1 to 60, each channel outputs a 12-volt, 50-millisecond DC pulse signal after the corresponding instruction is triggered. The execution interval between two adjacent instructions is 100 milliseconds, ensuring that the electrical response signal of the previous terminal is acquired before the next instruction is executed.
[0046] While applying the transient excitation signal, the functional testing device synchronously acquires the electrical response parameters of each terminal block through its built-in electrical parameter acquisition module. The acquisition frequency is 1000 Hz, and the acquisition duration is 100 milliseconds (covering the duration of the pulse signal and the transition time of 25 milliseconds before and after). The acquired parameters include response voltage (range 0-15 volts, accuracy 0.01 volts), response current (range 0-1 ampere, accuracy 0.001 ampere), and response time (the time from signal application to the generation of a stable response, accuracy 0.1 milliseconds). After acquisition, the functional testing device associates and stores the temporary number of each terminal block with the corresponding electrical response parameters, forming an electrical continuity response dataset. The dataset is arranged in order of the temporary number.
[0047] In one embodiment, the list of judgment results is filtered, 20 terminals that are not physically in place are removed, and 60 terminals that are physically in place are retained to form a subset. Temporary numbers 1 to 60 are assigned to the terminals in the subset according to the original array row and column order, where temporary number 1 corresponds to the original number "1-1" terminal, temporary number 2 corresponds to the original number "1-2" terminal, and so on, with temporary number 60 corresponding to the original number "10-8" terminal.
[0048] A sequence of 60 electrical excitation commands is generated, each corresponding to a temporary number. The command parameters are uniformly set as follows: the channel number of the multi-channel electrical excitation unit matches the temporary number; the transient excitation signal is a 12-volt DC pulse with a width of 50 milliseconds, a rise time of 1 millisecond, a fall time of 1 millisecond, and an execution interval of 100 milliseconds. Subsequently, the functional testing device controls channels 1 to 60 of the multi-channel electrical excitation unit, connecting them to the conductive contacts of the corresponding terminals within each subset via dedicated probes to ensure good contact.
[0049] Execution follows the instruction sequence: After the first instruction is triggered, channel 1 outputs a transient excitation signal, and the functional detection device simultaneously acquires the electrical response parameters of terminal 1, acquiring a response voltage of 11.98 volts, a response current of 0.5 amperes, and a response time of 0.3 milliseconds; after an interval of 100 milliseconds, the second instruction is triggered, channel 2 outputs a signal, acquiring a response voltage of 11.97 volts, a response current of 0.48 amperes, and a response time of 0.2 milliseconds; and so on, until the signal application and parameter acquisition of all 60 terminals are completed.
[0050] The final electrical connectivity response dataset is generated, which contains 60 sets of data, each set of data corresponding to a temporary number and three corresponding electrical response parameters.
[0051] Step 40: Based on the electrical connection response dataset, determine whether each physically positioned terminal block forms a valid electrical path, and obtain the wiring validity determination result.
[0052] Optionally, a valid electrical path refers to a stable and reliable electrical connection established between the terminal block and the wire, enabling normal transmission of electrical signals without issues such as open circuits or loose connections. The wiring validity determination result refers to the binary judgment conclusion output by the functional testing device for each physically positioned terminal block, including two cases: "wiring valid" and "wiring invalid".
[0053] Optionally, a preset threshold range for electrical response parameters is established. The functional detection device compares the electrical response parameters of each terminal in the electrical connectivity response data set with the threshold range. Combining parameter consistency and stability characteristics, it comprehensively determines whether the terminal forms an effective electrical path and obtains the wiring validity determination result for each terminal, as described in steps 401 to 404.
[0054] This invention achieves synchronous, non-destructive detection of the physical state of multiple terminals through optical scanning, and then accurately performs multi-channel electrical testing based on the physical judgment results. This enables synchronous, efficient, and reliable detection of the consistency of physical insertion and electrical connection in a dense array of terminals without disassembly or interference with the original wiring. It solves the problems of missed detection, misjudgment, and inability to verify synchronously caused by manual point-by-point testing, and improves the accuracy of the detection of the validity of the terminals with wiring.
[0055] Optionally, the processes of steps 101 to 104 include:
[0056] Step 101: Based on the row and column coordinates of each terminal in the two-dimensional plane coordinate system in the terminal position mapping diagram, determine the spatial arrangement topology of the terminal and determine the maximum extension boundary of the terminal array in the vertical direction based on the spatial arrangement topology.
[0057] Optionally, the functional testing device determines the spatial arrangement topology of the terminals based on the row and column coordinates of each terminal in the two-dimensional plane coordinate system in the terminal position mapping diagram, and determines the maximum extension boundary of the terminal array in the vertical direction based on the spatial arrangement topology. The two-dimensional plane coordinate system refers to a Cartesian coordinate system established with the top left corner of the terminal block array as the origin, the horizontal axis pointing to the right as the positive direction, and the vertical axis pointing downwards as the positive direction. The unit of this coordinate system is millimeters, and it is used to accurately locate the position of each terminal block. The row and column coordinates refer to the horizontal and vertical coordinate values of each terminal block in the two-dimensional plane coordinate system. The horizontal coordinate value corresponds to the horizontal position of the terminal block, and the vertical coordinate value corresponds to the vertical position of the terminal block. The spatial arrangement topology refers to the structural information reflecting the arrangement pattern, relative positional relationship, and row and column distribution characteristics of all terminals in the two-dimensional plane. Specifically, it includes the total number of rows and columns of terminals, whether the arrangement of terminals in each row is regular, whether the arrangement of terminals in each column is aligned, and whether there are any missing terminals. The vertical direction refers to the direction consistent with the vertical axis of the two-dimensional plane coordinate system. The maximum extension boundary refers to the limit coverage range of the terminal block array in the vertical direction. Specifically, it is the position plane corresponding to the maximum value of the vertical axis coordinate of all terminals. This plane is perpendicular to the vertical direction and is the lowest boundary of the terminal block array in the vertical direction.
[0058] Optionally, the specific process of this embodiment of the invention is as follows: the functional detection device extracts the row and column coordinates of all terminals from the terminal position mapping diagram, and records the horizontal axis coordinate and vertical axis coordinate of each terminal one by one; then the extracted row and column coordinates are classified and analyzed, grouped according to the vertical axis coordinate value, and the terminals corresponding to the same vertical axis coordinate value are grouped into the same row, and the total number of rows of the terminal array and the number of terminals in each row are counted. At the same time, it is determined whether the horizontal axis coordinate value of each row of terminals is uniformly increasing and whether the vertical axis coordinate value of each column of terminals is consistent, so as to determine the spatial arrangement topology and clarify whether the array is a regular rectangular arrangement or an arrangement with local omissions.
[0059] Finally, the maximum value is selected from the vertical coordinates of all terminals, and the vertical plane corresponding to this maximum value is the maximum extension boundary of the terminal array in the vertical direction.
[0060] Step 102: Based on the minimum center-to-center distance between adjacent terminals in the horizontal direction in the spatial arrangement topology and the lateral resolution threshold of the optical imaging device, determine the minimum effective imaging field of view width of the optical imaging device in the horizontal direction that covers a single terminal without omitting adjacent terminals.
[0061] Optionally, the functional testing device determines the minimum effective imaging field of view of the optical imaging device in the horizontal direction, based on the minimum center-to-center distance between adjacent terminals in the spatial arrangement topology and the lateral resolution threshold of the optical imaging device. The horizontal direction refers to the direction aligned with the horizontal axis of the two-dimensional plane coordinate system; adjacent terminals refer to two terminals in the same row in the spatial arrangement topology that are horizontally adjacent; the minimum center-to-center distance refers to the minimum distance between the centers of all adjacent terminals in the same row, where the terminal center refers to the geometric center of the terminal insertion interface, and the distance is measured in millimeters; the lateral resolution threshold refers to the minimum distance at which the optical imaging device can clearly distinguish two adjacent objects in the horizontal direction, and this threshold is determined by the lens parameters and pixel resolution of the optical imaging device, measured in millimeters. A smaller threshold indicates stronger lateral resolution; the minimum effective imaging field of view refers to the width of the imaging range of the optical imaging device in the horizontal direction. This width must simultaneously cover the complete insertion interface area of a single terminal and cover a portion of adjacent terminals to avoid scanning omissions, representing the minimum imaging width for achieving non-redundant and omission-free scanning.
[0062] The specific process of this invention embodiment is as follows: The functional detection device first extracts the center-to-center distance of all adjacent terminals in the same row from the spatial arrangement topology, and calculates the minimum value of this distance, i.e., the minimum center-to-center distance in the horizontal direction; then it calls the parameter configuration file of the optical imaging device to obtain its lateral resolution threshold; subsequently, it determines the minimum effective imaging field of view width in the following way: First, based on the maximum horizontal dimension of the insertion interface of a single terminal, it ensures that the imaging field of view width can completely cover this dimension to avoid incomplete imaging of a single terminal; then, combining the minimum center-to-center distance in the horizontal direction and the lateral resolution threshold, on the basis of covering a single terminal, the field of view width is appropriately extended to both sides. The extended width must meet the following conditions: the distance between the center of the adjacent terminal and the center of the current terminal minus half of the minimum effective imaging field of view width is less than or equal to the lateral resolution threshold, ensuring that the edge area of the adjacent terminal can be included in the field of view during scanning, avoiding the missed scanning of adjacent terminals due to the narrow field of view; the finally determined width is the minimum effective imaging field of view width, which must simultaneously meet the two conditions of covering the complete area of a single terminal and having no missed scanning of adjacent terminals, and is the minimum width that meets the conditions, so as to reduce scanning redundancy and improve scanning efficiency.
[0063] Step 103: Determine the number of consecutive terminals covered by the optical imaging device in the horizontal direction during a single imaging operation based on the minimum effective imaging field of view width.
[0064] Optionally, the functional testing device determines the number of consecutive terminals covered horizontally by the optical imaging device in a single imaging operation based on the minimum effective imaging field of view width. Here, a single imaging operation refers to the complete process of the optical imaging device acquiring one frame of image at a fixed position; the number of consecutive terminals refers to the number of terminals in the same row that the field of view of the optical imaging device can cover horizontally in a single imaging operation and that are consecutively positioned. This number is a positive integer and does not exceed the total number of terminals in the same row.
[0065] The specific process of this embodiment is as follows: The functional detection device acquires the total number of terminals in the same row and the distribution of terminals in the horizontal direction in the spatial arrangement topology, and determines the coordinate distribution range of the center of all terminals in the row in the horizontal direction; then, based on the minimum effective imaging field width, starting from the starting terminal of the row, the field coverage range of the simulated optical imaging device is calculated, and the number of continuous terminals that can be completely covered within the field width is calculated; the calculation method is: based on the center of the starting terminal, extend the minimum effective imaging field width to the right, and count the number of terminal centers included in this range, which is the number of continuous terminals that can be covered in a single imaging; if there are many terminals in the row, the field coverage segments need to be divided in the above manner to ensure that the number of continuous terminals covered in each segment is consistent, and the width of the overlapping area between adjacent fields of view is not less than the lateral resolution threshold, so as to avoid missed scanning at the junction of two fields of view; the final determined number of continuous terminals needs to be combined with the minimum effective imaging field width and the distribution of terminals in the row to ensure that a single imaging can cover the maximum number of continuous terminals, while avoiding excessive field overlap that would reduce scanning efficiency.
[0066] Step 104: Based on the number of consecutive terminals, the maximum extension boundary, and the effective imaging height of the optical imaging device in the vertical direction, construct an optical scanning path to guide the optical imaging device to perform line-by-line scanning of the terminal array.
[0067] Optionally, the functional testing device constructs an optical scanning path based on the number of consecutive terminals, the maximum extension boundary, and the effective imaging height of the optical imaging device in the vertical direction, as described in steps 1041 to 1044.
[0068] The effective imaging height in the vertical direction refers to the imaging range height of the optical imaging device in the vertical direction, which is determined by the lens focal length and sensor size of the optical imaging device. The optical scanning path refers to the continuous trajectory that guides the movement of the optical imaging device, ensuring that all terminals are covered line by line and imaging is completed.
[0069] This invention constructs a high-efficiency optical scanning path with no missed scans and no redundancy by quantitatively analyzing the terminal arrangement parameters and imaging device performance parameters. This ensures that the optical imaging device can accurately and quickly acquire optical image sequences of the wire insertion status of each terminal, providing high-quality image data support for subsequent wire physical positioning determination and wiring validity detection, thus ensuring detection accuracy from the scanning source.
[0070] Optionally, the process of steps 1041 to 1044 includes:
[0071] Step 1041: Based on the maximum extension boundary and effective imaging height, determine the number of scan rows required in the vertical direction to cover all terminals, and divide the terminal array into multiple consecutive horizontal scan bands in the vertical direction based on the number of scan rows. Each horizontal scan band corresponds to one line of optical scanning operation.
[0072] Optionally, the functional testing device determines the number of vertical scan rows required to cover all terminals based on the maximum extension boundary and effective imaging height, and divides the terminal array into multiple continuous horizontal scan bands in the vertical direction based on the number of scan rows. Each horizontal scan band corresponds to one optical scan operation. Here, the number of scan rows refers to the number of scan areas divided in the vertical direction to achieve full coverage, and is a positive integer; a horizontal scan band refers to a continuous area divided in the vertical direction, with a width adapted to the effective imaging height of the optical imaging device in the vertical direction, each area containing several rows of terminals, and there are no gaps or overlaps between areas to ensure full vertical coverage; one optical scan operation refers to the entire imaging acquisition process of the optical imaging device completing one horizontal scan band along the horizontal direction.
[0073] The specific process of this embodiment is as follows: The functional detection device obtains the vertical axis coordinate value corresponding to the maximum extension boundary, and uses this coordinate value to characterize the total extension length of the terminal block array in the vertical direction; then, it retrieves the effective imaging height parameter in the vertical direction of the optical imaging device, and uses a rounding-down calculation method to determine the initial number of scan rows. The calculation logic is: divide the total vertical extension length by the effective vertical imaging height. If the calculation result is an integer, then the integer is the number of scan rows; if the calculation result is a non-integer, then take the integer part of the non-integer plus 1 as the number of scan rows, ensuring that all terminals are covered. After determining the number of scan rows, the functional detection device starts from the origin of the two-dimensional plane coordinate system and divides the horizontal scan bands sequentially along the vertical direction according to the effective vertical imaging height. The width of the last horizontal scan band can be adjusted according to the maximum extension boundary to ensure that its lower boundary coincides with the maximum extension boundary. Each horizontal scan band corresponds to a unique scan sequence number. The scan sequence is performed sequentially from bottom to top in the vertical direction. Each horizontal scan band corresponds to one complete horizontal scan operation, achieving orderly full coverage in the vertical direction.
[0074] Step 1042: Based on the row and column coordinates of the terminals contained in each horizontal scanning band, determine the leftmost and rightmost coordinates of the terminals in the horizontal direction in each horizontal scanning band. Based on the leftmost and rightmost coordinates, determine the imaging position of the optical imaging device when scanning in the horizontal scanning band.
[0075] Optionally, the functional testing device determines the leftmost and rightmost coordinates of the terminals within each horizontal scanning band in the horizontal direction based on the row and column coordinates of the terminals contained in each horizontal scanning band. Based on these leftmost and rightmost coordinates, it determines the imaging position of the optical imaging device when scanning within the horizontal scanning band. Here, row and column coordinates refer to the horizontal and vertical coordinates of each terminal in a two-dimensional plane coordinate system, with the horizontal coordinate corresponding to the horizontal position and the vertical coordinate corresponding to the vertical position. The leftmost coordinate refers to the minimum horizontal coordinate value among all terminals within a single horizontal scanning band; the rightmost coordinate refers to the maximum horizontal coordinate value among all terminals within a single horizontal scanning band; and the imaging position refers to the positioning coordinates of the lens center in the two-dimensional plane coordinate system when the optical imaging device images within the horizontal scanning band, used to ensure that the imaging field of view accurately covers the terminals within the scanning band.
[0076] The specific process of this invention embodiment is as follows: the functional detection device extracts the row and column coordinates of all terminals in each horizontal scanning band one by one, and selects the minimum value of the horizontal axis coordinate in each scanning band, which is the leftmost coordinate of the horizontal scanning band; at the same time, it selects the maximum value of the horizontal axis coordinate, which is the rightmost coordinate of the horizontal scanning band.
[0077] Subsequently, the imaging position is determined based on the leftmost and rightmost coordinates: the average vertical coordinate of the terminals within the horizontal scanning band is used as the vertical coordinate of the imaging position to ensure that the optical imaging device is aligned with the center area of the scanning band in the vertical direction, thus ensuring the integrity of the vertical imaging; the midpoint between the leftmost and rightmost coordinates is used as the horizontal reference coordinate of the imaging position, and the horizontal coordinate is finely adjusted in combination with the effective imaging width of the optical imaging device in the horizontal direction, so that the left boundary of the imaging field of view does not exceed the left side of the leftmost coordinate and the right boundary does not exceed the right side of the rightmost coordinate, ensuring that all terminals within the horizontal scanning band can be included in the imaging field of view, and each horizontal scanning band corresponds to a unique imaging position reference.
[0078] Step 1043: Based on the number of continuous terminals and the total number of terminals in each horizontal scanning band, determine the number of horizontal imaging steps required to complete full coverage in the horizontal scanning band, and based on the number of horizontal imaging steps, imaging position, and the effective imaging width of the optical imaging device in the horizontal direction, divide the imaging area in the horizontal scanning band into multiple continuous and non-overlapping horizontal imaging segments.
[0079] Optionally, the functional testing device determines the number of horizontal imaging steps required to complete full coverage within the horizontal scanning band based on the number of continuous terminals and the total number of terminals within each horizontal scanning band. Based on the number of horizontal imaging steps, the imaging position, and the effective imaging width of the optical imaging device in the horizontal direction, the imaging area within the horizontal scanning band is divided into multiple continuous and non-overlapping horizontal imaging segments.
[0080] The total number of terminals within a horizontal scanning band refers to the total number of terminals contained within a single horizontal scanning band; the number of horizontal imaging steps refers to the total number of times the optical imaging device moves horizontally and completes imaging within a single horizontal scanning band, and is a positive integer; the effective horizontal imaging width refers to the width of the imaging range of the optical imaging device in the horizontal direction, i.e., the minimum effective imaging field of view width, which must meet the requirement of covering a single terminal without omitting adjacent terminals; the horizontal imaging segment refers to a continuous area within the horizontal scanning band that is divided horizontally, each corresponding to one imaging operation, with no gaps or overlaps between segments to ensure full horizontal coverage.
[0081] The specific process of this embodiment of the invention is as follows: The functional detection device first counts the total number of terminals in each horizontal scanning band. Combined with the determined number of consecutive terminals, it uses a round-down calculation method to determine the initial number of horizontal imaging steps. The calculation logic is as follows: divide the total number of terminals in the horizontal scanning band by the number of consecutive terminals. If the calculation result is an integer, then the integer is the number of horizontal imaging steps; if the calculation result is a non-integer, then take the integer part of the non-integer plus 1 as the number of horizontal imaging steps, to ensure that all terminals in the scanning band can be covered. Then, starting from the horizontal axis reference coordinate of the imaging position, and combined with the effective imaging width in the horizontal direction, the horizontal imaging segments are divided sequentially along the horizontal direction: the left boundary of the first horizontal imaging segment is aligned with the leftmost coordinate, and the right boundary is the leftmost coordinate plus the effective imaging width in the horizontal direction; the left boundary of each subsequent horizontal imaging segment coincides with the right boundary of the previous segment, and the right boundary extends sequentially according to the effective imaging width in the horizontal direction. The right boundary of the last horizontal imaging segment is adjusted to the rightmost coordinate, ensuring that all segments are continuous and non-overlapping. Each horizontal imaging segment corresponds to one horizontal imaging operation, achieving full coverage within the horizontal scanning band.
[0082] Step 1044: Construct the optical scanning path based on the start and end coordinates of each horizontal imaging segment in the two-dimensional plane coordinate system.
[0083] Optionally, the functional detection device constructs an optical scanning path based on the start and end coordinates of each horizontal imaging segment in a two-dimensional plane coordinate system, as described in steps 10441 to 10444.
[0084] The starting coordinates refer to the coordinates of the upper left corner vertex of the horizontal imaging segment in the two-dimensional plane coordinate system, including the horizontal and vertical coordinates; the ending coordinates refer to the coordinates of the lower right corner vertex of the horizontal imaging segment in the two-dimensional plane coordinate system, including the horizontal and vertical coordinates.
[0085] This invention systematically breaks down the scanning parameters in the vertical and horizontal directions, transforming complex array scanning into ordered segmented scanning. This constructs a high-efficiency optical scanning path with no missed scans and no overlaps, ensuring that the optical imaging device can accurately cover each terminal block. This provides high-quality image data for subsequent wire insertion status identification and avoids the problems of missed detection and misjudgment caused by unreasonable trajectories at the scanning path level, thereby improving the accuracy of terminal block validity detection.
[0086] Optionally, the process of steps 10441 to 10444 includes:
[0087] Step 10441: Based on the start and end coordinates of each horizontal imaging segment, determine the target positioning coordinates of the optical imaging device when performing a single imaging operation within the horizontal imaging segment, and generate the imaging positioning parameters of the optical imaging device within the horizontal imaging segment based on the target positioning coordinates.
[0088] Optionally, the functional detection device determines the target positioning coordinates of the optical imaging device when performing a single imaging operation within the horizontal imaging segment, based on the starting and ending coordinates of each horizontal imaging segment, and generates imaging positioning parameters of the optical imaging device within the horizontal imaging segment based on the target positioning coordinates. Here, a single imaging operation refers to the complete process of the optical imaging device acquiring one frame of image at a fixed position; the target positioning coordinates refer to the coordinates of the lens center in a two-dimensional plane coordinate system after the optical imaging device completes positioning within the horizontal imaging segment, used to ensure that the imaging field of view accurately covers the corresponding horizontal imaging segment; and the imaging positioning parameters refer to the set of relevant parameters used to control the movement of the optical imaging device to the target positioning coordinates, including the movement direction, movement distance, and positioning accuracy threshold.
[0089] The specific process of this invention embodiment is as follows: The functional detection device extracts the starting coordinates and ending coordinates of each horizontal imaging segment one by one, calculates the geometric center coordinates of the segment, and uses them as the target positioning coordinates of the optical imaging device within the horizontal imaging segment. The calculation logic is as follows: the horizontal axis coordinate value of the target positioning coordinate is equal to the average value of the horizontal axis coordinate values of the starting coordinate and the ending coordinate, and the vertical axis coordinate value of the target positioning coordinate is equal to the average value of the vertical axis coordinate values of the starting coordinate and the ending coordinate. After determining the target positioning coordinates, the functional detection device generates corresponding imaging positioning parameters: the movement direction is set according to the scanning sequence of the optical imaging device. When scanning from left to right in the horizontal direction, the movement direction is horizontal to the right; when switching scan lines in the vertical direction, the movement direction is vertically downward. The movement distance is the straight-line distance between the current coordinates of the optical imaging device and the target positioning coordinates, calculated using the distance between two points in a two-dimensional plane, i.e., the square root of the sum of the squares of the horizontal and vertical axis distances. The positioning accuracy threshold is set to 0.01 mm to ensure that the position deviation of the optical imaging device when moving to the target positioning coordinates does not exceed this threshold, ensuring accurate adaptation of the imaging field of view to the horizontal imaging segment. Each horizontal imaging segment corresponds to a unique set of target positioning coordinates and imaging positioning parameters.
[0090] Step 10442: Based on the vertical sequence of all horizontal scan bands, the horizontal sequence of each horizontal imaging segment within each horizontal scan band, and the imaging positioning parameters of each horizontal imaging segment, determine the trigger timing sequence required for the optical imaging device to perform line-by-line and segment-by-segment scanning on the entire terminal block array.
[0091] Optionally, the functional testing device determines the trigger timing sequence required for the optical imaging device to perform line-by-line scanning across the entire terminal block array based on the vertical sequence of all horizontal scan bands, the horizontal sequence of each horizontal imaging segment within each horizontal scan band, and the imaging positioning parameters of each horizontal imaging segment. A horizontal scan band refers to a continuous area divided vertically, with a width adapted to the effective vertical imaging height of the optical imaging device; each area corresponds to one line of optical scanning operation. The vertical sequence refers to the arrangement order of the horizontal scan bands along the vertical axis of the two-dimensional plane coordinate system, sequentially from the origin to the maximum extension boundary. The horizontal sequence refers to the arrangement order of each horizontal imaging segment within the same horizontal scan band along the horizontal axis of the two-dimensional plane coordinate system, sequentially from the leftmost coordinate side to the rightmost coordinate side. The trigger timing sequence refers to the set of time sequence instructions controlling the optical imaging device to perform operations such as movement, positioning, and imaging, specifying the execution time, duration, and interval of each operation.
[0092] The specific process of this embodiment is as follows: The functional detection device determines the scanning order of the horizontal scanning bands according to the vertical order, prioritizing the scanning of the horizontal scanning bands closest to the coordinate origin, and then proceeding sequentially towards the side of the maximum extension boundary. For each horizontal scanning band, the imaging order of the horizontal imaging segments is determined according to the horizontal order, prioritizing the imaging of the horizontal imaging segment closest to the leftmost coordinate, and then proceeding sequentially towards the rightmost coordinate. Subsequently, based on the imaging positioning parameters of each horizontal imaging segment, the movement time, positioning time, and imaging time of the optical imaging device between each horizontal imaging segment are calculated: the movement time is calculated based on the movement distance and the rated movement speed of the optical imaging device, i.e., the movement distance divided by the rated movement speed; the positioning time is set to a fixed value of 0.05 seconds to ensure that the optical imaging device is stable at the target positioning coordinate; the imaging time is determined based on the frame rate of the optical imaging device, i.e., the reciprocal of the frame rate, to ensure the complete acquisition of one frame of image. Based on the above time consumption parameters, the functional testing device plans the execution sequence of each operation in sequence according to the scanning order. It is determined that after the optical imaging device completes the imaging operation of the previous horizontal imaging segment, the next moving operation will be started after a stabilization time of 0.02 seconds. All horizontal scanning bands and their horizontal imaging segments are sequentially connected to form a complete trigger timing sequence, ensuring that each operation is smoothly connected and without timing conflicts.
[0093] Step 10443: Based on the trigger timing sequence, construct a composite scanning control process consisting of vertical scan line switching instructions and horizontal imaging segment positioning instructions.
[0094] Optionally, the functional testing device constructs a composite scanning control process based on the trigger timing sequence, consisting of vertical scanning line switching commands and horizontal imaging segment positioning commands.
[0095] Among them, the vertical scan line switching command refers to the control command that controls the optical imaging device to move from the current horizontal scan zone to the next horizontal scan zone, including the vertical movement direction, movement distance, positioning calibration command, etc.; the horizontal imaging segment positioning command refers to the control command that controls the optical imaging device to move from the current horizontal imaging segment to the next horizontal imaging segment within the current horizontal scan zone and complete the positioning, including the horizontal movement direction, movement distance, positioning accuracy verification command, etc.; the composite scanning control process refers to the integrated control command, which forms a coherent control logic framework according to the trigger timing sequence, and clarifies the execution order, correlation, and abnormal handling mechanism of the command.
[0096] The specific process of this embodiment of the invention is as follows: The functional detection device extracts the timing information related to vertical movement from the trigger timing sequence and converts it into a vertical scanning line switching command. Each command corresponds to a horizontal scanning band switching operation, specifying the command trigger time, vertical movement direction (all vertically downward), movement distance (vertical distance between adjacent horizontal scanning bands), and positioning calibration command. The positioning calibration command is used to verify the positional accuracy in the vertical axis direction after switching to the next horizontal scanning band, ensuring that the deviation does not exceed the positioning accuracy threshold. Simultaneously, the timing information related to horizontal movement and imaging is extracted and converted into a horizontal imaging segment positioning command. Each command corresponds to a horizontal imaging segment switching and positioning operation, specifying the command trigger time, horizontal movement direction (all horizontally to the right), movement distance (horizontal distance between adjacent horizontal imaging segments), and positioning accuracy verification command. The positioning accuracy verification command is used to verify the positional accuracy in the horizontal axis direction after reaching the target positioning coordinates, ensuring that the imaging requirements are met. The functional testing device integrates the above two types of instructions according to the trigger timing sequence to construct a composite scanning control process. In the process, it is clearly stated that when the positioning accuracy verification fails, a repositioning operation is triggered. The maximum number of repositioning operations is set to 3. If it still fails, a fault alarm signal is issued to ensure the reliability of the scanning process, forming a cyclic control logic of "horizontal imaging - horizontal switching - scanning band switching - horizontal imaging".
[0097] Step 10444: Based on the spatial correspondence between each scan line and each imaging segment in the composite scanning control process and the corresponding imaging positioning parameters, construct the optical scanning path.
[0098] Optionally, the functional testing device constructs an optical scanning path based on the spatial correspondence between each scanning row and each imaging segment in the composite scanning control process, as well as the corresponding imaging positioning parameters. Here, a scanning row is a horizontal scanning band, and each scanning row corresponds to a set of horizontal imaging segments; the spatial correspondence refers to the positional relationship between each scanning row and its corresponding horizontal imaging segment, and between each horizontal imaging segment and the target positioning coordinates; the imaging positioning parameters refer to the set of relevant parameters used to control the optical imaging device to move to the target positioning coordinates, including the direction of movement, the distance of movement, and the positioning accuracy threshold.
[0099] The specific process of this embodiment of the invention is as follows: The functional detection device first extracts all control commands in the composite scanning control flow, decomposes the scanning line (horizontal scanning band), horizontal imaging segment, and associated imaging positioning parameters corresponding to each command, clarifies the spatial relationship between each scanning line and its corresponding horizontal imaging segment, and determines the target positioning coordinates, movement direction, and movement distance corresponding to each horizontal imaging segment. Subsequently, according to the execution order set in the composite scanning control flow, the target positioning coordinates of all horizontal imaging segments are sequentially connected to form the initial main line of the optical imaging device's movement trajectory. The connection sequence strictly follows the rule of "first completing the coordinate connection of all horizontal imaging segments within the same scanning line, and then switching to the next scanning line for connection," ensuring that the trajectory conforms to the line-by-line and segment-by-segment scanning logic.
[0100] Furthermore, based on the movement direction and distance in the imaging positioning parameters, the functional testing device performs smooth optimization processing on the initial trajectory mainline: the trajectory between two adjacent target positioning coordinates adopts a straight transition. If the adjacent movement direction changes (i.e., horizontal movement switches to vertical movement, or vertical movement switches to horizontal movement), an arc transition segment is added at the trajectory inflection point. The radius of the arc is set to a fixed value adapted to the rated movement speed of the optical imaging device, ensuring that the movement trajectory has no sudden turns or jams, adapting to the mechanical motion performance of the optical imaging device, and avoiding positioning deviations caused by sudden trajectory changes. At the same time, the functional testing device retrieves the trigger timing sequence, accurately associating the imaging time corresponding to each horizontal imaging segment with the target positioning coordinates on the trajectory, and marking a pause node at each target positioning coordinate on the trajectory mainline. The pause duration is equal to the sum of the imaging time and the positioning time, ensuring that the optical imaging device can stably stop and complete image acquisition after reaching the target position.
[0101] Furthermore, after trajectory optimization and node marking are completed, the functional testing device performs an integrity check on the overall trajectory. The check includes: whether the target positioning coordinates of all horizontal imaging segments are included in the trajectory, whether the trajectory covers all scan lines, whether the connection between adjacent trajectory segments is smooth, and whether the pause nodes match the imaging timing. If the check passes, the trajectory is determined to be the final optical scanning path; if the check finds problems such as missing coordinates, abnormal connection, or timing mismatch, the process returns to the composite scanning control flow, readjusts the instruction sequence and trajectory parameters, until the check passes, ensuring that the optical scanning path can accurately guide the optical imaging device to complete the full array scanning and imaging operations in an orderly manner according to the preset logic.
[0102] The embodiments of the present invention construct an optical scanning path that is spatially precise, temporally reasonable, and reliably operational, ensuring that the optical imaging device can cover all terminals row by row and segment by segment according to preset logic, accurately acquiring the optical image of each terminal. This avoids problems such as missed scans and blurred images caused by subjective operation deviations in manual inspection from the path level, providing high-quality data support for subsequent wire insertion status identification and wiring validity determination, thereby improving the accuracy of terminal detection with wiring validity.
[0103] Optionally, the processes of steps 401 to 404 include:
[0104] Step 401: Based on the time synchronization relationship between the application time of the transient excitation signal corresponding to the physically positioned terminal in the electrical connection response data and the acquisition time of the electrical connection response signal, the original electrical response waveform of the terminal within the preset excitation response window is obtained.
[0105] Optionally, the functional testing device obtains the original electrical response waveform of the terminal within a preset excitation response window based on the time synchronization relationship between the application time of the transient excitation signal corresponding to the physically positioned terminal in the electrical connection response data and the acquisition time of the electrical connection response signal. Among them, the transient excitation signal application time refers to the starting time when the multi-channel electrical excitation unit outputs the transient excitation signal to the terminal block, which is synchronously recorded by the functional testing device with an accuracy of 0.1 milliseconds; the electrical connection response signal acquisition time refers to the starting time when the electrical parameter acquisition module of the functional testing device begins to acquire the electrical response parameters of the corresponding terminal block, which is synchronized with the transient excitation signal application time with an accuracy of 0.1 milliseconds; the time synchronization relationship refers to the time alignment relationship between the transient excitation signal application time and the electrical connection response signal acquisition time, ensuring that the acquired electrical response parameters correspond one-to-one with the applied transient excitation signal without time deviation; the preset excitation response window refers to the time interval pre-set by the functional testing device for acquiring and analyzing the electrical response signal. This interval covers the complete duration of the transient excitation signal and the time for signal attenuation to stabilize, with a duration set to 200 milliseconds, calculated from the transient excitation signal application time; the original electrical response waveform refers to the continuous waveform curve formed by connecting the response voltage data acquired within the preset excitation response window in sequence according to the acquisition time, with time as the horizontal axis and response voltage as the vertical axis, which can intuitively reflect the voltage change pattern of the terminal block after receiving the transient excitation signal.
[0106] The specific process of this embodiment of the invention is as follows: The functional testing device first extracts the application time of the transient excitation signal and the acquisition time of the electrical connection response signal corresponding to each physically positioned terminal from the electrical connection response dataset, and verifies the time synchronization of the two to ensure that the time difference between the acquisition time and the application time does not exceed 0.1 milliseconds. If it exceeds this time, the data set is discarded and re-acquisition is triggered until the synchronization requirement is met. Subsequently, taking the application time of the transient excitation signal as the starting point, a preset excitation response window with a duration of 200 milliseconds is defined, and the response voltage data corresponding to all acquisition times within the window are extracted and sorted sequentially according to the acquisition time sequence (one data point is acquired every 0.1 milliseconds). Finally, with time as the horizontal axis (unit: milliseconds) and response voltage as the vertical axis (unit: volts), the sorted response voltage data points are connected one by one to form the original electrical response waveform of the terminal. Each physically positioned terminal corresponds to a unique original electrical response waveform.
[0107] Step 402: Based on the difference in voltage amplitude between the initial stable segment and the final stable segment of the original electrical response waveform within the preset excitation response window, the steady-state voltage offset corresponding to the terminal is obtained.
[0108] Optionally, the functional testing device obtains the steady-state voltage offset corresponding to the terminal based on the difference in voltage amplitude between the initial stable segment and the final stable segment within a preset excitation response window of the original electrical response waveform. The initial stable segment refers to the initial period within the preset excitation response window where the voltage tends to stabilize after the application of the transient excitation signal. This period avoids the unstable phase of the signal rising edge and is set to 10 milliseconds from the application time to 20 milliseconds, with a duration of 10 milliseconds. The final stable segment refers to the final period within the preset excitation response window where the voltage tends to stabilize after the end of the transient excitation signal, set to 180 milliseconds from the application time to 190 milliseconds, with a duration of 10 milliseconds. The voltage amplitude refers to the response voltage value at a certain moment on the original electrical response waveform, in volts, with an accuracy of 0.01 volts. The steady-state voltage offset refers to the difference between the average voltage amplitude of the initial stable segment and the average voltage amplitude of the final stable segment, in volts, used to reflect the change in the steady-state electrical characteristics of the terminal under electrical excitation.
[0109] The specific process of this embodiment of the invention is as follows: For each original electrical response waveform, the functional detection device extracts the voltage amplitude data corresponding to the initial stable segment and the final stable segment within a preset excitation response window. For the initial stable segment, all voltage amplitude data from the 10th millisecond to the 20th millisecond are extracted, and their average value is calculated as the average voltage amplitude of the initial stable segment. The calculation method is the sum of the voltage amplitudes of all data points divided by the number of data points (100 data points). For the final stable segment, all voltage amplitude data from the 180th millisecond to the 190th millisecond are extracted, and the average voltage amplitude of the final stable segment is obtained using the same calculation method. Subsequently, the difference between the two, i.e., the steady-state voltage offset, is calculated by subtracting the average voltage amplitude of the final stable segment from the average voltage amplitude of the initial stable segment. A positive difference indicates a decrease in voltage amplitude, a negative difference indicates an increase in voltage amplitude, and zero indicates no offset.
[0110] Step 403: If the steady-state voltage offset is not within the preset effective conduction voltage threshold range, the wiring validity determination result of the terminal block is that no effective electrical path has been formed. If the steady-state voltage offset is within the preset effective conduction voltage threshold range, the existence result of the dynamic response of the terminal block is obtained based on whether the original electrical response waveform has a voltage jump characteristic synchronized with the rising edge of the transient excitation signal.
[0111] Optionally, if the functional detection device determines that the steady-state voltage offset is not within the preset effective conduction voltage threshold range, it determines that the wiring validity of the terminal block is not a valid electrical path. If it determines that the steady-state voltage offset is within the preset effective conduction voltage threshold range, it obtains the result of the existence of the dynamic response of the terminal block based on whether the original electrical response waveform has a voltage jump characteristic synchronized with the rising edge of the transient excitation signal. Among them, the preset effective conduction voltage threshold range refers to the reasonable range of steady-state voltage deviation that the functional testing device pre-sets to characterize when the terminal forms an effective electrical path. This range is determined based on the rated electrical parameters of the terminal and wires through multiple tests and calibrations, and is in the range of -0.5 volts to 0.5 volts. The voltage jump characteristic refers to the characteristic of rapid change in voltage amplitude that occurs at the rising edge of the transient excitation signal in the original electrical response waveform. It is manifested as the voltage amplitude jumping from the reference value to the peak value or falling back from the peak value to the reference value in a short period of time. The rising edge of the transient excitation signal refers to the time period during which the transient excitation signal rises from the initial voltage value to the rated peak voltage, with a duration of 1 millisecond. The dynamic response existence result refers to the binary conclusion output by the functional testing device for whether the above voltage jump characteristics exist in the original electrical response waveform, including two cases: "dynamic response exists" and "dynamic response does not exist".
[0112] The specific process of this embodiment is as follows: The functional testing device retrieves the steady-state voltage offset of each terminal one by one and compares it with the preset effective conduction voltage threshold range (-0.5 volts to 0.5 volts). If the steady-state voltage offset is less than -0.5 volts or greater than 0.5 volts, it indicates that the steady-state electrical characteristics of the terminal are abnormal, and the functional testing device directly determines that the terminal has not formed an effective electrical path. If the steady-state voltage offset is within the range of -0.5 volts to 0.5 volts, the dynamic characteristics of the original electrical response waveform are further analyzed: the time interval corresponding to the rising edge of the transient excitation signal (0 ms to 1 ms from the application time) is extracted, and the voltage amplitude change rate of the original electrical response waveform within this interval is analyzed. The voltage amplitude change rate is calculated by dividing the difference between the maximum and minimum voltage amplitudes within this interval by the time length (1 ms). If the rate of change of voltage amplitude is greater than or equal to 5 volts / millisecond, it indicates that there is a significant voltage jump in the waveform, and the jump time is synchronized with the rising edge of the transient excitation signal, which is judged as "having dynamic response"; if the rate of change of voltage amplitude is less than 5 volts / millisecond, it indicates that there is no significant jump in the waveform, which is judged as "not having dynamic response".
[0113] Step 404: Based on the dynamic response existence result, determine whether each wiring terminal forms a valid electrical path, and obtain the wiring validity determination result.
[0114] Optionally, the functional testing device determines whether each terminal forms a valid electrical path based on the dynamic response existence result, and obtains the wiring validity determination result, as in steps 4041 to 4044.
[0115] This invention achieves an objective determination of the effectiveness of electrical circuits by quantitatively analyzing electrical response parameters and waveform characteristics, avoiding omissions and misjudgments caused by insufficient subjective experience in manual testing. In particular, it can accurately identify hidden faults such as loose connections, ensuring accurate testing from the perspective of electrical characteristics, thereby improving the accuracy of testing the effectiveness of wiring terminals.
[0116] Optionally, the processes of steps 4041 to 4044 include:
[0117] Step 4041: If the dynamic response existence result is that there is no voltage jump characteristic, then the wiring validity determination result of the terminal block is that no effective electrical path has been formed.
[0118] Optionally, if the functional testing device determines that the dynamic response existence result does not show a voltage jump characteristic, then the wiring validity determination result of the terminal block is that no effective electrical path has been formed. The voltage jump characteristic refers to the rapid change in voltage amplitude that occurs at the rising edge of the transient excitation signal in the original electrical response waveform. This is manifested as the voltage amplitude jumping from a reference value to a peak value or falling back to the reference value within a short period. The criterion for this is a voltage amplitude change rate greater than or equal to 5 volts / millisecond (the time interval is from 0 milliseconds to 1 millisecond corresponding to the rising edge of the transient excitation signal).
[0119] The specific process of this embodiment of the invention is as follows: The functional detection device retrieves the dynamic response existence results corresponding to each terminal whose steady-state voltage offset is within the preset effective conduction voltage threshold range, and checks whether each result is "no voltage jump characteristic". If it is determined that there is no voltage jump characteristic, it means that although the steady-state electrical parameters of the terminal are within a reasonable range, it cannot make a fast and normal dynamic response to the transient excitation signal, and there are hidden faults such as loose connection or poor contact. Such faults will cause the electrical signal transmission to be delayed or unstable, and a reliable electrical connection cannot be formed. Based on this, the functional detection device directly determines that the wiring validity judgment result of the terminal is that no effective electrical path has been formed, and associates and stores the judgment result with the unique identifier of the terminal, without proceeding to the subsequent judgment process.
[0120] Step 4042: If the dynamic response existence result indicates the presence of voltage jump characteristics, then based on the excitation polarity configuration information used by the multi-channel electrical excitation unit when applying transient excitation signals to the terminals, and the voltage change direction of the main jump edges in the original electrical response waveform, determine whether the two are consistent.
[0121] Optionally, if the dynamic response existence result of the functional detection device is that there is a voltage jump characteristic, then based on the excitation polarity configuration information used by the multi-channel electrical excitation unit when applying the transient excitation signal to the terminal, and the voltage change direction of the main jump edge in the original electrical response waveform, it is determined whether the two are consistent. Among them, the excitation polarity configuration information refers to the positive and negative terminal wiring configuration information when the multi-channel electrical excitation unit applies a transient excitation signal, which specifies which contact the signal enters from and which contact it exits from. It is divided into two types: positive polarity (signal enters from the positive contact of the terminal and exits from the negative contact) and reverse polarity (signal enters from the negative contact of the terminal and exits from the positive contact). It is pre-stored and associated with the application command. The main transition edge refers to the transition edge with the largest and most obvious voltage change amplitude that is synchronous with the rising edge of the transient excitation signal in the original electrical response waveform. It is the core feature reflecting the direction of electrical signal transmission. The voltage change direction refers to the voltage amplitude change trend corresponding to the main transition edge. It is divided into positive change (voltage amplitude rises from the reference value to the peak voltage) and reverse change (voltage amplitude falls from the reference value to a direction lower than the peak voltage).
[0122] The specific process of this embodiment of the invention is as follows: For a terminal block whose dynamic response existence result is "existence of voltage jump characteristics", the functional detection device first extracts the excitation polarity configuration information corresponding to the applied operation from the instruction record of the multi-channel electrical excitation unit to determine whether the current polarity is positive or negative. Then, it analyzes the original electrical response waveform corresponding to the terminal block, locates the time interval of the main jump edge (i.e., 0 ms to 1 ms corresponding to the rising edge of the transient excitation signal), extracts the voltage amplitude at the start and end of the jump edge, and calculates the difference between the two to determine the voltage change direction: if the voltage amplitude at the end is greater than the voltage amplitude at the start, it is determined to be a positive change; if the voltage amplitude at the end is less than the voltage amplitude at the start, it is determined to be a negative change. Finally, the functional detection device compares the preset voltage change direction corresponding to the excitation polarity configuration information with the actual voltage change direction obtained from the analysis to determine whether they are consistent, forming a direction consistency determination result.
[0123] Step 4043: If there is a discrepancy, the wiring validity determination result of the terminal block is that no valid electrical path has been formed. If there is a discrepancy, the signal rise time of the terminal block is obtained based on the time required for the voltage jump to reach the preset proportional amplitude from the moment the transient excitation signal is applied to the original electrical response waveform.
[0124] Optionally, if the directional consistency determination result of the functional testing device is inconsistent, the wiring validity determination result of the terminal block is determined to be that no effective electrical path has been formed. If the directional consistency determination result is consistent, the signal rise time of the terminal block is obtained based on the time required for the voltage jump to reach the preset proportional amplitude from the moment the transient excitation signal is applied to the original electrical response waveform. The directional consistency determination result refers to the comparison conclusion between the preset voltage change direction corresponding to the excitation polarity configuration information and the actual voltage change direction of the main jump edge in the original electrical response waveform, including both "consistent" and "inconsistent" cases. The preset proportional amplitude refers to the amplitude standard pre-set by the functional testing device to define the voltage jump completion node, which is 80% of the peak voltage of the transient excitation signal. This proportion can accurately capture the core stage of the jump process and eliminate the interference of subsequent attenuation fluctuations. The signal rise time refers to the time required for the voltage amplitude to rise to the preset proportional amplitude from the moment the transient excitation signal is applied to the original electrical response waveform, in milliseconds with an accuracy of 0.1 milliseconds, used to reflect the conduction speed and reliability of the electrical connection.
[0125] The specific process of this embodiment of the invention is as follows: The functional testing device checks the direction consistency determination result. If it is determined to be inconsistent, it indicates that there is a problem of reverse polarity connection of the terminal. Reverse connection will cause the electrical signal to be unable to be transmitted normally along the preset path. Even if there is a voltage jump, an effective electrical path cannot be formed. Therefore, the functional testing device directly determines that the terminal has not formed an effective electrical path and stores the determination result. If it is determined to be consistent, the signal rise time is further calculated: First, the peak voltage of the transient excitation signal is extracted, and 80% of it is calculated as the preset proportional amplitude. Then, in the original electrical response waveform, starting from the application time of the transient excitation signal (0 milliseconds), the corresponding time when the voltage amplitude reaches the preset proportional amplitude is traced step by step. Finally, the time difference between this time and the application time is calculated, which is the signal rise time of the terminal.
[0126] Step 4044: Determine whether each terminal forms a valid electrical path based on the signal rise time of the terminal, and obtain the wiring validity determination result.
[0127] Optionally, the functional testing device determines whether each terminal forms a valid electrical path based on the signal rise time of the terminal, thus obtaining a wiring validity determination result, as detailed in steps 40441 to 40444. The signal rise time refers to the time required for the original electrical response waveform to rise from the moment the transient excitation signal is applied until the voltage amplitude reaches a preset proportional amplitude (80% of the peak voltage of the transient excitation signal). It is a core dynamic parameter reflecting the electrical connection conduction speed and contact reliability.
[0128] This invention, by progressively refining the judgment dimensions, covers a variety of hidden faults such as loose connections, reverse connections, and excessive contact resistance, and achieves accurate fault location and differentiation. It avoids the problems of missed judgments and misjudgments caused by insufficient subjective experience in manual inspection. In particular, it can identify hidden connection defects that are difficult for humans to detect, and improves the accuracy of terminal block wiring validity detection from the perspective of electrical dynamic characteristics and polarity matching.
[0129] Optionally, the processes of steps 40441 to 40444 include:
[0130] Step 40441: If the signal rise time is greater than or equal to the preset maximum allowable rise time threshold, the wiring validity determination result of the terminal block is that no effective electrical path has been formed. If it is less than the maximum allowable rise time threshold, the presence of contact instability characteristics is determined based on whether there are continuous voltage fluctuations or high-frequency oscillations within the preset excitation response window of the original electrical response waveform.
[0131] Optionally, if the signal rise time is greater than or equal to the preset maximum permissible rise time threshold, the functional testing device determines that the wiring validity of the terminal block has not formed a valid electrical path. If the signal rise time is less than the maximum permissible rise time threshold, the device determines whether there are contact instability characteristics based on whether there are continuous voltage fluctuations or high-frequency oscillations within the preset excitation response window of the original electrical response waveform. The maximum permissible rise time threshold is a critical value preset by the functional testing device that characterizes the signal rise time when the terminal block forms a valid electrical path. It is determined through multiple tests and calibrations based on the rated electrical performance of the terminal block and wires, and is set to 2 milliseconds.
[0132] Continuous voltage fluctuations refer to the phenomenon in the stable phase of the original electrical response waveform (excluding the rising and falling edges of transient excitation signals) where the voltage amplitude repeatedly changes around the reference value and the amplitude of the change exceeds the allowable range, with an allowable amplitude of ±0.05 volts; high-frequency oscillations refer to periodic voltage amplitude fluctuations with a frequency greater than 100 Hz in the original electrical response waveform, manifested as dense waveform fluctuations; contact instability refers to the characteristic of unstable electrical signal transmission caused by the change in the contact gap between the terminal and the wire over time, characterized by continuous voltage fluctuations or high-frequency oscillations.
[0133] The specific process of this embodiment of the invention is as follows: The functional detection device retrieves the signal rise time corresponding to each terminal with a consistent direction determination result and compares it with the maximum allowable rise time threshold (2 milliseconds). If the signal rise time is greater than or equal to 2 milliseconds, it indicates that the conduction speed of the terminal is too slow and there is a problem of excessive contact resistance. Excessive contact resistance will lead to a decrease in electrical signal transmission efficiency and an inability to form a stable and reliable electrical path. The functional detection device directly determines that the terminal has not formed an effective electrical path and stores the determination result accordingly. If the signal rise time is less than 2 milliseconds, the original electrical response waveform is further analyzed: the stable phase within the preset excitation response window is extracted, namely the time interval from the end of the rising edge of the transient excitation signal to the beginning of the falling edge (1 millisecond to 50 milliseconds), and the time interval from the end of the falling edge to the end of the window (51 milliseconds to 200 milliseconds).
[0134] The voltage amplitude data from the two stable phases are analyzed point by point. The voltage amplitude difference between two adjacent data points (acquisition interval of 0.1 ms) is calculated. If the difference between 10 or more consecutive data points exceeds ±0.05 volts, it is determined that there is a continuous voltage fluctuation. At the same time, the waveform frequency is calculated. If the number of waveform fluctuations within a certain time period is greater than 10 times / 0.1 seconds (i.e., the frequency is greater than 100 Hz), it is determined that there is a high-frequency oscillation phenomenon. If either continuous voltage fluctuation or high-frequency oscillation phenomenon exists, it is determined that there is a contact instability characteristic; if neither exists, it is determined that there is no contact instability characteristic.
[0135] Step 40442: If there are unstable contact characteristics, the wiring validity determination result of the terminal block is that no effective electrical path has been formed.
[0136] Optionally, if the functional testing device exhibits contact instability characteristics, the result of determining the wiring validity of the terminal block is that no effective electrical path has been formed. Contact instability refers to the characteristic that the contact gap between the terminal block and the wire changes over time, leading to unstable electrical signal transmission, characterized by continuous voltage fluctuations or high-frequency oscillations in the original electrical response waveform.
[0137] The specific process of this embodiment of the invention is as follows: The functional testing device checks the contact instability characteristic judgment result. If it determines that there is contact instability, it indicates that the connection state between the terminal and the wire is unstable, and there may be problems such as contact oxidation or loosening. Such problems will cause intermittent electrical signal transmission, which cannot guarantee the normal operation of the electrical system and does not meet the requirements of a valid electrical path. Based on this, the functional testing device directly determines that the wiring validity judgment result of the terminal is that a valid electrical path has not been formed, and associates and stores the judgment result with the unique identifier of the terminal, without proceeding to the subsequent judgment process.
[0138] Step 40443: If there is no contact instability, then determine whether the zero-return characteristic of the terminal is normal based on whether the original electrical response waveform returns to the baseline voltage level within a preset recovery time after the excitation ends.
[0139] Optionally, if the functional testing device does not exhibit contact instability, it determines whether the zero-return characteristic of the terminal is normal based on whether the original electrical response waveform returns to the baseline voltage level within a preset recovery time after excitation ends. Here, "excitation end" refers to the end of the pulse duration of the transient excitation signal, i.e., 50 milliseconds from the moment the transient excitation signal is applied; "preset recovery time" refers to the maximum time, preset by the functional testing device, that allows the original electrical response waveform to recover from the voltage amplitude at the end of excitation to the baseline voltage level, with a value of 50 milliseconds, i.e., from the excitation end time (50 milliseconds) to 100 milliseconds; "baseline voltage level" refers to the initial voltage level of the terminal when it does not receive the transient excitation signal, i.e., 0 volts; "zero-return characteristic" refers to the characteristic that the voltage amplitude of the original electrical response waveform gradually decays and recovers to the baseline voltage level after excitation ends. A normal zero-return characteristic means that the voltage amplitude stably falls back to the baseline voltage level within the preset recovery time, while an abnormal characteristic means that it fails to fall back to the baseline voltage level beyond the preset recovery time or cannot stably maintain its position after falling back.
[0140] The specific process of this embodiment of the invention is as follows: For terminals determined to lack contact instability characteristics, the functional detection device extracts the voltage amplitude data after the excitation ends from the original electrical response waveform, i.e., all voltage amplitude data within 50 milliseconds to 100 milliseconds (preset recovery time interval). Using a baseline voltage level (0 volts) as a reference, it determines whether the voltage amplitude within this interval can stably fall back to the range of 0 volts ± 0.01 volts, and remain stable for 20 consecutive data points (2 milliseconds) after the end of this interval (100 milliseconds), without significant rebound. If the voltage amplitude falls back to the above range and remains stable within the preset recovery time (50 milliseconds), it is determined that the zero-return characteristic is normal; if it fails to fall back to the above range after 100 milliseconds, or fluctuates beyond the range after falling back to the range, it is determined that the zero-return characteristic is abnormal.
[0141] Step 40444: If the zero-return characteristic is abnormal, the wiring validity determination result of the terminal block is determined to be that no valid electrical path has been formed. If the zero-return characteristic is normal, the wiring validity determination result of the terminal block is determined to be that a valid electrical path has been formed.
[0142] Optionally, if the zero-return characteristic is abnormal, the wiring validity determination result of the terminal block is that no valid electrical path has been formed. If the zero-return characteristic is normal, the wiring validity determination result of the terminal block is that a valid electrical path has been formed. Abnormal zero-return characteristic refers to the situation where the original electrical response waveform fails to return to the baseline voltage level after the excitation ends, or fails to maintain a stable position after falling back, exceeding the preset recovery time; normal zero-return characteristic refers to the situation where the original electrical response waveform stably returns to the baseline voltage level and maintains it within the preset recovery time.
[0143] The specific process of this invention embodiment is as follows: The functional testing device checks the zero-return characteristic judgment result for each terminal that does not exhibit contact instability. If the zero-return characteristic is determined to be abnormal, it indicates that the terminal may have problems such as residual charge or poor insulation. These problems will affect the normal transmission of subsequent electrical signals and will not form a reliable and effective electrical path. The functional testing device determines that the terminal has not formed an effective electrical path. If the zero-return characteristic is determined to be normal, it indicates that the terminal's conduction speed, contact stability, and recovery capability after excitation all meet the requirements. There are no problems such as open circuits, loose connections, reverse connections, excessive contact resistance, unstable contact, or residual charge. Stable and normal transmission of electrical signals can be achieved. The functional testing device determines that the terminal has formed an effective electrical path. Finally, the functional testing device integrates the judgment results of all physically positioned terminals to generate a complete list of wiring validity judgment results, clearly defining the unique identifier of each terminal and the corresponding judgment conclusion, thus completing the entire wiring validity judgment process.
[0144] The embodiments of this invention comprehensively cover a variety of hidden faults that are difficult to detect manually, such as excessive contact resistance, unstable contact, and residual charge. It avoids the problems of missed detection and misjudgment caused by insufficient subjective experience in manual point-by-point inspection. It ensures the accuracy of judgment from multiple aspects such as electrical dynamic performance, connection stability and recovery capability, thereby improving the accuracy of the detection of the wiring validity of the terminal block.
[0145] Furthermore, the terminal block detection device with wiring validity function provided by the present invention will be described below. The terminal block detection device described below and the terminal block detection method described above can be referred to in correspondence.
[0146] Optional, refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of the terminal block detection device with wiring validity function provided by the present invention. The terminal block detection device with wiring validity function includes:
[0147] The optical image generation module 210 is used to construct an optical scanning path based on the terminal position mapping obtained by analyzing the physical layout information of the terminal array, and to control the optical imaging device to scan the terminal array line by line based on the optical scanning path to obtain an optical image sequence of the wire insertion status of each terminal.
[0148] The positioning determination module 220 is used to identify whether the end of the wire corresponding to each terminal is located in the preset valid insertion area based on the optical image sequence, and to obtain the physical positioning determination result of the wire.
[0149] The excitation instruction generation module 230 is used to filter out a subset of physically positioned terminals based on the physical positioning determination result of the wires, generate an electrical excitation instruction sequence, and drive the multi-channel electrical excitation unit to apply transient excitation signals to each terminal in the subset of terminals in sequence based on the electrical excitation instruction sequence to obtain an electrical connection response dataset.
[0150] The wiring validity determination module 240 is used to determine whether each physically positioned wiring terminal forms a valid electrical path based on the electrical connection response dataset, and to obtain the wiring validity determination result.
[0151] This invention achieves synchronous, non-destructive detection of the physical state of multiple terminals through optical scanning, and then accurately performs multi-channel electrical testing based on the physical judgment results. This enables synchronous, efficient, and reliable detection of the consistency of physical insertion and electrical connection in a dense array of terminals without disassembly or interference with the original wiring. It solves the problems of missed detection, misjudgment, and inability to verify synchronously caused by manual point-by-point testing, and improves the accuracy of the detection of the validity of the terminals with wiring.
[0152] Please see Figure 3 , Figure 3 An embodiment diagram of an electronic device provided in accordance with the present invention. For example... Figure 3 As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it implements the processes of steps 10 to 40.
[0153] Please see Figure 4 , Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with an embodiment of the present invention is shown. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400 on which a computer program 311 is stored. When the computer program 311 is executed by a processor, it implements the processes of steps 10 to 40.
[0154] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the terminal block detection method with wiring validity function provided by the above methods, which includes steps 10 to 40.
[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting the validity of wiring terminals, characterized in that, include: Based on the analysis of the physical layout information of the terminal block array, an optical scanning path is constructed using the terminal position mapping map. Based on the optical scanning path, the optical imaging device is controlled to scan the terminal block array line by line to obtain an optical image sequence of the wire insertion status of each terminal block. Based on the optical image sequence, the physical positioning determination result of the wire is obtained by identifying whether the end of the wire corresponding to each terminal is located in the preset valid insertion area. Based on the physical placement determination result of the conductor, a subset of physically placed terminals is selected, an electrical excitation command sequence is generated, and a multi-channel electrical excitation unit is driven to apply transient excitation signals to each terminal in the subset of terminals in sequence based on the electrical excitation command sequence to obtain an electrical connection response dataset. Based on the electrical connection response dataset, it is determined whether each physically positioned terminal forms a valid electrical path, and the wiring validity determination result is obtained.
2. The method for detecting the validity of wiring terminals according to claim 1, characterized in that, The steps for determining the validity of the wiring of the terminal blocks include: Based on the time synchronization relationship between the application time of the transient excitation signal corresponding to the physically positioned terminal in the electrical connection response data and the acquisition time of the electrical connection response signal, the original electrical response waveform of the terminal within the preset excitation response window is obtained. Based on the difference in voltage amplitude between the initial stable segment and the final stable segment of the original electrical response waveform within the preset excitation response window, the steady-state voltage offset corresponding to the terminal is obtained. If the steady-state voltage offset is not within the preset effective conduction voltage threshold range, the wiring validity determination result of the terminal is that no effective electrical path is formed; if the steady-state voltage offset is within the preset effective conduction voltage threshold range, the existence result of the dynamic response of the terminal is obtained based on whether the original electrical response waveform has a voltage jump characteristic synchronized with the rising edge of the transient excitation signal. Based on the existence result of the dynamic response, it is determined whether each terminal forms a valid electrical path, and the validity of the wiring is determined.
3. The method for detecting the validity of wiring terminals according to claim 2, characterized in that, The determination of whether each terminal forms a valid electrical path based on the existence result of the dynamic response, to obtain the wiring validity determination result, includes: If the dynamic response existence result is that there is no voltage jump characteristic, then the determination result of the wiring validity of the terminal block is that no effective electrical path is formed; If the dynamic response existence result indicates the presence of voltage jump characteristics, then based on the excitation polarity configuration information used by the multi-channel electrical excitation unit when applying transient excitation signals to the terminals, and the voltage change direction of the main jump edges in the original electrical response waveform, it is determined whether the two are consistent. If they are inconsistent, the wiring validity determination result of the terminal block is that no effective electrical path has been formed; if they are consistent, the signal rise time of the terminal block is obtained based on the time required for the voltage jump to reach the preset proportional amplitude from the moment the transient excitation signal is applied to the original electrical response waveform. The validity of the wiring is determined by judging whether each terminal forms a valid electrical path based on the signal rise time of the terminal.
4. The method for detecting the validity of wiring terminals according to claim 3, characterized in that, The method of determining whether each terminal forms a valid electrical path based on the signal rise time of the terminal block to obtain the wiring validity determination result includes: If the signal rise time is greater than or equal to the preset maximum allowable rise time threshold, the wiring validity of the terminal block is determined to be that no effective electrical path has been formed; if it is less than the maximum allowable rise time threshold, the presence of contact instability is determined based on whether there is continuous voltage fluctuation or high-frequency oscillation within the preset excitation response window of the original electrical response waveform. If unstable contact characteristics exist, the determination result of the wiring validity of the terminal block is that no effective electrical path has been formed; If there is no contact instability, the zero-return characteristic of the terminal is determined based on whether the original electrical response waveform returns to the baseline voltage level within a preset recovery time after the excitation ends. If the zero-return characteristic is abnormal, the wiring validity determination result of the terminal block is that no valid electrical path has been formed; if the zero-return characteristic is normal, the wiring validity determination result of the terminal block is that a valid electrical path has been formed.
5. The method for detecting the validity of wiring terminals according to claim 1, characterized in that, The terminal position mapping obtained from the analysis of the physical layout information of the terminal block array is used to construct the optical scanning path, including: Based on the row and column coordinates of each terminal in the two-dimensional plane coordinate system in the terminal position mapping diagram, the spatial arrangement topology of the terminal is determined, and the maximum extension boundary of the terminal array in the vertical direction is determined based on the spatial arrangement topology. Based on the minimum center-to-center distance between adjacent terminals in the horizontal direction in the spatial arrangement topology and the lateral resolution threshold of the optical imaging device, the minimum effective imaging field of view width of the optical imaging device that covers a single terminal in the horizontal direction without omitting adjacent terminals is determined. The number of consecutive terminals covered horizontally by the optical imaging device in a single imaging operation is determined based on the minimum effective imaging field of view width. Based on the number of consecutive terminals, the maximum extension boundary, and the effective imaging height of the optical imaging device in the vertical direction, an optical scanning path is constructed to guide the optical imaging device to perform line-by-line scanning of the terminal array.
6. The method for detecting the validity of wiring terminals according to claim 5, characterized in that, Based on the number of consecutive terminals, the maximum extension boundary, and the effective imaging height, the optical scanning path is constructed, including: Based on the maximum extension boundary and the effective imaging height, determine the number of scan rows required to cover all terminals in the vertical direction, and divide the terminal array into multiple continuous horizontal scan bands in the vertical direction based on the number of scan rows; each horizontal scan band corresponds to one line of optical scanning operation; Based on the row and column coordinates of the terminals contained in each horizontal scan band, the leftmost and rightmost coordinates of the terminals in each horizontal scan band in the horizontal direction are determined, and based on the leftmost and rightmost coordinates, the imaging position of the optical imaging device when scanning in the horizontal scan band is determined. Based on the number of continuous terminals and the total number of terminals in each horizontal scanning band, the number of horizontal imaging steps required to complete full coverage in the horizontal scanning band is determined. Based on the number of horizontal imaging steps, the imaging position, and the effective imaging width of the optical imaging device in the horizontal direction, the imaging area in the horizontal scanning band is divided into multiple continuous and non-overlapping horizontal imaging segments. The optical scanning path is constructed based on the starting and ending coordinates of each horizontal imaging segment in a two-dimensional plane coordinate system.
7. The method for detecting wiring validity of terminals according to claim 6, characterized in that, The optical scanning path is constructed based on the start and end coordinates of each horizontal imaging segment in a two-dimensional plane coordinate system, including: Based on the start and end coordinates of each horizontal imaging segment, the target positioning coordinates of the optical imaging device when performing a single imaging operation within the horizontal imaging segment are determined, and the imaging positioning parameters of the optical imaging device within the horizontal imaging segment are generated based on the target positioning coordinates. Based on the vertical sequence of all horizontal scan bands, the horizontal sequence of each horizontal imaging segment within each horizontal scan band, and the imaging positioning parameters of each horizontal imaging segment, the trigger timing sequence required for the optical imaging device to perform line-by-line and segment-by-segment scanning on the entire terminal block array is determined. Based on the trigger timing sequence, a composite scanning control process consisting of vertical scan line switching instructions and horizontal imaging segment positioning instructions is constructed. The optical scanning path is constructed based on the spatial correspondence between each scanning line and each imaging segment in the composite scanning control process and the corresponding imaging positioning parameters.
8. A terminal block detection device with wiring validity function, characterized in that, The method for detecting the validity of wiring terminals as described in any one of claims 1 to 7; the device for detecting the validity of wiring terminals includes: An optical image generation module is used to construct an optical scanning path based on the terminal position mapping obtained by analyzing the physical layout information of the terminal array, and to control the optical imaging device to scan the terminal array line by line based on the optical scanning path to obtain an optical image sequence of the wire insertion status of each terminal. The positioning determination module is used to identify whether the end of the wire corresponding to each terminal is located in the preset effective insertion area based on the optical image sequence, and to obtain the physical positioning determination result of the wire; The excitation instruction generation module is used to filter out a subset of physically positioned terminals based on the physical positioning determination result of the conductor, generate an electrical excitation instruction sequence, and drive a multi-channel electrical excitation unit to apply transient excitation signals to each terminal in the subset of terminals in sequence based on the electrical excitation instruction sequence to obtain an electrical connection response dataset. The wiring validity determination module is used to determine whether each physically positioned terminal forms a valid electrical path based on the electrical connection response dataset, and to obtain the wiring validity determination result.
9. An electronic device, comprising: Memory, used to store computer software programs; A processor for reading and executing the computer software program, characterized in that, when the processor executes the computer software program, it implements the terminal block-oriented method for detecting wiring validity as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, wherein a computer software program is stored therein, characterized in that, When the computer software program is executed by the processor, it implements the terminal block-oriented method for detecting wiring validity as described in any one of claims 1 to 7.