CN202404575U - Multiplexing system for console serial port and debug serial port - Google Patents

Multiplexing system for console serial port and debug serial port Download PDF

Info

Publication number
CN202404575U
CN202404575U CN 201120561016 CN201120561016U CN202404575U CN 202404575 U CN202404575 U CN 202404575U CN 201120561016 CN201120561016 CN 201120561016 CN 201120561016 U CN201120561016 U CN 201120561016U CN 202404575 U CN202404575 U CN 202404575U
Authority
CN
China
Prior art keywords
serial ports
debug
controller
serial port
console
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.)
Expired - Lifetime
Application number
CN 201120561016
Other languages
Chinese (zh)
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN 201120561016 priority Critical patent/CN202404575U/en
Application granted granted Critical
Publication of CN202404575U publication Critical patent/CN202404575U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the utility model provides a multiplexing system for a console serial port and a debug serial port. According to the multiplexing system, the console serial port and the debug serial port of a central processing unit (CPU) are connected with input ports of a controller respectively and multiplex output ports of the controller, and a data transmitting terminal of the debug serial port of the CPU is connected with a trigger circuit. When the controller detects that the input ports connected with the data transmitting terminal of the debug serial port is in a high level state, the debug serial port is gated; otherwise, the console serial port is gated. According to the multiplexing system for the console serial port and the debug serial port, the console serial port and the debug serial port multiplex the output ports of the controller, and the gating of the console serial port and the debug serial port is achieved when the trigger circuit outputs high level, so that hardware resources are saved, maintaining and regulating of devices are facilitated, potential safety hazards in the process of maintaining are avoided, and the reliability of the system is improved.

Description

