CN112286845A - Transmission line switching system supporting multiple devices and multiple interfaces - Google Patents

Transmission line switching system supporting multiple devices and multiple interfaces Download PDF

Info

Publication number
CN112286845A
CN112286845A CN202011195287.XA CN202011195287A CN112286845A CN 112286845 A CN112286845 A CN 112286845A CN 202011195287 A CN202011195287 A CN 202011195287A CN 112286845 A CN112286845 A CN 112286845A
Authority
CN
China
Prior art keywords
transmission line
mcu
pld
interface
upper computer
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
CN202011195287.XA
Other languages
Chinese (zh)
Other versions
CN112286845B (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.)
Chongqing Jinmei Communication Co Ltd
Original Assignee
Chongqing Jinmei Communication 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 Chongqing Jinmei Communication Co Ltd filed Critical Chongqing Jinmei Communication Co Ltd
Priority to CN202011195287.XA priority Critical patent/CN112286845B/en
Publication of CN112286845A publication Critical patent/CN112286845A/en
Application granted granted Critical
Publication of CN112286845B publication Critical patent/CN112286845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/22Handling requests for interconnection or transfer for access to input/output bus using successive scanning, e.g. polling

Abstract

The invention discloses a transmission line switching system supporting multiple devices and multiple interfaces, which comprises: the system comprises a cable interface matching module, an upper computer, an MCU (microprogrammed control unit) main control module and a circuit configuration module which are in communication connection; the line configuration module comprises a PLD, a plurality of multi-output selectors and a hardware interface; the upper computer issues a line switching instruction according to a preset upper computer-MCU communication protocol and sends the line switching instruction to the MCU main control module, the MCU main control module selects an output channel corresponding to a test interface of the device to be tested according to the switching instruction, generates configuration parameters, splices the configuration parameters according to a preset MCU-PLD communication protocol and sends the configuration parameters to the PLD, and meanwhile receives a feedback signal sent by the PLD; and the PLD controls the corresponding multi-channel output selector to be switched to the corresponding output channel according to the configuration parameters and is in butt joint with the corresponding test interface of the corresponding device to be tested. The invention can automatically switch a plurality of devices and transmission lines with different interfaces.

Description

