Multifunctional network protocol conversion interface module
By designing a multifunctional network protocol conversion interface module and utilizing the Zephyr operating system and circuit combination, the problem of lack of network interfaces in small devices was solved, achieving interface conversion and improved system stability.
Patent Information
- Application Number
- CN202520462894.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2035-03-17
AI Technical Summary
In the existing technology, small devices lack network interface functions and cannot realize the conversion between RS232, RS485, CAN interfaces and network interfaces, which limits their application in automation control and communication.
A multifunctional network protocol conversion interface module was designed, which adopts the Zephyr operating system, an embedded operating system, and combines power conversion circuit, external memory circuit, microcontroller processing circuit, network communication circuit, RS485 communication transceiver circuit, CAN bus circuit and RS232 communication circuit to realize protocol conversion.
It achieves real-time conversion between RS232, RS485, CAN interfaces and network interfaces, saving system resources and improving system stability and reliability.
Smart Images

Figure CN223744742U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to network communication protocol conversion technical field especially relates to a multifunctional network protocol conversion interface module. BACKGROUND
[0002] Multifunctional network protocol conversion interface module, it can still interoperate with the host computer of different equipment protocol on the communication network, complete various distributed applications, it works in the transmission layer or higher, the interface protocol converter can be completed with a module, low cost, small size, the network protocol converter can convert in RS232, RS485, CAN interface and network interface, in the actual application process, many small devices do not have network interface function, connect the network through the protocol conversion module, play an important role in automation control, communication.
[0003] The application adopts a new processing method, embeds a Zephyr operating system, increases driving capacity, and embeds an embedded operating system Zephyr, Zephyr is a collaborative project managed by the Linux Foundation under the Apache 2.0 protocol license, and is optimized for low-power, small memory microprocessor devices. An Internet of Things embedded small and expandable real-time operating system (RTOS) is constructed for all resource-limited devices, supports multiple hardware architectures and multiple development boards, and can run on a system with as little as 8 kB of memory. System resources are saved, and the system is stable and reliable.
[0004] In view of the above problems, the application provides a multifunctional network protocol conversion interface module. UTILITY MODEL CONTENT
[0005] The utility model discloses a multifunctional network protocol conversion interface module to solve the problems in the prior art.
[0006] In order to achieve the above-mentioned purpose, the utility model adopts the following technical scheme:
[0007] A multifunctional network protocol conversion interface module circuit design, including power conversion circuit, external memory circuit, single-chip microcomputer processing circuit, network communication circuit, network communication interface circuit, RS485 communication transceiver circuit, CAN bus circuit, RS232 communication circuit, the single-chip microcomputer processing circuit is electrically connected with power conversion circuit, the external memory circuit, network communication circuit, network communication interface circuit, RS485 communication transceiver circuit, CAN bus circuit, RS232 communication circuit are connected with the single-chip microcomputer processing circuit respectively.
[0008] Preferably, the power conversion circuit includes power conversion chip U1, U2, pin 1 of power conversion chip U1 is electrically connected to pin 2 of terminal J1 and connected to input GND_0, pin 2 is connected to pin 1 of J1 and capacitor C1, and connected to the input 24V power supply positive terminal, the other end of C1 is connected to the input GND_0, pin 6 outputs voltage 5V power supply, and is connected to capacitor C3, capacitor C4, pin 7, the other end of capacitor C3, capacitor C4 is grounded, pin 8 is connected to capacitor C2, and the other end of capacitor C2 is grounded. Pin 3 of power conversion chip U2 is connected to voltage 5V power supply and capacitor C5, capacitor C6, pin 2 is connected to voltage 3.3V power supply and capacitor C7, capacitor C8, pin 1, the other end of capacitor C5, capacitor C6, capacitor C7, capacitor C8 is grounded.
[0009] Preferably, the external memory circuit includes SPI interface memory U3, pin 8 of SPI interface memory U3 is connected to +3.3V power supply and C9, pin 1 is connected to pin 46 of single-chip microcomputer U4 and resistor R1, the other end of resistor R1 is connected to +3.3V power supply, pin 4, the other end of capacitor C9 is grounded, pin 2 is connected to pin 59 of single-chip microcomputer U4, pin 3 is connected to pin 1 of single-chip microcomputer U4, pin 5 is connected to pin 58 of U4, pin 6 is connected to pin 36 of U4, pin 7 is connected to pin 60 of single-chip microcomputer U4.
[0010] Preferably, the single-chip microcomputer processing circuit comprises a single-chip microcomputer U4, the pin 10, 19, 49 and 99 of the single-chip microcomputer U4 are grounded, the pin 11, 27, 50, 75, 100 are connected with a +3.3V power supply, the capacitor C11 is connected with the pin 27 of U4, the capacitor C12 is connected with the pin 48 of U4, the capacitor C13 is connected with the pin 73 of U4, the other end of the capacitor C11, C12 and C13 is grounded, the pin 14 is connected with the resistor R2 and the capacitor C10, reset is completed, the other end of the capacitor C10 is grounded, the other end of the resistor R2 is connected with a +3.3V power supply, the pin 94 is connected with R3, the other end of the resistor R3 is grounded, the pin 28 is connected with a diode D3, the other end of the diode D3 is connected with a resistor R6, the pin 29 is connected with a diode D2, the other end of the diode D2 is connected with a resistor R5, the pin 30 is connected with a diode D1, the other end of the diode D3 is connected with a resistor R4, the other end of the resistor R4, R5 and R6 is connected with a +3.3V power supply, the pin 1 of the terminal P1 is connected with a +3.3V power supply and connect the resistance R7, terminal P1 pin 2 connects the pin 72 of the single-chip microcomputer U4 and the other end of the resistance R7, terminal P1 pin 3 connects the pin 76 of the single-chip microcomputer U4 and the resistance R8, the other end of the resistance R8 is grounded, the pin 1 of the crystal oscillator Y1 connects the pin 13 of the single-chip microcomputer U4 and connects the capacitor C17, the resistance R9, the pin 3 of the crystal oscillator Y1 connects the pin 12 of the single-chip microcomputer U4 and connects the capacitor C16, the other end of the resistance R9, the other end of the capacitor C16, the capacitor C17 is grounded, the pin 2, 4 of the crystal oscillator Y1 is grounded; the pin 1 of the crystal oscillator Y2 connects the pin 9 of the single-chip microcomputer U4 and connects the capacitor C15, the pin 2 of the crystal oscillator Y2 connects the pin 8 of the single-chip microcomputer U4 and connects the capacitor C14, the other end of the capacitor C14, the capacitor C15 is grounded, the pin 2 of the single-chip microcomputer U4 connects the pin 2, 3 of the RS-485 transceiver U8, the pin 25 of the single-chip microcomputer U4 connects the pin 1 of the RS-485 transceiver U8, the pin 86 of the single-chip microcomputer U4 connects the pin 4 of the RS-485 transceiver U8; the pin 53 of the single-chip microcomputer U4 connects the pin 10 of the RS-232 transceiver U12, the pin 54 of the single-chip microcomputer U4 connects the pin 9 of the RS-485 transceiver U8; the pin 70 of the single-chip microcomputer U4 connects the pin 4 of the CAN communication interface chip U10, the pin 71 of the single-chip microcomputer U4 connects the pin 1 of the CAN communication interface chip U10; the pin 16 of the single-chip microcomputer U4 connects the pin 13 of the Ethernet transceiver U5, the pin 23 of the single-chip microcomputer U4 connects the pin 14 of U5, the pin 24 of the single-chip microcomputer U4 connects R14, the other end of R14 connects the pin 12 of the Ethernet transceiver U5, the pin 31 of the single-chip microcomputer U4 connects the pin 11 of the Ethernet transceiver U5, the pin 32 of the single-chip microcomputer U4 connects R11, the other end of R11 connects the pin 8 of the Ethernet transceiver U5, the pin 33 of the single-chip microcomputer U4 connects R10, the other end of R10 connects the pin 7 of the Ethernet transceiver U5, the pin 47 of the single-chip microcomputer U4 connects the pin 16 of the Ethernet transceiver U5, the pin 51 of the single-chip microcomputer U4 connects the pin 17 of U5, the pin 52 of the single-chip microcomputer U4 connects the pin 18 of the Ethernet transceiver U5.
[0011] Preferably, the network communication circuit mainly comprises an Ethernet transceiver U5. The pin 1 of the Ethernet transceiver U5 is connected with +V33E power supply and connected with the capacitor C23 and the capacitor C25, the other end of the capacitor C23 and the capacitor C25 is grounded; the pin 2 of the Ethernet transceiver U5 is connected with the resistor R13 and the diode D4, the other end of the diode D4 is connected with the resistor R15, the pin 3 of the Ethernet transceiver U5 is connected with the resistor R12 and the diode D5, the other end of the diode D5 is connected with the resistor R16, the pin 6 of the Ethernet transceiver U5 is connected with the capacitor C18 and the capacitor C19, the other end of the pin 10, 25 of the Ethernet transceiver U5, the capacitor C23, the capacitor C25, the capacitor C18, the capacitor C19, the resistor R12, the resistor R13, the resistor R15, the resistor R16 is grounded; the pin 9 of the Ethernet transceiver U5 is connected with +3.3V power supply and connected with the capacitor C20 and the capacitor C21, the both ends of L1 are connected with +3.3V and +V33E respectively and connected with the capacitor C22 and the capacitor C24, the other end of the capacitor C20, the capacitor C21, the capacitor C22 and the capacitor C24 is grounded; the pin 24 of the Ethernet transceiver U5 is connected with the resistor R17, the other end of the resistor R17 is grounded, the pin 23, 22, 21 and 20 of the Ethernet transceiver U5 is connected with the row resistor RN1, the other end of the resistor RN1 is connected with +V33E, the pin 19 of the Ethernet transceiver U5 is connected with +V33E power supply and connected with the capacitor C29 and the resistor R19, the other end of the resistor R19 is connected with the pin 15 of the Ethernet transceiver U5 and the capacitor C28, the other end of the capacitor C28 and the capacitor C29 is grounded; the pin 1 of the crystal oscillator Y3 is connected with the pin 4 of the Ethernet transceiver U5 and connected with the capacitor C27 and the resistor R18, the pin 3 of the crystal oscillator Y3 is connected with the pin 5 of the Ethernet transceiver U5 and connected with the capacitor C26 and the other end of the resistor R18, the other end of the capacitor C26 and the capacitor C27 is grounded, the pin 2 and 4 of the crystal oscillator Y3 is grounded.
[0012] Preferably, the network communication interface circuit mainly comprises a network interface transformer L2, a network interface RJ1. Pin 1 of the network interface transformer L2 is connected with a resistor R20, the other end of the resistor R20 is connected with an anti-static tube E1, pin 21 of an Ethernet transceiver U5, pin 3 of the network interface transformer L2 is connected with a resistor R21, the other end of the resistor R21 is connected with the other end of the anti-static tube E1, pin 20 of the Ethernet transceiver U5, pin 6 of the L2 is connected with a resistor R22, the other end of the resistor R22 is connected with an anti-static tube E2, pin 23 of the Ethernet transceiver U5, pin 8 of the L2 is connected with a resistor R23, the other end of the resistor R23 is connected with the other end of the anti-static tube E2, pin 22 of the Ethernet transceiver U5, pin 2 of the network interface transformer L2 is connected with a capacitor C32, pin 7 of the network interface transformer L2 is connected with a capacitor C33, the other end of the capacitor C32, the capacitor C33 is grounded; the capacitor C30, the capacitor C31 is connected with a device shell AGN diode D, the other end of the capacitor C30, the capacitor C31 is grounded; pin 16 of the network interface transformer L2 is connected with pin 1 of the network interface RJ1 and connected with a gas discharge tube G diode DT2, pin 14 of the network interface transformer L2 is connected with pin 2 of the network interface RJ1 and connected with a gas discharge tube G diode DT2, the other end of the G diode DT2 is connected with the device shell AGN diode D; pin 11 of the network interface transformer L2 is connected with pin 3 of the network interface RJ1 and connected with a gas discharge tube G diode DT1, pin 9 of the network interface transformer L2 is connected with pin 6 of the network interface RJ1 and connected with a gas discharge tube G diode DT1, the other end of the G diode DT1 is connected with the device shell AGN diode D; pin 10 of the network interface transformer L2 is connected with a resistor R24, the other end of the resistor R24 is connected with a capacitor C34, pin 15 of the L2 is connected with a resistor R25, the other end of the resistor R25 is connected with the capacitor C34, pin 7 of the network interface RJ1 is connected with pin 8 of the network interface RJ1, a resistor R26, the other end of the resistor R26 is connected with the capacitor C34, pin 4 of the network interface RJ1 is connected with pin 5 of the network interface RJ1, connected with a resistor R27, the other end of the resistor R27 is connected with the capacitor C34, pin 9, 10 of the network interface RJ1, the other end of the capacitor C34 is connected with the device shell AGN diode D.
[0013] Preferably, the RS232 communication interface circuit mainly comprises RS-232 transceiver U12, interface terminal P3. Pin 16 of RS-232 transceiver U12 is connected with +3.3V power supply and connected with capacitor C41, pin 2 of RS-232 transceiver U12 is connected with capacitor C39, pin 6 of RS-232 transceiver U12 is connected with capacitor C40, the other end of capacitor C41, capacitor C39, capacitor C40, pin 5 of interface terminal P3 is grounded; pin 7 of RS-232 transceiver U12 is connected with pin 2 of interface terminal P3, pin 8 of RS-232 transceiver U12 is connected with pin 3 of interface terminal P3; pin 1 of RS-232 transceiver U12 is connected with capacitor C42, the other end of capacitor C42 is connected with pin 3 of RS-232 transceiver U12, pin 4 of RS-232 transceiver U12 is connected with capacitor C43, pin 5 of RS-232 transceiver U12 is connected with the other end of capacitor C43.
[0014] Preferably, the CAN communication interface circuit mainly comprises CAN communication interface chip U10, inductor L3, interface terminal P2. Pin 3 of CAN communication interface chip U10 is connected with +5V and connected with capacitor C36, pin 2, 8 of CAN communication interface chip U10 and the other end of capacitor C36 are grounded; pin 7 of CAN communication interface chip U10 is connected with resistor R35 and pin 1 of inductor L3, pin 6 of CAN communication interface chip U10 is connected with the other end of resistor R35 and pin 2 of inductor L3, pin 5 of CAN communication interface chip U10 is connected with +3.3V; pin 4 of inductor L3 is connected with capacitor C37, pin 2 of P2 and pin 2 of anti-static tube T1, pin 3 of inductor L3 is connected with capacitor C38, pin 1 of P2 and pin 1 of anti-static tube T1, pin 3 of capacitor C37, capacitor C38 and anti-static tube T1 are grounded.
[0015] Preferably, the RS485 communication interface circuit includes RS-485 transceiver U8. The pin 1 of RS-485 transceiver U8 is connected with resistance R29, pin 25 of single-chip microcomputer U4, the pin 4 of RS-485 transceiver U8 is connected with resistance R28, pin 86 of single-chip microcomputer U4, the pin 8 of RS-485 transceiver U8 is connected with capacitor C35 and +3.3V, the pin 2 of RS-485 transceiver U8 is connected with pin 3 of U8, resistance R30 and pin 2 of single-chip microcomputer U4, the pin 5 of RS-485 transceiver U8 is connected with resistance R30 and the other end of capacitor C35, the other end of resistance R28 and resistance R29 is connected with +3.3V power supply, the pin 7 of RS-485 transceiver U8 is connected with resistance R33, the other end of resistance R33 is connected with F1 and pin 2 of anti-static tube T2, the other end of F1 is connected with pin 4 of P2, the pin 6 of RS-485 transceiver U8 is connected with resistance R34, the other end of resistance R34 is connected with F2 and pin 1 of anti-static tube T2, the other end of F2 is connected with pin 3 of P2, and pin 3 of anti-static tube T2 is grounded.
[0016] Compared with the prior art, the utility model has the advantages of:
[0017] The utility model discloses real-time conversion of RS232, RS485, CAN interface and network interface. In actual application process, many small -size devices do not have network interface function, and can be connected network through the protocol conversion module, and play an important role in automation control, communication. Embed Zephyr operating system, increase driving ability, save system resources, make the system stable and reliable. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 A principle block diagram of the multifunctional network protocol conversion interface module is provided for the utility model.
[0019] Figure 2 A power conversion circuit circuit diagram of the multifunctional network protocol conversion interface module is provided for the utility model.
[0020] Figure 3 An external memory circuit diagram of the multifunctional network protocol conversion interface module is provided for the utility model.
[0021] Figure 4 A single-chip microcomputer processing circuit circuit diagram of the multifunctional network protocol conversion interface module is provided for the utility model.
[0022] Figure 5 A network communication circuit diagram of the multifunctional network protocol conversion interface module is provided for the utility model.
[0023] Figure 6A network communication interface circuit diagram of a multifunctional network protocol conversion interface module is provided in the utility model.
[0024] Figure 7 A RS232 communication interface circuit diagram of a multifunctional network protocol conversion interface module is provided in the utility model.
[0025] Figure 8 A CAN communication interface circuit diagram of a multifunctional network protocol conversion interface module is provided in the utility model.
[0026] Figure 9 A RS485 communication interface circuit diagram of a multifunctional network protocol conversion interface module is provided in the utility model. Specific implementation
[0027] The technical solutions in the embodiments of the utility model will be clearly and completely described below with reference to the drawings in the embodiments of the utility model. Obviously, the described embodiments are only a part of the embodiments of the utility model, rather than all the embodiments of the utility model.
[0028] Reference Figure 1 A multifunctional network protocol conversion interface module, comprising a power conversion circuit, an external memory circuit, a single-chip microcomputer processing circuit, a network communication circuit, a network communication interface circuit, an RS485 communication transceiving circuit, a CAN bus circuit and an RS232 communication circuit, the single-chip microcomputer processing circuit is electrically connected with the power conversion circuit, and the external memory circuit, the network communication circuit, the network communication interface circuit, the RS485 communication transceiving circuit, the CAN bus circuit and the RS232 communication circuit are connected with the single-chip microcomputer processing circuit respectively.
[0029] As Figure 2As shown, the power conversion circuit includes power conversion chips U1, U2, pin 1 of the power conversion chip U1 is electrically connected to pin 2 of the terminal J1 and connected to the input GND_0, pin 2 is connected to pin 1 of J1 and capacitor C1, and is connected to the input 24V power supply positive terminal, the other end of C1 is connected to the input GND_0, pin 6 outputs a voltage 5V power supply, and is connected to capacitor C3, capacitor C4, pin 7, the other end of capacitor C3, capacitor C4 is grounded, pin 8 is connected to capacitor C2, and the other end of capacitor C2 is grounded. Pin 3 of the power conversion chip U2 is connected to the voltage 5V power supply and capacitor C5, capacitor C6, pin 2 is connected to the voltage 3.3V power supply and capacitor C7, capacitor C8, pin 1, the other end of capacitor C5, capacitor C6, capacitor C7, capacitor C8 is grounded. In this embodiment, the model of the power conversion chip U1 is WRB2405S-3WR2, the pin 6 of the power conversion chip U1 outputs +5 direct current, the model of the power conversion chip U2 is LT1117CST3.3, and the pin 2 of the power conversion chip U2 outputs 3.3V direct current. The capacitor C1, capacitor C5, capacitor C6, capacitor C7, capacitor C8, capacitor C3 and capacitor C4 in this embodiment are all filter capacitors.
[0030] As shown in the figure, Figure 3 The external memory circuit includes an SPI interface memory U3, pin 8 of the SPI interface memory U3 is connected to +3.3V power supply and C9, pin 1 is connected to pin 46 of the single-chip microcomputer U4 and resistor R1, the other end of the resistor R1 is connected to +3.3V power supply, pin 4, the other end of capacitor C9 is grounded, pin 2 is connected to pin 59 of the single-chip microcomputer U4, pin 3 is connected to pin 1 of the single-chip microcomputer U4, pin 5 is connected to pin 58 of U4, pin 6 is connected to pin 36 of U4, and pin 7 is connected to pin 60 of the single-chip microcomputer U4. In this embodiment, the model of the SPI interface memory U3 is W25Q128JVSIQ.
[0031] As shown in the figure, Figure 4As shown, the single-chip microcomputer processing circuit includes a single-chip microcomputer U4, the pin 10, 19, 49, 99 of the single-chip microcomputer U4 is grounded, the pin 11, 27, 50, 75, 100 is connected with a +3.3V power supply, the capacitor C11 is connected with the pin 27 of U4, the capacitor C12 is connected with the pin 48 of U4, the capacitor C13 is connected with the pin 73 of U4, the other end of the capacitor C11, the capacitor C12 and the capacitor C13 is grounded, the pin 14 is connected with the resistor R2 and the capacitor C10, reset is completed, the other end of the capacitor C10 is grounded, the other end of the resistor R2 is connected with a +3.3V power supply, the pin 94 is connected with R3, the other end of the resistor R3 is grounded, the pin 28 is connected with a diode D3, the other end of the diode D3 is connected with a resistor R6, the pin 29 is connected with a diode D2, the other end of the diode D2 is connected with a resistor R5, the pin 30 is connected with a diode D1, the other end of the diode D3 is connected with a resistor R4, the other end of the resistor R4, the resistor R5 and the resistor R6 is connected with a +3.3V power supply, the pin 1 of the terminal P1 is connected with a +3.3V power supply and connect the resistance R7, the terminal P1 pin 2 connects the pin 72 of the single-chip microcomputer U4 and the other end of the resistance R7, the terminal P1 pin 3 connects the pin 76 of the single-chip microcomputer U4 and the resistance R8, the other end of the resistance R8 is grounded, the pin 1 of the crystal oscillator Y1 connects the pin 13 of the single-chip microcomputer U4 and connects the capacitor C17 and the resistance R9, the pin 3 of the crystal oscillator Y1 connects the pin 12 of the single-chip microcomputer U4 and connects the capacitor C16 and the other end of the resistance R9, the other end of the capacitor C16 and the capacitor C17 is grounded, the pin 2 and the pin 4 of the crystal oscillator Y1 are grounded; the pin 1 of the crystal oscillator Y2 connects the pin 9 of the single-chip microcomputer U4 and connects the capacitor C15, the pin 2 of the crystal oscillator Y2 connects the pin 8 of the single-chip microcomputer U4 and connects the capacitor C14, the other end of the capacitor C14 and the capacitor C15 is grounded, the pin 2 of the single-chip microcomputer U4 connects the pin 2 and the pin 3 of the RS-485 transceiver U8, the pin 25 of the single-chip microcomputer U4 connects the pin 1 of the RS-485 transceiver U8, the pin 86 of the single-chip microcomputer U4 connects the pin 4 of the RS-485 transceiver U8; the pin 53 of the single-chip microcomputer U4 connects the pin 10 of the RS-232 transceiver U12, the pin 54 of the single-chip microcomputer U4 connects the pin 9 of the RS-485 transceiver U8; the pin 70 of the single-chip microcomputer U4 connects the pin 4 of the CAN communication interface chip U10, the pin 71 of the single-chip microcomputer U4 connects the pin 1 of the CAN communication interface chip U10; the pin 16 of the single-chip microcomputer U4 connects the pin 13 of the Ethernet transceiver U5, the pin 23 of the single-chip microcomputer U4 connects the pin 14 of U5, the pin 24 of the single-chip microcomputer U4 connects R14, the other end of R14 connects the pin 12 of the Ethernet transceiver U5, the pin 31 of the single-chip microcomputer U4 connects the pin 11 of the Ethernet transceiver U5, the pin 32 of the single-chip microcomputer U4 connects R11, the other end of R11 connects the pin 8 of the Ethernet transceiver U5, the pin 33 of the single-chip microcomputer U4 connects R10, the other end of R10 connects the pin 7 of the Ethernet transceiver U5, the pin 47 of the single-chip microcomputer U4 connects the pin 16 of the Ethernet transceiver U5, the pin 51 of the single-chip microcomputer U4 connects the pin 17 of U5, the pin 52 of the single-chip microcomputer U4 connects the pin 18 of the Ethernet transceiver U5, the model of the single-chip microcomputer U4 in the embodiment is STM32H750VBT6.
[0032] As Figure 5As shown, the network communication circuit mainly comprises an Ethernet transceiver U5. Pin 1 of the Ethernet transceiver U5 is connected with +V33E power supply and connected with capacitor C23 and capacitor C25, the other ends of the capacitor C23 and the capacitor C25 are grounded; pin 2 of the Ethernet transceiver U5 is connected with resistor R13 and diode D4, the other end of the diode D4 is connected with resistor R15, pin 3 of the Ethernet transceiver U5 is connected with resistor R12 and diode D5, the other end of the diode D5 is connected with resistor R16, pin 6 of the Ethernet transceiver U5 is connected with capacitor C18 and capacitor C19, the other ends of pin 10, 25 of the Ethernet transceiver U5, capacitor C23, capacitor C25, capacitor C18, capacitor C19, resistor R12, resistor R13, resistor R15, resistor R16 are grounded; pin 9 of the Ethernet transceiver U5 is connected with +3.3V power supply and connected with capacitor C20 and capacitor C21, both ends of L1 are connected with +3.3V and +V33E respectively and connected with capacitor C22 and capacitor C24, the other ends of the capacitor C20, capacitor C21, capacitor C22 and capacitor C24 are grounded; pin 24 of the Ethernet transceiver U5 is connected with resistor R17, the other end of the resistor R17 is grounded, pins 23, 22, 21 and 20 of the Ethernet transceiver U5 are connected with row resistor RN1 respectively, the other end of the resistor RN1 is connected with +V33E, pin 19 of the Ethernet transceiver U5 is connected with +V33E power supply and connected with capacitor C29 and resistor R19, the other end of the resistor R19 is connected with pin 15 of the Ethernet transceiver U5 and capacitor C28, the other ends of the capacitor C28 and capacitor C29 are grounded; pin 1 of the crystal oscillator Y3 is connected with pin 4 of the Ethernet transceiver U5 and connected with capacitor C27 and resistor R18, pin 3 of the crystal oscillator Y3 is connected with pin 5 of the Ethernet transceiver U5 and connected with capacitor C26 and the other end of the resistor R18, the other ends of the capacitor C26 and capacitor C27 are grounded, pins 2 and 4 of the crystal oscillator Y3 are grounded. In the embodiment, the network communication interface chip U5 is LAN8720A-CP-TR.
[0033] As Figure 6As shown, the network communication interface circuit mainly comprises a network interface transformer L2 and a network interface RJ1. Pin 1 of the network interface transformer L2 is connected to a resistor R20, the other end of the resistor R20 is connected to an anti-static tube E1 and pin 21 of an Ethernet transceiver U5, pin 3 of the network interface transformer L2 is connected to a resistor R21, the other end of the resistor R21 is connected to the other end of the anti-static tube E1 and pin 20 of the Ethernet transceiver U5, pin 6 of the network interface transformer L2 is connected to a resistor R22, the other end of the resistor R22 is connected to an anti-static tube E2 and pin 23 of the Ethernet transceiver U5, pin 8 of the network interface transformer L2 is connected to a resistor R23, the other end of the resistor R23 is connected to the other end of the anti-static tube E2 and pin 22 of the Ethernet transceiver U5, pin 2 of the network interface transformer L2 is connected to a capacitor C32, pin 7 of the network interface transformer L2 is connected to a capacitor C33, the other ends of the capacitor C32 and the capacitor C33 are grounded, the capacitor C30 and the capacitor C31 are connected to a device shell AGN diode D, the other ends of the capacitor C30 and the capacitor C31 are grounded, pin 16 of the network interface transformer L2 is connected to pin 1 of the network interface RJ1 and a gas discharge tube G diode DT2, pin 14 of the network interface transformer L2 is connected to pin 2 of the network interface RJ1 and the gas discharge tube G diode DT2, the other end of the gas discharge tube G diode DT2 is connected to the device shell AGN diode D, pin 11 of the network interface transformer L2 is connected to pin 3 of the network interface RJ1 and a gas discharge tube G diode DT1, pin 9 of the network interface transformer L2 is connected to pin 6 of the network interface RJ1 and the gas discharge tube G diode DT1, the other end of the gas discharge tube G diode DT1 is connected to the device shell AGN diode D, pin 10 of the network interface transformer L2 is connected to a resistor R24, the other end of the resistor R24 is connected to a capacitor C34, pin 15 of the network interface transformer L2 is connected to a resistor R25, the other end of the resistor R25 is connected to the capacitor C34, pin 7 of the network interface RJ1 is connected to pin 8 of the network interface RJ1, a resistor R26, the other end of the resistor R26 is connected to the capacitor C34, pin 4 of the network interface RJ1 is connected to pin 5 of the network interface RJ1, a resistor R27, the other end of the resistor R27 is connected to the capacitor C34, the other ends of pins 9, 10 of the network interface RJ1 and the capacitor C34 are connected to the device shell AGN diode D.
[0034] As Figure 7As shown, the RS232 communication interface circuit mainly includes an RS-232 transceiver U12 and an interface terminal P3. Pin 16 of RS-232 transceiver U12 is connected to a +3.3V power supply and capacitor C41. Pin 2 of RS-232 transceiver U12 is connected to capacitor C39. Pin 6 of RS-232 transceiver U12 is connected to capacitor C40. The other ends of capacitors C41, C39, and C40, and pin 5 of interface terminal P3 are grounded. Pin 7 of RS-232 transceiver U12 is connected to pin 2 of interface terminal P3. Pin 8 of RS-232 transceiver U12 is connected to pin 3 of interface terminal P3. Pin 1 of RS-232 transceiver U12 is connected to capacitor C42. Pin 3 of RS-232 transceiver U12 is connected to the other end of capacitor C42. Pin 4 of RS-232 transceiver U12 is connected to capacitor C43. Pin 5 of RS-232 transceiver U12 is connected to the other end of capacitor C43. In this embodiment, the RS232 chip U12 is model SP3232E.
[0035] like Figure 8 As shown, the CAN communication interface circuit mainly includes a CAN communication interface chip U10, an inductor L3, and an interface terminal P2. Pin 3 of the CAN communication interface chip U10 is connected to +5V and a capacitor C36. Pins 2 and 8 of the CAN communication interface chip U10 and the other end of capacitor C36 are grounded. Pin 7 of the CAN communication interface chip U10 is connected to a resistor R35 and pin 1 of inductor L3. Pin 6 of the CAN communication interface chip U10 is connected to the other end of resistor R35 and pin 2 of inductor L3. Pin 5 of the CAN communication interface chip U10 is connected to +3.3V. Pin 4 of inductor L3 is connected to capacitor C37, pin 2 of P2, and pin 2 of anti-static tube T1. Pin 3 of L3 is connected to capacitor C38, pin 1 of P2, and pin 1 of anti-static tube T1. Capacitors C37 and C38 and pin 3 of anti-static tube T1 are grounded. In this embodiment, the CAN communication chip U10 is model SIT1051AQT / 3.
[0036] like Figure 9As shown, the RS485 communication interface circuit includes RS-485 transceiver U8.The pin 1 of RS-485 transceiver U8 is connected with resistance R29, pin 25 of single-chip microcomputer U4, the pin 4 of RS-485 transceiver U8 is connected with resistance R28, pin 86 of single-chip microcomputer U4, the pin 8 of RS-485 transceiver U8 is connected with capacitor C35 and +3.3V, the pin 2 of RS-485 transceiver U8 is connected with pin 3 of U8, resistance R30 and pin 2 of single-chip microcomputer U4, the pin 5 of RS-485 transceiver U8 is connected with resistance R30 and the other end of capacitor C35, the other end of resistance R28 and resistance R29 is connected with +3.3V power supply, the pin 7 of RS-485 transceiver U8 is connected with resistance R33, the other end of resistance R33 is connected with F1 and pin 2 of anti-static tube T2, the other end of F1 is connected with pin 4 of P2, the pin 6 of RS-485 transceiver U8 is connected with resistance R34, the other end of resistance R34 is connected with F2 and pin 1 of anti-static tube T2, the other end of F2 is connected with pin 3 of P2, pin 3 of anti-static tube T2 is grounded, and the model of RS485 chip U8 in the embodiment is TP485E-SR.
[0037] The single-chip microcomputer software of the utility model embeds an operating system Zephyr, the system stability is enhanced, and a gas discharge tube 3SPC090F and an anti-static tube UDD32C03L01 are added to the circuit to enhance the lightning stroke resistance and anti-static capability of the system.
[0038] Working principle: when in use, 24V DC power is converted into 5V and 3.3V DC power through the power conversion circuit to provide power supply for the system circuit. After the system is powered on, the single-chip microcomputer processing circuit completes initialization configuration, reads user parameters from the external memory, and then enters the working state; the user inputs network format data and commands from the network interface circuit, and the single-chip microcomputer processing circuit converts the network data protocol package into a serial data package and sends it from the RS232 communication interface circuit, the RS485 communication interface circuit and the CAN communication interface circuit; similarly, user data is input in the form of a serial data package from the RS232 communication interface circuit, the RS485 communication interface circuit or the CAN communication interface circuit, the single-chip microcomputer processing circuit converts the serial data package into a network data protocol package, and outputs network format data and commands from the network interface circuit to complete real-time data format protocol conversion.
[0039] The above merely describes a preferred specific embodiment of the utility model, but the protection scope of the utility model is not limited to this, any skilled person in the art can make equivalent replacement or change according to the technical scheme and the utility model concept of the utility model within the technical range disclosed by the utility model, which should be covered in the protection scope of the utility model.
Claims
1. A multi-functional network protocol conversion interface module, characterized by, The application relates to a power conversion circuit, an external memory circuit, a single-chip microcomputer processing circuit, a network communication circuit, a network communication interface circuit, an RS485 communication transceiver circuit, a CAN bus circuit and an RS232 communication circuit.
2. The multi-functional network protocol conversion interface module according to claim 1, wherein, The power conversion circuit comprises power conversion chips U1 and U2, pin 1 of the power conversion chip U1 is electrically connected with pin 2 of terminal J1 and connected with input GND_0, pin 2 of the power conversion chip U1 is connected with pin 1 of J1 and capacitor C1 and connected with input 24V power supply positive terminal, the other end of C1 is connected with input GND_0, pin 6 outputs voltage 5V power supply and is connected with capacitor C3 and capacitor C4, the other end of pin 7, capacitor C3 and capacitor C4 is grounded, pin 8 is connected with capacitor C2, and the other end of capacitor C2 is grounded. Pin 3 of the power conversion chip U2 is connected with voltage 5V power supply and capacitor C5 and capacitor C6, pin 2 is connected with voltage 3.3V power supply and capacitor C7 and capacitor C8, and the other end of pin 1, capacitor C5, capacitor C6, capacitor C7 and capacitor C8 is grounded.
3. The multi-functional network protocol conversion interface module of claim 1, wherein, The external memory circuit comprises an SPI interface memory U3, pin 8 of the SPI interface memory U3 is connected with +3.3V power supply and C9, pin 1 is connected with pin 46 of a single-chip microcomputer U4 and resistor R1, the other end of the resistor R1 is connected with +3.3V power supply, pin 4 and the other end of capacitor C9 are grounded, pin 2 is connected with pin 59 of the single-chip microcomputer U4, pin 3 is connected with pin 1 of the single-chip microcomputer U4, pin 5 is connected with pin 58 of U4, pin 6 is connected with pin 36 of U4, and pin 7 is connected with pin 60 of the single-chip microcomputer U4.
4. The multi-functional network protocol conversion interface module of claim 1, wherein, The single-chip microcomputer processing circuit comprises a single-chip microcomputer U4, the pin 10, 19, 49 and 99 of the single-chip microcomputer U4 are grounded, the pin 11, 27, 50, 75, 100 are connected with +3.3V power supply, the capacitor C11 is connected with the pin 27 of U4, the capacitor C12 is connected with the pin 48 of U4, the capacitor C13 is connected with the pin 73 of U4, the other end of the capacitor C11, the capacitor C12 and the capacitor C13 is grounded, the pin 14 is connected with the resistor R2 and the capacitor C10, reset is completed, the other end of the capacitor C10 is grounded, the other end of the resistor R2 is connected with +3.3V power supply, the pin 94 is connected with R3, the other end of the resistor R3 is grounded, the pin 28 is connected with the diode D3, the other end of the diode D3 is connected with the resistor R6, the pin 29 is connected with the diode D2, the other end of the diode D2 is connected with the resistor R5, the pin 30 is connected with the diode D1, the other end of the diode D3 is connected with the resistor R4, the other end of the resistor R4, the resistor R5 and the resistor R6 is connected with +3.3V power supply, the pin 1 of the terminal P1 is connected with +3.3V power supply and connected with the resistor R7, the pin 2 of the terminal P1 is connected with the pin 72 of the single-chip microcomputer U4 and the other end of the resistor R7, the pin 3 of the terminal P1 is connected with the pin 76 of the single-chip microcomputer U4 and the resistor R8, the other end of the resistor R8 is grounded, the pin 1 of the crystal oscillator Y1 is connected with the pin 13 of the single-chip microcomputer U4 and connected with the capacitor C17 and the resistor R9, the pin 3 of the crystal oscillator Y1 is connected with the pin 12 of the single-chip microcomputer U4 and connected with the capacitor C16 and the other end of the resistor R9, the other end of the capacitor C16 and the capacitor C17 is grounded, the pin 2 and 4 of the crystal oscillator Y1 is grounded, the pin 1 of the crystal oscillator Y2 is connected with the pin 9 of the single-chip microcomputer U4 and connected with the capacitor C15, the pin 2 of the crystal oscillator Y2 is connected with the pin 8 of the single-chip microcomputer U4 and connected with the capacitor C14, the other end of the capacitor C14 and the capacitor C15 is grounded, the pin 2 of the single-chip microcomputer U4 is connected with the pin 2 and 3 of the RS-485 transceiver U8, the pin 25 of the single-chip microcomputer U4 is connected with the pin 1 of the RS-485 transceiver U8, the pin 86 of the single-chip microcomputer U4 is connected with the pin 4 of the RS-485 transceiver U8, the pin 53 of the single-chip microcomputer U4 is connected with the pin 10 of the RS-232 transceiver U12, the pin 54 of the single-chip microcomputer U4 is connected with the pin 9 of the RS-485 transceiver U8, the pin 70 of the single-chip microcomputer U4 is connected with the pin 4 of the CAN communication interface chip U10, the pin 71 of the single-chip microcomputer U4 is connected with the pin 1 of the CAN communication interface chip U10, the pin 16 of the single-chip microcomputer U4 is connected with the pin 13 of the Ethernet transceiver U5, the pin 23 of the single-chip microcomputer U4 is connected with the pin 14 of U5, the pin 24 of the single-chip microcomputer U4 is connected with R14, the other end of R14 is connected with the pin 12 of the Ethernet transceiver U5, the pin 31 of the single-chip microcomputer U4 is connected with the pin 11 of the Ethernet transceiver U5, the pin 32 of the single-chip microcomputer U4 is connected with R11, the other end of R11 is connected with the pin 8 of the Ethernet transceiver U5, the pin 33 of the single-chip microcomputer U4 is connected with R10, the other end of R10 is connected with the pin 7 of the Ethernet transceiver U5, the pin 47 of the single-chip microcomputer U4 is connected with the pin 16 of the Ethernet transceiver U5, the pin 51 of the single-chip microcomputer U4 is connected with the pin 17 of U5, the pin 52 of the single-chip microcomputer U4 is connected with the pin 18 of the Ethernet transceiver U5.
5. The multi-functional network protocol conversion interface module of claim 1, wherein, The network communication circuit mainly includes an Ethernet transceiver U5. The pin 1 of the Ethernet transceiver U5 is connected with +V33E power supply and connected with the capacitor C23 and the capacitor C25, the other end of the capacitor C23 and the capacitor C25 is grounded; the pin 2 of the Ethernet transceiver U5 is connected with the resistor R13 and the diode D4, the other end of the diode D4 is connected with the resistor R15, the pin 3 of the Ethernet transceiver U5 is connected with the resistor R12 and the diode D5, the other end of the diode D5 is connected with the resistor R16, the pin 6 of the Ethernet transceiver U5 is connected with the capacitor C18 and the capacitor C19, the other end of the pin 10, 25, the capacitor C23, the capacitor C25, the capacitor C18, the capacitor C19, the resistor R12, the resistor R13, the resistor R15, the resistor R16 of the Ethernet transceiver U5 is grounded; the pin 9 of the Ethernet transceiver U5 is connected with +3.3V power supply and connected with the capacitor C20 and the capacitor C21, the both ends of L1 are connected with +3.3V and +V33E respectively and connected with the capacitor C22 and the capacitor C24, the other end of the capacitor C20, the capacitor C21, the capacitor C22 and the capacitor C24 is grounded; the pin 24 of the Ethernet transceiver U5 is connected with the resistor R17, the other end of the resistor R17 is grounded, the pin 23, 22, 21 and 20 of the Ethernet transceiver U5 is connected with the row resistor RN1, the other end of the resistor RN1 is connected with +V33E, the pin 19 of the Ethernet transceiver U5 is connected with +V33E power supply and connected with the capacitor C29 and the resistor R19, the other end of the resistor R19 is connected with the pin 15 of the Ethernet transceiver U5 and the capacitor C28, the other end of the capacitor C28 and the capacitor C29 is grounded; the pin 1 of the crystal oscillator Y3 is connected with the pin 4 of the Ethernet transceiver U5 and connected with the capacitor C27 and the resistor R18, the pin 3 of the crystal oscillator Y3 is connected with the pin 5 of the Ethernet transceiver U5 and connected with the capacitor C26 and the other end of the resistor R18, the other end of the capacitor C26 and the capacitor C27 is grounded, the pin 2 and 4 of the crystal oscillator Y3 is grounded.
6. The multi-functional network protocol conversion interface module of claim 1, wherein, The network communication interface circuit mainly includes network interface transformer L2, network interface RJ1. Pin 1 of network interface transformer L2 is connected with resistor R20, the other end of resistor R20 is connected with anti-static tube E1 and pin 21 of Ethernet transceiver U5, pin 3 of network interface transformer L2 is connected with resistor R21, the other end of resistor R21 is connected with the other end of anti-static tube E1 and pin 20 of Ethernet transceiver U5, pin 6 of L2 is connected with resistor R22, the other end of resistor R22 is connected with anti-static tube E2 and pin 23 of Ethernet transceiver U5, pin 8 of L2 is connected with resistor R23, the other end of resistor R23 is connected with the other end of anti-static tube E2 and pin 22 of Ethernet transceiver U5, pin 2 of network interface transformer L2 is connected with capacitor C32, pin 7 of network interface transformer L2 is connected with capacitor C33, the other ends of capacitor C32 and capacitor C33 are grounded; capacitor C30 and capacitor C31 are connected with device shell AGN diode D, the other ends of capacitor C30 and capacitor C31 are grounded; pin 16 of network interface transformer L2 is connected with pin 1 of network interface RJ1 and connected with gas discharge tube G diode DT2, pin 14 of network interface transformer L2 is connected with pin 2 of network interface RJ1 and connected with gas discharge tube G diode DT2, the other end of G diode DT2 is connected with device shell AGN diode D; pin 11 of network interface transformer L2 is connected with pin 3 of network interface RJ1 and connected with gas discharge tube G diode DT1, pin 9 of network interface transformer L2 is connected with pin 6 of network interface RJ1 and connected with gas discharge tube G diode DT1, the other end of G diode DT1 is connected with device shell AGN diode D; pin 10 of network interface transformer L2 is connected with resistor R24, the other end of resistor R24 is connected with capacitor C34, pin 15 of L2 is connected with resistor R25, the other end of resistor R25 is connected with capacitor C34, pin 7 of network interface RJ1 is connected with pin 8 of network interface RJ1, resistor R26, the other end of resistor R26 is connected with capacitor C34, pin 4 of network interface RJ1 is connected with pin 5 of network interface RJ1, connected with resistor R27, the other end of resistor R27 is connected with capacitor C34, the other ends of pin 9, 10 of network interface RJ1 and capacitor C34 are connected with device shell AGN diode D.
7. The multi-functional network protocol conversion interface module of claim 1, wherein, The RS232 communication interface circuit mainly includes RS-232 transceiver U12 and interface terminal P3. Pin 16 of RS-232 transceiver U12 is connected with +3.3V power supply and capacitor C41, pin 2 of RS-232 transceiver U12 is connected with capacitor C39, pin 6 of RS-232 transceiver U12 is connected with capacitor C40, the other end of capacitor C41, capacitor C39, capacitor C40 and pin 5 of interface terminal P3 are grounded; pin 7 of RS-232 transceiver U12 is connected with pin 2 of interface terminal P3, pin 8 of RS-232 transceiver U12 is connected with pin 3 of interface terminal P3; pin 1 of RS-232 transceiver U12 is connected with capacitor C42, the other end of capacitor C42 is connected with pin 3 of RS-232 transceiver U12, pin 4 of RS-232 transceiver U12 is connected with capacitor C43, the other end of capacitor C43 is connected with pin 5 of RS-232 transceiver U12.
8. The multi-functional network protocol conversion interface module of claim 1, wherein, The CAN communication interface circuit mainly includes CAN communication interface chip U10, inductor L3 and interface terminal P2. Pin 3 of CAN communication interface chip U10 is connected with +5V and capacitor C36, pin 2, 8 of CAN communication interface chip U10 and the other end of capacitor C36 are grounded; pin 7 of CAN communication interface chip U10 is connected with resistor R35 and pin 1 of inductor L3, pin 6 of CAN communication interface chip U10 is connected with the other end of resistor R35 and pin 2 of inductor L3, pin 5 of CAN communication interface chip U10 is connected with +3.3V; pin 4 of inductor L3 is connected with capacitor C37, pin 2 of P2 and pin 2 of anti-static tube T1, pin 3 of L3 is connected with capacitor C38, pin 1 of P2 and pin 1 of anti-static tube T1, the other end of capacitor C37, capacitor C38 and pin 3 of anti-static tube T1 are grounded.
9. The multi-functional network protocol conversion interface module of claim 1, wherein, The RS485 communication interface circuit includes RS-485 transceiver U8. Pin 1 of RS-485 transceiver U8 is connected with resistor R29 and pin 25 of single-chip microcomputer U4, pin 4 of RS-485 transceiver U8 is connected with resistor R28 and pin 86 of single-chip microcomputer U4, pin 8 of RS-485 transceiver U8 is connected with capacitor C35 and +3.3V, pin 2 of RS-485 transceiver U8 is connected with pin 3 of U8, resistor R30 and pin 2 of single-chip microcomputer U4, pin 5 of RS-485 transceiver U8, resistor R30 and the other end of capacitor C35 are grounded, the other end of resistor R28 and resistor R29 is connected with +3.3V power supply; pin 7 of RS-485 transceiver U8 is connected with resistor R33, the other end of resistor R33 is connected with F1 and pin 2 of anti-static tube T2, the other end of F1 is connected with pin 4 of P2; pin 6 of RS-485 transceiver U8 is connected with resistor R34, the other end of resistor R34 is connected with F2 and pin 1 of anti-static tube T2, the other end of F2 is connected with pin 3 of P2; pin 3 of anti-static tube T2 is grounded.