The multiplex system of a kind of Console serial ports and Debug serial ports
Technical field
The utility model relates to serial ports of computers expansion technique field, relates in particular to the multiplex system of a kind of Console serial ports and Debug serial ports.
Background technology
Serial ports is the expansion interface that adopts serial communication mode, is characterized in that communication line is simple, as long as a pair of transmission line just can be realized two-way communication, and cost is very low.Therefore (Central Processing Unit, CPU) in the systems development process, serial ports is basic, the most the most frequently used debugging interface at central processing unit.
Network Management Equipment is mainly used in the normal operation of maintaining network,, network can notify at once and handle when breaking down, and the efficient operation of coordinating, keeping network system.Different with general cpu system, the CUP system of Network Management Equipment comprises two serial ports, a Debug serial ports that is based on CPU software development debugging usefulness, and another is based on the Console serial ports that final user's configuration-system is used.Therefore no matter research staff's developing and debugging when being exploitation, user's configuration-system can use two serial ports to realize very easily respectively during still normal the use.
Because the cpu system of Network Management Equipment provides two serial ports; The Debug serial ports only uses when Breakdown Maintenance and system update, does not often connect the Debug serial ports in order to reduce the wasting of resources, promptly behind the level shifting circuit on the Console serial ports process circuit board; Be connected on system's panel through a RJ45 connector; And the Debug serial ports is only reserved 3 needle connector sockets through behind the level shifting circuit on circuit board, and when carrying out batch machining after the completion exploitation, removes this connector; So only need Console serial ports and a RJ45 connector to get final product when normally using, saved system resource in system.
But when cpu system breaks down or need carry out software upgrading and safeguard; Can only through the dismounting cabinet and on circuit board 3 needle connector sockets that link to each other with the Debug serial ports of welding, and then connect a RJ45 connector and could realize maintenance and debugging, therefore CPU; Great amount of time and energy have been wasted; Destroy the overall package of circuit board simultaneously, caused equipment to have potential safety hazard, thereby reduced the reliability of system.
The utility model content
In view of this; The utility model embodiment provides the multiplex system of a kind of Console serial ports and Debug serial ports; In order to solve existing Network Management Equipment when cpu system being safeguarded debugging,, thereby reduce the problem of system reliability because inconvenient operation possibly cause equipment to have potential safety hazard.
The utility model provides the multiplex system of a kind of Console serial ports and Debug serial ports, and this system comprises CPU1 and RS232 connector 5, and wherein said CPU1 comprises Console serial ports 2 and Debug serial ports 3, and this system also comprises: controller 4 and trigger circuit:
First couple of input port 4-1-1 of said controller, 4-1-2 are connected with data receiver 2-1 with the data sending terminal 2-2 of said Console serial ports 2; Second couple of input port 4-1-3 of said controller, 4-1-4 are connected with data receiver 3-1 with the data sending terminal 3-2 of said Debug serial ports 3; The output port 4-2-1 of said controller, 4-2-2 connect said RS232 connector 5, and output port 4-2-1, the 4-2-2 of said Console serial ports 2 and Debug serial ports 3 multiplexing said controllers 4;
The data sending terminal 3-2 of said Debug serial ports 3 is connected with said trigger circuit;
When said trigger circuit output high level, when said controller 4 detects the input port that is connected with the data sending terminal 3-2 of said Debug serial ports 3 and is high level, gating Debug serial ports 3 then, otherwise, gating Console serial ports 2.
The utility model embodiment provides the multiplex system of a kind of Console serial ports and Debug serial ports; The Console serial ports of CPU and Debug serial ports are connected with the input port of controller respectively in this system, and the output port of multiplexing this controller, and the data sending terminal of the Debug serial ports of this CPU is connected with trigger circuit; When controller detects the input port that is connected with the data sending terminal of Debug serial ports and is high level; Gating Debug serial ports then, otherwise, gating Console serial ports.A because output port of Console serial ports and Debug serial port controller; Through trigger circuit output high level; Can realize the gating of Console serial ports and Debug serial ports; Therefore saved hardware resource, made things convenient for the maintenance of equipment to debug, avoided the potential safety hazard that possibly cause in the maintenance process, thereby improved the reliability of system.
Description of drawings
The Console serial ports that Fig. 1 provides for the utility model and the structural representation of Debug serial port multiplexing system.
Embodiment
For the reliability that improves the Network Management Equipment cpu system, practice thrift cost and make things convenient for the maintenance debugging of equipment, the utility model provides the multiplex system of a kind of Console serial ports and Debug serial ports.
Below in conjunction with Figure of description, the utility model is elaborated.
The Console serial ports that Fig. 1 provides for the utility model and the structural representation of Debug serial port multiplexing system; This serial port multiplexing system comprises CPU1, controller 4, RS232 connector 5 and trigger circuit; The Console serial ports 2 and the Debug serial ports 3 that comprise of CPU1 wherein; Console serial ports 2 and Debug serial ports 3 are connected with two pairs of input ports of controller 4 respectively, and the output port of controller 4 connects RS232 connector 5, and the data sending terminal of Debug serial ports 3 is connected with trigger circuit.
Wherein, Controller comprises: complex programmable logic controller (Complex Programmable Logic Device; CPLD), programming in logic controller (Programmable Logic Device; PLD) and field programmable gate array (Field-Programmable Gate Array, FPGA).
Concrete; First couple of input port 4-1-1 of controller 4,4-1-2 are connected with data receiver 2-1 with the data sending terminal 2-2 of the Console serial ports 2 of CPU1; Second couple of input port 4-1-3 of controller 4,4-1-4 are connected with data receiver 3-1 with the data sending terminal 3-2 of the Debug serial ports 3 of CPU1; The output port 4-2-1 of controller 4,4-2-2 connect RS232 connector 5, and output port 4-2-1, the 4-2-2 of Console serial ports 2 and Debug serial ports 3 multiplex controllers 4; The data sending terminal 3-2 of Debug serial ports 3 is connected with trigger circuit.
When trigger circuit output high level; It is high level that controller 4 detects the input port that is connected with the data sending terminal 3-2 of Debug serial ports 3; Gating Debug serial ports 3 then, the output port 4-2-1 of data sending terminal 3-2, data receiver 3-1 and controller 4 through Debug serial ports 3, the data transmission between the 4-2-2 realize debug process; Otherwise; Be that controller 4 is when detecting the input port that is connected with the data sending terminal 3-2 of Debug serial ports 3 and being low level; Gating Console serial ports 2 then, the output port 4-2-1 of data sending terminal 2-2, data receiver 2-1 and controller 4 through Console serial ports 2, the data transmission between the 4-2-2 realize the layoutprocedure to system.
These trigger circuit comprise power supply, first resistance 6, second resistance 8 and trigger switch 7, wherein, an end ground connection of first resistance 6, the other end is connected with the data sending terminal 3-2 of Debug serial ports 3; One end of second resistance 8 connects power supply, and the other end is connected with an end of trigger switch 7, and the other end of trigger switch 7 is connected with the other end of first resistance 6.
Concrete; When trigger switch 7 breaks off; The data sending terminal 3-2 of Debug serial ports 3 is through first resistance, 6 ground connection; It is low level that controller 4 detects the input port that is connected with the data sending terminal 3-2 of Debug serial ports 3, and the output port 4-2-1 of data sending terminal 2-2, data receiver 2-1 and the controller 4 of Console serial ports 2, data transmission between the 4-2-2 are realized gating Console serial ports 2; When trigger switch 7 is communicated with; The data sending terminal 3-2 of Debug serial ports 3 connects power supply through second resistance 8; Through being high level after first resistance, 6 dividing potential drops; It is high level that controller 4 detects the input port that is connected with the data sending terminal 3-2 of Debug serial ports 3, and the output port 4-2-1 of data sending terminal 3-2, data receiver 3-1 and the controller 4 of Debug serial ports 3, data transmission between the 4-2-2 are realized gating Debug serial ports 3.
Wherein, the resistance of power source voltage value, first resistance and second resistance confirms that according to the voltage request between CPU and the controller for example the resistance of first resistance can be 10k, and the resistance of second resistance can be 1k, and supply voltage can be 3.3v.
Controller 4 is controlled the multiplexing of Console serial ports 2 and Debug serial ports 3 according to the high-low level of the detected input port that is connected with Debug serial ports 3 data sending terminals; When detecting the input port that is connected with the data sending terminal of Debug serial ports 3 and be high level, controller 4 uses the Debug serial ports to carry out data communication; Otherwise controller 4 uses Console serial ports 2 to carry out data communication.
Because any I/O port can be through the drop-down original state that disposes behind the electrification reset on the hardware, the therefore state of the input port through the trigger circuit Configuration Control Unit is kept at following code in the controller:
assign?MTXD?=?DEBUG?DTXD:CTXD;
assign?CRXD?=?DEBUG?1'bz:MRXD;
assign?DRXD?=?DEBUG?MRXD:1'bz;
always?(negedge?SYSTEM_RST?or?posedge?CPLD_CLK)
if(~SYSTEM_RST)
DEBUG?≤?DTXD;
Wherein, CRXD and CTXD are respectively the data reception signal and the data of Console serial ports and send signal; DRXD and DTXD are respectively the data reception signal and the data of Debug serial ports and send signal, and MRXD and MTXD are that the data reception signal and the data of RS232 connector output terminal are sent signal.Because draw on the hardware in the trigger circuit, it is high level that controller detects CTXD, gating Debug serial ports, otherwise, gating Console serial ports.
The utility model embodiment provides the multiplex system of a kind of Console serial ports and Debug serial ports; The Console serial ports of CPU and Debug serial ports are connected with the input port of controller respectively in this system, and the output port of multiplexing this controller, and the data sending terminal of the Debug serial ports of this CPU is connected with trigger circuit; When controller detects the input port that is connected with the data sending terminal of Debug serial ports and is high level; Gating Debug serial ports then, otherwise, gating Console serial ports.Because through control triggering electric circuit output high level; Can realize an output port of Console serial ports and Debug serial port controller; Therefore save hardware resource, made things convenient for the maintenance of equipment to debug; Avoid the potential safety hazard that possibly cause in the maintenance process, thereby improved the reliability of system.
Obviously, those skilled in the art can carry out various changes and modification to the utility model and not break away from the spirit and the scope of the utility model.Like this, belong within the scope of the utility model claim and equivalent technologies thereof if these of the utility model are revised with modification, then the utility model also is intended to comprise these changes and modification interior.

