USB-to-TTL-to-485 communication system
By using a USB-to-TTL-to-485 communication system, and utilizing two serial port modules and conversion circuits, synchronous monitoring of TTL and 485 communication devices is achieved. This solves the problem that existing devices cannot communicate and monitor simultaneously, reduces costs, and improves the completeness of data monitoring.
Patent Information
- Application Number
- CN202420106854.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2034-01-16
AI Technical Summary
Existing communication devices cannot communicate with both TTL and 485 communication devices simultaneously, nor can they simultaneously monitor the data being sent and received by the communication devices.
A USB-to-TTL-to-485 communication system is adopted, including a power module, two serial port modules, a conversion circuit, and a host computer. The two serial port modules are connected to TTL and 485 communication devices respectively, and a conversion circuit is set between the serial port modules and the communication devices to achieve synchronous data monitoring.
It enables simultaneous communication with TTL and 485 communication devices, and can synchronously monitor and receive data, reducing costs and improving the completeness of data monitoring.
Smart Images

Figure CN221946487U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of remote communication, in particular to a USB to TTL to 485 communication system. Background Art
[0002] Existing communication devices are usually single-channel TTL communication or single-channel 485 communication. If you want to communicate with TTL devices or 485 devices at the same time, you need to set up two communication devices, which is costly.
[0003] And because the existing communication equipment is single-channel communication, that is, there is only one serial port module in the line, and one serial port module has only one RXD monitoring interface, that is to say, either only the sending data of the communication equipment can be monitored, or only the receiving data of the communication equipment can be monitored, and the data monitoring of the communication equipment is imperfect. Utility Model Content
[0004] In view of this, the purpose of the utility model is to provide a USB to TTL to 485 communication system to solve the problem in the prior art that the communication device cannot communicate with TTL communication equipment and 485 communication equipment at the same time, and at the same time solve the problem that the existing communication device cannot monitor the sending data and receiving data of the communication equipment at the same time.
[0005] The utility model provides a USB to TTL communication system, the system comprising:
[0006] Power module: used to supply power to the serial port module;
[0007] Serial port module: used to convert computer USB into TTL level signal;
[0008] Comprises a first serial port module and a second serial port module;
[0009] The input end of the first serial port module is connected to the power module, the TTL interface of the first serial port module is connected to the first TTL communication device, and the 485TXD interface and 485RXD interface of the first serial port module are connected to the first 485 communication device;
[0010] The input end of the second serial port module is connected to the power module, the TTL interface of the second serial port module is connected to the second TTL communication device, and the 485TXD interface and 485RXD interface of the second serial port module are connected to the second 485 communication device;
[0011] Conversion circuits: respectively arranged between the first serial port module and the first TTL communication device, between the first serial port module and the first 485 communication device, between the second serial port module and the second TTL communication device, and between the second serial port module and the second 485 communication device;
[0012] Host computer: connected to the first serial port module and the second serial port module respectively, used to send data to the first serial port module and the second serial port module, and used to receive monitoring data between communication devices.
[0013] Preferably,
[0014] The two RXD interfaces of the first serial port module and the second serial port module are also connected to the TXD interface and the RXD interface of the communication device respectively, for monitoring the transmission data and reception data of the communication device in real time, and forwarding the monitored transmission data and reception data to the host computer.
[0015] Preferably,
[0016] Also included: a protection circuit module;
[0017] The protection circuit module is arranged between the power module and the first serial port module, and between the power module and the second serial port module, and is used for electrostatic protection of the circuit.
[0018] Preferably,
[0019] Also includes: LED indicator light module;
[0020] The LED indicator light modules are respectively arranged between the first serial port module and the first TTL communication device, between the first serial port module and the first 485 communication device, between the second serial port module and the second TTL communication device, and between the second serial port module and the second 485 communication device;
[0021] The LED indicator light module is connected in parallel with the conversion circuit.
[0022] Preferably,
[0023] The power supply module is also connected to the MAX485 communication chips of the first 485 communication device and the second 485 communication device respectively, and is used to supply power to the first 485 communication device and the second 485 communication device.
[0024] Preferably,
[0025] The power module outputs 5V voltage to the serial port chips CP2102 of the first serial port module and the second serial port module respectively, and then the serial port chip CP2102 outputs 3.3V voltage to power the first serial port module and the second serial port module.
[0026] Preferably,
[0027] The power module uses USB to input 5V voltage from the computer to the serial port chip CP2102.
[0028] The technical solution provided by the embodiment of the utility model may include the following beneficial effects:
[0029] The present application installs two serial port modules in a communication device, the two serial port modules are respectively connected to a TTL communication device and a 485 communication device, and a conversion circuit is set between the serial port module and the communication device, and a jumper cap is used to realize the switching between TTL communication and 485 communication. At the same time, since two serial port modules are set, there are two RXD interfaces, which can be connected to the TXD and RXD of the communication device at the same time, so as to realize the synchronous monitoring of the sending data and the receiving data of the communication device.
[0030] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present utility model, and together with the description, are used to explain the principles of the present utility model.
[0032] Figure 1 is an overall system schematic diagram of a USB to TTL to 485 communication system according to an exemplary embodiment;
[0033] Figure 2 is a schematic diagram of a power interface circuit according to another exemplary embodiment;
[0034] Figure 3 is a circuit diagram of a serial port module according to another exemplary embodiment;
[0035] Figure 4 is a circuit diagram of an LED indicator light module according to another exemplary embodiment;
[0036] Figure 5 is a circuit diagram of a protection circuit module according to another exemplary embodiment;
[0037] Figure 6 is a circuit diagram of a 485 communication device according to another exemplary embodiment;
[0038] In the attached figure: 1-power module, 2-first serial port module, 3-second serial port module, 4-first TTL communication device, 5-first 485 communication device, 6-second TTL communication device, 7-second 485 communication device, 8-conversion circuit, 9-host computer, 10-protection circuit module, 11-LED indicator module. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0040] Embodiment 1
[0041] Figure 1 1 is a schematic diagram of an overall system of a USB to TTL to 485 communication system according to an exemplary embodiment, the system comprising:
[0042] Power module 1: used to supply power to the serial port module;
[0043] Serial port module: used to convert computer USB into TTL level signal;
[0044] It includes a first serial port module 2 and a second serial port module 3;
[0045] The input end of the first serial port module 2 is connected to the power module 1, the TTL interface of the first serial port module 2 is connected to the first TTL communication device 4, and the 485TXD interface and 485RXD interface of the first serial port module 2 are connected to the first 485 communication device 5;
[0046] The input end of the second serial port module 3 is connected to the power module 1, the TTL interface of the second serial port module 3 is connected to the second TTL communication device 6, and the 485TXD interface and 485RXD interface of the second serial port module 3 are connected to the second 485 communication device 7;
[0047] Conversion circuit 8: respectively arranged between the first serial port module 2 and the first TTL communication device 4, between the first serial port module 2 and the first 485 communication device 5, between the second serial port module 3 and the second TTL communication device 6, and between the second serial port module 3 and the second 485 communication device 7;
[0048] Host computer 9: connected to the first serial port module 2 and the second serial port module 3 respectively, used to send data to the first serial port module 2 and the second serial port module 3, and used to receive monitoring data between communication devices;
[0049] It can be understood that, based on the original single-channel serial port module, the present application adds a serial port module, each serial port module is connected to a TTL communication device and a 485 communication device, and the circuit principle diagrams of the first serial port module 2 and the second serial port module 3 are as shown in the attached Figure 3 As shown, a switching circuit 8 is added between the serial port module and the communication device, and the host computer 9 sends a control switching instruction to the serial port module, which is forwarded to the switching circuit 8 by the serial port module, thereby realizing the switching between the TTL communication device and the 485 communication device. Since there are two serial port modules in the circuit, each serial port module has an RXD interface, which realizes the synchronous monitoring of the sending data and receiving data of the communication device and sends them to the host computer 9.
[0050] Preferably,
[0051] The two RXD interfaces of the first serial port module 2 and the second serial port module 3 are also connected to the TXD interface and the RXD interface of the communication device respectively, for monitoring the transmission data and the reception data of the communication device in real time, and forwarding the monitored transmission data and the reception data to the host computer 9;
[0052] It can be understood that the existing communication data monitoring is connected to the TXD or RXD interface of the communication device through the RXD interface of the serial port module, so as to monitor the sending data or the receiving data. However, since the existing communication device has only one serial port module, and each serial port module has only one RXD interface, the prior art can only monitor one of the receiving data or the sending data. However, since the present application has two serial port modules, that is, there are two RXD interfaces, and the serial port modules are both connected to the host computer 9, the RXD interfaces of the two serial port modules are respectively connected to the TXD and RXD interfaces of the communication device, thereby realizing the synchronous monitoring of the sending data and the receiving data of the communication device.
[0053] Preferably,
[0054] It also includes: a protection circuit module 10;
[0055] The protection circuit module 10 is arranged between the power module 1 and the first serial port module 2, and between the power module 1 and the second serial port module 3, and is used for electrostatic protection of the circuit;
[0056] It is understandable that the circuit principle diagram of the protection circuit module 10 is as shown in the attached Figure 5As shown, the design of the protection circuit module 10 can avoid electrostatic interference and prevent excessive voltage from entering the first serial port module 2 and the second serial port module 3, causing damage to the serial port modules.
[0057] Preferably,
[0058] Also includes: an LED indicator light module 11;
[0059] The LED indicator light module 11 is respectively arranged between the first serial port module 2 and the first TTL communication device 4, between the first serial port module 2 and the first 485 communication device 5, between the second serial port module 3 and the second TTL communication device 6, and between the second serial port module 3 and the second 485 communication device 7;
[0060] The LED indicator light module 11 is connected in parallel with the conversion circuit 8;
[0061] It is understandable that the present application also sets an LED indicator light module 11 between the serial port module and the communication device. The circuit principle diagram of the LED indicator light module 11 is shown in the attached figure. Figure 4 As shown, when a certain communication device is connected to the serial port module by controlling the conversion circuit 8, the LED light in the LED indicator module 11 lights up to indicate. Conversely, when a certain communication device is disconnected from the serial port module by controlling the conversion circuit 8, the LED light in the LED indicator module 11 does not light up, so that the operator can easily observe which communication devices are in an associated state.
[0062] Preferably,
[0063] The power module 1 is also connected to the MAX485 communication chips of the first 485 communication device 4 and the second 485 communication device 6 respectively, so as to provide power for the first 485 communication device 4 and the second 485 communication device 6;
[0064] It can be understood that the power module 1 outputs 5V voltage to the MAX485 communication chip of the 485 communication module, and the MAX485 communication chip supplies power to the entire 485 communication device. The circuit principle diagram of the 485 communication module is shown in the attached figure. Figure 6 shown.
[0065] Preferably,
[0066] The power module 1 outputs 5V voltage to the serial port chips CP2102 of the first serial port module 2 and the second serial port module 3 respectively, and then the serial port chip CP2102 outputs 3.3V voltage to power the first serial port module 2 and the second serial port module 3;
[0067] It can be understood that the serial port chip of the serial port module adopts the CP2102 model, the power module 1 outputs a 5V voltage to the serial port chip CP2102, and then the serial port chip CP2102 outputs a 3.3V voltage to the serial port module.
[0068] Preferably,
[0069] The power module 1 uses USB to input 5V voltage from the computer to the serial port chip CP2102;
[0070] It can be understood that the test computer can be connected through USB data cables of different sizes and lengths to achieve the use of various environments and work scenes. The USB is used to input 5V voltage from the computer end to the serial port chip CP2102 and the MAX485 communication chip. The circuit principle diagram of the power interface of the power module 1 is as shown in the attached figure. Figure 2 shown.
[0071] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0072] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0073] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0074] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0075] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0076] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0077] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0078] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0079] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A USB to TTL to 485 communication system, characterized in that: The system comprises: Power module: used to supply power to the serial port module; Serial port module: used to convert computer USB into TTL level signal; Comprises a first serial port module and a second serial port module; The input end of the first serial port module is connected to the power module, the TTL interface of the first serial port module is connected to the first TTL communication device, and the 485TXD interface and 485RXD interface of the first serial port module are connected to the first 485 communication device; The input end of the second serial port module is connected to the power module, the TTL interface of the second serial port module is connected to the second TTL communication device, and the 485TXD interface and 485RXD interface of the second serial port module are connected to the second 485 communication device; Conversion circuits: respectively arranged between the first serial port module and the first TTL communication device, between the first serial port module and the first 485 communication device, between the second serial port module and the second TTL communication device, and between the second serial port module and the second 485 communication device; Host computer: connected to the first serial port module and the second serial port module respectively, used to send data to the first serial port module and the second serial port module, and used to receive monitoring data between communication devices.
2. The system according to claim 1, characterized in that The two RXD interfaces of the first serial port module and the second serial port module are also connected to the TXD interface and the RXD interface of the communication device respectively, for monitoring the transmission data and reception data of the communication device in real time, and forwarding the monitored transmission data and reception data to the host computer.
3. The system according to claim 1, characterized in that Also included: a protection circuit module; The protection circuit module is arranged between the power module and the first serial port module, and between the power module and the second serial port module, and is used for electrostatic protection of the circuit.
4. The system according to claim 3, characterized in that Also includes: LED indicator light module; The LED indicator light modules are respectively arranged between the first serial port module and the first TTL communication device, between the first serial port module and the first 485 communication device, between the second serial port module and the second TTL communication device, and between the second serial port module and the second 485 communication device; The LED indicator light module is connected in parallel with the conversion circuit.
5. The system according to claim 1, characterized in that The power supply module is also connected to the MAX485 communication chips of the first 485 communication device and the second 485 communication device respectively, and is used to supply power to the first 485 communication device and the second 485 communication device.
6. The system according to claim 5, characterized in that The power module outputs 5V voltage to the serial port chips CP2102 of the first serial port module and the second serial port module respectively, and then the serial port chip CP2102 outputs 3.3V voltage to power the first serial port module and the second serial port module.
7. The system according to claim 6, characterized in that The power module uses USB to input 5V voltage from the computer to the serial port chip CP2102.
