Background
With the development of the communication industry, the demand for a large-capacity broadband network is increasing day by day, the development and research of a high-density and high-speed optical fiber transmission system are more and more urgent, and a large-capacity wavelength division electrical cross transmission device gradually becomes a mainstream device form of optical communication transmission because the large-capacity wavelength division electrical cross transmission device can well meet the balance of performance and power consumption of operators. The advanced telecom computing platform (ATCA) standard is commonly adopted by communication equipment manufacturers at present, meets the requirements of an open standard hardware architecture platform, and provides a high-density and high-performance service system for carrier-level telecom applications. The hardware comprises a machine frame and a single board (including a processor board, a switching board and the like). Generally, a stable platform function and a fixed platform function are implemented in a hardware single board, and a flexible service function and an application function are implemented in a software manner. Along with the increase of the capacity, the number of the hardware single boards is more and more, various communication and management buses are required to be connected to each single board in the system architecture design, the position of each single board in the subframe is a slot position, and the slot position is distinguished depending on the hardware level, so that the control unit can correctly find each single board through the bus to complete the issuing of the monitoring configuration command and the reporting of the alarm. As shown in the common device bus slot management in FIG. 5, the control unit accesses the single boards at different positions through the management bus, and the slots 1-256 total 256 hardware slots correspond to 256 addresses and range from 0x00-0xFF (16-ary system).
The single board framework is composed of a low-power-consumption hardware system carrying an embedded software system, along with the more refined classification of the service level, the urgency is also highlighted for the distinguishing requirement of the single-disk service level, and as the structure of the hardware system is fixed, in order to meet the trend of software diversification, the hardware needs to provide a set of method for classifying according to the requirement, so that the software can be adapted to different functions, and the method is a single-disk type identification function. At present, the single board hardware is generally controlled by a central processing unit (cpu) (mcu) module, and is assisted by a large-scale logic device such as an FPGA or a CPLD module to perform port management. The initialization characteristic of the embedded operating system determines that before the firmware is downloaded, namely, at the initial stage after the single board is powered on, the hardware identification is required, so that the software can enter different branch module units, and different firmware stored in the memory can be selected and downloaded according to the requirements of different service types.
At present, slot position identification modes existing on a single board are realized by combining a backboard circuit, and then are distinguished through bus addresses. If there are 32 slots, the address is 4 th power of 2, and a 4-bit address bus is needed, and if there are 64 slots, a 5-bit address bus is needed, and so on.
The idea is to put a dialing unit on the board, and read the value of the dialing unit to determine the initialization type before initializing and downloading the firmware. The dialing unit is composed of some switch circuits, is arranged on a single board and needs to be set through a manual dialing process before leaving a factory, and has the defects that certain board layout area and hardware IO (input/output) resources are occupied, and the flexibility and the expandability are poor.
The second idea is a software and hardware combination mode, which is realized by using the existing IO plug-in similar three-eight decoder as a logic circuit, the output logic is controlled by simple input logic, and more identification types and numbers are expanded by realizing the amplification of addresses.
In summary, the slot position identification and the type identification of the existing veneer generally belong to two different functional modules, which are realized by two independent hardware circuits, the software hardware design aspect is comparatively split, the two circuits occupy more layout space and more input/output port resources on the whole veneer, and the veneer is not economical when considering the factors of the large-scale production cost.
Disclosure of Invention
The invention aims to provide a device capable of realizing slot position identification and veneer type identification, and provides a corresponding method and a corresponding system, aiming at the defect that the existing veneer slot position identification and veneer type identification generally belong to two different functional modules and are realized by two sets of independent hardware circuits so as to occupy the input and output space of a veneer.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
the invention provides a device for identifying slot address and type of a board card of communication equipment, which is used for identifying the slot address and type of the board card connected in the communication equipment and is provided with a control unit, and is characterized by also comprising:
the type unit is used for being connected with the board card to receive a type signal sent by the board card;
the slot position unit is used for connecting with the detection contacts of all slot positions in the board card to acquire address signals corresponding to the slot positions;
the identification unit comprises a single-board CPU which is used for being connected with the type unit and the output end of the slot position unit, receiving the corresponding type signal and the address signal and then identifying the type of the board card and the address of the board card;
the switching unit comprises an input end and an output end, the input end is connected with the control unit, the output end is respectively connected with the type unit and the slot position unit and can switch the connection object of the identification unit under the control of the control unit: the identification unit is connected with the slot position unit and identifies the address of the corresponding connected board card according to the address signal; the identification unit is connected with the type unit and identifies the type of the board card correspondingly connected according to the type signal.
The invention provides a device for identifying the slot position address and the type of a communication device board, which is characterized in that:
wherein the switching unit further comprises an inverter and a buffer, the inverter is used for carrying out inversion operation on the high-low level signal sent by the control unit,
the buffer is used for temporarily storing the sent type signals and address signals.
The invention provides a device for identifying the slot position address and the type of a communication device board, which is characterized in that:
wherein the inverter is an analog circuit type inverter,
the input pin of the phase inverter chip is used for receiving the low level enable signal sent by the control unit, and the low level enable signal is output by the output pin after level inversion, the input pin is connected with two enable terminal pins of the high 8 bits of the buffer, and the output pin is connected with two enable terminal pins of the high 4 bits of the buffer.
The invention provides a device for identifying the slot position address and the type of a communication device board, which is characterized in that:
wherein the buffer selects a 16-bit driving output device with tri-state output,
two high-8-bit input pins of the buffer are connected with 8 address buses of the slot position unit, a low-8-bit input pin of the buffer is connected with 8 address buses for carrying out mode identification inside the buffer, and the high-8-bit and low-8-bit pins of corresponding output ends are connected in a one-to-one correspondence manner and are connected with 8 input ends of the identification unit.
The invention provides a device for identifying the slot position address and the type of a communication device board, which is characterized in that:
the identification unit single-board CPU and the control unit single-board CPU are shared, and 8 corresponding input pins are connected with an upper 8-bit pin and a lower 8-bit pin which are output ends of the buffer.
The invention provides a device for identifying the slot position address and the type of a communication device board, which is characterized in that:
wherein the type unit is provided with a pull-up resistor and a pull-down resistor and is used for directly welding with a contact of a corresponding board card to give a fixed initial level,
the pull-up resistors are m and are connected in parallel,
the pull-down resistors are m and are connected in parallel, and are used for being directly welded with the contact of the corresponding board card to carry out circuit protection,
when the board card is accessed, the combination of m pull-up resistors and the combination of m pull-down resistors are accessed in parallel with the type information contacts of 8 board cards,
the value of m is equal to the number of input terminals of the type unit.
The invention also provides a method for identifying the slot position address and the type of the communication equipment board card, which is characterized by comprising the following steps:
receiving a type signal set by a board card;
acquiring an address signal corresponding to the slot position;
switching type signals or address types under control;
and identifying the board card type and the board card address after receiving the corresponding type signal and the address signal.
The method for identifying the slot address and the type of the board card of the communication equipment is characterized by comprising the following steps:
the type unit is connected with the board card to receive a type signal sent by the board card;
the slot position unit is connected with detection contacts of all slot positions in the board card to acquire an address signal corresponding to the slot position;
the identification unit comprises a single-board CPU, is connected with the type unit and the output end of the slot position unit, and identifies the type of the board card and the address of the board card after receiving the corresponding type signal and the address signal;
the switching unit comprises an input end and an output end, the input end is connected with the control unit, the output end is respectively connected with the type unit and the slot position unit, and the switching of the connection object of the identification unit is carried out under the control of the control unit: the identification unit is connected with the slot position unit and identifies the address of the corresponding connected board card according to the address signal; the identification unit is connected with the type unit and identifies the type of the board card correspondingly connected according to the type signal.
A communication device board card slot position address and type identification system is characterized by comprising:
the communication equipment board card slot address and type identification device; and
a memory and a processor, wherein the processor is capable of,
wherein, the memory is stored with a computer program running on the processor, the processor is connected with the single-board CPU of the device for identifying the slot position address and the type of the board card of the communication device for control,
the processor executes the computer program to realize the method for identifying the board card slot address and the type of the communication device.
The invention provides a communication equipment board card slot position address and type recognition system, which is characterized in that:
wherein, the control unit and the identification unit share a single-board CPU.
The invention has the following functions and beneficial effects: according to the communication equipment board card slot position address and type identification device provided by the invention, because the control unit is provided with a low level enabling signal, the switching unit type unit is connected with the slot position unit to switch two connection states, the type unit can be directly welded with the corresponding contact of the unit disk to access the type signal sent by the single disk hardware, the slot position unit is connected with the detection contact of the slot position to obtain the address signal corresponding to the slot position, the identification unit is connected with the type unit and the input end of the slot position unit and can receive the corresponding type signal and the address signal for identification, and because the switching unit is arranged, the device can respectively collect the slot position information of the single board and the slot position interface for collecting the type information of the single board: slot unit and type interface: the type unit directly switches and sends the corresponding slot position information and the type information to the identification unit for identification, namely, the dual functions of identifying the type and the slot position address of one set of device are realized.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Fig. 1 is a circuit block diagram of an apparatus for communication device board card slot address and type identification according to an embodiment of the present invention.
Fig. 2 is a circuit diagram of an apparatus for communication device board card slot address and type identification according to an embodiment of the present invention.
In the wavelength division electrical cross system, the system is divided into a main control unit (also called a main control board or a main control single board), a service unit (also called a service board or a service single board), a fan power supply and the like. The service unit processes the conversion of the communication signal, the main control unit manages through the service single boards of different slot positions of the system bus, the bus is in a sharing relationship and needs to be distinguished by address, therefore, an independent address needs to be allocated to each slot position, and the address is named as GID.
The communication device slots used in this embodiment support 256 slots at maximum, so that 8-bit addresses exist, and the value range of the GID is 256 at maximum. The slot position address is detected by the service single board and reported to the system for management. The single board software needs to obtain the address GID information before loading the system initialization firmware at an early stage of operation. Due to different service processing, the single board carries different pluggable optical modules and other accessories to form different service single board types such as a branch board, a circuit board and the like. As the hardware main device platforms are the same, only after the service single board TYPE as the hardware is determined, the software can decide to enter different initialization branches to download corresponding firmware after obtaining the service single board TYPE of the hardware, the function of distinguishing the service single board TYPE by the hardware is to distinguish different TYPEs of single boards, the TYPE is named TYPE, the value range of the TYPE is 256 maximum, and the subsequent requirements can be fully met corresponding to 256 classification TYPEs.
Generally, the types of service boards are divided into more than ten kinds, and the service boards are expanded with the needs of users. In the software initialization process, two pieces of information of GID and TYPE are obtained, and the initialization of the next link can be started only after the work of slot position address identification and TYPE identification is completed.
The present invention is to solve the problem of identifying the address of the slot position of the communication device where different service boards (also called boards) are connected and the type of the corresponding board (board) in the above process.
As shown in fig. 1 and 2, the apparatus 100 for identifying the slot address and the type of the board card of the communication device has a control unit 10, a type unit 20, a slot unit 30, an identification unit 40, and a switching unit 50.
The control unit 10 is generally given by an output pin of a single board CPU or a logic device, in this embodiment, the single board CPU occupies 1 universal 3.3V IO pin of the single board CPU, and the output of the IO pin needs to be implemented by matching with a software code stored in a memory.
The type unit 20 is used for connecting with the card to receive the type signal sent by the card, and correspondingly provides an electrical contact for connecting with a corresponding output type signal of the card.
In this embodiment, the type unit 20 has a pull-up resistor and a pull-down resistor for direct soldering with the contacts of the respective board to give a fixed initial level. As can be seen from the above, the value range of TYPE is 256 at most, corresponding to 256 classification TYPEs, i.e. 288 electric contacts are needed, in order to adjust the current in the circuit, 8 pull-up resistors are arranged to increase the current, the 8 resistors are connected in parallel, and the resistance value is 4.7K omega; 8 pull-down resistors are arranged for absorbing and reducing current, are connected in parallel, and have a resistance value of 1K omega.
The 8 pull-up resistors and the 8 pull-down resistors are used for being directly welded with the contacts of the corresponding board cards to give a fixed initial level, and when the board cards are connected, the combination of the 8 pull-up resistors and the combination of the 8 pull-down resistors are connected in parallel with the type information contacts of the 8 board cards.
And the slot position unit 30 is used for connecting with the detection contacts of all slot positions in the board card to acquire the address signal corresponding to the slot position.
The slot position unit is composed of a series resistor 51 omega and a pull-up resistor 10K omega, is usually input by 8 external address buses and supports 256 maximum slot positions, and the resistors are connected in series in the board to reduce signal interference.
As can be seen from the above, the value range of GID is 256 at the maximum, corresponding to 256 classification types, i.e. 28That is, 8 electrical contacts are needed, and correspondingly, as shown in fig. 2, 8 series resistors are connected in parallel and 8 pull-up resistors are connected in parallel, and when the board card is accessed, the combination of the 8 series resistors and the combination of the 8 pull-down resistors are accessed in parallel with the slot address contacts of the 8 board cards.
And the identification unit 40 comprises a single board CPU, and is used for connecting with the output ends of the type unit 20 and the slot unit 30, and identifying the board card type and the board card address after receiving the corresponding type signal and address signal. The corresponding 8 input pins are connected with the high 8-bit and low 8-bit pins which are the output ends of the buffer.
A switching unit 50, an input end of which is connected to the control unit, and an output end of which is connected to the type unit 20 and the slot position unit 30 respectively, and is capable of switching the connection object of the identification unit under the control of the control unit 10:
in the first state, the identification unit is connected with the slot position unit and identifies the address of the corresponding connected board card according to the address signal;
and in the second state, the identification unit is connected with the type unit and identifies the type of the correspondingly connected board card according to the type signal.
In this embodiment, the switching unit includes an inverter for performing an inverting operation on the high and low level signals sent by the control unit, and a buffer for temporarily storing the sent type signal and the address signal.
The inverter is an analog circuit type inverter, selects an MC74VHC1G02DFT1G chip packaged by SOT5 of an ON Semiconductor company, supplies power for 3.3V, and has 5 pins, wherein the No. 2 pin is used for receiving a low level enabling signal sent by the control unit and outputting the low level enabling signal by the No. 4 pin after level inversion, the No. 2 pin is connected with two enabling end pins of the high 8 bits of the buffer, and the No. 4 pin is connected with two enabling end pins of the high 4 bits of the buffer.
Obviously, the package can also be performed by using SC70-5 package, 6-TSSOP (5 lead), SC-88A or SOT-35 according to the requirement, and the packaging mode is determined according to the application occasion and the space of the single board.
The buffer adopts a 16-bit drive output device with tri-state output, adopts an SN74LVT16244BDGG chip packaged by SOP48 of Texas instruments (Texas instruments) and supplies power by 3.3V, two input pins of the high 8 bits of the buffer are connected with 8 address buses of a slot position unit, the input pin of the low 8 bits of the buffer is connected with 8 address buses for internally carrying out pattern recognition, the high 8 bits and the low 8 bits of corresponding output terminals are connected together and connected with the recognition unit 40,
obviously, TVSOP48 packaging and SSOP48 packaging can be used for packaging according to requirements, and the packaging mode is determined according to the application occasion and the space of a single board.
Fig. 3 is a schematic step diagram of a method for identifying a slot address and a type of a board card of a communication device in an embodiment of the present invention.
As shown in fig. 3, when the device for identifying the slot address and the type of the board card of the communication device according to the first embodiment identifies the slot address and the type of the board card, the identifying step includes:
and step S1, receiving the type signal sent by the board card.
In particular, the type unit 10 receives the corresponding type signal from the electrical contact of the corresponding board.
In step S2, an address signal corresponding to the slot is acquired.
Specifically, the slot unit 30 is connected to the detection contacts of all slots in the board card to obtain the address signal corresponding to the slot.
In step S3, switching of the type signal or the address type is performed under control.
In this step is performed:
in the first state, the identification unit is connected with the slot position unit and identifies the address of the corresponding connected board card according to the address signal; and
and in the second state, the identification unit is connected with the type unit and identifies the type of the correspondingly connected board card according to the type signal.
Fig. 4 is a detailed sub-step diagram of step S3 of the method for identifying the slot address and the type of the board card of the communication device in the embodiment of the present invention.
The following are specific steps for switching using the circuit in embodiment 1 above:
step S3-1, the board CPU outputs low level to 2 pins of the input end of the inverter by IO 1;
in step S3-2, the 4 pin of the output terminal of the inverter outputs a high level, the enable terminals of the 1 and 48 pins of the buffer are turned on by a low level, the enable terminals of the 24 and 25 pins are turned off by a high level, the high 8-bit channel of the buffer is through, the low 8-bit channel is off,
the address signal GID of the board (the address signal corresponding to the slot is obtained by connecting the slot unit 30 with the detection contacts of all slots in the board) is sent to the high 8-bit pin of the buffer via the 8-bit address bus of the switching unit at the previous stage, and is directly sent to the identification unit at the subsequent stage.
That is, the board CPU IO1 outputs a low level to the 2 pin of the inverter input terminal as a trigger signal, and can switch to the state two: the identification unit is connected with the type unit and identifies the type of the board card correspondingly connected according to the type signal.
Step S3-3, the board CPU outputs high level to 2 pins of the input end of the inverter by IO 1;
in step S3-4, the 4 pin of the output terminal of the inverter outputs a low level, the enable terminals of the 1 and 48 pins of the buffer are turned off by a high level, the enable terminals of the 24 and 25 pins are turned on by a low level, the high 8-bit channel of the buffer is turned off, the low 8-bit channel is turned through,
the TYPE signal TYPE of the board card is sent to a low 8-bit pin of the buffer through an 8-bit address bus of a switching unit at the front stage, and is directly sent to an identification unit at the rear stage, and the identification unit reads 8-bit high and low level signals to identify the TYPE of the board card;
and step S4, identifying the card type and the card address after receiving the corresponding type signal and address signal.
Specifically, the identification unit 40 identifies the card type and the card address after receiving the corresponding type signal and address signal.
And finishing after the completion of the reading of the address signal GID and the TYPE signal TYPE is detected, if the address signal GID and the TYPE signal TYPE need to be read again, returning to execute the steps S1-S4 until the completion of the reading of the TYPEs and the slot address information of all the boards and the completion of the identification.
This embodiment also provides communication equipment board draw-in groove address and type identification system, includes:
the communication equipment board card slot address and type identification device; and
a memory and a processor, wherein the processor is capable of,
the processor is connected with the single board CPU of the communication equipment board card slot address and type identification device for control, and the steps S1-S4 of the communication equipment board card slot address and type identification method are realized when the processor executes the computer program.
Obviously, as an optimized embodiment, the control unit, the identification unit, and the processor may share a single board CPU, and correspondingly, the memory is connected to the single board CPU, and is configured to obtain the corresponding stored software code from the memory during running.
The embodiment has the following functions and beneficial effects: according to the communication equipment board card slot position address and type identification device provided by the invention, because the control unit is provided with a low level enabling signal, the switching unit type unit is connected with the slot position unit to switch two connection states, the type unit can be directly welded with the corresponding contact of the unit disk to access the type signal sent by the single disk hardware, the slot position unit is connected with the detection contact of the slot position to obtain the address signal corresponding to the slot position, the identification unit is connected with the type unit and the input end of the slot position unit and can receive the corresponding type signal and the address signal for identification, and because the switching unit is arranged, the device can respectively collect the slot position information of the single board and the slot position interface for collecting the type information of the single board: slot unit and type interface: the type unit directly switches and sends the corresponding slot position information and the type information to the identification unit for identification, namely, the dual functions of identifying the type and the slot position address of one set of device are realized.
The device and the system provided by the embodiment solve the defect that the slot address identification and the single board type identification cannot be shared at the same time in the prior art, fully utilize the multiplexing characteristic of the input port, flexibly realize the sequential reading function of the slot address identification and the single board type identification through simple high-low level control logic, simplify the redundant hardware design of the system, facilitate the saving of hardware port resources and reduce the economic cost.