CN112286845B - 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
CN112286845B
CN112286845B CN202011195287.XA CN202011195287A CN112286845B CN 112286845 B CN112286845 B CN 112286845B CN 202011195287 A CN202011195287 A CN 202011195287A CN 112286845 B CN112286845 B CN 112286845B
Authority
CN
China
Prior art keywords
transmission line
pld
module
mcu
output
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.)
Active
Application number
CN202011195287.XA
Other languages
Chinese (zh)
Other versions
CN112286845A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

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 main control module and a line configuration module which are in communication connection; the line configuration module comprises PLD, multiple multiplexing output selectors and hardware interfaces; the upper computer sends a line switching instruction to the MCU main control module according to a preset upper computer-MCU communication protocol, the MCU main control module selects an output channel corresponding to a test interface of the equipment to be tested according to the switching instruction, generates configuration parameters, splices the configuration parameters according to the preset MCU-PLD communication protocol, sends the configuration parameters to the PLD, and simultaneously receives feedback signals sent by the PLD; the PLD controls the corresponding multi-path output selector to switch to the corresponding output channel according to the configuration parameters, and interfaces with the corresponding test interface of the corresponding equipment to be tested. The invention can automatically switch among a plurality of devices and different interface transmission lines.

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 equipment and multiple interfaces.
Background
After the procedures of board throwing, component purchase, SMT (surface mount technology) chip mounting, reflow soldering, wiring assembly and the like are performed, in order to ensure the product quality, each electronic device needs to be strictly debugged before delivery from a factory. For a single device, the device needs to be connected to a companion device prior to commissioning. After the debugging is completed, the connecting cable is pulled out, and then the next equipment interface is inserted. In a stress screening environment such as a high-low temperature test box, a tester needs to enter the box body to manually plug a cable every time equipment is switched. In this case, not only the quality efficiency of the test is reduced, but also the environmental conditions of the test are affected.
In the face of similar production test conditions, specific debugging tools are usually manufactured, and a single type of interface cable of a small number of devices is switched. For automatic switching of multiple devices and different interface transmission lines, no effective solution exists at present.
Disclosure of Invention
In view of this, the present invention provides a transmission line switching system supporting multiple interfaces of multiple devices, which can switch each type of test interface transmission line of multiple devices to be tested one by one according to test requirements after manually completing the connection of related cables between multiple devices to be tested and the accompanying test device, so as to realize that each test interface of each device to be tested is respectively in butt joint with the accompanying test device interface, and further complete the data packet receiving and transmitting test of each device to be tested and the accompanying test device.
In order to achieve the above purpose, the present 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 main control module and a line 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 connected with the MCU main control module and the multi-output selector in a communication way; each output channel of the multi-channel output selector is connected with the hardware interface in a one-to-one correspondence manner 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 a 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 simultaneously 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 equipment to be tested.
Further, the upper computer-MCU communication protocol is used for determining command zone bits of the type of the switching transmission line, determining command zone bits of the group of the switching transmission line, determining ID number zone bits of an output channel where the transmission line is located, determining number zone bits of a certain type of test interface contained in each device to be tested, and determining number zone bits of the devices to be tested which are connected to the switching system.
Preferably, the MCU main control module comprises a transmission line type setting sub-module, a transmission line group setting sub-module, a multiplexing output selector setting sub-module, a channel selecting sub-module and a signal receiving and transmitting sub-module;
the transmission line type setting sub-module is used for determining the type of the current transmission line according to the type of the test interface of the equipment to be tested, receiving the feedback signal sent by the transmission line group setting sub-module and sending the feedback signal to the upper computer according to an upper computer-MCU communication protocol;
the transmission line group setting submodule selects a transmission line group and transmission lines in the group one by one in the range of the number of the current transmission line group according to the current transmission line type, and receives a feedback signal sent by the multiplexing output selector;
the multi-channel output selector setting submodule obtains the total number of the equipment to be tested and the number of the current type of test interfaces of each equipment to be tested according to the upper computer-MCU communication protocol, calculates the total number of output channels needing to be switched, and determines the number of multi-channel output selectors according to the total number of the output channels; meanwhile, the multipath output selector also receives a feedback signal sent by the channel selection submodule;
the channel selection submodule is used for selecting the current output channels of the current multi-output selector in the current transmission line group, and switching the finally determined output channels in the multi-output selector one by one according to the MCU-PLD communication protocol until all the output channels are switched;
the signal receiving and transmitting submodule is used for receiving all current state parameters sent by the transmission line type setting submodule, the transmission line group setting submodule, the multiplexing output selector setting submodule and the channel selection submodule, splicing all the current state parameters according to a preset MCU-PLD communication protocol, and sending the spliced current state parameters to the PLD; the signal transceiver sub-module also receives a feedback signal sent by the PLD.
Preferably, the MCU-PLD communication protocol is configured to determine a flag bit of a type of a transmission line to be switched, determine a flag bit of a transmission line group to be switched, determine a flag bit of a multiplexing output selector to be switched, and determine a flag bit of a current output channel.
Preferably, the transmission lines are categorized according to impedance requirements and use in hardware circuit design.
Preferably, the number of the multiplexing selectors of the current type of transmission line is not less than the maximum number of transmission line groups of the current type of transmission line.
Preferably, the number of test interfaces of the transmission line of the current type of the device to be tested is an integer multiple of the number of channels of the single demultiplexer.
Preferably, the PLD analyzes the configuration parameters generated by the MCU main control module, and gives corresponding levels to each control signal pin 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 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, which is designed by combining a 5-layer hardware unit of an upper computer-MCU main control module-PLD-multiplexing selector-cable configuration module, transmission line type setting, transmission line group setting, multiplexing selector setting, channel selection, a 5-layer software processing structure for signal receiving and transmitting, an upper computer-MCU interaction protocol and an MCU-PLD interaction protocol, and according to the matching of different devices to be tested and the corresponding test interface types and the number of test interfaces, selects one type or a plurality of types of transmission lines, selects one group or a plurality of groups of transmission line groups to use, and selects one path or a plurality of paths of multiplexing selectors to select one path or a plurality of paths of multiplexing selectors. For different equipment to be tested, the invention matches the existing data communication hardware interface of the equipment to be tested through the line matching module, and can adapt to the test interface and the cable of the existing equipment 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
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 of a demultiplexer and a hardware interface according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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 main control module and a line 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 connected with the MCU main control module and the multi-output selector in a communication way; each output channel of the multi-channel output selector is connected with the hardware interface in a one-to-one correspondence manner 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 a 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 simultaneously 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 equipment to be tested.
Wherein the hardware interface is used to connect a plurality of different types of transmission lines.
Specifically, in the upper computer, a relation table of 'equipment to be tested-interface type-interface number' is established, and according to the equipment to be tested, the relation table is searched to find out the corresponding various test interfaces and the number of each type of test interface. According to the upper computer-MCU communication protocol (command issuing), a NextType (command flag bit issued by the upper computer and switched to the Next transmission line), a Next (command flag bit issued by the upper computer and switched to the Next transmission line), a ConnID (interface transmission line ID number flag bit issued by the upper computer), a ConnNumPerDev (number flag bit issued by the upper computer for each device for the interface), a DevNum (device number flag bit issued by the upper computer for the connected system) are assigned, and the flag bits are spliced to form a switching instruction and sent to the MCU main control module. Meanwhile, a feedback signal from the MCU main control module is monitored and received to start 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-bit decimal system 1-bit decimal system 3-bit decimal system 2-bit decimal system 2-bit decimal system
r r r r r
In table 1, bit NextType represents a command flag bit issued by the host computer to switch to the next type of transmission line. After the switching system of the present invention has completed switching all the test interfaces of a certain type of transmission line, the flag position 1 is set to the switching configuration of the transmission line of the new type of test interface, and the flag bit of 0 indicates that the current state is kept unchanged.
Bit Next, which indicates the command flag bit issued by the host computer to switch to the Next set of transmission lines. After the current line of the current testing equipment is tested, the upper computer marks the position 1, and if the position is not finished, the position is set to 0.
The ConnID bit represents an ID number zone bit of an output channel where a test interface data line of the upper computer issuing operation is located, and consists of 3 decimal numbers: 000 to 999, for example:
000: retaining;
001: x test interface line;
002: y test interface line;
003: z test interface line;
……;
999: XXX test interface line;
the ConnNumPerDev bit represents the number of the flag bits of the test interface of each device to be tested issued by the upper computer, and the flag bits consist of two decimal numbers: 00 to 99, for example:
00: the device under test has 1 such test interface;
01: the device under test has 2 such test interfaces;
02: the device under test has 3 such test interfaces;
……
99: there are 100 such test interfaces for the device under test.
The bit DevNum represents the number flag bit of the test equipment which is transmitted by the upper computer and is connected with the switching system, and the flag bit is used for informing the number of the currently connected transmission lines to be switched, and consists of two decimal numbers of 00-99,:
00: 1 equipment 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 replies of the upper computer-MCU communication protocol are shown in Table 2:
table 2 host-MCU communication protocol (Command reply)
FeedBack CurFeedBack Dev ConnID Chnl
1-bit decimal system 2-bit decimal system 2-bit decimal system 3-bit decimal system 2-bit decimal system
w w w w w
In Table 2
Bit FeedBack: and feeding back the flag bit for all the configuration commands issued by the upper computer. After the switching system completes all configuration operations, the position 1 and the upper computer read the flag bit in the returned data to perform line adjustment and measurement of the next type of test interface. The method comprises the following steps:
0: the configuration command issued by the upper computer is not completed;
1: the configuration command issued by the upper computer is completely completed;
other: no treatment was performed.
Bit CurFeedBack: the upper computer reads the flag bit to debug the line of the testing interface when the switching system completes the configuration of a certain transmission line of a certain testing device, specifically:
00: receiving a command, and completing the configuration of a certain transmission line;
01: receiving the command, and completing the configuration of a certain transmission line;
02: no command is received;
03: receiving a command, wherein a command field of a feed back or CurFeedBack is abnormal;
04: the ConnID field is illegal when a command is received;
05: receiving a command, wherein the configuration of a next transmission line test interface is abnormal;
06: receiving a command, wherein the number of the current transmission line groups exceeds a hardware design value;
07: receiving a command and sending a command exception;
other: no treatment was performed.
Bit Dev: some test equipment is being line commissioned. For example: a total of 3 devices are being commissioned, currently proceeding to device 2, the value of Dev is 01. The method comprises the following steps:
00: a 1 st device;
01: a 2 nd device;
02: a 3 rd device;
……
99: 100 th device.
Bit ConnID: transmission line type in line debug is underway. The method comprises the following steps:
000: retaining;
001: an X transmission line;
002: a Y transmission line;
003: a Z transmission line;
……
999: XXX transmission line.
Bit Chnl: the data line of a certain test interface being line debugged. For example: a piece of equipment has 4X test interfaces in total, and currently goes to the 3 rd X test interface, then CHnl is 02. The method comprises the following steps:
00: a 1 st test interface;
01: a 2 nd test interface;
02: a 3 rd test interface;
……
99: 100 th test interface.
The specific process is as follows:
the MCU main control module receives an instruction issued by the upper computer, firstly judges the data length, and if the data length is correct, enters the next step; otherwise, marking CurFeedBack (a configuration command issued by the upper computer, a feedback completion flag bit set by a certain interface transmission line of a certain test device) as 'not received command' according to the upper computer-MCU communication protocol, feeding back the command to the upper computer, and issuing the command again.
Taking out a NextType variable, if the transmission line is switched to the next transmission line, indicating that the transmission line which is switched at the present time and is still the same type of interface; if the switching is the switching to the next type of transmission line, the switching of all the transmission lines of the test interface of the last type is finished, and the switching of the transmission lines of the new type of test interface is started. Marking and proceeding to 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 main control module, and judging whether a corresponding relation exists. If so, entering the next step; otherwise, the CurFeedBack is set as 'ConnID field illegal', and the CurFeedBack is fed back to the upper computer.
Taking out ConnNumPerDev and DevNum variables, accumulating the ConnNumPerDev with DevNum times, calculating the accumulated number of the transmission line test interfaces of all the test devices, marking and then entering the next step.
And setting CurFeedBack as 'receiving a command', wherein the configuration of a certain transmission line is not completed, and feeding back the command to the upper computer. After the upper computer receives the command, the upper computer waits until the received CurFeedBack is the received command, a certain transmission line is configured to be completed, then a Next mark is started, and the Next transmission line is switched; if all transmission lines of a certain class are switched, the main controller sets a FeedBack (configuration command issued by the upper computer is fed back to the upper computer by all the FeedBack flag bits) to be 1, and after the upper computer receives the FeedBack, the upper computer starts the NextType to switch the transmission lines of the next class.
In one embodiment, the MCU main control module comprises a transmission line type setting sub-module, a transmission line group setting sub-module, a multiplexing output selector setting sub-module, a channel selecting sub-module and a signal receiving and transmitting sub-module.
The transmission line type setting submodule is used for classifying and classifying the data lines to be switched according to the impedance requirements in the hardware circuit design and the purposes (data signals and control signals) of the transmission lines. And setting the wiring length and the wiring width of the transmission line, the rule of equal length among lines and the layout and wiring distinction of the data signal lines and the control signal lines according to the parameter requirements of the transmission line of the test interface. And according to the specific hardware design, the maximum line group number of the transmission line of the current type and the maximum multiplexing output selector number of the transmission line of the current type are obtained. Searching the structure of the transmission line ID-transmission line type-transmission line group number of the MCU main control module, and finding out the current transmission line group number. If the number of the transmission line groups is less than the maximum number of the transmission line groups of the current type, entering a transmission line group setting sub-module; otherwise, the CurFeedBack is set as 'the current line group number of the received command exceeds the hardware design value', and marked as abnormal. After the transmission line group setting submodule returns, all the setting completion marks of the current type of line groups are fed back through an upper computer-MCU communication protocol, and the upper computer is informed to start switching of the next type of transmission lines of the equipment to be tested.
The transmission line group setting submodule is used for selecting transmission line groups required by the transmission lines to be switched, a pair of transmission lines are in one group, and the total number of the current transmission line groups does not exceed the maximum number of the current type of transmission lines in the transmission line type setting submodule. And in the current transmission line group number range and the wiring group number range of the transmission lines designed by hardware, selecting the transmission line groups and the transmission lines in the groups one by one, marking the current transmission line group ID and the transmission line ID in the groups, and entering a multiplexing output selector setting submodule. After the processing of the multiplexing selector setting submodule returns, the next group of transmission line group IDs and the transmission line IDs in the group are marked, and the multiplexing selector setting submodule is entered again. And returning to the transmission line type setting sub-module 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 number of transmission line test interfaces accumulated for all test equipment marked for that type is divided by the number of channels for a single demultiplexer. If the remainder is 0, that is, the number of test interfaces of the transmission line of all the test devices is just an integer multiple of the number of channels of a single multiplexing selector, the number of multiplexing selectors required by the group of transmission lines of the type is the quotient of the division expression; if the remainder is not 0, then the number of demultiplexer needed for the group of transmission lines of that type is the quotient of the above division expression plus 1. Starting from the current 1 st demultiplexer, setting the ID of the demultiplexer, setting the number of channels as the number of channels of a single demultiplexer, and entering a channel selection submodule. If the last demultiplexer of the line group of the type is circularly allocated, the demultiplexer ID is set, the number of channels is set as the remainder of the above-mentioned division expression, and the channel selection layer is entered. When the channel selection sub-module returns, the next demultiplexer ID is marked and the channel selection sub-module is entered again. After all the selectors are used, the transmission line set setting submodule is returned.
The channel selection sub-module is used for selecting the current channel of the current multiplexing selector in the current transmission line group. Firstly, comparing whether the current channel number is smaller than the channel number assigned by the multiplexing output selector layer, if so, reading the type of the incoming current transmission line, the ID of the current transmission line group and the ID of the current multiplexing output selector, acquiring the current channel number, entering the signal receiving and transmitting sub-module, and waiting for the return mark of the signal receiving and transmitting sub-module. If the FeedBack is successful, setting the feed back flag bit as ' the configuration command issued by the upper computer is not completed ', assigning the CurFeedBack as ' the received command ', configuring a certain path of data line is completed ', assembling the feed back value, the CurFeedBack value, the current equipment serial number Dev, the current data line type ConnID and the current transmission line interface serial number Chu according to an upper computer-MCU interactive protocol, and transmitting the assembled materials to the upper computer. And then, circularly waiting for a Next value, namely, issuing a command for configuring a Next transmission line by the upper computer, entering the Next channel setting of the channel selection submodule after receiving the command, and returning to the multi-output selector setting submodule after the channel serial number is larger than the channel number assigned by the multi-output selector layer.
The signal receiving and transmitting sub-module assembles and transmits data information according to the MCU-PLD interaction protocol, transmits the data from the MCU main control module to a PLD (programmable logic device), and monitors and receives feedback information. Firstly, judging whether a first multiplexing selector configured for the line group of the transmission line is currently used, if so, marking a last transmission line type variable LastLineType, a last group of transmission line group variable LastGroupChoice and a last multiplexing selector variable LastDeplexerchoice as null, and marking En (enable/disable flag bit) as 'set current'; if not, en is set to "disable current" and the last used demultiplexer is disabled. The type variable, the line group variable and the selector variable of the last transmission line are assigned to the field information required by the MCU-PLD communication protocol such as LineType, lineGroupChoice, demultiplexerChoice.
The MCU-PLD communication protocol is specifically shown in Table 3, and the value of the IO output port of the main controller is set. And (3) circulating the FeedBack value of the PLD until the FeedBack value is a 'finish' mark, namely the PLD finishes the disabling operation of the multiplexing output selector. Then, the parameter information such as the type of the current transmission line, the line group ID, the multiplexing selector ID, the channel serial number and the like is read, and the field variables required by the interaction protocol are assigned LineType, lineGroupChoice, lastGroupChoice, demultiplexerChoice, channelChoice to perform the switching setting. The FeedBack field of the PLD is read in a loop until it is a "complete" flag. The current transmission line type, line group and multiplexing selector information are respectively assigned to variables LastLineType, lastGroupChoice, lastDemultiplexerChoice, and successful marks are returned to the channel selection submodule.
TABLE 3 MCU-PLD communication protocol
Figure BDA0002753843330000111
In table 3, bit 15FeedBack indicates that the enable/disable completion FeedBack flag bit is set, and during the setting process of the PLD, the bit is 0, the mcu main control module reads the bit information, determines whether the setting operation is completed, and 0 indicates incomplete, and 1 indicates complete.
Bits 14:13En represent enable/disable flag bits that the MCU master control module enables a certain data path of a certain multiplexing selector of a certain transmission line group to be turned on, disables a certain multiplexing selector of a certain transmission line group, disables multiplexing selectors of all transmission line groups, or remains unchanged by setting the flag bits. Wherein 00 represents disabling all; 01 indicates disabling the current; 10 denotes a setting current; 11 denotes that it remains unchanged.
Bits 12:11linetype represent transmission line class selection flag bits to be switched, the transmission lines are roughly classified into class a, class B, and extended control lines, and the data bits are used to set the transmission line class. Wherein 00 represents a class a transmission line; 01 denotes a B-class transmission line, 10 denotes an extended control line, and 11 denotes a reservation.
Bits 10:7 linegroupchop represent the transmission line set selection flag bits to be switched, one transmission line set at a time, where,
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.
Bits 6:4 Deplexerchoice represent the mux selector select flag bits; a certain transmission line group inputs a corresponding multiplexing channel, the multiplexing channel is composed of at least 1 multiplexing selector, and the flag bit is used for selecting a certain multiplexing selector. 000 denotes the 2 nd, 010 denotes the 3 rd, 011 denotes the 4 th, 100 denotes the 5 th, 101 denotes the 6 th, 110 denotes the 7 th, and 111 denotes the 8 th.
Bit 3:0ChannelChoice represents a channel selection flag bit, specifically to a certain demultiplexer, which determines that a certain output channel is docked with an input transmission line, and can be set according to the functional logic description of a specific demultiplexer chip, where a 16-output channel demultiplexer is consumed, and is set 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 connection channel 7;0111: a connecting channel 8;
1000: a connection channel 9;1001: a joint passage 10;1010: a joint passage 11;1011: a junction channel 12;
1100: a connection channel 13;1101: a junction channel 14;1110: a joint passage 15;1111: and a connecting channel 16.
In a specific embodiment, the PLD in the line configuration module analyzes after receiving 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 multi-output selector in the hardware design. Specifically, the clock signal is read, if the clock signal reaches a trigger condition, the En and LineType marks are read, and when an enabling command is set or disabled, a pin configuration function is entered. En sets all of the demultiplexer E control signal pins to high if "disable all of the demultiplexer" is; if the current multi-output selector is disabled, determining a corresponding multi-output selector according to LineType, lineGroupChoice, demultiplexerChoice, channelChoice, and setting an E control signal pin of the corresponding multi-output selector to be high; if the current multi-output selector is set, the read parameter determines the multi-output selector, and the control signal pins such as S0/S1/S2/S3 (taking 16 as 1 as an example) are set to corresponding levels according to a chip manual. If the disabling or setting is successful, the FeedBack flag bit is set to be 'complete', otherwise, the FeedBack flag bit is set to be 'unfinished', and the FeedBack is returned to the MCU main control module according to the MCU-PLD interaction protocol.
In a specific embodiment, as shown in fig. 1, an input interface of the cable interface matching module is in butt joint with a hardware interface of the line configuration module, and the hardware interface is of multiple types and is respectively used for connecting different types of transmission line groups; and the output interfaces of the cable interface matching module are used for designing printed board circuits and cable interfaces according to the number of the devices to be tested and the types of transmission lines and are connected to all the devices to be tested. And classifying and forming corresponding PCB wiring and output interfaces according to the impedance requirements of the interface data lines, wherein the output interfaces are connected with the test interfaces of the devices to be tested.
The technical scheme of the invention is further described below with reference to fig. 2.
The present embodiment provides for switching between class a and class B transmission lines. The A-type transmission lines are Aline 0P-Aline 7P and Aline 0N-Aline 7N, and the wiring width of 7mil is designed and used in the PCB design. The B-type transmission lines are Bline 0-Bline 7, and the wiring width of 12mil is designed and used.
A device has one X interface and one Y interface, and 4 devices are tested in total at a time. The X interface belongs to a class A transmission line, and the Y interface belongs to a class B transmission line. The upper computer issues a command 000010003, and the MCU master control module receives and analyzes the command.
After analysis, the upper computer starts a new group of transmission line switching, the type of the X interface transmission line is A, and a single device is provided with 1 interface; the Y interface transmission line type is B class, and a single device is provided with 1 interface. In the test, a total of 4 devices are connected with the switching system of the invention, the number of channels of an X interface is 4, and the number of channels of a Y interface is 4.
In the hardware design of the embodiment, the maximum line group number of the A-type transmission line is 1 group, the maximum multiplexing selector number is 2, and the maximum number of the single multiplexing selector is 4 output channels; the maximum line group number of the B-type transmission line is 1 group, the maximum multiplexing selector number is 1, and the maximum number of the single multiplexing selector is 4 channels. According to the structure of the transmission line ID-transmission line type-transmission line group number of the MCU main control module, finding out that the line group number of the X interface transmission line is 1, and the maximum line group number of the A-type transmission line is not more than 1, thereby meeting the hardware design requirement; the number of the line groups of the Y-interface transmission line is 1, and does not exceed the maximum number of the line groups 1 of the B-class transmission line, and the Y-interface transmission line also meets the hardware design requirement.
First, a switching of the class a transmission line is entered. Since the class a transmission lines have only 1 group, only switching operation is required for the 1 group transmission lines. The group includes 4 lines, first switching the 1 st transmission line. And transmitting the 1 st group of line IDs, the 1 st group of line IDs and the line type of the X interface transmission line into the next layer. In this embodiment, a total of 4 devices are tested, the total number of X interfaces is 4, and the multiple output selector has 4 output channels. Therefore, the number of channels is just 1 times of the number of channels of a single selector, is just an integer times, and the number of interfaces is just equal to the number of channels of the single selector, and the switching of 4 channels can be completed only by multiplexing the selector 1. The ID of the demultiplexer 1 is recorded and transferred to the next layer. After entering the channel selection sub-module, the 1 st channel is selected, the serial number is recorded, and the line type, the line group ID, the line ID and the multiplexing output selector ID which are transmitted from the former sub-module are transmitted into the signal receiving and transmitting sub-module together. Because the group of lines is set for the first time, and only one X-interface transmission line is used, the multiplexing selector is only used, the disabling operation of the previous multiplexing selector is not needed, the configuration pins corresponding to S0 and S1 are directly searched according to the input parameters, the configuration pins are set to be Alin0P corresponding to the output, and meanwhile, the E signal is set to be low level, so that configuration is enabled. 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 main control module, the pins connected with the corresponding multiplexing output selectors S0, S1 and E signals are found according to pin configuration, and low level is output according to a chip manual, namely Out0 is selected and enabled, so that the input signal AinP and the output signal Alin3P are in butt joint. The MCU main control module feeds back a CurFeedBack signal 01 to the upper computer to indicate that the current line configuration is completed, and then the upper computer is cycled to wait for issuing a command for switching the next path or the next type of data line. After the test equipment completes the test of the channel, the upper computer sets the Next flag bit to 0, namely, switches to the Next channel of data, and after receiving the flag bit, the MCU main control module adds 1 to the channel number, switches to the Out1 channel of the multi-output selector 1, and sends the data to the line configuration module as follows: 0100000000000001. the programmable logic device PLD outputs pins of the corresponding demultiplexer S0, S1 and E signal connections as low level, high level and low level. After the four channels of the demultiplexer 1 are configured, the channels corresponding to the second line of the set of lines are returned to be continuously configured, and the method is not repeated. After the configuration of the group of transmission lines of the X interface is completed, the MCU main control module sets a feed back flag bit 1, namely, the configuration command issued by the upper computer is completed completely. After the upper computer receives the configuration instruction of the Y line, the rest of the process is similar to the above description of the present embodiment, and will not be repeated.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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 (8)

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 main control module and a line 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 connected with the MCU main control module and the multi-output selector in a communication way; each output channel of the multi-channel output selector is connected with the hardware interface in a one-to-one correspondence manner 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 a 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 simultaneously receives a feedback signal sent by the PLD;
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 equipment to be tested;
the MCU main control module comprises a transmission line type setting sub-module, a transmission line group setting sub-module, a multiplexing output selector setting sub-module, a channel selecting sub-module and a signal receiving and transmitting sub-module;
the transmission line type setting sub-module is used for determining the type of the current transmission line according to the type of the test interface of the equipment to be tested, receiving the feedback signal sent by the transmission line group setting sub-module and sending the feedback signal to the upper computer according to an upper computer-MCU communication protocol;
the transmission line group setting submodule selects a transmission line group and transmission lines in the group one by one in the range of the number of the current transmission line group according to the current transmission line type, and receives a feedback signal sent by the multiplexing output selector;
the multi-channel output selector setting submodule obtains the total number of the equipment to be tested and the number of the current type of test interfaces of each equipment to be tested according to the upper computer-MCU communication protocol, calculates the total number of output channels needing to be switched, and determines the number of multi-channel output selectors according to the total number of the output channels; meanwhile, the multipath output selector also receives a feedback signal sent by the channel selection submodule;
the channel selection submodule is used for selecting the current output channels of the current multi-output selector in the current transmission line group, and switching the finally determined output channels in the multi-output selector one by one according to the MCU-PLD communication protocol until all the output channels are switched;
the signal receiving and transmitting submodule is used for receiving all current state parameters sent by the transmission line type setting submodule, the transmission line group setting submodule, the multiplexing output selector setting submodule and the channel selection submodule, splicing all the current state parameters according to a preset MCU-PLD communication protocol, and sending the spliced current state parameters to the PLD; the signal transceiver sub-module also receives a feedback signal sent by the PLD.
2. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 1, wherein the host-MCU communication protocol is configured to determine command flags for switching transmission line types, determine command flags for switching transmission line groups, determine ID number flags for an output channel in which a transmission line is located, determine number flags for a certain type of test interface included in each device to be tested, and determine number flags for devices to be tested that are connected to the switching system.
3. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 1, wherein the MCU-PLD communication protocol is configured to determine a flag bit of a type of a transmission line to be switched, determine a flag bit of a group of transmission lines to be switched, determine a flag bit of a multiplexing selector to be switched, and determine a flag bit of a current output channel.
4. A transmission line switching system supporting multiple devices and interfaces according to claim 1, wherein said transmission lines are categorized according to impedance requirements and usage in hardware circuit design.
5. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 1, wherein the number of the demultiplexer of the current type of transmission line is not less than the maximum number of transmission line groups of the current type of transmission line.
6. The transmission line switching system supporting multiple devices and multiple interfaces according to claim 1, wherein the number of test interfaces of the current type of transmission line of the device under test is an integer multiple of the number of channels of a single demultiplexer.
7. 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 main control module, and assigns corresponding levels to each control signal pin of the demultiplexer according to the routing condition of the demultiplexer.
8. The transmission line switching system supporting multiple devices and interfaces according to claim 1, wherein the input interface of the line configuration module is matched and docked with the hardware interface, and the output interface is classified according to the impedance requirement of the transmission line and matched and docked with the test interface of each device to be tested.
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 CN112286845A (en) 2021-01-29
CN112286845B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

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