Transmission line switching system supporting multiple devices and multiple interfaces
Technical Field
The invention relates to the technical field of electronic equipment debugging, in particular to a transmission line switching system supporting multiple devices and multiple interfaces.
Background
After the processes of PCB design board feeding, component purchasing, SMT mounting, reflow soldering, wiring assembly and the like, in order to ensure the product quality, each electronic device needs to be strictly debugged before delivery. For a single device, the device needs to be connected to a companion device prior to commissioning. And after debugging is finished, pulling out the connecting cable, and then inserting the next equipment interface. In the stress screening environment such as high low temperature test chamber, equipment switching at every turn, tester need get into the manual plug cable of box. In this case, the quality efficiency of the test is reduced, and the environmental conditions of the test are also affected.
In the face of similar production test conditions, a specific debugging tool is usually manufactured, and a single type interface cable of a small amount of equipment is switched. For automatic switching of multiple devices and transmission lines with different interfaces, no effective solution is available at present.
Disclosure of Invention
In view of this, the invention provides a transmission line switching system supporting multiple devices and multiple interfaces, which can manually complete the connection of related cables between multiple devices to be tested and an accompanying device, and then switch each type of test interface transmission line of the multiple devices to be tested one by one according to the test requirements, so as to realize that each test interface of each device to be tested is respectively butted with an interface of the accompanying device, and further complete the data packet transceiving test of each device to be tested and the accompanying device.
In order to achieve the purpose, the invention adopts the following technical scheme:
a transmission line switching system supporting multiple devices and multiple interfaces, comprising: the system comprises a cable interface matching module, an upper computer, an MCU (microprogrammed control unit) main control module and a circuit configuration module which are in communication connection; the circuit configuration module comprises a PLD, a plurality of multi-output selectors and a hardware interface; the PLD is respectively in communication connection with the MCU master control module and the multi-path output selector; each output channel of the multi-path output selector is correspondingly connected with the hardware interface one by one through a transmission line; one end of the cable interface matching module is connected with the hardware interface, and the other end of the cable interface matching module is connected with the test interfaces of the plurality of devices to be tested;
the upper computer sends a switching instruction to the MCU main control module according to a preset upper computer-MCU communication protocol and receives a feedback signal sent by the MCU main control module;
the MCU main control module selects an output channel corresponding to the test interface according to the switching instruction, generates configuration parameters, splices the configuration parameters according to a preset MCU-PLD communication protocol, sends the configuration parameters to the PLD and receives a feedback signal sent by the PLD;
and the PLD controls the corresponding multi-path output selector to be switched to a corresponding output channel according to the configuration parameters and is in butt joint with a corresponding test interface of the corresponding device to be tested.
Further, the upper computer-MCU communication protocol is configured to determine a command flag of switching transmission line types, determine a command flag of switching transmission line groups, determine an ID number flag of an output channel where the transmission line is located, determine a number flag of a certain type of test interface included in each device under test, and determine a number flag of the device under test connected to the switching system.
Preferably, the MCU master control module comprises a transmission line type setting submodule, a transmission line group setting submodule, a multi-output selector setting submodule, a channel selection submodule and a signal transceiving submodule;
the transmission line type setting submodule is used for determining the type of a current transmission line according to the type of a test interface of equipment to be tested, receiving a feedback signal sent by the transmission line group setting submodule and sending the feedback signal to an upper computer according to an upper computer-MCU communication protocol;
the transmission line group setting submodule selects transmission line groups and transmission lines in the groups one by one within the range of the current transmission line group number according to the current transmission line type and receives feedback signals sent by the multi-output selector;
the setting submodule of the multi-path output selector acquires the total number of the devices to be tested and the number of the test interfaces of the current type of each device to be tested according to the upper computer-MCU communication protocol, calculates the total number of output channels to be switched, and determines the number of the multi-path output selectors according to the total number of the output channels; meanwhile, the multi-path output selector also receives a feedback signal sent by the channel selection submodule;
the channel selection submodule is used for selecting a current output channel of a current multi-channel output selector in a current transmission line group and switching the finally determined output channels in each multi-channel output selector one by one according to the MCU-PLD communication protocol until all the output channels are switched;
the signal transceiving submodule is used for receiving current state parameters sent by the transmission line type setting submodule, the transmission line group setting submodule, the multi-output selector setting submodule and the channel selection submodule, splicing the current state parameters according to a preset MCU-PLD communication protocol, and sending the spliced current state parameters to the PLD; and the signal transceiving submodule also receives a feedback signal sent by the PLD.
Preferably, the MCU-PLD communication protocol is used to determine a flag bit of the type of the transmission line to be switched, determine a flag bit of the transmission line group to be switched, determine a flag bit of the demultiplexer to be switched, and determine a flag bit of the current output channel.
Preferably, the transmission lines are classified according to impedance requirements and use in hardware circuit design.
Preferably, the number of the demultiplexer of the current type transmission line is not less than the maximum transmission line group number of the current type transmission line.
Preferably, the number of test interfaces of the current type transmission line of the device to be tested is an integral multiple of the number of channels of a single demultiplexer.
Preferably, the PLD analyzes the configuration parameters generated by the MCU main control module, and gives the corresponding levels to the control signal pins of the demultiplexer according to the wiring condition of the demultiplexer.
Preferably, the input interface of the cable configuration module is matched and butted with the hardware interface, and the output interface is classified according to the impedance requirement of the transmission line and is matched and butted with the test interface of each device to be tested.
Compared with the prior art, the invention discloses a transmission line switching system supporting multiple devices and multiple interfaces, by designing 5-layer hardware units of an upper computer-MCU master control module-PLD-multi-output selector-cable configuration module, combining 5-layer software processing structures of transmission line type setting, transmission line group setting, multi-output selector setting, channel selection and signal transceiving, an upper computer-MCU interaction protocol and an MCU-PLD interaction protocol, selecting one or more transmission lines according to the types and the number of the test interfaces corresponding to different devices to be tested, selecting one or more groups of transmission line groups, selecting one or more multiplexed output selectors, and selecting one or more channels of one multiplexed output selector. For different devices to be tested, the invention matches the existing data communication hardware interface for the devices to be tested through the line matching module, and can adapt to the existing test interface and cable of the devices to be tested. The invention has the characteristics of wide application range, flexible configuration and strong expandability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a block diagram of a transmission line switching system supporting multiple devices and multiple interfaces according to the present invention;
fig. 2 is a schematic diagram of the connection between the demultiplexer and the hardware interface according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and 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.
As shown in fig. 1, an embodiment of the present invention discloses a transmission line switching system supporting multiple devices and multiple interfaces, including: the system comprises a cable interface matching module, an upper computer, an MCU (microprogrammed control unit) main control module and a circuit configuration module which are in communication connection; the circuit configuration module comprises a PLD, a plurality of multi-output selectors and a hardware interface; the PLD is respectively in communication connection with the MCU master control module and the multi-path output selector; each output channel of the multi-path output selector is correspondingly connected with the hardware interface one by one through a transmission line; one end of the cable interface matching module is connected with the hardware interface, and the other end of the cable interface matching module is connected with the test interfaces of the plurality of devices to be tested;
the upper computer sends a switching instruction to the MCU main control module according to a preset upper computer-MCU communication protocol and receives a feedback signal sent by the MCU main control module;
the MCU main control module selects an output channel corresponding to the test interface according to the switching instruction, generates configuration parameters, splices the configuration parameters according to a preset MCU-PLD communication protocol, sends the configuration parameters to the PLD and receives a feedback signal sent by the PLD;
and the PLD controls the corresponding multi-path output selector to be switched to a corresponding output channel according to the configuration parameters and is in butt joint with a corresponding test interface of the corresponding device to be tested.
Wherein the hardware interface is used for connecting a plurality of different types of transmission lines.
Specifically, in the upper computer, a relation table of the device to be tested, the type of the interface and the number of the interfaces is established, and the corresponding various test interfaces and the number of the test interfaces are found by looking up the relation table according to the device to be tested. According to an upper computer-MCU communication protocol (command issuing), NextType (a command zone bit for switching to a Next type of transmission line issued by an upper computer), Next (a command zone bit for switching to a Next group of transmission lines issued by an upper computer), ConnID (an interface transmission line ID number zone bit for operation issued by an upper computer), ConnNumPerDev (a number zone bit for issuing the interface of each equipment of the type issued by an upper computer) and DevNum (a number zone bit for issuing equipment of connected systems by an upper computer) are assigned, and the zone bits are spliced to form a switching instruction and sent to an MCU master control module. And simultaneously, monitoring and receiving a feedback signal from the MCU master control module to start the switching of the next type or the next group of interface transmission lines.
The upper computer-MCU communication protocol is shown in Table 1:
TABLE 1 upper computer-MCU communication protocol
NextType Next ConnID ConnNumPerDev DevNum
1 digit decimal system 1 digit decimal system 3 decimal system 2 decimal system 2 decimal system
r r r r r
In table 1, a bit NextType indicates a flag bit of a command issued by the upper computer to switch to the next transmission line. When the switching system of the present invention has completed the switching of all the test interfaces of a certain type of transmission line, the flag bit is position 1, the switching configuration of the transmission line of the new type of test interface is entered, and the flag bit is 0, which indicates that no change is currently made.
The bit Next represents a command flag bit for switching to the Next set of transmission lines issued by the upper computer. After the current line of the current test equipment is tested, the upper computer marks the position 1, and if the current line is not tested, the upper computer marks the position 0.
The ConnID is an ID number zone bit of an output channel where a test interface data line which is issued by an upper computer is positioned, and consists of 3 decimal digits: 000 to 999, for example:
000: reserving;
001: an X test interface line;
002: y testing the interface line;
003: z testing the interface line;
……;
999: XXX test interface line;
the ConnNumPerDev represents the number of flag bits of the test interface of each device to be tested, which are sent by the upper computer and consist of two decimal digits: 00 to 99, for example:
00: the device to be tested has 1 test interface of this kind;
01: the device to be tested has 2 such test interfaces;
02: the device to be tested has 3 such test interfaces;
……
99: the device under test has 100 such test interfaces.
The bit DevNum represents the number zone bit of the test equipment which is sent by the upper computer and connected with the switching system, is used for informing the number of the transmission lines to be switched which are connected at present, and consists of two decimal digits of 00-99, wherein:
00: 1 device to be tested is connected;
01: 2 devices to be tested are connected;
02: 3 devices to be tested are connected;
……
99: there are 100 devices under test connected.
The command reply of the upper computer-MCU communication protocol is shown in table 2:
TABLE 2 host computer-MCU communication protocol (Command reply)
FeedBack CurFeedBack Dev ConnID Chnl
1 digit decimal system 2 decimal system 2 decimal system 3 decimal system 2 decimal system
w w w w w
In Table 2
Bit feed back: and (4) feedback zone bits for completely finishing the configuration commands sent by the upper computer. After the switching system completes all configuration operations, in the returned data, the position 1 and the upper computer read the marker bit to perform line debugging and testing of the next type of test interface. The method specifically comprises the following steps:
0: the configuration command issued by the upper computer is not completed;
1: the configuration commands issued by the upper computer are completely finished;
and others: and (4) not processing.
Bit CurFeedBack: the configuration order that the host computer issues accomplishes the feedback marker bit to certain test equipment's transmission line, and after switching system has accomplished the configuration of certain transmission line of certain test equipment, this position 1, the host computer reads this marker bit, carries out the line debugging of this way test interface, specifically is:
00: receiving a command, and unfinishing the configuration of a certain transmission line;
01: receiving the command, and finishing the configuration of a certain transmission line;
02: no command is received;
03: receiving a command, wherein the command field of the FeedBack or the CurFeedBack is abnormal;
04: receiving a command, the ConnID field is illegal;
05: receiving a command, and configuring the next transmission line test interface abnormally;
06: receiving a command, wherein the current transmission line group number exceeds a hardware design value;
07: receiving a command, and sending a command exception;
and others: and (4) not processing.
Bit Dev: a certain test device that is performing line debugging. For example: a total of 3 devices are being commissioned, currently going to the 2 nd device, then the Dev value is 01. The method comprises the following specific steps:
00: 1, a device;
01: the 2 nd device;
02: a 3 rd device;
……
99: the 100 th device.
Bit ConnID: transmission line types are being debugged. The method specifically comprises the following steps:
000: reserving;
001: an X transmission line;
002: a Y transmission line;
003: a Z transmission line;
……
999: XXX transmission lines.
Position Chnl: the data line of a certain test interface that is being line debugged. For example: when one device has 4X test interfaces, and the current process is to the 3 rd X test interface, Chnl is 02. The method specifically comprises the following steps:
00: the 1 st test interface;
01: a 2 nd test interface;
02: a 3 rd test interface;
……
99: the 100 th test interface.
The specific process is as follows:
the MCU main control module receives an instruction sent by an upper computer, firstly judges the data length, and if the data length is correct, the next step is carried out; otherwise, according to the upper computer-MCU communication protocol, marking CurFeedBack (a configuration command sent by the upper computer sets a feedback completion flag bit of a certain interface transmission line of certain test equipment) as 'command not received', feeding back the command to the upper computer, and sending the command again.
Taking out a NextType variable, and if the NextType variable is switched to the next transmission line, indicating that the switching is still the transmission line of the same type of interface; if the test interface transmission line is switched to the next type transmission line, the switching of all the test interface transmission lines of the previous type is finished, and the switching of the new type of test interface transmission line is started. And respectively marking and entering the next step according to the two different conditions.
And taking out the ConnID variable, searching the structure of the transmission line ID-transmission line type-transmission line group number of the MCU master control module, and judging whether the corresponding relation exists. If yes, entering the next step; otherwise, the CurFeedBack is set as 'the ConnID field is illegal', and the feedback is carried out to the upper computer.
Taking out ConnNumPerDev and DevNum variables, accumulating ConnNumPerDev for DevNum times, calculating the accumulated number of the transmission line test interfaces of the type of all the test equipment, and entering the next step after marking.
And setting CurFeedBack as 'receiving a command, unfinished configuration of a certain transmission line' and feeding back to the upper computer. After receiving the command, the upper computer circularly waits until the received CurFeedBack is that the command is received, the configuration of a certain transmission line is finished, and then a Next mark is started to switch the Next transmission line; if all the transmission lines of a certain type are switched completely, the main controller sets a feed Back (a configuration command issued by the upper computer completes FeedBack zone bits completely) to be 1, the FeedBack is fed back to the upper computer, and after the upper computer receives the FeedBack, the NextType is started to switch the next type of transmission lines.
In one embodiment, the MCU master control module includes a transmission line type setting submodule, a transmission line group setting submodule, a demultiplexer setting submodule, a channel selection submodule, and a signal transceiving submodule.
The transmission line type setting submodule is used for dividing and classifying the data lines to be switched according to impedance requirements in hardware circuit design and purposes (data signals and control signals) of the transmission lines. According to the parameter requirements of the test interface transmission line, the routing length, the routing width, the equal length rule between lines and the layout and wiring distinction of the data signal line and the control signal line are set. And acquiring the maximum line group number of the transmission line of the current type and the maximum multiplexer number of the transmission line of the current type according to the specific hardware design. And searching a structure of transmission line ID-transmission line type-transmission line group number of the MCU master control module, and finding out the current transmission line group number. If the number of the transmission lines is less than the maximum line group number of the current type transmission line, entering a transmission line group setting submodule; otherwise, setting CurFeedBack to be 'the current line group number of the received command exceeds the hardware design value', and marking as abnormal. And after the transmission line group setting submodule returns, feeding back all the setting completion marks of the current type of line groups through an upper computer-MCU communication protocol, and informing the upper computer of starting the switching of the next type of transmission line of the equipment to be tested.
The transmission line group setting submodule is used for selecting transmission line groups required by transmission lines to be switched, a pair of transmission lines form a group, and the total number of the current transmission line groups does not exceed the maximum line group number of the current type transmission lines in the transmission line type setting submodule. And selecting the transmission line groups and the transmission lines in the groups one by one within the range of the current transmission line group number and the range of the wiring group number of the transmission lines in the hardware design, marking the current transmission line group ID and the transmission line ID in the groups, and entering a setting submodule of a multi-output selector. And marking the ID of the next group of transmission line groups and the ID of the transmission lines in the group after the processing of the setting submodule of the multi-output selector returns, and entering the setting submodule of the multi-output selector again. And returning to the transmission line type setting submodule after all the line groups are used.
The demultiplexer setting submodule is used for selecting the demultiplexer used by the current line group. First, the cumulative number of transmission line test interfaces of that type for all test equipment that have been flagged is divided by the number of lanes of a single demultiplexer. If the remainder is 0, namely the number of the test interfaces of the transmission lines of the type of all the test equipment is exactly the integral multiple of the number of the channels of a single multi-output selector, the number of the multi-output selectors required by the group of transmission lines of the type is the quotient of the division expression; if the remainder is not 0, the number of demultiplexer required for that type of set of transmission lines is the quotient of the above division expression plus 1. And setting the ID of the multi-path output selector from the current 1 st multi-path output selector, setting the number of channels as the number of channels of a single multi-path output selector, and entering a channel selection submodule. If the loop is configured to the last multiplexer of the group of the type, setting the ID of the multiplexer, setting the number of channels as the remainder of the division expression, and entering the channel selection layer. And marking the ID of the next multi-path output selector after the processing of the channel selection submodule returns, and entering the channel selection submodule again. And returning to the transmission line group setting submodule after all the selectors are used.
The channel selection submodule is used for selecting the current channel of the current multi-path output selector in the current transmission line group. Firstly, whether the current channel serial number is smaller than the channel number assigned by the multi-output selector layer is compared, if so, the current transmission line type, the current transmission line group ID and the current multi-output selector ID are read, the current channel serial number is obtained, the current channel serial number enters a signal transceiving submodule, and a return mark of the signal transceiving submodule is waited. If the FeedBack is successful, setting the FeedBack flag bit as 'the configuration command sent by the upper computer is not completed', assigning the CurFeedBack as 'the configuration of a certain path of data line is completed after the command is received', assembling the FeedBack value, the CurFeedBack value, the current equipment serial number Dev, the current data line type ConnID and the current transmission line interface serial number Chnl according to an upper computer-MCU interaction protocol, and sending the assembled data to the upper computer. And then, circularly waiting for a Next value, namely, sending a command for configuring the Next transmission line under the upper computer, entering the Next channel setting of the channel selection submodule after receiving the command, and returning to the setting submodule of the multi-path output selector until the channel serial number is greater than the channel number assigned by the multi-path output selector layer.
The signal receiving and transmitting sub-module assembles and transmits data information according to the MCU-PLD interactive protocol, transmits data from the MCU main control module to the PLD (programmable logic device), and monitors and receives feedback information. Firstly, judging whether a first multi-output selector configured for the line group of the transmission line is currently set, if so, marking a last transmission line type variable LastLineType, a last group of transmission line group variables LastGroupChoice and a last multi-output selector variable LastDemultiplexerChoice as null, and marking En (enabling/disabling flag bit) as 'current setting'; if not, En is set to "disable current" and the last demultiplexer used is disabled. And assigning the type variable, the line group variable and the selector variable of the last transmission line to field information required by MCU-PLD communication protocols such as LineType, LineGroupChoice, DemultiplexerChoice and the like.
The MCU-PLD communication protocol specifically sets the main controller IO output port values as shown in Table 3. And circularly waiting for the FeedBack value of the PLD until the flag is 'finished', namely the PLD finishes the operation of forbidding the multi-output selector. And then, reading the transmitted parameter information such as the current transmission line type, the line group ID, the multi-output selector ID, the channel serial number and the like, assigning field variables required by a LineType, a LineGroupChoice, a LastGroupChoice, a DeltipleChoint and a ChannelChoint interaction protocol, and carrying out the switching setting. And circularly reading the FeedBack field of the PLD until the FeedBack field is a 'completion' mark. And respectively assigning the current transmission line type, line group and information of the multi-path output selector to variables LastLineType, LastGroupChoice and LastDemultiplexerChoice, and returning success marks to the channel selection submodule.
TABLE 3 MCU-PLD communication protocol
Figure BDA0002753843330000111
In table 3, a bit 15FeedBack indicates that an enable/disable completion FeedBack flag bit is set, and in the setting process of the PLD, the bit is 0, the MCU main control module reads the bit information and determines whether the setting action is completed, where 0 indicates incomplete and 1 indicates complete.
The bits 14:13En represent an enable/disable flag bit, and the MCU master control module enables a certain data path of a certain demultiplexer of a certain transmission line group to be turned on, disables a certain demultiplexer of a certain transmission line group, disables demultiplexers of all transmission line groups, or keeps no setting change. Where 00 denotes disabling all; 01 denotes disable current; 10 denotes the setting current; and 11 denotes left unchanged.
The position 12:11LineType represents the type selection zone bit of the transmission line to be switched, the transmission line is roughly divided into an A type, a B type and an extension control line, and the data bit is used for setting the type of the transmission line. Wherein 00 denotes a class a transmission line; 01 denotes a class B transmission line, 10 denotes an extension control line, and 11 denotes a reserve.
Bit 10:7LineGroupChoice indicates a flag bit for selecting a transmission line group to be switched, and one transmission line group is set in one setting process, wherein,
0000: group 1; 0001: group 2; 0010: group 3; 0011: group 4;
0100: group 5; 0101: group 6; 0110: group 7; 0111: group 8;
1000: group 9; 1001: group 10; 1010: group 11; 1011: group 12;
1100: group 13; 1101: group 14; 1110: group 15; 1111: group 16.
Bit 6:4DemultiplexerChoice represents the selection flag bit of the multi-output selector; the input of a certain transmission line group corresponds to a multi-path output channel, the multi-path output channel is composed of at least 1 multi-path output selector, and the mark bit is used for selecting one of the multi-path output selectors. 000 means the first, 001 means the 2 nd, 010 means the 3 rd, 011 means the 4 th, 100 means the 5 th, 101 means the 6 th, 110 means the 7 th, and 111 means the 8 th.
The bit 3:0ChannelChoice represents a channel selection flag bit, specifically to a certain demultiplexer, the flag bit determines that a certain output channel is in butt joint with an input transmission line, the setting can be set according to the functional logic description of a specific demultiplexer chip, and the 16-output channel demultiplexer is eaten here, and the setting is as follows:
0000: a connecting channel 1; 0001: a connecting channel 2; 0010: a connecting channel 3; 0011: a connecting channel 4;
0100: a connecting channel 5; 0101: a connecting channel 6; 0110: a connecting channel 7; 0111: a connecting channel 8;
1000: a connecting channel 9; 1001: a connecting channel 10; 1010: a connecting channel 11; 1011: a connecting channel 12;
1100: a connecting channel 13; 1101: a connecting channel 14; 1110: a connecting channel 15; 1111: and a connecting channel 16.
In a specific embodiment, the PLD in the line configuration module parses the configuration command sent by the MCU main control module, and sets the corresponding IO pin level of the PLD according to the wiring condition of the PLD and the demultiplexer in the hardware design. Specifically, the clock signal is read, if the clock signal reaches a trigger condition, the En and LineType flags are read, and when an enable command is set or disabled, the pin configuration function is entered. If En is 'forbid all the multiplexers', all the multiplexer E control signal pins are set to be high level; if the current multi-output selector is forbidden, determining the corresponding multi-output selector according to LineType, LineGroupChoice, DemultiplexerChoice and ChannelChoice, and further setting the E control signal pin of the multi-output selector to be at a high level; if "set current demultiplexer", the read parameter determines the demultiplexer, and control signal pins such as S0/S1/S2/S3 (for example, 16-out-of-1) are set to corresponding levels according to the chip manual. If the disabling or the setting is successful, setting the FeedBack flag bit to be 'finished', otherwise, setting the FeedBack flag bit to be 'unfinished', and returning the FeedBack flag bit to the MCU main control module according to the MCU-PLD interactive protocol.
In a specific embodiment, as shown in fig. 1, the input interface of the cable interface matching module is interfaced with the hardware interface of the line configuration module, and the hardware interface has multiple types, which are respectively used for connecting different types of transmission line groups; and the output interface of the cable interface matching module is used for carrying out printed board circuit design and cable interface design according to the number of the devices to be tested and the type of the transmission line and is connected to each device to be tested. And classifying to form corresponding PCB wiring and output interfaces according to the impedance requirement of the interface data line, wherein the output interfaces are connected with the test interfaces of the equipment to be tested.
The technical solution of the present invention is further explained with reference to fig. 2.
The present embodiment provides for switching of both class a and class B transmission lines. The A-type transmission lines are respectively Aline 0P-Aline 7P and Aline 0N-Aline 7N, and 7mil routing width is used in PCB design. The B-type transmission lines are Bline 0-Bline 7, and are designed to use a 12mil routing width.
A certain device has one X interface and one Y interface, and 4 devices are tested in one time. The X interface belongs to A-type transmission line, and the Y interface belongs to B-type transmission line. The upper computer issues an instruction 000010003, and the MCU master control module receives and analyzes the instruction.
After analysis, the upper computer starts a new group of transmission line switching, the type of the X interface transmission line is A type, and a single device is provided with 1 type of interface; the type of the Y-interface transmission line is B type, and a single device is provided with 1 interface of the type. In the test, 4 devices are connected with the switching system, the number of channels of the X interface is 4, and the number of channels of the Y interface is 4.
In the hardware design of the embodiment, the maximum line group number of the class-A transmission line is 1 group, the maximum multiplexer number is 2, and a single multiplexer has at most 4 output channels; the maximum number of line groups of the B-type transmission line is 1 group, the maximum number of multi-output selectors is 1, and a single multi-output selector has 4 channels at most. According to the structure of the transmission line ID-transmission line type-transmission line group number of the MCU main control module, finding that the line group number of the X interface transmission line is 1 and does not exceed the maximum line group number 1 of the A-type transmission line, and meeting the hardware design requirement; the number of the line groups of the Y-interface transmission line is 1, the maximum number of the line groups of the B-type transmission line is not more than 1, and the design requirement of hardware is met.
First, switching of a class a transmission line is entered. Because the class A transmission lines only have 1 group, only 1 group of transmission lines needs to be switched. The group consists of 4 lines, the 1 st transmission line is switched first. And transmitting the 1 st group of line ID, the 1 st group of line ID and the type of the line to which the X interface transmission line belongs into the next layer. In this embodiment, 4 pieces of equipment are tested, 4X interfaces are provided, and 4 output channels are provided for the demultiplexer. Therefore, the channel number is exactly 1 time of the channel number of a single selector and exactly integer times, the interface number is exactly equal to the channel number of the single selector, and the switching of the 4 channels can be completed only by the multi-output selector 1. The ID of the demultiplexer 1 is recorded and the next layer is entered. After entering the channel selection submodule, the 1 st channel is selected, the serial number of the channel is recorded, and the line type, the line group ID, the line ID and the ID of the multi-output selector transmitted by the former submodules are transmitted to the signal transceiving submodule together. Because the group of lines is set for the first time, only one group of X interface transmission line lines is provided, and only one multiplexer is used, the operation of forbidding the multiplexer before this time is not needed, the configuration pins corresponding to S0 and S1 are directly searched according to the transmitted parameters, the configuration pins are set to be corresponding to the output Alin0P, and meanwhile, the E signal is set to be low level to enable configuration. For this embodiment, the data sent to the line configuration module is: 0100000000000000. when the programmable logic device PLD receives and analyzes the data sent by the MCU master control module, the pins connected with the corresponding signals S0, S1 and E of the multi-output selector are found according to the pin configuration, and the low level is output according to the chip manual, namely the Out0 is selected and enabled, so that the input signal AinP and the output signal Alin3P are connected in an abutting mode. The MCU master control module feeds back a CurFeedBack signal 01 of the upper computer to indicate that the current circuit configuration is completed, and then circularly waits for an instruction of switching the next path or the next type of data line issued by the upper computer. After the channel of the test equipment completes the test, the upper computer sets the Next flag bit to be 0, namely switches to the Next channel of data, the MCU master control module adds 1 to the channel number after receiving the flag bit, switches to the Out1 channel of the multi-channel output selector 1, and sends the line configuration module data as follows: 0100000000000001. the programmable logic device PLD outputs the pins to which the corresponding demultiplexer S0, S1 and E signal are connected as low level, high level and low level. After the configuration of the four channels of the demultiplexer 1 is completed, the channel corresponding to the second line of the group of lines is returned to be continuously configured, and the method is not repeated. After the transmission line configuration of the X interface is completed, the MCU main control module sets the FeedBack flag bit 1, that is, the configuration command issued by the upper computer is completed. After receiving the command, the upper computer starts the configuration command of the Y line, and the remaining process is similar to the above description of this embodiment and is not described again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A transmission line switching system supporting multiple devices and multiple interfaces, comprising: the system comprises a cable interface matching module, an upper computer, an MCU (microprogrammed control unit) main control module and a circuit configuration module which are in communication connection; the circuit configuration module comprises a PLD, a plurality of multi-output selectors and a hardware interface; the PLD is respectively in communication connection with the MCU master control module and the multi-path output selector; each output channel of the multi-path output selector is correspondingly connected with the hardware interface one by one through a transmission line; one end of the cable interface matching module is connected with the hardware interface, and the other end of the cable interface matching module is connected with the test interfaces of the plurality of devices to be tested;
the upper computer sends a switching instruction to the MCU main control module according to a preset upper computer-MCU communication protocol and receives a feedback signal sent by the MCU main control module;
the MCU main control module selects an output channel corresponding to the test interface according to the switching instruction, generates configuration parameters, splices the configuration parameters according to a preset MCU-PLD communication protocol, sends the configuration parameters to the PLD and receives a feedback signal sent by the PLD;
and the PLD controls the corresponding multi-path output selector to be switched to a corresponding output channel according to the configuration parameters and is in butt joint with a corresponding test interface of the corresponding device to be tested.
2. The transmission line switching system supporting multiple devices and multiple interfaces as claimed in claim 1, wherein said upper computer-MCU communication protocol is used to determine a command flag for switching transmission line types, determine a command flag for switching transmission line groups, determine an ID number flag of an output channel where the transmission line is located, determine a number flag of a certain type of test interface included in each device under test, and determine a number flag of devices under test connected to said switching system.
3. The transmission line switching system supporting multiple devices and multiple interfaces of claim 1, wherein the MCU master control module comprises a transmission line category setting submodule, a transmission line group setting submodule, a demultiplexer setting submodule, a channel selection submodule, and a signal transceiving submodule;
the transmission line type setting submodule is used for determining the type of a current transmission line according to the type of a test interface of equipment to be tested, receiving a feedback signal sent by the transmission line group setting submodule and sending the feedback signal to an upper computer according to an upper computer-MCU communication protocol;
the transmission line group setting submodule selects transmission line groups and transmission lines in the groups one by one within the range of the current transmission line group number according to the current transmission line type and receives feedback signals sent by the multi-output selector;
the setting submodule of the multi-path output selector acquires the total number of the devices to be tested and the number of the test interfaces of the current type of each device to be tested according to the upper computer-MCU communication protocol, calculates the total number of output channels to be switched, and determines the number of the multi-path output selectors according to the total number of the output channels; meanwhile, the multi-path output selector also receives a feedback signal sent by the channel selection submodule;
the channel selection submodule is used for selecting a current output channel of a current multi-channel output selector in a current transmission line group and switching the finally determined output channels in each multi-channel output selector one by one according to the MCU-PLD communication protocol until all the output channels are switched;
the signal transceiving submodule is used for receiving current state parameters sent by the transmission line type setting submodule, the transmission line group setting submodule, the multi-output selector setting submodule and the channel selection submodule, splicing the current state parameters according to a preset MCU-PLD communication protocol, and sending the spliced current state parameters to the PLD; and the signal transceiving submodule also receives a feedback signal sent by the PLD.
4. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 3, wherein the MCU-PLD communication protocol is used to determine a flag bit of a type of the transmission line to be switched, determine a flag bit of the transmission line group to be switched, determine a flag bit of the demultiplexer to be switched, and determine a flag bit of a current output channel.
5. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 3, wherein the transmission lines are classified according to impedance requirements and purposes in hardware circuit design.
6. The transmission line switching system supporting multiple devices and multiple interfaces as claimed in claim 3, wherein the number of demultiplexer for the current type of transmission line is not less than the maximum number of transmission line groups for the current type of transmission line.
7. The transmission line switching system supporting multiple devices and multiple interfaces as claimed in claim 3, wherein the number of testing interfaces of the current type transmission line of the device under test is an integer multiple of the number of channels of a single said demultiplexer.
8. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 1, wherein the PLD analyzes configuration parameters generated by the MCU master control module, and gives the corresponding levels to the control signal pins of the demultiplexer according to the wiring condition of the demultiplexer.
9. The transmission line switching system supporting multiple devices and multiple interfaces as claimed in claim 1, wherein the input interface of the cable configuration module is matched and connected to the hardware interface, and the output interface is classified according to the impedance requirement of the transmission line and is matched and connected to the test interface of each device under test.
CN202011195287.XA 2020-10-30 2020-10-30 Transmission line switching system supporting multiple devices and multiple interfaces Active CN112286845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011195287.XA CN112286845B (en) 2020-10-30 2020-10-30 Transmission line switching system supporting multiple devices and multiple interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011195287.XA CN112286845B (en) 2020-10-30 2020-10-30 Transmission line switching system supporting multiple devices and multiple interfaces

