CN115987861A - Communication module switching method and equipment based on analog switch array - Google Patents

Communication module switching method and equipment based on analog switch array Download PDF

Info

Publication number
CN115987861A
CN115987861A CN202211695192.3A CN202211695192A CN115987861A CN 115987861 A CN115987861 A CN 115987861A CN 202211695192 A CN202211695192 A CN 202211695192A CN 115987861 A CN115987861 A CN 115987861A
Authority
CN
China
Prior art keywords
array
corresponding relation
port
switch
analog switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211695192.3A
Other languages
Chinese (zh)
Other versions
CN115987861B (en
Inventor
郭欣
李晨光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unicom Vsens Telecommunications Co Ltd
Original Assignee
Unicom Vsens Telecommunications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unicom Vsens Telecommunications Co Ltd filed Critical Unicom Vsens Telecommunications Co Ltd
Priority to CN202211695192.3A priority Critical patent/CN115987861B/en
Publication of CN115987861A publication Critical patent/CN115987861A/en
Application granted granted Critical
Publication of CN115987861B publication Critical patent/CN115987861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The embodiment of the invention relates to a communication module switching method and equipment based on an analog switch array, wherein the method comprises the following steps: the first communication module is accessed to be connected with the first analog switch array based on the first Mini PCI-E interface slot; the interface slot is accessed into a first test circuit based on a first test circuit and is connected with a first analog switch array; based on the connection of the first main control module and the first control equipment; continuously monitoring an issued instruction of first control equipment based on a first main control module to obtain a first instruction; extracting first instruction head data and first instruction volume data from the first instruction; identifying the first command head data, if the first command head data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local area; and performing on-off operation on the array switches of the first analog switch array according to the four correspondence tables. The invention can reduce the test complexity and save the test cost.

Description

Communication module switching method and equipment based on analog switch array
Technical Field
The invention relates to the technical field of data processing, in particular to a communication module switching method and equipment based on an analog switch array.
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, and a power amplifier on a circuit board and provides wireless communication capability, such as a common 4G/5G communication module. The communication module has a plurality of packaging modes, one of which is a Mini PCIe board packaging mode, and the module interface type of the packaging mode is a Mini PCI-E interface type.
The communication module with the module interface type of the Mini PCI-E interface type has 52 module pins, some of the 52 module pins are fixed pins (such as power supply, ground, USB and the like) in the Mini PCI-E interface standard, and some of the 52 module pins are extension pins reserved in the Mini PCI-E interface standard. Different vendors may configure the functionality of these extension pins differently.
When testing a communication module, a switching device is usually used to switch a module pin of the communication module to a test port of a test circuit, so as to achieve the purpose of testing the communication module by using the test circuit. In the testing process, only one standard switching device is needed for the fixed pin of the communication module; however, for the extension pin, different communication module test requirements need to be customized according to functions of different manufacturers, and different switching devices need to be customized based on the different communication module test requirements, which not only increases the test complexity, but also causes resource waste.
Disclosure of Invention
The invention aims to provide a communication module switching method and equipment based on an analog switch array aiming at the defects of the prior art, wherein a Mini PCI-E interface slot, a test circuit interface slot, a configurable analog switch array and a main control module are configured in the communication module switching equipment; the Mini PCI-E interface slot is accessed into the communication module to be tested, and the corresponding relation between the module pin of the current communication module and the array port of the analog switch array is confirmed through the fixed connection relation between the Mini PCI-E interface slot and the analog switch array; the test circuit interface slot is connected with the test circuit, and the corresponding relation between the test port of the current test circuit and the array port of the analog switch array is confirmed through the fixed connection relation between the test circuit interface slot and the analog switch array; and the main control module carries out corresponding closing or opening operation on an internal array switch of the analog switch array based on the corresponding relation between the current test circuit and the test port-module pin of the current communication module. The invention can complete the configuration connection and module test of all module pins (fixed pins and extended pins) of the communication module based on the communication module switching equipment, thereby achieving the purposes of reducing test complexity, avoiding resource waste and saving test cost.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for switching a communication module based on an analog switch array, where the method includes:
the communication module switching equipment is accessed into a first communication module based on a first Mini PCI-E interface slot, and a first module pin of the first communication module is connected with a second array port of a first analog switch array through the first Mini PCI-E interface slot; a first test circuit is accessed based on a first test circuit interface slot, and a first test port of the first test circuit is connected with a first array port of the first analog switch array by the first test circuit interface slot; the first control module is connected with the first control equipment; the communication module switching equipment comprises the first Mini PCI-E interface slot, the first analog switch array, the first test circuit interface slot and the first main control module; the first analog switch array is respectively connected with the first Mini PCI-E interface slot, the first test circuit interface slot and the first main control module;
the communication module switching equipment continuously monitors the issued instruction of the first control equipment based on the first main control module, and takes the monitored issued instruction as a corresponding first instruction; extracting corresponding first instruction head data and first instruction volume data from the first instruction; identifying the first command header data; if the first command header data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; performing on/off operation on the array switch of the first analog switch array according to the first, second, third and fourth correspondence tables; the first corresponding relation list is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the array ports of the first analog switch array; the second correspondence list is a correspondence table reflecting correspondence between the test port of the first test circuit and the array port of the first analog switch array; the third corresponding relation table is a corresponding relation table reflecting the corresponding relation between the module pin of the first communication module and the test port of the first test circuit; the fourth correspondence list is a correspondence table reflecting correspondence between the array switch and the array port of the first analog switch array.
Preferably, the module interface type of the first communication module is a Mini PCI-E interface type; the first communication module comprises a plurality of first module pins; each first module pin corresponds to a first module pin identifier;
the size of a switch array matrix of the first analog switch array is X multiplied by Y, and X, Y is an integer greater than or equal to 1; the first analog switch array comprises X first array ports, Y second array ports and X X Y first array switches; any one of the first array ports is connected with one of the second array ports through one of the first array switches; each first array switch corresponds to a first switch state; the corresponding first array switch is closed when the first switch state is set to a closed state, and the corresponding first array switch is open when the first switch state is set to an open state; each of the first array port, the second array port and the first array switch corresponds to a first array port identifier, a second array port identifier and a first array switch identifier;
the first test circuit comprises a plurality of first test ports; each first test port corresponds to a first test port identifier;
the first correspondence list includes a plurality of first correspondence records; the first corresponding relation record comprises a first pin identification field and a first port identification field; the first pin identification field is one of the first module pin identifications of the first communication module; the first port identification field is one of the second array port identifications of the first analog switch array;
the second correspondence list includes a plurality of second correspondence records; the second corresponding relation record comprises a first test port identification field and a second port identification field; the first test port identification field is one of the first test port identifications of the first test circuit; the second port identification field is one of the first array port identifications of the first analog switch array;
the third correspondence table includes a plurality of third correspondence records; the third corresponding relation record comprises a second test port identification field and a second pin identification set field; the second test port identification field is one of the first test port identifications of the first test circuit; the second pin identifier set field comprises one or more of the first module pin identifiers;
the fourth correspondence table includes a plurality of fourth correspondence records; the fourth corresponding relation record comprises a first switch identification field, a third port identification field, a fourth port identification field and a first switch configuration field; the first switch identification field is one of the first array switch identifications of the first analog switch array; the third port identification field is one of the first array port identifications of the first analog switch array; the fourth port identification field is one of the second array port identifications of the first analog switch array; the first switch configuration field includes a closed configuration and an open configuration.
Preferably, before the communication module group switching device continuously listens to the instruction issued by the first control device based on the first main control module, the method further includes:
after the first Mini PCI-E interface slot is accessed to the first communication module, the first control device generates the first corresponding relationship list capable of reflecting the corresponding relationship between each first module pin of the first communication module and the second array port in the first analog switch array according to the first module pin-second array port connection relationship of the first Mini PCI-E interface slot;
after the first test circuit interface slot is connected to the first test circuit, the first control device generates a second corresponding relation list capable of reflecting the corresponding relation between each first test port of the first test circuit and the first array port in the first analog switch array according to the connection relation between the first test port of the first test circuit interface slot and the first array port;
the first control device sets a connection relation between each first test port of the first test circuit and one or more first module pins in the first communication module according to a communication module test requirement of the first test circuit on the first communication module, and generates a corresponding third corresponding relation table;
the first control device confirms the connection relation between each first array switch in the first analog switch array and the first and second array ports according to the switch array matrix product information of the first analog switch array to generate a corresponding fourth corresponding relation table; and initializing the first switch configuration field of each fourth mapping record in the fourth mapping table to be in off configuration.
Preferably, the performing of the closing or opening operation on the array switch of the first analog switch array according to the first, second, third, and fourth correspondence tables specifically includes:
the first main control module traverses each third corresponding relation record of the third corresponding relation table; during traversal, taking the currently traversed third corresponding relation record as a corresponding current corresponding relation record; extracting the second testing port identification field recorded by the current corresponding relation as the corresponding current testing port identification; extracting each first module pin identifier of the second pin identifier set field in the current corresponding relation record to be used as a corresponding first module pin identifier; extracting the first port identification field of the first corresponding relation record in which the first pin identification field is matched with each first module pin identification in the first corresponding relation list as a corresponding first two-array port identification; extracting the second port identification field of the second corresponding relation record in which the first test port identification field is matched with the current test port identification in the second corresponding relation list as a corresponding first one-to-one array port identification; respectively combining the first one-to-one array port identifier with each first two-to-one array port identifier to form a corresponding first port identifier group, wherein each first port identifier group comprises the first one-to-one array port identifier and one first two-to-one array port identifier; performing array switch configuration processing on the fourth corresponding relation table according to each first port identification group; if the array switch configuration processing is successful, switching to the next third corresponding relation record and continuously traversing until the last third corresponding relation record is traversed;
traversing each fourth corresponding relation record of the latest fourth corresponding relation table; during traversal, taking the currently traversed fourth corresponding relation record as a corresponding current corresponding relation record; extracting the first switch identification field and the first switch configuration field recorded by the current corresponding relation as corresponding current switch identification and current switch configuration; and identifying the current switch configuration; if the current switch is configured to be in a closed configuration, performing switch closing operation on the first array switch in the first analog switch array, where the first array switch identifier is matched with the current switch identifier, and setting the corresponding first switch state as a closed state, and moving to the next fourth corresponding relationship record to continue traversing until the last fourth corresponding relationship record is traversed; and if the current switch is configured to be in a disconnected configuration, performing switch disconnection operation on the first array switch in the first analog switch array, where the first array switch identifier is matched with the current switch identifier, setting the corresponding first switch state as a disconnected state, and moving to the next fourth corresponding relationship record to continue traversing until the last fourth corresponding relationship record is traversed and ended.
A second aspect of the embodiments of the present invention provides an apparatus for implementing the method for switching a communication module based on an analog switch array according to the first aspect, including: the first Mini PCI-E interface slot, the first analog switch array, the first test circuit interface slot and the first main control module; the first analog switch array is respectively connected with the first Mini PCI-E interface slot, the first test circuit interface slot and the first main control module;
the first Mini PCI-E interface slot is used for accessing a first communication module and connecting a first module pin of the first communication module with a second array port of the first analog switch array;
the first test circuit interface slot is used for accessing a first test circuit and connecting a first test port of the first test circuit with a first array port of the first analog switch array;
the first main control module is connected with first control equipment; the first master control module is used for continuously monitoring the issued instruction of the first control device and taking the monitored issued instruction as a corresponding first instruction; extracting corresponding first instruction head data and first instruction volume data from the first instruction; identifying the first command header data; if the first command header data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; performing on/off operation on the array switch of the first analog switch array according to the first, second, third and fourth correspondence tables; the first corresponding relation list is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the array ports of the first analog switch array; the second correspondence list is a correspondence table reflecting correspondence between the test port of the first test circuit and the array port of the first analog switch array; the third corresponding relation table is a corresponding relation table reflecting the corresponding relation between the module pin of the first communication module and the test port of the first test circuit; the fourth correspondence list is a correspondence table that reflects a correspondence between the array switch and the array port of the first analog switch array.
The embodiment of the invention provides a communication module switching method and equipment based on an analog switch array, wherein a Mini PCI-E interface slot, a test circuit interface slot, a configurable analog switch array and a main control module are configured in the communication module switching equipment; a communication module to be tested is accessed by the Mini PCI-E interface slot, and the corresponding relation between the module pin of the current communication module and the array port of the analog switch array is confirmed through the fixed connection relation between the Mini PCI-E interface slot and the analog switch array; the test circuit interface slot is connected with the test circuit, and the corresponding relation between the test port of the current test circuit and the array port of the analog switch array is confirmed through the fixed connection relation between the test circuit interface slot and the analog switch array; and the main control module carries out corresponding closing or opening operation on an internal array switch of the analog switch array based on the corresponding relation between the current test circuit and the test port-module pin of the current communication module. The invention can complete the configuration connection and module test of all module pins (fixed pins and extended pins) of the communication module based on the communication module switching equipment, thereby not only reducing the test complexity, but also avoiding the resource waste and saving the test cost.
Drawings
Fig. 1 is a schematic diagram of a communication module transferring method based on an analog switch array according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a first analog switch array according to an embodiment of the invention;
fig. 3 is a block diagram of a communication module switching device based on an analog switch array according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a communication module transferring method based on an analog switch array according to an embodiment of the present invention, and the method mainly includes the following steps:
step 1, the communication module switching equipment is accessed into a first communication module based on a first Mini PCI-E interface slot, and a first module pin of the first communication module is connected with a second array port of a first analog switch array through the first Mini PCI-E interface slot; the first test circuit is accessed based on the first test circuit interface slot, and the first test circuit interface slot is used for connecting a first test port of the first test circuit with a first array port of the first analog switch array; the first control module is connected with the first control equipment;
the communication module switching equipment comprises a first Mini PCI-E interface slot, a first analog switch array, a first test circuit interface slot and a first main control module; the first analog switch array is respectively connected with the first Mini PCI-E interface slot, the first test circuit interface slot and the first main control module;
the module interface type of the first communication module is a Mini PCI-E interface type; the first communication module comprises a plurality of first module pins; each first module pin corresponds to one first module pin identifier;
the size of a switch array matrix of the first analog switch array is X multiplied by Y, and X, Y is an integer greater than or equal to 1; the first analog switch array comprises X first array ports, Y second array ports and X X Y first array switches; any first array port is connected with a second array port through a first array switch; each first array switch corresponds to a first switch state; the corresponding first array switch is closed when the first switch state is set to be the closed state, and the corresponding first array switch is opened when the first switch state is set to be the open state; each first array port, each second array port and each first array switch respectively correspond to a first array port identifier, a second array port identifier and a first array switch identifier;
the first test circuit includes a plurality of first test ports; each first test port corresponds to a first test port identification.
Here, the first communication module according to the first embodiment of the present invention is a communication module that needs to be tested currently; the first test circuit is used for testing the first communication module; the communication module switching equipment is equipment for carrying out test port-module pin switching on the first test circuit and the first communication module and comprises; the first Mini PCI-E interface slot, the first analog switch array, the first test circuit interface slot and the first main control module;
the first Mini PCI-E interface slot is a standard Mini PCI-E interface slot and is used for accessing the first communication module; the slot types of the first test circuit interface slot comprise a pin type, a card type, a contact type and a pin type, and can be configured according to practical application, and the first test circuit interface slot is used for accessing a first test circuit; the first main control module can be an MCU with an in-chip memory and a communication interface, and can also be an FPGA with a storage module and a communication interface, and can be configured according to practical application, and the first main control module is used for carrying out corresponding closing or opening operation on an internal array switch of the first analog switch array based on the corresponding relation between a first test circuit and a test port-module pin of the first communication module; the first analog switch array is an analog switch array having a switch array matrix size of X × Y and composed of X first array ports, Y second array ports, and X × Y first array switches, and it can be known from common knowledge of the analog switch array that the logic structure of the first analog switch array is as shown in fig. 2, which is a schematic diagram of the first analog switch array provided in the first embodiment of the present invention;
the first control device in the first embodiment of the present invention is a device, or a server connected to the communication module switching device, and the first control device may be further connected to a first test circuit; the first control equipment stores the connection relation between each first module pin of the first communication module and the first Mini PCI-E interface slot, the fixed connection relation between the first Mini PCI-E interface slot and the second array port on the first analog switch array, the fixed connection relation between the first test circuit interface slot and the first array port on the first analog switch array, the communication module test requirement of the first test circuit for testing the first communication module, the connection relation between the test port of the first test circuit and the first test circuit interface slot and the connection relation between the test port of the first test circuit and the module pin of the first communication module.
It should be noted that, before the step 2 of continuously intercepting the command issued by the control device communication module switching device to the first control device based on the first main control module, the method in the embodiment of the present invention further includes:
a1, after a first Mini PCI-E interface slot is accessed into a first communication module, first control equipment generates a first corresponding relation list capable of reflecting the corresponding relation between each first module pin of the first communication module and a second array port in a first analog switch array according to the connection relation between the first module pin of the first Mini PCI-E interface slot and the second array port;
the first corresponding relation list is a corresponding relation list reflecting the corresponding relation between the module pins of the first communication module and the array ports of the first analog switch array; the first correspondence list includes a plurality of first correspondence records; the first corresponding relation record comprises a first pin identification field and a first port identification field; the first pin identification field is a first module pin identification of the first communication module; the first port identification field is a second array port identification of the first analog switch array;
step A2, after the first test circuit interface slot is accessed into the first test circuit, the first control device generates a second corresponding relation list capable of reflecting the corresponding relation between each first test port of the first test circuit and the first array port in the first analog switch array according to the connection relation between the first test port of the first test circuit interface slot and the first array port;
the second corresponding relation list is a corresponding relation list reflecting the corresponding relation between the test port of the first test circuit and the array port of the first analog switch array; the second correspondence list includes a plurality of second correspondence records; the second corresponding relation record comprises a first test port identification field and a second port identification field; the first test port identification field is a first test port identification of the first test circuit; the second port identification field is a first array port identification of the first analog switch array;
step A3, the first control equipment sets the connection relation between each first test port of the first test circuit and one or more first module pins in the first communication module according to the test requirement of the first test circuit on the communication module of the first communication module to generate a corresponding third corresponding relation table;
the third corresponding relation table is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the test ports of the first test circuit; the third correspondence table includes a plurality of third correspondence records; the third corresponding relation record comprises a second test port identification field and a second pin identification set field; the second test port identification field is a first test port identification of the first test circuit; the second pin identification set field comprises one or more first module pin identifications;
step A4, the first control equipment confirms the connection relation between each first array switch in the first analog switch array and the first array port and the second array port according to the switch array matrix product information of the first analog switch array to generate a corresponding fourth corresponding relation table; initializing the first switch configuration fields of all the fourth corresponding relation records in the fourth corresponding relation table into disconnection configuration;
the fourth corresponding relation list is a corresponding relation list reflecting the corresponding relation between the array switch and the array port of the first analog switch array; the fourth correspondence table includes a plurality of fourth correspondence records; the fourth corresponding relation record comprises a first switch identification field, a third port identification field, a fourth port identification field and a first switch configuration field; the first switch identification field is a first array switch identification of the first analog switch array; the third port identification field is a first array port identification of the first analog switch array; the fourth port identification field is a second array port identification of the first analog switch array; the first switch configuration field includes a closed configuration and an open configuration.
It should be further noted that, after the first control device prepares the first, second, third, and fourth correspondence lists, the first control device identifies the connection status of the communication module switching device and the first control device to obtain a corresponding first identification result, where the first identification result includes connected and unconnected; when the first identification result is connected, the first control equipment can continuously monitor the input instruction of the tester, and the monitored input instruction is used as a corresponding first input instruction; and identifying whether the command header data of the first input command is a switching configuration command code, if so, setting the first command header data as a communication module switching command code, forming corresponding first command body data by a first, second, third and fourth corresponding relation list, and forming a corresponding issuing command by the obtained first command header data and the first command body data to send the issuing command to a first main control module of the communication module switching equipment.
Step 2, the communication module switching equipment continuously monitors an issued instruction of the first control equipment based on the first main control module, and the monitored issued instruction is used as a corresponding first instruction; extracting corresponding first instruction head data and first instruction volume data from the first instruction; identifying the first instruction head data; if the first command head data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; performing on/off operation on the array switch of the first analog switch array according to the first, second, third and fourth corresponding relation tables;
the method specifically comprises the following steps: step 21, the communication module switching equipment continuously monitors an issued instruction of the first control equipment based on the first main control module, and takes the monitored issued instruction as a corresponding first instruction; extracting corresponding first command head data and first command body data from the first command;
step 22, identifying the first command header data; if the first command head data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; performing on/off operation on the array switch of the first analog switch array according to the first, second, third and fourth corresponding relation tables;
wherein, the closing or opening operation of the array switch of the first analog switch array is performed according to the first, second, third and fourth correspondence tables, specifically including:
b1, traversing each third corresponding relation record of the third corresponding relation table by the first main control module; during traversal, taking the currently traversed third corresponding relation record as a corresponding current corresponding relation record; extracting a second test port identification field recorded by the current corresponding relation to be used as a corresponding current test port identification; extracting each first module pin identification of the second pin identification set field in the current corresponding relation record as a corresponding first module pin identification; extracting a first port identification field of a first corresponding relation record in which the first pin identification field is matched with each first module pin identification in the first corresponding relation list as a corresponding first two-array port identification; extracting a second port identification field of a second corresponding relation record in which the first test port identification field is matched with the current test port identification in the second corresponding relation list as a corresponding first one-to-one array port identification; respectively combining the first one-to-one array port identification with each first two-to-one array port identification to form a corresponding first port identification group, wherein each first port identification group comprises the first one-to-one array port identification and one first two-to-one array port identification; carrying out array switch configuration processing on the fourth corresponding relation table according to each first port identification group; if the array switch configuration processing is successful, switching to the next third corresponding relation record to continue traversing until the last third corresponding relation record is traversed;
here, the first switch configuration fields of all fourth correspondence records of the fourth correspondence list obtained by the first main control module of the communication module forwarding device from the first control device in the first embodiment of the present invention are configured to be disconnected, and it is necessary to reset each first switch configuration field in the fourth correspondence list according to the first, second, and third correspondence lists to obtain a latest fourth correspondence list;
b2, traversing each fourth corresponding relation record of the latest fourth corresponding relation table; during traversal, taking the currently traversed fourth corresponding relation record as a corresponding current corresponding relation record; extracting a first switch identification field and a first switch configuration field recorded by the current corresponding relation as corresponding current switch identification and current switch configuration; and identifying the current switch configuration; if the current switch is configured to be in a closed configuration, performing switch closing operation on a first array switch of which the first array switch identifier in the first analog switch array is matched with the current switch identifier, setting the corresponding first switch state as a closed state, and continuing traversing until the last fourth corresponding relationship record is traversed; and if the current switch is configured to be in a disconnected configuration, performing switch disconnection operation on the first array switch with the first array switch identifier in the first analog switch array matched with the current switch identifier, setting the corresponding first switch state to be a disconnected state, and continuing traversing until the last fourth corresponding relationship record is traversed.
Here, the first master control module of the communication module switching device according to the first embodiment of the present invention performs corresponding switch on/off operations on the corresponding first array switch in the first analog switch array based on each first switch configuration field of the latest fourth mapping table.
Fig. 3 is a block diagram of a communication module switching device based on an analog switch array according to a second embodiment of the present invention, where the communication module switching device may be an apparatus, a terminal, a device, or a server for implementing a method according to a second embodiment of the present invention, or may be a device connected to the terminal device or the server for implementing a method according to a second embodiment of the present invention, and for example, the communication module switching device may be a module, an apparatus, or a chip system of the terminal, the device, or the server. As shown in fig. 3, the communication module switching apparatus 20 includes: a first Mini PCI-E interface slot 201, a first analog switch array 202, a first test circuit interface slot 203 and a first master control module 204; the first analog switch array 202 is connected to the first Mini PCI-E interface slot 201, the first test circuit interface slot 203, and the first master control module 204, respectively.
The first Mini PCI-E interface slot 201 is used to access the first communication module 30 and connect the first module pin of the first communication module 30 with the second array port of the first analog switch array 202.
The first test circuit interface slot 203 is used for accessing the first test circuit 40 and connecting a first test port of the first test circuit 40 and a first array port of the first analog switch array 202.
The first main control module 204 is connected with the first control device 10; the first main control module 204 is configured to continuously monitor an issue instruction of the first control device 10, and use the monitored issue instruction as a corresponding first instruction; extracting corresponding first command head data and first command body data from the first command; identifying the first instruction head data; if the first command head data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; and performs a closing or opening operation on the array switches of the first analog switch array 202 according to the first, second, third, and fourth correspondence tables; the first corresponding relation list is a corresponding relation list reflecting the corresponding relation between the module pins of the first communication module and the array ports of the first analog switch array; the second corresponding relation list is a corresponding relation list reflecting the corresponding relation between the test port of the first test circuit and the array port of the first analog switch array; the third corresponding relation table is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the test ports of the first test circuit; the fourth correspondence list is a correspondence table reflecting correspondence between the array switch and the array port of the first analog switch array.
The communication module switching equipment based on the analog switch array provided by the second embodiment of the invention can realize the method of the second embodiment of the invention, the realization principle and the technical effect are similar, and the description is omitted; the first control device 10, the first communication module 30 and the first test circuit 40 in the second embodiment of the present invention may implement the first control device, the first communication module and the first test circuit in the method in the second embodiment of the present invention, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the main control module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the above apparatus, or may be stored in a memory of the above apparatus in the form of program code, and a processing element of the above apparatus calls and executes the functions of the above determination module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when some of the above modules are implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call the program code. As another example, these modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, bluetooth, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
The embodiment of the invention provides a communication module switching method and equipment based on an analog switch array, wherein a Mini PCI-E interface slot, a test circuit interface slot, a configurable analog switch array and a main control module are configured in the communication module switching equipment; the Mini PCI-E interface slot is accessed into the communication module to be tested, and the corresponding relation between the module pin of the current communication module and the array port of the analog switch array is confirmed through the fixed connection relation between the Mini PCI-E interface slot and the analog switch array; the test circuit interface slot is connected with the test circuit, and the corresponding relation between the test port of the current test circuit and the array port of the analog switch array is confirmed through the fixed connection relation between the test circuit interface slot and the analog switch array; and the main control module performs corresponding closing or opening operation on an internal array switch of the analog switch array based on the corresponding relation between the current test circuit and the test port-module pin of the current communication module. The invention can complete the configuration connection and the module test of all module pins (fixed pins and extended pins) of the communication module based on the communication module switching equipment, thereby reducing the test complexity, avoiding the resource waste and saving the test cost.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (5)

1. A communication module switching method based on an analog switch array is characterized by comprising the following steps:
the communication module switching equipment is accessed into a first communication module based on a first Mini PCI-E interface slot, and a first module pin of the first communication module is connected with a second array port of a first analog switch array through the first Mini PCI-E interface slot; a first test circuit is accessed based on a first test circuit interface slot, and a first test port of the first test circuit is connected with a first array port of the first analog switch array by the first test circuit interface slot; the first control module is connected with the first control equipment; the communication module switching equipment comprises the first Mini PCI-E interface slot, the first analog switch array, the first test circuit interface slot and the first main control module; the first analog switch array is respectively connected with the first Mini PCI-E interface slot, the first test circuit interface slot and the first main control module;
the communication module switching equipment continuously monitors the issued instruction of the first control equipment based on the first main control module, and takes the monitored issued instruction as a corresponding first instruction; extracting corresponding first instruction head data and first instruction volume data from the first instruction; identifying the first command header data; if the first command header data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; performing on/off operation on the array switch of the first analog switch array according to the first, second, third and fourth correspondence tables; the first corresponding relation list is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the array ports of the first analog switch array; the second correspondence list is a correspondence table reflecting correspondence between the test port of the first test circuit and the array port of the first analog switch array; the third corresponding relation table is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the test ports of the first test circuit; the fourth correspondence list is a correspondence table that reflects a correspondence between the array switch and the array port of the first analog switch array.
2. The method of claim 1, wherein the analog switch array is used to switch the communication module,
the module interface type of the first communication module is a Mini PCI-E interface type; the first communication module comprises a plurality of first module pins; each first module pin corresponds to a first module pin identifier;
the size of a switch array matrix of the first analog switch array is X multiplied by Y, and X, Y is an integer greater than or equal to 1; the first analog switch array comprises X first array ports, Y second array ports and X X Y first array switches; any one of the first array ports is connected with one of the second array ports through one of the first array switches; each first array switch corresponds to a first switch state; the corresponding first array switch is closed when the first switch state is set to a closed state, and the corresponding first array switch is open when the first switch state is set to an open state; each of the first array port, the second array port and the first array switch corresponds to a first array port identifier, a second array port identifier and a first array switch identifier;
the first test circuit comprises a plurality of first test ports; each first test port corresponds to a first test port identifier;
the first correspondence list includes a plurality of first correspondence records; the first corresponding relation record comprises a first pin identification field and a first port identification field; the first pin identification field is one of the first module pin identifications of the first communication module; the first port identification field is one of the second array port identifications of the first analog switch array;
the second correspondence list includes a plurality of second correspondence records; the second corresponding relation record comprises a first test port identification field and a second port identification field; the first test port identification field is one of the first test port identifications of the first test circuit; the second port identification field is a port identification of the first array of the first analog switch array;
the third correspondence table includes a plurality of third correspondence records; the third corresponding relation record comprises a second test port identification field and a second pin identification set field; the second test port identification field is one of the first test port identifications of the first test circuit; the second pin identifier set field comprises one or more pin identifiers of the first module;
the fourth correspondence table includes a plurality of fourth correspondence records; the fourth corresponding relation record comprises a first switch identification field, a third port identification field, a fourth port identification field and a first switch configuration field; said first switch identification field is one of said first array switch identifications of said first analog switch array; the third port identification field is one of the first array port identifications of the first analog switch array; the fourth port identification field is one of the second array port identifications of the first analog switch array; the first switch configuration field includes a closed configuration and an open configuration.
3. The method according to claim 2, wherein before the communication module switching device continuously listens to the issued command of the first control device based on the first master control module, the method further comprises:
after the first Mini PCI-E interface slot is accessed to the first communication module, the first control device generates the first corresponding relationship list capable of reflecting the corresponding relationship between each first module pin of the first communication module and the second array port in the first analog switch array according to the first module pin-second array port connection relationship of the first Mini PCI-E interface slot;
after the first test circuit interface slot is connected to the first test circuit, the first control device generates a second corresponding relation list capable of reflecting the corresponding relation between each first test port of the first test circuit and the first array port in the first analog switch array according to the connection relation between the first test port of the first test circuit interface slot and the first array port;
the first control device sets a connection relation between each first test port of the first test circuit and one or more first module pins in the first communication module according to a communication module test requirement of the first test circuit on the first communication module, and generates a corresponding third corresponding relation table;
the first control device confirms the connection relation between each first array switch in the first analog switch array and the first array port and the second array port according to the switch array matrix product information of the first analog switch array to generate a corresponding fourth corresponding relation table; and initializing the first switch configuration field of each fourth mapping record in the fourth mapping table to be in off configuration.
4. The method for switching the communication module based on the analog switch array according to claim 2, wherein the operation of turning on or off the array switch of the first analog switch array according to the first, second, third and fourth correspondence tables specifically comprises:
the first main control module traverses each third corresponding relation record 5 of the third corresponding relation table; during traversal, taking the currently traversed third corresponding relation record as a corresponding current corresponding relation record; extracting the second test port identification field recorded by the current corresponding relation as a corresponding current test port identification; extracting each first module pin identifier of the second pin identifier set field in the current corresponding relation record to be used as a corresponding first module pin identifier; extracting the first port identification field of the first corresponding relation record in the first corresponding relation list, wherein the first pin identification field is matched with each first one-module pin identification of 0, and the first port identification field is used as a corresponding first two-array port identification; extracting the second port identification field of the second corresponding relation record in which the first test port identification field is matched with the current test port identification in the second corresponding relation list as a corresponding first one-to-one array port identification;
respectively combining the first one-to-one array port identifier with each first two-to-one array port identifier to form a corresponding 5 first port identifier group, wherein each first port identifier group comprises the first one-to-one array port identifier and one first two-to-one array port identifier; performing array switch configuration processing on the fourth corresponding relation table according to each first port identification group; if the array switch configuration processing is successful, switching to the next third corresponding relation record and continuously traversing until the last third corresponding relation record is traversed;
0 traversing each fourth corresponding relation record of the latest fourth corresponding relation table;
during traversal, taking the currently traversed fourth corresponding relation record as a corresponding current corresponding relation record;
extracting the first switch identification field and the first switch configuration field recorded by the current corresponding relation as corresponding current switch identification and current switch configuration; and identifying the current switch configuration; if the current switch is configured in a closed configuration, performing switch closing operation on the first array switch with the 5 first array switch identifiers in the first analog switch array matched with the current switch identifier, setting the corresponding first switch state as a closed state, and moving to the next fourth corresponding relation record to continue traversing until the last fourth corresponding relation record is traversed; and if the current switch is configured to be in a disconnected configuration, performing switch disconnection operation on the first array switch in the first analog switch array, where the first array switch identifier is matched with the current switch identifier, setting the corresponding first switch state as a disconnected state, and moving to the next fourth corresponding relationship record to continue traversing until the last fourth corresponding relationship record is traversed and ended.
5. An apparatus for implementing the method of switching communication modules based on analog switch array according to any of claims 1-4, wherein the apparatus comprises: the device comprises a first MiniPCI-E interface slot, a first analog switch array, a first test circuit interface slot and a first main control module; the first analog switch array is respectively connected with the first Mini PCI-E interface slot, the first test circuit interface slot and the first main control module;
the first Mini PCI-E interface slot is used for accessing a first communication module and connecting a first module pin of the first communication module with a second array port of the first analog switch array;
the first test circuit interface slot is used for accessing a first test circuit and connecting a first test port of the first test circuit with a first array port of the first analog switch array;
the first main control module is connected with first control equipment; the first master control module is used for continuously monitoring the issued instruction of the first control equipment and taking the monitored issued instruction as a corresponding first instruction; extracting corresponding first instruction head data and first instruction volume data from the first instruction; identifying the first command header data; if the first command header data is a communication module switching command code, extracting a first corresponding relation table, a second corresponding relation table, a third corresponding relation table and a fourth corresponding relation table from the first command body data and storing the first corresponding relation table, the second corresponding relation table, the third corresponding relation table and the fourth corresponding relation table in the local; performing on/off operation on the array switch of the first analog switch array according to the first, second, third and fourth correspondence tables; the first corresponding relation list is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the array ports of the first analog switch array; the second correspondence list is a correspondence table reflecting correspondence between the test port of the first test circuit and the array port of the first analog switch array; the third corresponding relation table is a corresponding relation table reflecting the corresponding relation between the module pins of the first communication module and the test ports of the first test circuit; the fourth correspondence list is a correspondence table reflecting correspondence between the array switch and the array port of the first analog switch array.
CN202211695192.3A 2022-12-28 2022-12-28 Communication module switching method and equipment based on analog switch array Active CN115987861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211695192.3A CN115987861B (en) 2022-12-28 2022-12-28 Communication module switching method and equipment based on analog switch array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211695192.3A CN115987861B (en) 2022-12-28 2022-12-28 Communication module switching method and equipment based on analog switch array

Publications (2)

Publication Number Publication Date
CN115987861A true CN115987861A (en) 2023-04-18
CN115987861B CN115987861B (en) 2024-07-12

Family

ID=85960503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211695192.3A Active CN115987861B (en) 2022-12-28 2022-12-28 Communication module switching method and equipment based on analog switch array

Country Status (1)

Country Link
CN (1) CN115987861B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1469320A1 (en) * 2003-04-15 2004-10-20 Rood Technology Deutschland GmbH + Co Method for generating tester controls
US20100231254A1 (en) * 2009-03-11 2010-09-16 Star Technologies Inc. Method for configuring combinational switching matrix and testing system for semiconductor devices using the same
CN102778647A (en) * 2012-08-17 2012-11-14 中国科学院高能物理研究所 System and method for circuit testing
KR20170052419A (en) * 2015-11-04 2017-05-12 주식회사 스토리지안 Ssd doubler for pci express add-in card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1469320A1 (en) * 2003-04-15 2004-10-20 Rood Technology Deutschland GmbH + Co Method for generating tester controls
US20100231254A1 (en) * 2009-03-11 2010-09-16 Star Technologies Inc. Method for configuring combinational switching matrix and testing system for semiconductor devices using the same
CN102778647A (en) * 2012-08-17 2012-11-14 中国科学院高能物理研究所 System and method for circuit testing
KR20170052419A (en) * 2015-11-04 2017-05-12 주식회사 스토리지안 Ssd doubler for pci express add-in card

Also Published As

Publication number Publication date
CN115987861B (en) 2024-07-12

Similar Documents

Publication Publication Date Title
CN108848006B (en) Port state monitoring method and device
US7426585B1 (en) Smart cables
US20160098336A1 (en) Methods and systems for dynamic retimer programming
EP3758317A1 (en) Method, apparatus, electronic device and computer readable storage medium for supporting communication among chips
CN112069107A (en) Server board card capable of automatically identifying external plug-in card and external plug-in card automatic identification method
CN112782567A (en) Chip testing system, method, device, medium and equipment
CN112888028B (en) Method and device for switching traffic service by switching life cycle state
CN115987861A (en) Communication module switching method and equipment based on analog switch array
CN109491909A (en) A kind of CPLD refreshes verification method, device, terminal and storage medium
CN110837450B (en) Test method and device of USB TYPE-C docking station, electronic equipment and storage medium
US20070204071A1 (en) Apparatus, system, and method for automated device configuration and testing
CN208954104U (en) Multichannel SIM card read-write equipment
US20230148462A9 (en) Control Device Switching Method, Control Device, and Storage System
WO2022070557A1 (en) Information processing device, information processing system, connection control method, and non-transitory computer-readable medium in which connection control program is stored
US10572403B1 (en) Complex programmable logic device with capability of performing multi-address response and operation method thereof
CN114650244A (en) Touch screen communication protocol integration system and use method
EP3869314A1 (en) Control device switching method, control device and storage system
CN114615694A (en) User identity module remote access equipment
CN113608935B (en) Method, system, equipment and medium for testing network card
TWI802269B (en) Server equipment and input and output device
CN117056146B (en) Testing device, method and medium compatible with SSD of multiple different protocols simultaneously
CN220357535U (en) Computing storage blade and equipment
CN113626821B (en) Method, system, terminal and storage medium for wireless refreshing of server MAC address
CN117880658A (en) NCSI test circuit, device and method for PCIe network card
CN117219891A (en) Battery management method and system based on protection board

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant