CN117724909A - Debugging serial port module and complete machine - Google Patents

Debugging serial port module and complete machine Download PDF

Info

Publication number
CN117724909A
CN117724909A CN202211104352.2A CN202211104352A CN117724909A CN 117724909 A CN117724909 A CN 117724909A CN 202211104352 A CN202211104352 A CN 202211104352A CN 117724909 A CN117724909 A CN 117724909A
Authority
CN
China
Prior art keywords
port
serial port
module
serial
optical port
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.)
Pending
Application number
CN202211104352.2A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202211104352.2A priority Critical patent/CN117724909A/en
Publication of CN117724909A publication Critical patent/CN117724909A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a debugging serial port module and a complete machine. The debugging serial port module is applied to a complete machine, and the complete machine at least comprises a processor and an optical port; the processor comprises an IIC module and a serial port module; the debugging serial port module comprises: a selection unit and an optical port-to-serial port unit; the optical port-to-serial port unit is detachably connected with the optical port; the input end of the selection unit is connected with the signal end of the IIC module and the signal end of the serial port module, the output end of the selection unit is connected with the optical port, and as the optical port-to-serial port unit which is detachable from the optical port is arranged, the selection unit selects the signal of the IIC module or the signal of the serial port module to be output to the optical port according to the connection state of the optical port-to-serial port unit and the optical port, and is not affected by whether the communication of the IIC module is normal or not when the adjustment is needed, therefore, the problem of debugging serial port of the whole machine output in the whole machine state can be solved, the risk problem brought in the process of detaching the whole machine is reduced, and the operation efficiency of adjustment is improved.

Description