Publications (2)

Publication Number Publication Date
CN112286845A true CN112286845A (en) 2021-01-29
CN112286845B CN112286845B (en) 2023-06-09

Family

ID=74353889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011195287.XA Active CN112286845B (en) 2020-10-30 2020-10-30 Transmission line switching system supporting multiple devices and multiple interfaces

Country Status (1)

Country Link
CN (1) CN112286845B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578790A (en) * 2022-03-04 2022-06-03 沃飞长空科技(成都)有限公司 Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
CN117452190A (en) * 2023-12-22 2024-01-26 合肥联宝信息技术有限公司 Signal testing circuit, method and storage medium
CN114578790B (en) * 2022-03-04 2024-05-14 四川傲势科技有限公司 Unmanned aerial vehicle flight control automatic test method, system, equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200990608Y (en) * 2006-11-24 2007-12-12 英华达(上海)电子有限公司 Multi-frequency channel antenna for mobile terminal
CN202189124U (en) * 2011-07-22 2012-04-11 航天科工防御技术研究试验中心 FPGA multiple real-time reconfiguration adapter based on test system
CN105425669A (en) * 2015-11-16 2016-03-23 珠海格力电器股份有限公司 Communication interface circuit and control method thereof, and household electrical appliance using same
CN205545290U (en) * 2015-11-09 2016-08-31 中国电子科技集团公司第五十四研究所 Novel multichannel meteor trail channel simulator
CN108491342A (en) * 2018-02-08 2018-09-04 青岛海信移动通信技术股份有限公司 A kind of method and terminal carrying out access switching
CN109888578A (en) * 2019-04-18 2019-06-14 珠海格力电器股份有限公司 Multifunctional access line apparatus and control method
CN110300405A (en) * 2019-07-17 2019-10-01 陕西瑞迅电子信息技术有限公司 A kind of device and method for realizing SIM card switching
CN210444272U (en) * 2019-07-31 2020-05-01 武汉联胜光电技术有限公司 Active optical cable channel detection control card
CN111679241A (en) * 2020-05-31 2020-09-18 宁夏隆基宁光仪表股份有限公司 Multi-information-channel automatic switching system and method for electric energy meter verification assembly line
CN211698019U (en) * 2019-12-23 2020-10-16 上海良信电器股份有限公司 Load information display device and display system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200990608Y (en) * 2006-11-24 2007-12-12 英华达(上海)电子有限公司 Multi-frequency channel antenna for mobile terminal
CN202189124U (en) * 2011-07-22 2012-04-11 航天科工防御技术研究试验中心 FPGA multiple real-time reconfiguration adapter based on test system
CN205545290U (en) * 2015-11-09 2016-08-31 中国电子科技集团公司第五十四研究所 Novel multichannel meteor trail channel simulator
CN105425669A (en) * 2015-11-16 2016-03-23 珠海格力电器股份有限公司 Communication interface circuit and control method thereof, and household electrical appliance using same
CN108491342A (en) * 2018-02-08 2018-09-04 青岛海信移动通信技术股份有限公司 A kind of method and terminal carrying out access switching
CN109888578A (en) * 2019-04-18 2019-06-14 珠海格力电器股份有限公司 Multifunctional access line apparatus and control method
CN110300405A (en) * 2019-07-17 2019-10-01 陕西瑞迅电子信息技术有限公司 A kind of device and method for realizing SIM card switching
CN210444272U (en) * 2019-07-31 2020-05-01 武汉联胜光电技术有限公司 Active optical cable channel detection control card
CN211698019U (en) * 2019-12-23 2020-10-16 上海良信电器股份有限公司 Load information display device and display system
CN111679241A (en) * 2020-05-31 2020-09-18 宁夏隆基宁光仪表股份有限公司 Multi-information-channel automatic switching system and method for electric energy meter verification assembly line

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578790A (en) * 2022-03-04 2022-06-03 沃飞长空科技(成都)有限公司 Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
CN114578790B (en) * 2022-03-04 2024-05-14 四川傲势科技有限公司 Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
CN117452190A (en) * 2023-12-22 2024-01-26 合肥联宝信息技术有限公司 Signal testing circuit, method and storage medium