Claims (4)

1. the multiplex system of Console serial ports and Debug serial ports; Said system comprises middle central processor CPU (1) and RS232 connector (5); Wherein said CPU (1) comprises Console serial ports (2) and Debug serial ports (3); It is characterized in that said system also comprises: controller (4) and trigger circuit:
First pair of input port (4-1-1,4-1-2) of said controller is connected with data receiver (2-1) with the data sending terminal (2-2) of said Console serial ports (2); Second pair of input port (4-1-3,4-1-4) of said controller is connected with data receiver (3-1) with the data sending terminal (3-2) of said Debug serial ports (3); The output port of said controller (4-2-1,4-2-2) connects said RS232 connector (5), and the output port (4-2-1,4-2-2) of said Console serial ports (2) and the multiplexing said controller of Debug serial ports (3) (4);
The data sending terminal (3-2) of said Debug serial ports (3) is connected with said trigger circuit;
When said trigger circuit output high level, when said controller (4) detects the input port that is connected with the data sending terminal (3-2) of said Debug serial ports (3) and is high level, gating Debug serial ports (3) then, otherwise, gating Console serial ports (2).
2. the system of claim 1 is characterized in that, said trigger circuit comprise: power supply, first resistance (6), second resistance (8) and trigger switch (7);
Wherein, an end ground connection of said first resistance (6), the other end is connected with the data sending terminal (3-2) of said Debug serial ports (3);
One end of said second resistance (8) connects power supply, and the other end is connected with an end of trigger switch (7), and the other end of said trigger switch (7) is connected with the other end of said first resistance (6).
3. the system of claim 1 is characterized in that, when the two ends of said trigger switch (7) were communicated with, the data sending terminal (3-2) of said Debug serial ports (3) was a high level.
4. system as claimed in claim 3 is characterized in that, said controller comprises: complex programmable logic controller CPLD, programming in logic controller PLD and on-site programmable gate array FPGA.
CN 201120561016 2011-12-29 2011-12-29 Multiplexing system for console serial port and debug serial port Expired - Lifetime CN202404575U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201120561016 CN202404575U (en) 2011-12-29 2011-12-29 Multiplexing system for console serial port and debug serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201120561016 CN202404575U (en) 2011-12-29 2011-12-29 Multiplexing system for console serial port and debug serial port