Also Published As

Publication number Publication date
CN112286845A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112286845B (en) Transmission line switching system supporting multiple devices and multiple interfaces
EP1402684B1 (en) Network documentation system with electronic modules
US7522626B2 (en) Communications system and method
US6687639B2 (en) Processing system for a wiring harness, a method for testing an electrical connection of a wiring harness, computer-readable storage medium and a wire connection assisting system
JPH09508980A (en) Optical fiber connection monitor, patch panel control system and its use
US7346814B2 (en) System and method for controlling power sources of motherboards under test through networks
CN106199321B (en) Connecting wire line sequence detection device
CN110851386B (en) Interface configuration equipment
CN116660719A (en) Universal ATE interface sub-motherboard testing method based on FLEX testing system
US5987531A (en) Control board system including a removable terminal stand which can easily conform to different specifications and power sources
CN110362525A (en) A kind of method, system and board for realizing Multi-serial port switching based on CPLD
US20080222404A1 (en) In-system programming system and method for motherboard
US6618629B2 (en) Communications interface for assembly-line monitoring and control
CN111835877B (en) Control system comprising a plurality of functional modules and method for addressing functional modules
US5764725A (en) Apparatus for testing the line continuity of telephone switch equipment
US20200356520A1 (en) Control device and inter-module communication method
CN115333617A (en) Multichannel optical module evaluation board and optical module test system
CN213184662U (en) Power supply circuit of LED display screen and electronic equipment
CN220671580U (en) Test platform, jig and system for server board card
CN210776661U (en) Automatic identifying and expanding device for JTAG link
JP3298342B2 (en) Misconnection prevention method
CN216210578U (en) Control device and CAN bus communication circuit thereof
CN110908275B (en) Multi-circuit control method based on single communication interface
CN217546406U (en) Circuit board convenient for adjusting line sequence
CN112636826B (en) Optical module testing system with OAM function and testing method

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