Debugging serial port module and complete machine
Technical Field
The invention relates to the field of communication, in particular to a debugging serial port module and a complete machine.
Background
The processor (System on Chip, abbreviated as SOC, also called System on Chip) in the whole machine has a serial port MODULE (uart_module) inside, and the serial port (UART) defaults to a serial port socket connected to the PCB board, as shown in fig. 1, and when the board is debugged, the board is connected to the PC through the serial port to check and debug the status of the board. However, in the late debugging or outfield state, the single board can be installed into a complete machine, the serial port socket on the single board can also be covered by the machine shell, and at the moment, the state of the SOC inside the complete machine can not be checked and debugged by using the serial port under the condition of not unpacking.
Although the serial port communication with the SOC can be realized by using the transmission protocol of the network port as shown in fig. 2, when the complete machine fails, the network port may not be normally configured, that is, the serial port information cannot be printed and acquired through the network port, and the SOC inside the complete machine cannot be debugged without unpacking, which brings great difficulty to debugging work.
Disclosure of Invention
The embodiment of the invention provides a debugging serial port module and a complete machine, which at least solve the problem of how to conveniently realize debugging of the complete machine in the related technology.
According to one embodiment of the invention, a debug serial port module is provided and applied to a complete machine, wherein the complete machine comprises a processor and an optical port; the processor comprises an IIC module and a serial port module; the debugging serial port module comprises: a selection unit and an optical port-to-serial port unit;
the optical port-to-serial port unit is detachably connected with the optical port;
the input end of the selection unit is connected with the signal end of the IIC module and the signal end of the serial port module, and the output end of the selection unit is connected with the optical port;
the selection unit is used for selecting the signal of the IIC module or the signal of the serial port module to be output to the optical port according to the connection state of the optical port-to-serial port unit and the optical port;
optionally, if the optical port-to-serial port unit is connected to the optical port, the selecting unit establishes a connection between a signal end of the serial port module and a serial port socket of the optical port-to-serial port unit, so as to debug the whole machine through the serial port socket;
if the optical port-to-serial port unit is disconnected from the optical port, the selection unit establishes connection between the signal end of the IIC module and the optical port so as to perform optical fiber communication through the optical port when the whole machine works normally;
optionally, the signal end of the IIC module includes an SCL signal end and an SDA signal end, and the signal end of the serial port module includes a TXD signal end and an RXD signal end;
if the optical port-to-serial port unit is connected with the optical port, the output end of the selection unit outputs a TXD signal and a RXD signal of the serial port module;
if the optical port-to-serial port unit is disconnected from the optical port, the output end of the selection unit outputs an SCL signal and an SDA signal of the IIC module;
optionally, the selecting unit includes a first one-out-of-two switch and a second one-out-of-two switch;
a first input end of the first two-by-one switch is connected with the SCL signal end, and a second input end of the first two-by-one switch is connected with the TXD signal end;
the first input end of the second alternative switch is connected with the SDA signal end, and the second input end of the second alternative switch is connected with the RXD signal end;
the control end of the first alternative switch is connected with the control end of the second alternative switch and is connected with the same control signal so as to control the serial port socket to be connected with the TXD signal end and the RXD signal end when the optical port-to-serial port unit is connected with the optical port, and the optical port to be connected with the SCL signal end and the SDA signal end when the optical port-to-serial port unit is disconnected with the optical port;
optionally, the optical port-to-serial port unit includes a golden finger, and the optical port is connected with the optical port-to-serial port unit through the golden finger;
optionally, the optical port-to-serial port unit includes a pull-up resistor;
the first connecting end of the golden finger is connected with the first end of the pull-up resistor, and the second end of the pull-up resistor is connected with a first power supply;
if the optical port is connected with the optical port-to-serial port unit, a first connecting end of the golden finger is connected with a control end of the first two-in-one switch and a control end of the second two-in-one switch, an output end of the first two-in-one switch is controlled to be connected with a second input end of the first two-in-one switch, and an output end of the second two-in-one switch is connected with a second input end of the second two-in-one switch so as to control the serial port socket to be connected with the TXD signal end and the RXD signal end;
optionally, the selection unit further includes a pull-down resistor, a first end of the pull-down resistor is connected to the control end of the first one-out-of-two switch and the control end of the second one-out-of-two switch, and a second end of the pull-down resistor is grounded;
the pull-down resistor is used for controlling the output end of the first two-out-of-one switch to be connected with the first input end of the first two-out-of-one switch when the optical port is disconnected with the optical port-to-serial port unit, and the output end of the second two-out-of-one switch is connected with the first input end of the second two-out-of-one switch;
optionally, the optical port-to-serial port unit further includes a serial port conversion circuit; the serial port conversion circuit comprises an RS 232-RS 485 circuit; the RS 232-RS 485 circuit comprises a first state and a second state;
if the RS 232-RS 485 circuit is in the first state, the communication protocol of the serial port socket comprises an RS232 communication protocol;
if the RS 232-RS 485 circuit is in the second state, the communication protocol of the serial port socket comprises an RS485 communication protocol;
optionally, the serial port conversion circuit further comprises a status switch;
if the state switch is opened, the RS 232-RS 485 circuit works in the first state;
and if the transfer switch is closed, the RS 232-RS 485 circuit works in the second state.
According to another embodiment of the present invention, a complete machine is provided, where the complete machine includes a remote radio unit or an active antenna processing unit, and the remote radio unit or the active antenna processing unit includes the debug serial port module according to any one of the foregoing embodiments.
According to the invention, as the optical port-to-serial port unit which is detachable from the optical port is arranged, the selection unit selects the signal of the IIC module or the signal of the serial port module to be output to the optical port according to the connection state of the optical port-to-serial port unit and the optical port, the signal is not influenced by whether the communication of the IIC module is normal or not when the debugging is needed, and the optical port can normally realize the function of the optical port when the debugging is not needed, so that the problem of outputting the debugging serial port of the complete machine in the complete machine state can be solved, the risk problem brought in the process of detaching the complete machine is reduced, and the debugging operation efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic diagram of a debug interface of a complete machine in the prior art;
FIG. 2 is a schematic diagram of a debug interface of another complete machine in the prior art;
FIG. 3 is a schematic diagram of a debug serial module according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a debug serial port module according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a selection unit according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating connection between a debug serial port module and an optical port according to an embodiment of the present invention;
fig. 7 is a schematic signal diagram corresponding to a golden finger according to an embodiment of the present invention.
The reference numerals are as follows:
10-a processor; 20-optical port;
a 101-IIC module; 102-a serial port module; 301-a selection unit; 302-an optical port-to-serial port unit;
SPDT 1-a first two-by-one switch; SPDT 2-a second alternative switch;
r1-pull-up resistor; r2-pull-down resistor.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
In the current whole machine debugging, the transmission protocol of the network port can be used to realize serial port communication on the single board. When the serial port printing of the SOC is required to be checked, the data of the serial port module is mapped to the MAC module of the SOC, serial port information is used as a data source, and the data printing of the serial port is realized through the MAC-PHY-network port socket. When the whole machine is in fault, the PHY (Port Physical Layer ) can not normally configure the network port, and the communication path of the network port is abnormal, so that the printing and the acquisition of serial port information can not be realized, and the debugging work of a single board can not be realized. Secondly, the network port socket of the single board has no reserved opening on the shell for part of the whole machine, and debugging under the condition of not disassembling the whole machine cannot be realized. In addition, because the network port is a factor which is easy to generate faults, the access is used for realizing unreliable acquisition of serial port information. Based on the above, the application provides a debugging serial port module to solve the problem of realizing the serial port debugging of the whole machine in the whole machine state.
Example 1
The first embodiment of the present application provides a debug serial port module, as shown in fig. 3, which can be applied to a complete machine, and the complete machine includes a processor 10 and an optical port 20; the processor 10 includes an IIC module 101 and a serial port module 102; the debugging serial port module comprises: a selection unit 301 and an optical port-to-serial port unit 302. The whole machine may include a remote radio unit (Remote Radio Unit, abbreviated as RRU) or an active antenna processing unit (abbreviated as AAU), which is not limited in particular.
The connection relationship is as follows:
the optical port-to-serial port unit 302 is detachably connected with the optical port 20; the input end of the selection unit 301 is connected to the signal end of the IIC module 101 and the signal end of the serial port module 102, and the output end of the selection unit 301 is connected to the optical port 20.
The selection unit is used for selecting signals of the IIC module or signals of the serial port module to be output to the optical port according to the connection state of the optical port-to-serial port unit and the optical port.
Specifically, if the optical port-to-serial port unit 302 is connected to the optical port 20, the selecting unit 301 establishes a connection between the signal end of the serial port module 102 and the serial port socket of the optical port-to-serial port unit 302, so as to debug the whole machine through the serial port socket of the optical port-to-serial port unit.
If the optical port to serial port unit 302 is disconnected from the optical port 20, the selection unit 301 establishes connection between the signal end of the IIC module 101 and the optical port 20, so as to perform optical fiber communication through the optical port 20 when the whole machine works normally.
In this embodiment, since the optical port-to-serial port unit 302 detachably connected to the optical port 20 is provided, when the optical port-to-serial port unit 302 is connected to the optical port 20, the connection between the optical port-to-serial port unit 302 and the serial port module 102 of the processor can be established through the selection unit 301, so that the optical port is not affected by whether the optical port communication is normal, and when the adjustment is not required, the optical port 20 is connected to the IIC module 101 through the selection unit 301, and the function of the optical port can be normally realized. Therefore, even if the communication between the IIC module 101 and the optical port 20 is abnormal, the whole machine can be debugged through the serial port socket of the optical port-to-serial port unit 302, the whole machine is not required to be disassembled, the whole debugging serial port is output through the serial port socket of the optical port-to-serial port unit, the risk problem brought in the process of disassembling the whole machine can be reduced, and the debugging operation efficiency is improved.
IIC MODULEs, also referred to as IIC_MODULE, are also referred to as IIC interfaces in some instances. The IIC signal of IIC module 101 includes an SCL signal and an SDA signal; the serial port MODULE, which may also be referred to as uart_module, the serial port signals of the serial port MODULE 102 include uart_txd and uart_rxd (hereinafter may also be referred to as TXD signals and RXD signals).
In one embodiment, as shown in fig. 4, the selection unit 301 includes at least four input terminals I1, I2, I3, and I4, two output terminals O1 and O2, and a control terminal C1.
The specific signal connection to the port of the selection unit may be: the SCL signal of the IIC module 101 is connected to I1, the SDA signal is connected to I3, the TXD signal of the serial port module 102 is connected to I2, the RXD signal is connected to I4, the O1 and O2 of the selection unit 301 are connected to the optical port 20, the O1 is controlled to be connected to I1 while the O2 is connected to I3 (at this time, the function of the optical port is realized) under the control of the control signal of the connection C1, or the O1 is connected to I2 while the O2 is connected to I4 (at this time, the function of the serial port socket is realized by the connection of the optical port-to-serial port unit 302), that is, if the optical port-to-serial port unit 302 is connected to the optical port 20, the output end of the selection unit 301 outputs the TXD signal and the RXD signal of the serial port module 102, and if the optical port-to-serial port unit 302 is disconnected from the optical port 20, the output end of the selection unit 301 outputs the SCL signal and the SDA signal of the IIC module 101.
The selection unit 301 may realize a function of selecting a signal path by a controller, or may realize the function by a switching element.
Since the TXD signal of the serial port module 102 is a signal for transmitting data and the RXD signal is a signal for receiving data, the output terminal of the selection unit 301 outputs the TXD signal and the RXD signal, which represent connection of signal lines, and do not represent the direction of data transmission.
In one embodiment, the selection unit 301 includes a first one-out-of-two switch SPDT1 and a second one-out-of-two switch SPDT2.
The specific connections may be as follows:
the first input end I1 of the first two-one switch SPDT1 is connected with the SCL signal end, and the second input end I2 of the first two-one switch SPDT1 is connected with the TXD signal end;
the first input end I3 of the second one-out-of-two switch SPDT2 is connected with the SDA signal end, and the second input end I4 of the second one-out-of-two switch SPDT2 is connected with the RXD signal end;
the control end of the first switch-between-two SPDT1 is connected to the control end of the second switch-between-two SPDT2, and is used as the control end C1 together, and is connected to the same control signal, so as to control the serial port socket to connect the TXD signal end and the RXD signal end when the optical port-to-serial port unit 302 is connected to the optical port 20, and the optical port 20 to connect the SCL signal end and the SDA signal end when the optical port-to-serial port unit 302 is disconnected from the optical port 20.
The function of selecting the signal path is realized through two switches, the method is simple and convenient, the control is easy, and the cost is low.
The optical port 20 and the optical port-to-serial port unit 302 may be detachably connected to the optical port-to-serial port unit 302 by plugging.
In one embodiment, the optical port-to-serial port unit 302 includes a golden finger, and the optical port 20 and the optical port-to-serial port unit 302 are connected by the golden finger. The golden finger is used for realizing the plug-in connection, the plug-in connection is firm and the operation is simple and convenient.
In one embodiment, the signal paths of the selection unit 301 may be controlled by the control signals with different high and low levels, for example, when the optical port 20 is connected to the optical port to serial port unit 302, the control signal is high, when the optical port 20 is connected to the serial port module 102, the control signal is low, and when the optical port 20 is disconnected from the optical port to serial port unit 302, the optical port 20 is connected to the signal of the IIC module 101.
The method can be specifically connected with hardware in the following way:
the optical port-to-serial port unit 302 includes a pull-up resistor R1, a first connection end of the golden finger is connected to a first end of the pull-up resistor R1, and a second end of the pull-up resistor R1 is connected to a first power supply.
If the optical port 20 is connected to the optical port-to-serial port unit 302, the first connection end of the golden finger is connected to the control end of the first one-out-of-two switch SPDT1 and the control end of the second one-out-of-two switch SPDT2, the output end of the first one-out-of-two switch SPDT1 is controlled to be connected to the second input end of the first one-out-of-two switch SPDT1, and the output end of the second one-out-of-two switch SPDT2 is connected to the second input end of the second one-out-of-two switch SPDT2, so as to control the serial port socket to be connected to the TXD signal end and the RXD signal end.
It should be noted that, when the optical port to serial port unit 302 is connected to the optical port 20, a plurality of connection ends of the golden finger may be connected to the optical port 20 at the same time, and the golden finger interface on the optical port to serial port unit 302 includes a plurality of connection ends, where the first connection end is connected to the pull-up resistor R1, and of course, the optical port to serial port unit 302 further includes at least a second connection end and a third connection end connected to a serial port socket of the optical port to serial port unit 302, and a grounding end may also be provided, which is not limited.
The selection unit 301 further includes a pull-down resistor R2, where a first end of the pull-down resistor R2 is connected to the control end of the first one-to-two switch SPDT1 and the control end of the second one-to-two switch SPDT2, and a second end of the pull-down resistor R2 is grounded.
The pull-down resistor R2 is used for controlling the output terminal of the first one-second switch SPDT1 to be connected to the first input terminal of the first one-second switch SPDT1 and the output terminal of the second one-second switch SPDT2 to be connected to the first input terminal of the second one-second switch SPDT2 when the optical port 20 is disconnected from the optical port-to-serial port unit 302.
The resistance of the resistor is not limited, and may be selected as required, for example, the resistance of the pull-up resistor R1 may be 1K ohms, and the resistance of the pull-down resistor R2 may be 10K ohms. The high level voltage may be 3.3V, 5V or 12V, for example, without limitation, the first power source may be 3.3V.
In one embodiment, the optical to serial unit 302 may implement multiple serial protocol communications. Different serial port protocols of the serial port socket can be realized through an internal serial port conversion circuit, and the serial port socket can also be realized through an external pluggable data line.
For example, when implemented by a built-in circuit, the optical port-to-serial port unit 302 further includes a serial port conversion circuit, where the serial port conversion circuit includes an RS 232-to-RS 485 circuit, and the RS 232-to-RS 485 circuit includes a first state and a second state.
If the RS 232-RS 485 circuit is in the first state, the communication protocol of the serial port socket comprises an RS232 communication protocol; if the RS 232-RS 485 circuit is in the second state, the communication protocol of the serial port socket comprises an RS485 communication protocol.
The RS 232-RS 485 circuit works in a first state or a second state and can be controlled by a state switch, the first state can be a state that the state switch is opened, the RS 232-RS 485 circuit is not effective, and the serial port socket is an RS232 communication protocol. The second state can be a state that the state switch is closed, the RS 232-RS 485 circuit is effective, and the serial port socket is an RS485 communication protocol.
Of course, the optical to serial unit 302 may also include different specifications, where one specification is that the serial port socket is RS232 protocol, and one specification is that the serial port socket is RS485 protocol, and the serial port socket is plugged and used as required during use. For example, in the laboratory and in the short-distance debugging requirement, the optical port-to-serial port unit 302 of the RS232 protocol can be used, and when the required communication distance is long, the optical port-to-serial port unit 302 of the RS485 protocol can be selected, so that the device is suitable for the debugging application in the external field scene and has strong anti-interference capability.
It should be noted that, the optical port to serial port unit may be packaged as a PCB board or other integrated designs, and may be referred to as an optical port to serial port small board when packaged as a PCB board.
In one embodiment, the design of the debug serial port is realized by using an external optical port (optical fiber interface, also referred to as optical mouse cage) in the whole machine, and an optical port-to-serial port small plate is designed in the optical mouse cage, as shown in fig. 4, by inserting a golden finger into the optical mouse cage on the whole machine, serial port information in the whole machine is selectively transmitted by using an IIC signal of an optical module, so that the transmission of serial port information can be realized by using an existing structure of the whole machine in the whole machine state, that is, the case of covering a casing.
The following are illustrated:
the IIC signal (IIC signal comprises SCL and SDA) of a control optical module of a processor (SOC) of the complete machine and the signal (serial port comprises UART_TXD and UART_RXD) of the serial port module are subjected to signal selection through a one-out-of-two switch, and the output of the one-out-of-two signal is the IIC signal or the serial port signal is required to be distinguished through a control signal (such as the IIC_UART_ID signal).
The simple block diagram of the alternative switch is shown in fig. 5, which is equivalent to a single-pole double-throw switch, and the gating of signals is realized through the level high-low state of the iic_uart_id.
The iic_uart_id signal is a selection signal for selecting whether the IIC or UART is outputted by the one-out-of-two switch. The details are shown in Table 1 below:
TABLE 1
The implementation method is that the optical module RS0 pin is borrowed on the single board, and the connection of the signal on the single board is pulled down to GND through the resistor, so that the IIC_UART_ID signal is in a low-level 0 state at the moment, namely, the alternative switch on the single board is in an IIC signal state, and the use scene of the optical module inserted into the optical mouse cage is met; in the designed optical port-to-serial port small plate, the signal is pulled up to a 3.3v power supply through a resistor, a resistor voltage dividing circuit is formed by the signal and a pull-down resistor on a single plate in the whole machine, the state that the IIC_UART_ID signal is high-level '1' can be realized through proper resistor design, the UART signal selected at the moment can be known according to a selection table of one of two choices, and the use scene of the optical port-to-serial port small plate inserted in an optical mouse cage is met, and a schematic diagram is shown in fig. 6.
Different circuits can be designed on the switching small board to realize the RS232 signal or the RS485 signal output by the serial port socket. The UART signal outputted by the CPU of the whole machine is an RS232 protocol, the communication distance of the protocol is short, the protocol is very suitable for laboratory and short-distance debugging requirements, the serial port module can also realize the conversion from RS232 to RS485 signals through a circuit, realize the transmission of differential signals, and the protocol has long communication distance and good anti-interference capability and is more suitable for debugging application in external field scenes.
The signal diagram corresponding to the golden finger is shown in fig. 7, a CPU on a single board (complete machine) is connected with a card slot (female head of the golden finger) (20 signal pin pins in fig. 7 are connected with the CPU on the single board, the outer side is in the form of a female head of the golden finger), a plug (male head) of the golden finger is arranged on the optical port-serial port small board, and the plug is inserted into the card slot in a squirrel cage on the board during connection and use, so that the signal communication connection can be realized. Of course, the plug of the golden finger of the optical port-serial port small plate has the same structure as the plug of the optical module, and can be spliced with the optical port. When the whole machine works normally, the optical module is connected, and when the whole machine is abnormal and needs to be debugged, the optical module is pulled out to be connected with the optical port-to-serial port small plate, and the debugging can be carried out through the serial port socket on the optical port-to-serial port small plate, so that the debugging is simple and convenient.
It should be noted that, the single board in the above embodiment includes a PCB board of the whole machine, for example, may be a motherboard connected to the SOC.
It should be noted that, when the optical port-to-serial port small board is connected to the optical port, at least pin pins 1, 4, 5, 7 and 15 in the whole machine are connected to the optical port-to-serial port small board through golden fingers. The golden finger signals of the optical module are remapped to the optical port to serial port platelets as shown in table 2.
TABLE 2
Note that the signals of the pin connection in fig. 7 are only examples, and may be modified as needed, and do not represent limitation of the pin connection signals.
The use description of the optical port-serial port small plate comprises the following steps:
the RRU (also can be AAU) is in the complete machine state, the optical mouse cage defaults to connect with the optical module, at this moment, RS0 (IIC_UART_ID) is in the pull-down state in the complete machine defaults, at this moment, the SOC receives to be low level, SCL/SDA of the optical mouse cage is the normal IIC signal, can be used for configuring the optical module to use normally; when the optical port is plugged into the serial port small plate, the IIC_UART_ID signal on the small plate is pulled up by using a 1K resistor, the whole machine SOC receives a high level at the moment, the SOC can place serial port information UART_DBG_TXD/RXD of a serial port MODULE (UART_MODULE) on SCL/SDA of the optical mouse cage, the serial port information is sequentially connected to the outside of the whole machine through the optical mouse cage-golden finger-optical port-serial port small plate-serial port socket, and the connection serial port line can perform normal whole machine information inquiry and debugging work.
In this embodiment, the optical port of the whole machine is designed to realize the output of the debug serial port of the whole machine in the whole machine state. The process of disassembling the whole machine and the risk problems caused by the process are reduced, the fault positioning speed is increased, and the problem solving efficiency is improved.
Example 2
The embodiment also provides a complete machine, which comprises a remote radio unit or an active antenna processing unit, wherein the remote radio unit or the active antenna processing unit comprises the debugging serial port module according to any one of the first embodiment.
The RRU or the AAU comprising the debugging serial port module can be debugged without disassembling the whole machine in the debugging process, is convenient to use, and improves the competitiveness and the maintenance convenience.
As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The debugging serial port module is characterized by being applied to a complete machine, wherein the complete machine comprises a processor and an optical port; the processor comprises an IIC module and a serial port module; the debugging serial port module comprises: a selection unit and an optical port-to-serial port unit;
the optical port-to-serial port unit is detachably connected with the optical port;
the input end of the selection unit is connected with the signal end of the IIC module and the signal end of the serial port module, and the output end of the selection unit is connected with the optical port;
the selection unit is used for selecting the signal of the IIC module or the signal of the serial port module according to the connection state of the optical port-to-serial port unit and the optical port and outputting the signal to the optical port.
2. The debug serial module of claim 1, wherein,
if the optical port-to-serial port unit is connected with the optical port, the selection unit establishes connection between a signal end of the serial port module and a serial port socket of the optical port-to-serial port unit so as to debug the whole machine through the serial port socket;
if the optical port-to-serial port unit is disconnected from the optical port, the selection unit establishes connection between the signal end of the IIC module and the optical port, so that optical fiber communication is performed through the optical port when the whole machine works normally.
3. The debug serial module of claim 1, wherein the signal terminals of the IIC module comprise an SCL signal terminal and an SDA signal terminal, and the signal terminals of the serial module comprise a TXD signal terminal and a RXD signal terminal;
if the optical port-to-serial port unit is connected with the optical port, the output end of the selection unit outputs a TXD signal and a RXD signal of the serial port module;
and if the optical port-to-serial port unit is disconnected from the optical port, the output end of the selection unit outputs an SCL signal and an SDA signal of the IIC module.
4. The debug serial module of claim 3, wherein the selection unit comprises a first one-out-of-two switch and a second one-out-of-two switch;
a first input end of the first two-by-one switch is connected with the SCL signal end, and a second input end of the first two-by-one switch is connected with the TXD signal end;
the first input end of the second alternative switch is connected with the SDA signal end, and the second input end of the second alternative switch is connected with the RXD signal end;
the control end of the first alternative switch is connected with the control end of the second alternative switch and is connected with the same control signal, so that when the optical port-to-serial port unit is connected with the optical port, the serial port socket is connected with the TXD signal end and the RXD signal end, and when the optical port-to-serial port unit is disconnected with the optical port, the optical port is connected with the SCL signal end and the SDA signal end.
5. The debug serial module of claim 4, wherein the optical port-to-serial unit comprises a golden finger, and the optical port is connected with the optical port-to-serial unit through the golden finger.
6. The debug serial module of claim 5, wherein the optical port to serial unit comprises a pull-up resistor;
the first connecting end of the golden finger is connected with the first end of the pull-up resistor, and the second end of the pull-up resistor is connected with a first power supply;
if the optical port is connected with the optical port-to-serial port unit, the first connecting end of the golden finger is connected with the control end of the first two-in-one switch and the control end of the second two-in-one switch, the output end of the first two-in-one switch is controlled to be connected with the second input end of the first two-in-one switch, and the output end of the second two-in-one switch is connected with the second input end of the second two-in-one switch so as to control the serial port socket to be connected with the TXD signal end and the RXD signal end.
7. The debug serial module of claim 6, wherein the selection unit further comprises a pull-down resistor, a first end of the pull-down resistor is connected to the control end of the first one-out-of-two switch and the control end of the second one-out-of-two switch, and a second end of the pull-down resistor is grounded;
the pull-down resistor is used for controlling the output end of the first two-out switch to be connected with the first input end of the first two-out switch when the optical port is disconnected with the optical port-to-serial port unit, and the output end of the second two-out switch is connected with the first input end of the second two-out switch.
8. The debug serial module according to any one of claims 1-7, wherein the optical port to serial port unit further comprises a serial port conversion circuit; the serial port conversion circuit comprises an RS 232-RS 485 circuit; the RS 232-RS 485 circuit comprises a first state and a second state;
if the RS 232-RS 485 circuit is in the first state, the communication protocol of the serial port socket comprises an RS232 communication protocol;
and if the RS 232-RS 485 circuit is in the second state, the communication protocol of the serial port socket comprises an RS485 communication protocol.
9. The debug serial module of claim 8, wherein the serial port conversion circuit further comprises a status switch;
if the state switch is opened, the RS 232-RS 485 circuit works in the first state;
and if the transfer switch is closed, the RS 232-RS 485 circuit works in the second state.
10. The whole machine is characterized by comprising a remote radio unit or an active antenna processing unit, wherein the remote radio unit or the active antenna processing unit comprises the debugging serial port module according to any one of claims 1-9.
CN202211104352.2A 2022-09-09 2022-09-09 Debugging serial port module and complete machine Pending CN117724909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211104352.2A CN117724909A (en) 2022-09-09 2022-09-09 Debugging serial port module and complete machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211104352.2A CN117724909A (en) 2022-09-09 2022-09-09 Debugging serial port module and complete machine

