Disclosure of Invention
The invention aims to solve the defects of the prior art and provides an integrated multi-interface debugger based on USB conversion.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
an integrated multi-interface debugger based on USB conversion comprises a hardware circuit unit;
the hardware circuit unit comprises a USB input module, a power supply module, a charging management module, a USB HUB chip, a USB-to-serial port chip, a four-way serial port-to-level chip, a USB network port conversion chip, a network port transformer, a DB9 male connector, a DB9 female connector, a console connector, an RS485 connector, an RJ45 connector, a Type-C charging port, a Micro USB charging port and a Lighting charging port;
the USB input module is connected with a USB port of a computer;
the USB input module is also connected with the power supply module, the charging management module and the USB HUB chip respectively;
the power supply module is also respectively connected with the charging management module, the USB-to-serial port chip, the four-way serial port-to-level chip, the USB-to-network port chip and the USB HUB chip;
the charging management module is also respectively connected with the Type-C charging port, the Micro USB charging port and the Lighting charging port;
the USB HUB chip is connected with the four-path serial port level conversion chip through the USB level conversion chip;
the four-path serial port level-conversion chip is also respectively connected with a DB9 male connector, a DB9 female connector, a console connector and an RS485 connector;
the USB HUB chip is also connected with the network port transformer through a USB network port conversion chip;
the network port transformer is also connected with an RJ45 interface;
the USB input module acquires a 5V power supply and USB data signals from a USB port of a computer, the signals are divided into two paths of USB signals after passing through a USB HUB chip, one path of USB signal is accessed into a USB-to-serial port chip, the USB signals are converted into serial port signals, the serial port signals are converted into level conversion chips through four paths of serial ports, TTL levels are converted into RS232 levels and RS485 levels, and then the signals are output through a physical interface DB9 male interface, a DB9 female interface, a console interface and an RS485 interface; the other path of USB signal is accessed to a USB network port conversion chip, the USB signal is converted into a network signal, and after level conversion is realized through a network port transformer, the network signal is output through a physical interface RJ45 interface;
the charging management module acquires a 5V power supply from the USB input module, and after protection processing and charging identification processing, the 5V power supply is led out through a Type-C charging port, a Micro USB charging port and a Lighting charging port to realize a mobile phone charging function;
the power module is used for providing power for the USB HUB chip, the USB transfer serial port chip, the four-way serial port transfer level chip, the USB transfer network port chip, the DB9 male interface and the charging management module.
Preferably, the USB input module is a male connector of USB Type-A.
Preferably, power module gets 5V power from USB input module, converts the 5V power into 3.3V and does filtering and steady voltage processing after through LDO, changes serial port chip, four ways serial ports to change level chip, USB to the net gape chip provides the 3.3V power for USB HUB chip, USB.
Preferably, the charging management module acquires a 5V power supply from the USB input module, outputs the power supply after PPTC current limiting, identifies a charging current by Lighting charging access, and adds identification resistors to the data lines D + and D-for voltage division, and sets the charging current to be 0.5A.
Preferably, the USB HUB chip is a GL850G chip.
Preferably, the network port transformer uses a general-purpose unshielded transformer.
Preferably, the device also comprises a shell, wherein the shell comprises an upper cover and a lower shell; the lower shell is divided into an upper layer and a lower layer which are separated by a clapboard; a PCB is fixedly arranged on the lower layer, and a power module, a USB HUB chip, a USB-to-serial port chip, a four-way serial port-to-level chip and a USB-to-network port chip are integrated on the PCB;
the front wall of the upper layer is provided with a plurality of wire outlet holes, and the rear wall is provided with a plurality of access holes; a plurality of compartments are arranged in the middle of the upper layer, and each compartment is fixed with a unidirectional stretching wire arranging device; the debugging line is arranged on the line arranging device, one end of the debugging line is connected with one access hole, and the other end of the debugging line penetrates out of one wire outlet hole;
the right side surface of the outer shell is connected with a USB Type-A male head through a cable, and the USB Type-A male head is connected with a USB input module; the outer right flank of casing still installs the female head of USBType-B, and the female head of USBType-B links to each other with power module.
Preferably, eight compartments are arranged in the middle of the upper layer; eight wire outlet holes are arranged in front of each compartment correspondingly; there are also eight access holes, one behind each compartment.
Preferably, the physical interfaces of the eight access holes are respectively: an RJ45 interface, an RJ45 interface, an RJ45 interface, an RJ45 interface, an RJ45 interface, a USB2.0 Type-A female head and a USB2.0 Type-A female head; correspond DB9 public first interface, DB9 female first interface, console interface, RS485 interface, RJ45 interface, Type-C charge mouthful, Micro USB charges mouthful and Lighting charges mouthful among the connection hardware circuit unit.
Preferably, the housing is rectangular parallelepiped shaped.
Compared with the prior art, the invention has the beneficial effects that:
by using the USB conversion principle, the invention integrates the network port, the console port, the DB9 male connector, the DB9 female connector, the RS485 interface, the USB Type-C charging interface, the Micro USB charging interface and the Lighting charging interface, meets the equipment debugging requirements of most hardware, and can be debugged on a computer with a USB port. In addition, the integrated cable is integrated, the cable does not need to be connected with the integrated cable, the telescopic wire arranging device structure is used, the size of the debugger is greatly reduced, convenience is improved, and the working efficiency and the user experience are improved.
Detailed Description
The present invention will be described in further detail with reference to examples.
It will be appreciated by those skilled in the art that the following examples are illustrative of the invention only and should not be taken as limiting the scope of the invention. The examples do not specify particular techniques or conditions, and are performed according to the techniques or conditions described in the literature in the art or according to the product specifications. The materials or equipment used are not indicated by manufacturers, and all are conventional products available by purchase.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. Further, "connected" as used herein may include wirelessly connected. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the description of the present invention, "a plurality" means two or more unless otherwise specified. The terms "inner," "upper," "lower," and the like, refer to an orientation or a state relationship based on that shown in the drawings, which is for convenience in describing and simplifying the description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "provided" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. To those of ordinary skill in the art, the specific meanings of the above terms in the present invention are understood according to specific situations.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As shown in fig. 1-2, an integrated multi-interface debugger based on USB conversion includes a hardware circuit unit;
the hardware circuit unit comprises a USB input module S11, a power supply module S12, a charging management module S13, a USB HUB chip S14, a USB-to-serial port chip S15, a four-way serial port-to-level chip S16, a USB-to-network port chip S17, a network port transformer S18, a DB9 male port S19, a DB9 female port S20, a console port S21, an RS485 port S22, an RJ45 port S23, a Type-C charging port S24, a Micro USB charging port S25 and a Lighting charging port S26;
the USB input module S11 is connected with the USB port of the computer;
the USB input module S11 is further connected to the power supply module S12, the charging management module S13 and the USB HUB chip S14 respectively;
the power supply module S12 is also connected with the charging management module S13, the USB to serial port chip S15, the four-way serial port to level chip S16, the USB to network port chip S17 and the USB HUB chip S14 respectively;
the charging management module S13 is also connected with a Type-C charging port S24, a Micro USB charging port S25 and a Lighting charging port S26 respectively;
the USB HUB chip S14 is connected with the four-way serial port level conversion chip S16 through the USB serial port conversion chip S15;
the four-way serial port level-shifting chip S16 is also respectively connected with a DB9 male interface S19, a DB9 female interface S20, a console interface S21 and an RS485 interface S22;
the USB HUB chip S14 is also connected with a network port transformer S18 through a USB network port conversion chip S17;
the network port transformer S18 is also connected with an RJ45 interface S23;
the USB input module S11 acquires a 5V power supply and USB data signals from a USB port of a computer, the signals are divided into two paths of USB signals after passing through a USB HUB chip S14, one path of USB signals is accessed to a USB-to-serial port chip S15, the USB signals are converted into serial port signals, the TTL levels are converted into RS232 levels and RS485 levels through a four-path serial port to level chip S16, and then the signals are output through a physical interface DB9 male interface S19, a DB9 female interface S20, a console interface S21 and an RS485 interface S22; the other path of USB signal is accessed to a USB network port conversion chip S17, the USB signal is converted into a network signal, and after level conversion is realized through a network port transformer S18, the network signal is output through a physical interface RJ45 interface S23;
the charging management module S13 obtains a 5V power supply from the USB input module S11, and after protection processing and charging identification processing, the charging management module is led out through a Type-C charging port S24, a Micro USB charging port S25 and a Lighting charging port S26 to realize the charging function of the mobile phone;
the power module S12 is used for providing power to the USB HUB chip S14, the USB to serial chip S15, the four-way serial level conversion chip S16, the USB to network interface chip S17, the DB9 male interface S19, and the charging management module S13.
Preferably, the USB input module S1 is a male connector of USB Type-A.
Preferably, the power module S12 takes a 5V power from the USB input module S11, converts the 5V power into 3.3V through LDO, and performs filtering and voltage stabilizing processing to provide 3.3V power for the USB HUB chip S14, the USB serial-to-serial port chip S15, the four-way serial-to-level chip S16, and the USB network-to-port chip S17.
Preferably, the charging management module S13 obtains the 5V power from the USB input module S11, and outputs the power after PPTC current limiting, Lighting charging access is used for charging current identification, identification resistors are added to the data lines D + and D-for voltage division, and the charging current is set to 0.5A.
Preferably, the USB HUB chip S14 is a GL850G chip.
Preferably, the network port transformer S18 uses a general-purpose unshielded transformer.
Preferably, the device also comprises a shell, wherein the shell comprises an upper cover S31 and a lower shell S32; the lower shell S32 is divided into an upper layer and a lower layer which are separated by a partition board; the upper cover S31 and the lower shell S32 are movable structures, and the upper cover is closed, fixed and bounced open through the automatic bayonet male head S28 of the upper cover and the automatic bayonet female seat S30 of the lower shell. A PCB S33 is fixedly arranged on the lower layer, and a power module S12, a USB HUB chip S14, a USB to serial port chip S15, a four-way serial port to level chip S16 and a USB to network port chip S17 are integrated on the PCB S33;
the front wall of the upper layer is provided with a plurality of wire outlet holes S29, and the rear wall is provided with a plurality of access holes S27; a plurality of compartments are arranged in the middle of the upper layer, and each compartment is fixed with a unidirectional stretching wire arranging device S36; the debugging wire is arranged on the wire arranging device S36, one end of the debugging wire is connected with an access hole S27, and the other end of the debugging wire penetrates out of a wire outlet hole S29;
the outer right side surface of the shell S32 is connected with a USB Type-A male connector S35 through a cable, and the USB Type-A male connector S35 is connected with a USB input module S11; the outer right side of the shell S32 is also provided with a USB Type-B female connector S34, and the USB Type-B female connector S34 is connected with the power module S12.
Preferably, eight compartments are arranged in the middle of the upper layer; eight wire outlet holes S29 are correspondingly arranged in front of each compartment; there are also eight access holes S27, one behind each compartment.
Preferably, the physical interfaces of the eight access holes S27 are: an RJ45 interface, an RJ45 interface, an RJ45 interface, an RJ45 interface, an RJ45 interface, a USB2.0 Type-A female head and a USB2.0 Type-A female head; the corresponding DB9 male connector interface S19, DB9 female connector interface S20, console interface S21, RS485 interface S22, RJ45 interface S23, Type-C charging port S24, Micro USB charging port S25 and Lighting charging port S26 in the connection hardware circuit unit.
Preferably, the housing is rectangular parallelepiped shaped.
The USB input module S11 is connected with a USB port of a computer, provides a 5V power supply and USB data signals, divides the signals into two paths of USB after passing through a USB HUB chip S14, one path of USB signals is accessed to a USB-to-serial port chip S15, converts the USB signals into serial port signals, converts TTL levels into RS232 levels and RS485 levels through a four-path serial port level conversion chip S16, and then outputs the signals through a physical interface DB9 male port S19, a DB9 female port S20, a console port S21 and an RS485 port S22; one path of USB signal is accessed to a USB network port conversion chip S17, the USB signal is converted into a network signal, and the network signal is output through a physical interface RJ45 interface S23 after level conversion is realized through a network port transformer S18; the charging management module S13 takes a 5V power supply from the USB input module S11, and after protection processing and charging identification processing, the charging management module is led out through a Type-C charging port S24, a Micro USB charging port S25 and a Lighting charging port S26, so that the charging function of the mobile phone is realized.
The USB input module S11 is a male connector of the USB Type-A and has the function of being connected with a computer USB to realize the acquisition of a 5V power supply and the access of a USB bus;
the power module S12 takes a 5V power supply from the USB input module S11, converts the 5V power supply into 3.3V after passing through an LDO (low dropout regulator chip), and performs a downward connection of a Type-C charging port S24 and a Micro USB charging port S25, L filtering and voltage regulation processing, so as to provide a 3.3V power supply for the following USB HUB chip S14, USB serial-to-serial port chip S15, four-way serial-to-level chip S16, and USB network-to-port chip S17, and provide a 5V power supply for the charging management module 13; the power module S12 preferably employs TC1265-3.3 VOA.
The charging management module S13 takes a 5V power supply from the USB input module S11, outputs the power supply after being limited by PPTC (self-recovery fuse), identifies the charging current by Lighting charging access, adds identification resistance voltage division on the data line D + and the data line D-, and sets the charging current to be 0.5A; lighting charging port S26.
The USB HUB chip S14 uses GL850G to support 4 downstream ports, which can fully support the USB2.0/1.1 specification, so that it is fully compatible with the host side and the transmission connection (high speed/full speed/low speed device transmission) of other USB device interfaces. GL850G also provides overload protection, provides good EMI/ESD handling, and self-power and bus-power auto-detect modes, so that the user does not have to re-insert or unplug the device.
The USB-to-serial port chip S15 adopts FT4232HL, is a level conversion chip used between USB and RS232/RS485/RS422, and data receiving, transmitting and protocol conversion are completed by the chip independently without manual intervention or writing of firmware of the chip, thereby bringing great convenience to designers.
The 4-path serial port level conversion chip S16 mainly realizes 3-path TTL level conversion to RS232 and one-path TTL conversion to RS485, wherein the 3-path TTL conversion RS232 uses 2 SP3232EEN chips (one chip converts 2 paths), and the converted signals are output through S19, S20 and S21; one path of TTL is converted into RS485, 1 MAX13488 chip is used, and the converted TTL is output through S22;
the USB port conversion chip S17 uses DM9621ANP to support 4-way 100M port forwarding, which is compatible with 10M.
The network port transformer S18 uses a general non-shielding transformer to realize level conversion and then output through an RJ45 interface.
When in use, the debugging wire is pulled out from the wire outlet hole S29 through the wire arranging device S36 and is automatically retracted after use. The right side of box has two parts, and one is the public head S35 of USB Type-A Type that uses the cable to draw for insert accomplish data input and get the electricity on the computer, and another is the female head S34 of USB Type-B, is used for external power supply' S input, increases the area and carries the ability.
The rear access hole S27 of the organizer S36 in the lower housing, for a total of 8, is from left to right: the first 5 are the RJ45 interfaces of hundred million net mouths, and the last three are the USB2.0 Type-a female connector.
If the wire arranging device S26 is a network wire arranging device, the wire arranging device preferably adopts a CAT6-3 wire arranging device of REXLIS, and the theoretical value of the transmission rate can reach 1 Gbps; if the USB wire arranging device is preferably a CA-725 wire arranging device of MCDODO, the charging current is 3A.
The using method comprises the following steps:
inserting a USB Type-A male head with a cable into a USB of a computer;
after the computer equipment manager is installed successfully, adding 4 com ports and a network adapter, wherein the 4 com ports correspond to a console interface, a DB9 male interface, a DB9 female interface and an RS485 interface; the network adapter corresponds to an RJ45 interface;
during debugging, pressing the automatic bayonet male head on the cover, bouncing the upper cover open, selecting different wire arranging devices in the compartment aiming at different equipment interfaces, inserting one end of a debugging wire into a back access hole, pulling out the wire arranging devices and the debugging cable, and inserting the other end of the debugging wire into the equipment interface through a wire outlet hole; in the debugging process, the cover can be closed after the cable arranging device is pulled out, and the cable is pulled out from the wire outlet hole, so that the debugging is not influenced;
the debugger comprises 5 data debugging interfaces and 3 USB charging interfaces, wherein corresponding squares are respectively provided with a USB-to-Type-C male connector (Type-C charging interface), a USB-to-Micro USB male connector (Micro USB charging interface) and a USB-to-Lighting male connector (Lighting charging interface) for charging mobile phones with different interfaces;
fifthly, after debugging is finished, the wire arranging device is pulled forward to release hands, the wire arranging device retracts the cable, the wire arranging device returns to the original compartment, and the cover is covered.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.