Publications (1)

Publication Number Publication Date
CN202404575U true CN202404575U (en) 2012-08-29

Family

ID=46702210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201120561016 Expired - Lifetime CN202404575U (en) 2011-12-29 2011-12-29 Multiplexing system for console serial port and debug serial port

Country Status (1)

Country Link
CN (1) CN202404575U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008008A (en) * 2014-06-17 2014-08-27 厦门雅迅网络股份有限公司 Method for conducting multiplexing on debugging serial port in Linux system
CN106407107A (en) * 2016-08-31 2017-02-15 无锡市电子仪表工业有限公司 Auxiliary software debugging method of universal type optical module
CN108073481A (en) * 2016-11-16 2018-05-25 佛山市顺德区顺达电脑厂有限公司 The server system and its processing method of hardware operation information can be provided
CN112256513A (en) * 2020-10-29 2021-01-22 成都菁蓉联创科技有限公司 Method and device for debugging multiplexing of serial port and data serial port and controller

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008008A (en) * 2014-06-17 2014-08-27 厦门雅迅网络股份有限公司 Method for conducting multiplexing on debugging serial port in Linux system
CN104008008B (en) * 2014-06-17 2019-02-22 厦门雅迅网络股份有限公司 A kind of method of multiplexing debugging serial ports in linux system
CN106407107A (en) * 2016-08-31 2017-02-15 无锡市电子仪表工业有限公司 Auxiliary software debugging method of universal type optical module
CN108073481A (en) * 2016-11-16 2018-05-25 佛山市顺德区顺达电脑厂有限公司 The server system and its processing method of hardware operation information can be provided
CN108073481B (en) * 2016-11-16 2021-02-12 佛山市顺德区顺达电脑厂有限公司 Server system capable of providing hardware operation information and processing method thereof
CN112256513A (en) * 2020-10-29 2021-01-22 成都菁蓉联创科技有限公司 Method and device for debugging multiplexing of serial port and data serial port and controller
CN112256513B (en) * 2020-10-29 2023-10-20 成都菁蓉联创科技有限公司 Method, device and controller for debugging serial port and multiplexing data serial port

Similar Documents

Publication Publication Date Title
CN204883583U (en) A reverse big electricity charging system for intelligent terminal
CN103473193B (en) Portable electric device and peripheral expanding device
CN202404575U (en) Multiplexing system for console serial port and debug serial port
CN205193795U (en) Multi -functional interface system of extensible
CN104461992B (en) Electronic device
CN104133533A (en) Expansion board card system for supporting full-length PCIE
CN102567238A (en) Interface switching control method, portable terminal, portable mobile equipment, and input equipment
CN103326210B (en) A kind of switchable multi-functional cable
CN104486177B (en) A kind of extensive restructural RF switch network based on PXI buses
US20200034313A1 (en) Pluggable module identification system
CN202267962U (en) Bus interface circuit and electronic device
CN204009884U (en) A kind of many network interface cards NCSI management system
CN103218278B (en) Automatic detection and control device and automatic detection control method thereof
CN205942587U (en) Server
CN207008014U (en) A kind of test board of server logic Control card
CN204089768U (en) RS485 automatic reversing circuit
CN202495661U (en) USB conversion device
CN103631186B (en) A kind of on-board equipment plug and play test interface circuit and realize instant inserted and instant using type data transmission method
CN204480238U (en) A kind of universal serial bus switching device shifter
CN201860003U (en) Multiplying device for USB (universal serial bus) port
CN205193738U (en) Support PS2 and USB double nip keyboard of special function key
CN203644017U (en) CPU (central processing unit) starting state switching control circuit
CN204304161U (en) USB2.0, USB3.0 switch
CN204928796U (en) USB interface circuit and electronic equipment
CN204650486U (en) A kind of interactive teaching large-size screen monitors touch-control retransmission unit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20120829