Also Published As

Publication number Publication date
CN112286845B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
EP1402684B1 (en) Network documentation system with electronic modules
DE60222497T2 (en) System and method for harness testing
EP0692753B1 (en) Control device
CN112286845A (en) Transmission line switching system supporting multiple devices and multiple interfaces
DE60115529T2 (en) Data transmission method
JP3548000B2 (en) Wire harness manufacturing apparatus and tact time control method for the apparatus
CN107493135A (en) The pair system of optical patchcord, equipment, method and device
US20080222404A1 (en) In-system programming system and method for motherboard
EA013317B1 (en) Method and apparatus for control of a network in hvac and other applications
EP2816742A1 (en) Optical port connection management method, flange, fibre jumper and optical network device
CN111835877B (en) Control system comprising a plurality of functional modules and method for addressing functional modules
CN103840879A (en) Optical fiber office direction recognition method, device and system
DE19838178B4 (en) Printed circuit board in a programmable control system, wherein a power supply unit and a central unit are mounted on the circuit board
CN110247993A (en) System containing multiple functional modules and its functional module addressing method
US20200356520A1 (en) Control device and inter-module communication method
CN219302579U (en) Testing device and testing system
JP2002163713A (en) Vending machine controller
CN218123919U (en) Adapter assembly
CN109474501A (en) Switch test device and method
EP0501446A2 (en) Multiple access communication system capable of deciding a connection route among a central station, repeater stations, and terminal stations
CN114295322B (en) Grating test system, method and device, storage medium and electronic device
US6433988B1 (en) Method and apparatus for protection switching
JP3298342B2 (en) Misconnection prevention method
CN112636826B (en) Optical module testing system with OAM function and testing method
CN210776661U (en) Automatic identifying and expanding device for JTAG link

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