Publications (1)

Publication Number Publication Date
CN117724909A true CN117724909A (en) 2024-03-19

Family

ID=90207472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211104352.2A Pending CN117724909A (en) 2022-09-09 2022-09-09 Debugging serial port module and complete machine

Country Status (1)

Country Link
CN (1) CN117724909A (en)

Similar Documents

Publication Publication Date Title
US10853305B2 (en) Method of communication for master device and slave device on synchronous data bus wherein master and slave devices are coupled in parallel
CN203277900U (en) Accessory
EP1684446A2 (en) A method and apparatus for testing optical network equipment
US6817890B1 (en) System and method for providing indicators within a connector assembly
US10210128B2 (en) Redirection of lane resources
CN106713094B (en) 1394 data acquisition module
CN112511370A (en) Signal test system with self-switching PHY (physical layer) mode
US6715019B1 (en) Bus reset management by a primary controller card of multiple controller cards
CN111538689A (en) Multi-channel PCIE (peripheral component interface express) adapter card with two heterogeneous ends
CN208141371U (en) A kind of multi-functional UART debugging board
CN111949464A (en) CPU network interface adaptability test board card, test system and test method
CN112019402A (en) Multi-functional debugging device of intelligence network card
CN117724909A (en) Debugging serial port module and complete machine
CN114116584A (en) Interface board card, user equipment and CPU test system
US7043586B2 (en) Data corruption avoidance on a backplane bus adapted to receive bus controller cards of different types
CN214176363U (en) PCIE equipment board card expansion connecting device for system level simulation accelerator verification environment
CN213365511U (en) Mainboard and server
CN107070547A (en) A kind of CPCI type gigabit Ethernet devices with failure monitoring ability
US8949105B2 (en) Hardware interface board for connecting an emulator to a network
US9465765B2 (en) All-in-one SATA interface storage device
US20040162923A1 (en) System and method to monitor connections to a device
CN210243811U (en) Communication module insertion detection circuit
CN216310776U (en) Interface board card, user equipment and CPU test system
CN206893961U (en) A kind of USB turns AccessPort line
CN116028409B (en) Adapter card, mainboard, computer, data transmission method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication