CN-116028288-B - Communication module switching method and device based on module image recognition
Abstract
The embodiment of the invention relates to a communication module switching method and equipment based on module image recognition, wherein the method comprises the following steps of continuously monitoring a control instruction; the method comprises the steps of extracting a test circuit type, a test-transfer relation table and a test-module relation table when an instruction code is a transfer instruction code, calling a camera to shoot a top view of a spring needle array pressed into a communication module to generate a corresponding first image, identifying the first image to obtain a panoramic segmentation chart, confirming the connection relation between the communication module and the spring needle array according to the panoramic segmentation chart, the test circuit type and the test-module relation table, confirming the connection relation between a test circuit and the communication module, and carrying out switch closing or opening operation on a transfer switch of the transfer module according to the test-transfer relation table, the module-transfer relation table and the test-module relation table. The invention can reduce the testing complexity, improve the testing efficiency and save the testing cost.
Inventors
- LI CHENGUANG
- GUO XIN
Assignees
- 联通华盛通信有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221228
Claims (6)
- 1. A communication module transfer method based on module image recognition, the method comprising: the communication module switching device comprises a first control device, a first control module, a first test circuit, a first control module, a first switching module, a second switching module, a first switching module and a second switching module, wherein the first control device continuously monitors a control command issued by the first control device, the control command detected each time is used as a corresponding first control command, the communication module switching device is respectively connected with the first control device, a first communication module to be tested and the first test circuit for testing the first communication module, the module packaging type of the first communication module is LLC type, the communication module switching device comprises a first switching module, a first spring needle array, a first camera and a first control module, the first control module is respectively connected with the first control device, the first switching module and the first camera, the first switching module is respectively connected with the first spring needle array and the first test circuit, and the first communication module is pressed in the first spring needle array, and the first control command comprises a first command code and first command data; When the first instruction code is a transfer instruction code, a first test circuit type, a first test-transfer relation table and a test-module relation table are extracted from the first instruction data, wherein the first test-transfer relation table is a corresponding relation table capable of reflecting the connection relation between the first test circuit and the first transfer module; Invoking the first camera to shoot the first spring needle array pressed into the first communication module in a top view to generate a corresponding first image; confirming the connection relation between the first communication module and the first spring needle array according to the first panoramic segmentation map, the first test circuit type and the test-module relation table to obtain a corresponding first module-switching relation table, and confirming the connection relation between the first test circuit and the first communication module to obtain a corresponding first test-module relation table; And switching on or off the transfer switch of the first transfer module according to the first test-transfer relation table, the first module-transfer relation table and the first test-module relation table.
- 2. The method for transferring communication modules based on module image recognition according to claim 1, wherein, The first transfer module comprises a plurality of first type ports, a plurality of second type ports and a plurality of first transfer switches, wherein each first type port is connected with one second type port through one first transfer switch, and the closing and opening operations of each first transfer switch are controlled by the first main control module; The first test circuit comprises a plurality of first test ports, wherein each first test port corresponds to a first test port identifier, and each first test port is connected with one first type port of the first transfer module; The first spring needle array is a rectangular array formed by M multiplied by N first spring needles, M, N is larger than or equal to 1, each first spring needle corresponds to a first array coordinate (x, y), each first spring needle comprises a needle head, a spring cavity and a needle tail, the needle tail of each first spring needle is connected with one second type port of the first transfer module, a first reference mark is preset on the first spring needle array, the first reference mark corresponds to a first spring needle, and the first spring needle corresponds to a first array coordinate (x=1, y=1); The first communication module comprises a plurality of first module pins, wherein each first module pin corresponds to a first module pin identifier, each first module pin is connected with a needle head of one first spring needle of the first spring needle array, a second reference mark is preset on the first communication module, the second reference mark corresponds to the first module pin, and the first communication module is provided with a module product information printing surface, and at least a module product serial number is printed on the module product information printing surface; The first test-transfer relation table comprises a plurality of first test-transfer relation records, wherein the first test-transfer relation records comprise a first test port identification field and a first type port identification field; The test-module relation summary table comprises a plurality of first corresponding relation records, wherein the first corresponding relation records comprise a first test circuit type field, a first module manufacturer name field, a first module product serial number field, a first module size field, a first module pin quantity field, a first module pin length-width ratio field and a first test port-module pin pair field, the first module size field comprises a first module length size, a first module width size and a first module thickness size, the format of the first module pin length-width ratio field is H:W, H is the module pin quantity of the left side/right side of a communication module, W is the module pin quantity of the top side/bottom side of the communication module, and the first module pin quantity field=2 x (H+W), the first test port-module pin pair field comprises a plurality of first test port-module pin pairs, and the first test port-module pin pairs comprise a second test port identifier and a second module pin identifier; The first panoramic segmentation map comprises a plurality of first segmentation examples, wherein the first segmentation examples comprise a first example type, a first example identifier and a first example depth, and the first example type comprises a spring needle array reference mark type, a communication module reference mark type, a spring needle type, a module pin type and a module product information printing surface type; The first module-switching relation table comprises a plurality of first module-switching relation records, wherein the first module-switching relation records comprise a first module pin identification field and a first array coordinate field; The first test-module relation table comprises a plurality of second corresponding relation records, and the second corresponding relation records comprise a third test port identifier and a third module pin identifier.
- 3. The communication module transferring method based on module image recognition according to claim 2, wherein the performing image recognition processing on the first image to obtain a corresponding first panoramic segmentation map specifically includes: The first main control module performs image instance segmentation processing on the first image based on a preset depth perception panoramic segmentation model to generate a corresponding first panoramic segmentation map, wherein the depth perception panoramic segmentation model comprises a PanopticDepth model, a Mask R-CNN model and a K-Net model.
- 4. The communication module transferring method based on module image recognition according to claim 2, wherein the confirming the connection relation between the first communication module and the first pogo pin array according to the first panorama segmentation map, the first test circuit type and the test-module relation table to obtain a corresponding first module-transferring relation table and confirming the connection relation between the first test circuit and the first communication module to obtain a corresponding first test-module relation table specifically comprises: The first master control module marks the first segmentation example of which the first example type is a spring pin array reference mark type as a first reference mark example, marks the first segmentation example of which the first example type is a communication module reference mark type as a second reference mark example, marks the first segmentation example of which the first example type is a spring pin type as a first spring pin example, marks the first segmentation example of which the first example type is a module pin type as a first module pin example, and marks the first segmentation example of which the first example type is a module product information printing surface type as a first printing surface example; Performing image text recognition processing on the first printing surface instance to obtain a corresponding first recognition text, traversing each first line of text of the first recognition text, recording the first line of text traversed currently as a corresponding current line of text, recognizing whether the current line of text contains a preset product serial number keyword or not, stopping traversing and extracting a module product serial number from the current line of text to serve as a corresponding first serial number if the current line of text contains the preset product serial number keyword, and if the current line of text contains the preset product serial number keyword, transferring to the next first line of text to continue traversing until the last first line of text is traversed, wherein the first recognition text comprises one or more first line of texts; Inquiring the test-module relation summary table according to the first test circuit type and the first serial number, extracting the first module pin quantity field, the first module pin length-width ratio field and the first test port-module pin pair field of the first corresponding relation record in which the first test circuit type field is matched with the first test circuit type and the first module product serial number field is matched with the first serial number as corresponding first pin quantity, first length-width ratio and first test port-module pin pair sets, wherein the first test port-module pin pair sets comprise a plurality of first test port-module pin pairs, and the first test port-module pin pairs comprise the second test port identifiers and the second module pin identifiers; Marking the first spring needle instance closest to the first reference mark instance as a corresponding first starting spring needle instance, marking the first spring needle instance furthest from the first reference mark instance as a corresponding first ending spring needle instance, marking all of the first spring needle instances except the first starting spring needle instance and the first ending spring needle instance as corresponding first intermediate spring needle instances, and mapping the first starting spring needle instance to the first spring needle on the first spring needle array with the first array coordinates (1, 1) and mapping the first ending spring needle instance to the first spring needle on the first spring needle array with the first array coordinates (M, N), and positioning the respective first intermediate spring needle instance on the first spring needle array in its relative offset relationship to the first starting spring needle instance and the first ending spring needle instance; Counting the number of the first module pin instances to generate corresponding second pin numbers, recording the first module pin instance nearest to the second reference mark instance as a corresponding first initial module pin instance when the first pin number and the second pin number are equal, corresponding the first initial module pin instance to a first module pin of the first communication module, and corresponding other first module pin instances on four sides around the first printed surface instance to the first module pins of the first communication module one by one according to the module pin number H on the left/right side of the communication module and the module pin number W on the top/bottom side of the communication module in the first length-width ratio; the first pogo pin instance closest to each first module pin instance is taken as a corresponding first matching pogo pin instance, the first module pin identifier of the first module pin corresponding to each first module pin instance is taken as a corresponding first module pin identifier field, the first array coordinates (x, y) of the first pogo pin corresponding to the first matching pogo pin instance corresponding to the first module pin instance are taken as a corresponding first array coordinate field, the obtained first module pin identifier field and the first array coordinate field form a corresponding first module-switching relation record, and all the obtained first module-switching relation records form a corresponding first module-switching relation table; And forming a corresponding second corresponding relation record by taking the second test port identifier and the second module pin identifier of each first test port-module pin pair in the first test port-module pin pair set as the corresponding third test port identifier and the third module pin identifier, and forming a corresponding first test-module relation table by all obtained second corresponding relation records.
- 5. The method for transferring communication modules based on module image recognition according to claim 2, wherein the switching on or off operation is performed on the transfer switch of the first transfer module according to the first test-transfer relation table, the first module-transfer relation table and the first test-module relation table, specifically comprising: The first main control module initializes a first closed switch identification sequence to be empty; Traversing each second corresponding relation record of the first test-module relation table, traversing, taking the second corresponding relation record of the current traversal as a corresponding current record, extracting the third test port identifier and the third module pin identifier of the current record as corresponding current test port identifiers and current module pin identifiers, inquiring the first test-transfer relation table according to the current test port identifiers, extracting the first test port identifier field in the first test-transfer relation table and the first type port identifier field of the first test-transfer relation record matched with the current test port identifiers as corresponding current type port identifiers, inquiring the first module-transfer relation table according to the current module pin identifiers, taking the first array coordinate field of the first module-transfer relation record matched with the first module pin identifiers in the first module-transfer relation table as corresponding current coordinates, reflecting the first transfer relation table according to preset current coordinates, extracting a second type port identification field of a first array-transfer relation record with a second array coordinate field matched with the current array coordinate from the first array-transfer relation table as a corresponding current type port identification, inquiring a preset first transfer corresponding relation table reflecting the internal connection relation of the first transfer module according to the current type port identification and the current type port identification, and extracting a first transfer switch identification field of a first transfer corresponding relation record with a first type port identification field matched with the current type port identification and a second type port identification field matched with the current type port identification from the first transfer corresponding relation table as a corresponding first closed switch identification to be added into the first closed switch identification sequence, wherein the first array-transfer relation table comprises a plurality of first array-transfer relation records, the first array-transfer relation record comprises the second array coordinate field and the second type port identification field, and the first transfer corresponding relation table comprises a plurality of first transfer corresponding relation records, and the first transfer corresponding relation record comprises the first transfer identification field, the first transfer port identification field and the second type port identification field; And when the traversing is finished, marking the first transfer switch with the first transfer switch identification matched with each first closing switch identification in the first transfer module as a corresponding first closing switch, marking all the first transfer switches except the first closing switch as corresponding first opening switches, performing switch closing operation on all the first closing switches in the first transfer module, and performing switch opening operation on all the first opening switches in the first transfer module.
- 6. An apparatus for implementing the method for transferring communication modules based on module image recognition according to any one of claims 1-5, characterized in that it comprises a first transfer module according to the method according to any one of claims 1, 2, 5, a first pogo pin array according to the method according to any one of claims 1, 2, 4, 5, a first camera according to the method of claim 1, a first master control module according to the method of any one of claims 1-5, and a first communication module according to the method of any one of claims 1, 2, 4, respectively, and a first test circuit according to the method of any one of claims 1, 2, 4, the module package type of the first communication module being of LLC type.
Description
Communication module switching method and device based on module image recognition Technical Field The invention relates to the technical field of data processing, in particular to a communication module switching method and device based on module image recognition. Background A wireless communication module (hereinafter referred to as a communication module) is a functional module or module that integrates components such as a baseband chip, a memory, a power amplifier device, etc. on a circuit board and provides wireless communication capability, such as a common 4G/5G communication module. There are various packaging modes of the communication module, one of which is a leadless chip carrier (LEADLESS CHIP CARRIERS, LLC) packaging mode, and the module interface type of the packaging mode is LLC interface type. The module of this packaging type has no epitaxial module pins, which are embedded in the package edge, bent inward and tightly attached to the module. When testing the communication module of the LLC interface, a switching device is usually used to switch the embedded module pins of the communication module and the test ports of the test circuit, so as to achieve the purpose of testing the communication module by using the test circuit. The conventional method of the switching equipment comprises the following two types, namely a first type of directly welding a communication module on a printed circuit board (Printed Circuit Board, PCB) of the switching equipment and a second type of adding a pin conversion seat supporting an LLC interface on the PCB of the switching equipment so as to realize the pluggable of the communication module. In the test process, the two conventional methods have the problems of resource waste and low test efficiency, namely 1) the first conventional method needs to independently customize one switching device for each communication module of each model of each manufacturer, has the lowest test efficiency and the highest resource waste degree, and 2) the second conventional method can realize the pluggable of the communication module, but still needs to independently customize one switching device for completing the test for the communication modules with different pin numbers of different manufacturers or the communication modules with the same pin numbers of different manufacturers but different pin function definitions, and still cannot effectively solve the problems of improving the test efficiency and avoiding the resource waste. Disclosure of Invention The invention aims to overcome the defects of the prior art, and provides a communication module switching method and equipment based on module image recognition, which are used for switching a module, a spring needle array, a camera and a main control module in the communication module switching equipment, connecting a test circuit to the switching module and confirming the connection relation between a test port of the test circuit and the switching module, pressing the communication module into the spring needle array, shooting a top view of the spring needle array with the communication module by the camera, analyzing the top view by utilizing an image recognition technology to obtain the connection relation between the spring needle and a module pin, and performing closing or opening operation on an internal switching switch of the switching module based on the known corresponding relation between the test port of the test circuit and the module pin of the communication module, the connection relation between the spring needle array and the switching module, and the connection relation between the test port of the test circuit and the switching module. According to the invention, the communication module switching equipment can be used for completing the test of any type and size of any pin number of any manufacturer, thereby achieving the purposes of reducing the test complexity, improving the test efficiency, avoiding the waste of resources and saving the test cost. In order to achieve the above object, a first aspect of the present invention provides a communication module transferring method based on module image recognition, where the method includes: the communication module switching device comprises a first control device, a first control module, a first test circuit, a first control module, a first switching module, a second switching module, a first switching module and a second switching module, wherein the first control device continuously monitors a control command issued by the first control device, the control command detected each time is used as a corresponding first control command, the communication module switching device is respectively connected with the first control device, a first communication module to be tested and the first test circuit for testing the first communication module, the module packaging type of the first communication module is LLC type, the communication module switchi