CN114281743A - Device and method for converting PCIE (peripheral component interface express) to RS232 interface and TTL (transistor-transistor logic) interface and storage medium - Google Patents
Device and method for converting PCIE (peripheral component interface express) to RS232 interface and TTL (transistor-transistor logic) interface and storage medium Download PDFInfo
- Publication number
- CN114281743A CN114281743A CN202111473585.5A CN202111473585A CN114281743A CN 114281743 A CN114281743 A CN 114281743A CN 202111473585 A CN202111473585 A CN 202111473585A CN 114281743 A CN114281743 A CN 114281743A
- Authority
- CN
- China
- Prior art keywords
- module
- interface
- pcie
- ttl
- pin
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000002093 peripheral effect Effects 0.000 title description 3
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 description 10
- 239000004973 liquid crystal related substance Substances 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 4
- 239000010931 gold Substances 0.000 description 4
- 229910052737 gold Inorganic materials 0.000 description 4
- 210000001503 joint Anatomy 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000013078 crystal Substances 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
The invention relates to a device, a method and a storage medium for converting PCIE to RS232 interface and TTL interface. The device for converting the PCIE to the RS232 interface and the TTL interface comprises a PCIE to UART module, wherein the PCIE to the UART module is electrically connected with a golden finger module; the PCIE-UART module is electrically connected with at least one selection module, one output of each selection module is electrically connected with a TTL-to-RS 232 module, and the other output of each selection module is connected with a connector through a 0 omega resistor; the selection pin of the selection module is electrically connected with the control circuit; and the TTL-to-RS 232 modules are respectively connected with connectors. The invention also provides a method for converting the PCIE to the RS232 interface and a TTL interface and a storage medium for storing the instructions of the implementation method, which are applied to the device for converting the PCIE to the RS232 interface and the TTL interface. When the TTL terminal and the RS232 terminal are connected, the states of the devices of the PCIE-to-RS 232 interface and the TTL interface are switched through the selection module, so that the same connector is suitable for different terminals.
Description
Technical Field
The invention relates to the field of interface design, in particular to a device, a method and a storage medium for converting PCIE to an RS232 interface and a TTL interface.
Background
With the rapid development of technology, more and more devices can be used more conveniently through interaction with a computer, such as a small liquid crystal panel, a printer, and even a communication base station and a machine tool, which also puts higher demands on the number of interfaces of the computer.
Many integrated industrial control computers only have one serial port or do not have the serial port at all, and the quantity of serial ports limits the quantity and the type of terminals connected with the integrated industrial control computers. Generally, when an interface is designed, a plurality of serial port cards are used for expanding more ports to expand the number of serial ports. A multi-serial port card is a device that can allocate multiple serial ports for terminals to connect to, through which each terminal can communicate with a host. The use of multiple user cards is the most convenient and simple solution to expand the number of computer peripherals. The PCIE slot is an ideal mode for leading out multiple serial ports, and the transmission rate can reach more than 10 GB/s. The existing multi-serial-port card with PCIE-to-4 serial ports on the market is provided with an RS232 interface, and RS-232 is one of the mainstream serial communication interfaces at present, but the level of the RS-232 interface is higher, and chips of interface circuits are easy to burn out. When a small liquid crystal panel or a liquid crystal display is connected, a TTL interface is usually used, the TTL interface belongs to an interface for transmitting data in a parallel mode, when the interface is adopted, a special interface circuit is not needed to be used at a driving board end and a liquid crystal panel end of the liquid crystal display, but a TTL data signal output by a driving board main control chip is directly transmitted to an input interface of the liquid crystal panel through a cable, in different scenes, different board cards are required to be selected according to a serial port or a TTL port adopted by a terminal, the circuit design is more complex, and the cost is higher.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present invention provides a device, a method, and a storage medium for converting PCIE to RS232 interface and TTL interface.
In a first aspect, the present invention provides a device for converting PCIE to RS232 interface and TTL interface, including: the system comprises a PCIE-UART module, wherein the PCIE-UART module supports conversion of a plurality of PCIE signals and UART signals.
The PCIE-UART module is electrically connected with the golden finger module; the PCIE-UART module is connected with at least one data pin of the golden finger module through a PCIE bus.
The PCIE-UART module is electrically connected with at least one selection module, one output of each selection module is electrically connected with a TTL-to-RS 232 module, and the other output of each selection module is connected with a connector through a 0 omega resistor; the selection pin of the selection module is electrically connected with the control circuit;
and the TTL-to-RS 232 modules are respectively connected with the connectors.
Furthermore, the PCIE-to-UART module is electrically connected to an output end of the power conversion module, the power conversion module is electrically connected to the power supply pin of the golden finger module, and the PCIE-to-UART module is electrically connected to the power supply pin of the golden finger module, wherein the power supply pin of the golden finger module provides a 3V3 electrical signal, and the power conversion module converts the 3V3 electrical signal into a 1V8 electrical signal.
Furthermore, the PCIE-to-UART module is electrically connected to a memory module through an I2C bus, the memory module and the I2C bus are both electrically connected to the power supply pin of the gold finger module, and the memory content of the memory module includes an MAC address.
Further, the control circuit is any one of a jump cap or a controller.
Furthermore, the jump cap comprises a No. 1 pin, a No. 2 pin and a No. 3 pin, wherein the No. 1 pin is connected with a 3V3 power supply through a pull-up resistor, the No. 3 pin is grounded, the No. 2 pin is electrically connected with a selection pin of the selection module, and the No. 2 pin in the jump cap is connected with the No. 1 pin or the No. 2 pin is connected with the No. 3 pin.
Furthermore, the controller directly or indirectly acquires the interface type of the terminal connected with the connector, and the controller sends a corresponding control signal to the selection module according to the interface type.
Furthermore, an indication circuit is arranged on the connector, and an RS232 terminal connected to the connector is provided with a first trigger structure corresponding to the indication circuit, wherein the first trigger structure enables the indication circuit to output a first signal; a TTL terminal connected to the connector is provided with a second trigger structure corresponding to the indicating circuit, and the second trigger structure enables the indicating circuit to output a second signal;
the indicating circuit is electrically connected with the controller, the controller is electrically connected with the selecting module, and the controller controls the corresponding selecting module according to the signal acquired from the target indicating circuit.
Furthermore, the indication circuit comprises at least two output pins, the two output pins are respectively connected with a pull-up power supply through pull-up resistors, the first trigger structure comprises a first number of grounding pins, the second trigger structure comprises a second number of grounding pins, and the grounding pins are grounded.
In a second aspect, the present application provides a method for converting PCIE to RS232 interface and TTL interface, including:
acquiring a target connector connected with a terminal;
acquiring the interface type of a terminal connected with a target connector;
setting a control circuit according to the interface type of a terminal connected with a connector, so that the control circuit controls a selection module corresponding to a target connector to be in a first state or a second state; the selection module is in a first state, and the selection module enables the PCIE-to-UART module to be electrically connected with the TTL-to-RS 232 module; and when the selection module is in the second state, the selection module enables the PCIE-to-UART module to be directly and electrically connected with the connector.
In a third aspect, the present application provides a storage medium for implementing a PCIE-to-RS 232 interface and a TTL interface, where the medium of the apparatus for implementing a PCIE-to-RS 232 interface and a TTL interface stores at least one instruction, and reads and executes the instruction to implement the method for implementing a PCIE-to-RS 232 interface and a TTL interface.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
the golden finger module is connected with a PCIE slot of the processor, the golden finger module is electrically connected with a PCIE-to-UART module, the PCIE-to-UART module is electrically connected with a selection module, one path of output of the selection module is connected with a TTL-to-RS 232 module, the TTL-to-RS 232 module is connected with a connector, the other path of output of the selection module is directly connected with the connector through a 0 omega resistor, when the connector is connected with an RS232 terminal, the selection module controls the signal of the PCIE-to-UART module to be communicated with the connector through the TTL-to-RS 232 module, and when the connector is connected with the TTL terminal, the selection module controls the PCIE-to-UART module to be directly connected with the connector through the 0 omega resistor, so that the device of the PCIE-to-RS 232 interface and the TTL interface can support both the TTL terminal and the RS232 terminal.
The connector of this application sets up indicating circuit, and the first trigger structure that RS232 terminal joint configuration corresponds, and TTL terminal joint configuration corresponds triggers the structure, and through the cooperation of first trigger structure or second trigger structure and indicating circuit, control indicating circuit output different signals, can judge whether the connector connects the terminal according to indicating circuit output end signal, judges whether the terminal that the connector is connected is RS232 terminal or TTL terminal. The indicating circuit is electrically connected with the controller, and the controller controls the corresponding selecting module according to the output signal of the indicating circuit, so that the device for adaptively controlling the PCIE-to-RS 232 interface and the TTL interface according to the terminal is realized.
The controller of the application is connected with the upper controller, a user sets configuration information of the interface types of the target connector and the terminal connected with the target connector by using the upper controller, the upper controller sends the configuration information to the controller, and the controller controls the selection module according to the configuration information to realize the control of the device for converting PCIE into the RS232 interface and the TTL interface according to the configuration information.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a device for converting PCIE to RS232 interface and TTL interface according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another possible apparatus for converting PCIE to RS232 interface and TTL interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an indication circuit, a first trigger circuit and a second trigger circuit according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a connection between a controller and a host controller according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for converting PCIE to RS232 interface and TTL interface according to an embodiment of the present invention.
The reference numbers and meanings in the figures are as follows:
1. PCIE changes UART module, 2, golden finger module, 3, power conversion module, 4, memory module, 5, TTL changes RS232 module, 6, selection module, 7, connector.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Example 1
Referring to fig. 1, an embodiment of the present invention provides a device for converting PCIE to RS232 interface and TTL interface, including: in the PCIE-to-UART module 1, in a specific implementation process, a feasible model of the PCIE-to-UART module is CH 384L. The PCIE-UART module 1 is electrically connected to a crystal oscillator circuit, and the frequency of the crystal oscillator circuit is 22.1184 MHz.
The PCIE-UART module 1 is electrically connected with the golden finger module 2; the golden finger module 2 comprises a power supply pin and a data pin, the power supply pin of the golden finger module 2 obtains an electric signal of 3V3 through a PCIE slot, the data pin of the golden finger module 2 is connected with a PCIE bus through the PCIE slot, and the data pin of the golden finger module 2 is connected with the PCIE-to-UART module 1 through at least one PCIE bus.
The PCIE-to-UART module 1 is electrically connected to an input of at least one selection module 6, the selection module 6 includes two outputs, one output of each selection module 6 is electrically connected to the TTL-to-RS 232 module 5, and the other output of the selection module 6 is connected to the connector 7 through a 0 Ω resistor; the TTL-to-RS 232 modules 5 are respectively connected with connectors 7. In a specific implementation process, a feasible selection module 6 adopts a SWITCH chip with a model number of 74CBTLV 2257; one possible implementation of the TTL to RS232 conversion module 5 is a chip of model TPT 3232. The TTL to RS232 conversion module 5 and the selection module 6 are electrically connected with power supply pins of the golden finger module 2 for power-on pins.
In a specific implementation process, the PCIE-to-UART module 1 is electrically connected to an output end of the power conversion module 3, the power conversion module 3 is electrically connected to the power supply pin of the gold finger module 2, and the PCIE-to-UART module 1 is electrically connected to the power supply pin of the gold finger module 2. The power supply pin of the golden finger module provides a 3V3 electric signal, and the power supply conversion module converts the 3V3 electric signal into a 1V8 electric signal. Specifically, one possible power conversion module is an RTQ2522 power chip.
In a specific implementation process, the selection pin of the selection module 6 is electrically connected with the control circuit; in the embodiment of the application, control circuit adopts and jumps the cap, jump the cap and include 1 number, pin 2 number pin and No. 3 pins, wherein 1 number pin connects 3V3 power through pull-up resistance, No. 3 pin ground connection, and No. 2 pin electric connection selects the selection pin of module, jump in the cap 2 number pin connection 1 number pin or No. 2 pin connection 3 number pin. When the No. 2 pin in the jump cap is connected with the No. 1 pin, a high level is provided for the selection pin of the selection module 6, so that the selection module 6 is in a first state, and the selection module electrically connects the PCIE-to-UART module 1 with the TTL-to-RS 232 module 5; when the pin 2 in the jump cap is connected with the pin 3, a low level is provided for the selection pin of the selection module 6, so that the selection module 6 is in a second state, and the selection module directly connects the output of the PCIE-to-UART module 1 to the connector 7 through the resistance of 0 Ω.
In a specific implementation process, the PCIE-to-UART module 1 is electrically connected to the memory module 4 through an I2C bus, the memory module 4 and an I2C bus are electrically connected to the power supply pin of the gold finger module 2, and the storage content of the memory module 4 includes an MAC address.
Example 2
Referring to fig. 2, the difference between the embodiment of the present application and embodiment 1 is that the control circuit of the control selection module 6 adopts a controller, and one possible controller is a CPLD. The controller is electrically connected with the selection pin of each selection module 6 through an IO port.
In a specific implementation process, the controller directly or indirectly acquires an interface type of a terminal connected with the connector, and the controller sends a corresponding control signal to the selection module 6 according to the interface type.
The controller directly obtains the interface type of the terminal connected with the connector in the following mode:
referring to fig. 3, an indication circuit is disposed on the connector 7, and the indication circuit includes at least two output pins, and the two output pins are respectively connected to a pull-up power source through pull-up resistors. When no terminal is connected, the output pin of the indicating circuit outputs a high level signal.
The method comprises the steps that a first trigger structure corresponding to an indication circuit is configured on an RS232 terminal connector connected to a connector, the first trigger structure comprises a first number of grounding pins, the grounding pins are grounded, and when the connector of the RS232 terminal is plugged into the connector, the grounding pins of the first trigger structure are connected to the indication circuit, so that an output pin of the indication circuit is grounded. The first trigger structure enables the indicating circuit to output a first signal, and the first signal comprises a first number of low-level signals.
And configuring a second trigger structure corresponding to the indicating circuit on a TTL terminal connector connected to the connector, wherein the second trigger structure comprises a second number of grounding pins, and the grounding pins are grounded. When the connector of the TTL terminal is inserted into the connector, the grounding pin of the second trigger structure is connected to the indicating circuit, so that the output pin of the indicating circuit is grounded. The second trigger structure causes the indication circuit to output a second signal including a second number of low levels.
The indicating circuit is electrically connected with the controller, specifically, an output pin of the indicating circuit is connected with the controller through a parallel-serial conversion interface, or the output pin of the indicating circuit is directly electrically connected with the controller. The controller sends a corresponding control signal to the selection module 6 through the IO port to control the corresponding selection module 6 according to a signal obtained from the target indication circuit.
The controller indirectly obtains the interface type of the terminal connected with the connector in the following mode:
referring to fig. 4, the controller is connected to the upper controller through a bus, and the upper controller is connected to the memory through the bus and connected to the input system through the bus. And the user configures the target connector and the interface type of the terminal connected with the target connector according to the actual connection condition through the input system. The upper controller sends the configuration signal to the controller.
Example 3
The embodiment of the application provides a method for converting PCIE to an RS232 interface and a TTL interface, which comprises the following steps:
and acquiring a target connector connected with the terminal, and acquiring the interface type of the terminal connected with the target connector. Setting a control circuit according to an interface type of a terminal connected with a connector, so that the control circuit controls a selection module corresponding to a target connector to be in a first state or a second state, specifically, when the interface type of the terminal is an RS232 type, setting the control circuit so that the corresponding selection module is in the first state; when the interface type of the terminal is a TTL type, setting a control circuit to enable the corresponding special responsibility module to be in a second state; the selection module is in a first state, and the selection module enables the PCIE-to-UART module to be electrically connected with the TTL-to-RS 232 module; and when the selection module is in the second state, the selection module enables the PCIE-to-UART module to be directly and electrically connected with the connector.
In a specific implementation process, referring to fig. 5, the method for implementing a PCIE-to-RS 232 interface and a TTL interface includes, by using an indication circuit to obtain a target connector connected to an acquisition terminal, and obtain an interface type of a terminal connected to the target connector:
the controller collects the output signal of the indicating circuit on the connector.
If the indicating circuit outputs the third signal, namely outputs all high level signals, the controller judges that the connector is not connected with the terminal, and the controller controls the selection module to keep the existing state.
If the indicating circuit outputs the first signal, namely the first number of low level signals are included, the controller judges that the RS232 terminal is connected to the connector. The controller controls the corresponding selection module to be in the first state.
If the indicating circuit outputs the second signal, namely the second signal comprises a second number of low level signals, the controller judges that the TTL terminal is connected to the connector. The controller controls the corresponding selection module to be in the second state.
Example 4
The embodiment of the application provides a storage medium for realizing a PCIE-to-RS 232 interface and a TTL interface, wherein the medium of a device for realizing the PCIE-to-RS 232 interface and the TTL interface stores at least one instruction, and the method for realizing the PCIE-to-RS 232 interface and the TTL interface by reading and executing the instruction is provided.
The invention utilizes the golden finger module 2 to connect with a PCIE slot of a processor, the golden finger module 2 is electrically connected with a PCIE-to-UART module 1, the PCIE-to-UART module 1 is electrically connected with a selection module 6, one path of output of the selection module 6 is connected with a TTL-to-RS 232 module 5, the TTL-to-RS 232 module 5 is connected with a connector 7, the other path of output of the selection module 6 is directly connected with the connector 7 through a 0 omega resistor, when the connector 7 is connected with an RS232 terminal, the selection module 6 controls the signal of the PCIE-to-UART module 1 to be communicated with the connector through the TTL-to-RS 232 module 5, when the connector 7 is connected with the TTL terminal, the selection module 6 controls the PCIE-to-UART module 1 to be directly connected with the connector 7 through the 0 omega resistor, and the device of the TTL-to-RS 232 interface and the TTL interface of the invention can support both the terminal and the RS232 terminal.
The connector 7 of this application sets up indicating circuit, and the RS232 terminal joint disposes the first trigger structure that corresponds, and the TTL terminal joint disposes the second trigger structure that corresponds, through the cooperation of first trigger structure or second trigger structure and indicating circuit, can control indicating circuit's output signal. The indicating circuit is electrically connected with the controller, the controller judges whether the connector is connected with a terminal or not according to an output signal of the indicating circuit, the RS232 terminal is judged to be a TTL terminal when the terminal connected with the connector is judged, and the controller controls the corresponding selection module 6 according to a judgment result, so that the device for converting PCIE into the RS232 interface and the TTL interface is controlled in a self-adaptive mode according to the terminal.
The controller of the application is connected with the upper controller, a user sets configuration information of the interface types of the target connector and the terminal connected with the target connector by using the upper controller, the upper controller sends the configuration information to the controller, and the controller controls the selection module according to the configuration information to realize the control of the device for converting PCIE into the RS232 interface and the TTL interface according to the configuration information.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A device for converting PCIE to RS232 interface and TTL interface is characterized by comprising: a PCIE-to-UART module (1), wherein,
the PCIE-UART module (1) is electrically connected with the golden finger module (2);
the PCIE-UART module (1) is electrically connected with at least one selection module (6), one path of output of each selection module (6) is electrically connected with a TTL-to-RS 232 module (5), and the other path of output of each selection module (6) is connected with a connector (7) through a 0 omega resistor; the selection pin of the selection module (6) is electrically connected with the control circuit;
the TTL-to-RS 232 conversion modules (5) are respectively connected with the connectors (7).
2. The device of claim 1, wherein the PCIE-to-RS 232 interface and the TTL interface are electrically connected to the output end of the PCIE-to-UART module (1), the power conversion module (3) is electrically connected to the power supply pin of the golden finger module (2), and the PCIE-to-UART module (1) is electrically connected to the power supply pin of the golden finger module (2).
3. The apparatus of claim 1, wherein the PCIE-to-RS 232 interface and the TTL interface are electrically connected to the PCIE-to-UART module (1) through an I2C bus, the memory module (4) and an I2C bus are both electrically connected to a power supply pin of the golden finger module (2), and the storage content of the memory module (4) includes a MAC address.
4. The apparatus of claim 1, wherein the control circuit is any one of a jump cap or a controller.
5. The device of claim 4, wherein the cap comprises a No. 1 pin, a No. 2 pin, and a No. 3 pin, wherein the No. 1 pin is connected to a 3V3 power supply through a pull-up resistor, the No. 3 pin is grounded, the No. 2 pin is electrically connected to a selection pin of the selection module, and the No. 2 pin in the cap is connected to the No. 1 pin or the No. 2 pin is connected to the No. 3 pin.
6. The apparatus of claim 4, wherein the controller directly or indirectly obtains an interface type of a terminal connected to the connector, and the controller sends a corresponding control signal to the selection module (6) according to the interface type.
7. The apparatus of claim 1, wherein an indication circuit is disposed on the connector (7), and a first trigger structure corresponding to the indication circuit is configured on an RS232 terminal connected to the connector (7), and the first trigger structure enables the indication circuit to output a first signal; a TTL terminal connected to the connector is provided with a second trigger structure corresponding to the indicating circuit, and the second trigger structure enables the indicating circuit to output a second signal;
the indicating circuit is electrically connected with the controller, the controller is electrically connected with the selecting module, and the controller controls the corresponding selecting module according to the signal acquired from the target indicating circuit.
8. The apparatus of claim 7, wherein the indication circuit comprises at least two output pins, the two output pins are connected to a pull-up power source through pull-up resistors, the first trigger structure comprises a first number of ground pins, the second trigger structure comprises a second number of ground pins, and the ground pins are grounded.
9. A method for converting PCIE to RS232 interface and TTL interface is characterized by comprising the following steps:
acquiring a target connector connected with a terminal;
acquiring the interface type of a terminal connected with a target connector;
setting a control circuit according to the interface type of a terminal connected with a connector, so that the control circuit controls a selection module corresponding to a target connector to be in a first state or a second state; the selection module is in a first state, and the selection module enables the PCIE-to-UART module to be electrically connected with the TTL-to-RS 232 module; and when the selection module is in the second state, the selection module enables the PCIE-to-UART module to be directly and electrically connected with the connector.
10. A storage medium for implementing a PCIE-to-RS 232 interface and a TTL interface, where the medium of the apparatus for implementing a PCIE-to-RS 232 interface and a TTL interface stores at least one instruction, and reads and executes the instruction to implement the method according to claim 9 for implementing a PCIE-to-RS 232 interface and a TTL interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111473585.5A CN114281743A (en) | 2021-11-29 | 2021-11-29 | Device and method for converting PCIE (peripheral component interface express) to RS232 interface and TTL (transistor-transistor logic) interface and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111473585.5A CN114281743A (en) | 2021-11-29 | 2021-11-29 | Device and method for converting PCIE (peripheral component interface express) to RS232 interface and TTL (transistor-transistor logic) interface and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114281743A true CN114281743A (en) | 2022-04-05 |
Family
ID=80870885
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111473585.5A Withdrawn CN114281743A (en) | 2021-11-29 | 2021-11-29 | Device and method for converting PCIE (peripheral component interface express) to RS232 interface and TTL (transistor-transistor logic) interface and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114281743A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693204A (en) * | 2011-01-24 | 2012-09-26 | 通用电气公司 | Fieldbus interface circuit board supporting multiple interface types and terminations |
CN208384561U (en) * | 2018-07-05 | 2019-01-15 | 江苏沁恒股份有限公司 | PCIE RS 232 serial port circuit |
CN210864417U (en) * | 2020-05-15 | 2020-06-26 | 南京兆岳智能科技有限公司 | Vehicle CAN bus interface conversion self-adaptive system |
CN211928415U (en) * | 2020-05-13 | 2020-11-13 | 深圳今日智联科技有限公司 | Universal external controller for internet of things terminal |
CN212009333U (en) * | 2020-05-07 | 2020-11-24 | 山东超越数控电子股份有限公司 | Interface board compatible with multiple interface signals |
CN213521320U (en) * | 2020-08-04 | 2021-06-22 | 珠海银工科技有限公司 | Convenient electric pile that fills of wisdom street lamp |
-
2021
- 2021-11-29 CN CN202111473585.5A patent/CN114281743A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693204A (en) * | 2011-01-24 | 2012-09-26 | 通用电气公司 | Fieldbus interface circuit board supporting multiple interface types and terminations |
CN208384561U (en) * | 2018-07-05 | 2019-01-15 | 江苏沁恒股份有限公司 | PCIE RS 232 serial port circuit |
CN212009333U (en) * | 2020-05-07 | 2020-11-24 | 山东超越数控电子股份有限公司 | Interface board compatible with multiple interface signals |
CN211928415U (en) * | 2020-05-13 | 2020-11-13 | 深圳今日智联科技有限公司 | Universal external controller for internet of things terminal |
CN210864417U (en) * | 2020-05-15 | 2020-06-26 | 南京兆岳智能科技有限公司 | Vehicle CAN bus interface conversion self-adaptive system |
CN213521320U (en) * | 2020-08-04 | 2021-06-22 | 珠海银工科技有限公司 | Convenient electric pile that fills of wisdom street lamp |
Non-Patent Citations (5)
Title |
---|
WCH: "CH384", Retrieved from the Internet <URL:https://www.wch.cn/search?t=all&q=CH384> * |
WCH: "CH38XDRV.ZIP", Retrieved from the Internet <URL:https://www.wch.cn/downloads/CH38XDRV_ZIP.html> * |
任安虎;张燕;: "一种实用光端机的设计与实现", 电子设计工程, no. 09 * |
林华;: "USB-UART/RS485/红外接口转换器设计", 单片机与嵌入式系统应用, vol. 1, no. 10, pages 246 - 247 * |
黄军友;: "CAN/RS-232/SPI总线转换器设计与实现", 计算机与数字工程, no. 12 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4553279B2 (en) | Data transfer system, data transfer terminal, controller, and interface method | |
CN102147781A (en) | Motherboard compatible with multiple versions of universal serial bus (usb) and related method | |
CN112799985B (en) | USB interface control method, USB control circuit and intelligent networking equipment mainboard | |
EP0351961A2 (en) | Automatic reconfiguring apparatus | |
CN109726059A (en) | A kind of server test system | |
CN113553289A (en) | MCU pin function configuration method based on SOC chip and SOC chip | |
CN211239961U (en) | Card insertion type video processing apparatus and display system | |
CN1316388C (en) | USB control circuit suitable to computer-to-computer transmission and its operation method | |
CN102508810A (en) | Switching device and switching method | |
CN114281743A (en) | Device and method for converting PCIE (peripheral component interface express) to RS232 interface and TTL (transistor-transistor logic) interface and storage medium | |
CN115858426A (en) | Hard disk interface, hard disk and electronic equipment | |
CN101114214A (en) | Pattern card switching module and host board device with same | |
CN216388068U (en) | PCIE interface verification board and test system | |
CN112069109B (en) | Extension adapter plate, adapter device and adapter method | |
CN107329863B (en) | General hardware platform of measuring instrument based on COMe | |
CN213365381U (en) | Main board | |
CN211349344U (en) | Mainboard and server | |
CN113742160B (en) | Interface connection device, system and method thereof | |
CN111124957B (en) | USB channel switching device | |
CN107391405A (en) | Usb circuit and USB device | |
CN115422110B (en) | Port configuration method of electronic equipment and PCIE Switch chip | |
CN217718675U (en) | PCIE interface, mainboard and PCIE expansion module | |
CN214540748U (en) | Switching board card and computer | |
CN219997567U (en) | Type-C docking station supporting multi-host connection and system thereof | |
CN217034675U (en) | M.2 network card connection structure with processor compatible with NIC and PHY |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220405 |
|
WW01 | Invention patent application withdrawn after publication |