Industrial-grade USB and Ethernet communication protocol conversion device

By designing an industrial-grade USB and Ethernet communication protocol conversion device and using the main chip LAN9500A and EEPROM controller, the problem of many USB interfaces and few Ethernet interfaces in industrial terminal equipment is solved, and Ethernet communication support and signal optimization are achieved. Improved device connectivity and anti-interference performance.

CN221829009UActive Publication Date: 2024-10-11SHENZHEN SHENGXI ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420038745.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2024-10-11
Estimated Expiration
2034-01-08

AI Technical Summary

Technical Problem

USB interfaces are widely present in industrial terminal equipment, but Ethernet interfaces have fewer functions and lack effective industrial-grade USB and Ethernet communication protocol conversion devices, making it difficult to implement Ethernet communication.

Method used

Design an industrial-grade USB and Ethernet communication protocol conversion device, using the main chip LAN9500A, including USB interface, Ethernet interface, EEPROM and optional Ethernet physical layer interface, realizing protocol conversion through FIFO cache and EEPROM controller, supporting IEEE802.3 standard Ethernet access controller and USB protocol command processing.

Benefits of technology

Converting the USB interface to an Ethernet protocol facilitates industrial terminal equipment to connect to the gateway to achieve Ethernet communication. It supports high-speed and full-speed modes, enhances signal transmission distance and anti-interference capabilities, and provides signal coupling, impedance matching and high-voltage isolation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221829009U_ABST
    Figure CN221829009U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of interface protocol conversion, and discloses an industrial-grade USB and Ethernet communication protocol conversion device, which comprises a device body, a main chip LAN9500A is arranged in the device body, the periphery of the main chip LAN9500A is mainly provided with a USB interface, an Ethernet interface, an external EEPROM and an optional external Ethernet physical layer interface, and the USB interface, the Ethernet interface, the external EEPROM and the optional external Ethernet physical layer interface are connected with the main chip LAN9500A. The interior of the main chip LAN9500A is mainly composed of a USB part, an Ethernet part and a middle FIFO cache, the main chip LAN9500A further comprises an EEPROM controller, the FIFO is a transfer station which uses an internal SRAM cache to send and receive data packets, and the Ethernet part is integrated with an Ethernet access controller which conforms to IEEE802.3 and is suitable for a pair twisting mode. According to the utility model, a USB definition protocol is converted into an Ethernet communication protocol, Ethernet communication can be carried out by means of a USB interface, industrial terminal equipment can be conveniently connected with a gateway for interconnection, and Ethernet communication is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of interface protocol conversion, in particular to an industrial-grade USB and Ethernet communication protocol conversion device. Background Art

[0002] Industrial terminal products are mostly equipped with USB interfaces or comprehensive public interfaces that comply with the definition of USB specifications, but few have Ethernet functional interfaces. Small and easy-to-use USB interfaces or USB protocols are widely present in terminal devices, but Ethernet network interfaces or protocols are not everywhere. Therefore, there is an urgent need for an industrial-grade USB and Ethernet communication protocol conversion device to solve the above technical problems. Utility Model Content

[0003] The purpose of the utility model is to provide an industrial-grade USB and Ethernet communication protocol conversion device to solve the problems raised in the above background technology.

[0004] In order to achieve the above purpose, the utility model provides the following technical solutions:

[0005] An industrial-grade USB and Ethernet communication protocol conversion device includes a device body, wherein a main chip LAN9500A is arranged inside the device body, and the periphery of the main chip LAN9500A mainly includes a USB interface, an Ethernet interface, an external EEPROM, and an optional external Ethernet physical layer interface. The interior of the main chip LAN9500A is mainly composed of a USB part, an Ethernet part and a FIFO buffer in the middle, and the main chip LAN9500A also includes an EEPROM controller.

[0006] As a preferred technical solution of the utility model, the FIFO is a transfer station that uses an internal SRAM buffer to send and receive data packets.

[0007] As a preferred technical solution of the utility model, the Ethernet part integrates an Ethernet access controller that complies with IEEE802.3 and is suitable for twisted pair mode, and can choose to configure a built-in or external 100Base-Tx (100Mbps) Ethernet physical layer that can be configured as full-duplex or half-duplex.

[0008] As a preferred technical solution of the utility model, the USB part integrates the USB controller and the USB bottom layer protocol to complete USB protocol instructions, including data packet generation and extraction, interrupt management, control verification, error retransmission, and wake-up.

[0009] As a preferred technical solution of the utility model, the EEPROM controller is used to connect to a 3-wire external EEPROM.

[0010] As a preferred technical solution of the utility model, the EEPROM is automatically loaded when powered on or reset, and mainly stores USB descriptors and USB device descriptors, as well as the configuration of the Ethernet media access controller. When using it, the user can also choose to run without EEPROM.

[0011] Compared with the prior art, the utility model has the following beneficial effects:

[0012] The utility model converts the USB definition protocol into the Ethernet communication protocol, can use the USB interface to perform Ethernet communication, can conveniently connect industrial terminal equipment to the gateway interconnection, through the interface protocol conversion device, use the popularized USB interface protocol to conveniently access the gateway to achieve Ethernet communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0014] Figure 1 It is a schematic diagram of the overall structure of the utility model;

[0015] Figure 2 This is a schematic diagram of the internal structure of the main chip LAN9500A of the utility model;

[0016] Figure 3 It is a schematic diagram of the circuit principle of the utility model;

[0017] Figure 4-7 This is the EEPROM format table of the utility model.

[0018] In the figure: 1. Device body; 2. USB interface; 3. Ethernet interface; 4. External EEPROM; 5. External Ethernet physical layer interface. DETAILED DESCRIPTION

[0019] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant utility model, rather than to limit the utility model. It should also be noted that, for ease of description, only the parts related to the utility model are shown in the accompanying drawings. The different types of section lines in the drawings in the embodiments of the utility model are not marked according to the national standard, nor are there any requirements for the materials of the components, but are used to distinguish the cross-sectional views of the components in the drawings.

[0020] See also Figure 1-3An industrial-grade USB and Ethernet communication protocol conversion device includes a device body 1, a main chip LAN9500A is arranged inside the device body 1, the periphery of the main chip LAN9500A mainly includes a USB interface 2, an Ethernet interface 3, an external EEPROM 4, and an optional external Ethernet physical layer interface 5, the interior of the main chip LAN9500A is mainly composed of a USB part, an Ethernet part and a FIFO buffer in the middle, and the main chip LAN9500A also includes an EEPROM controller.

[0021] Among them, FIFO is a transfer station that uses internal SRAM to buffer the sent and received data packets.

[0022] The Ethernet part integrates an Ethernet access controller that complies with IEEE802.3 and is suitable for twisted pair mode, and can choose a built-in or external 100Base-Tx (100Mbps) Ethernet physical layer that can be configured as full-duplex or half-duplex.

[0023] The USB part integrates the USB controller and the USB underlying protocol to complete USB protocol instructions, including data packet generation and extraction, interrupt management, control verification, error retransmission, and wake-up.

[0024] Among them, the EEPROM controller is used to connect to the 3-wire external EEPROM.

[0025] The EEPROM is automatically loaded when powered on or reset, and mainly stores USB descriptors and USB device descriptors, as well as the configuration of the Ethernet media access controller. Users can also choose to run without EEPROM when using it.

[0026] Industrial terminal products are mostly equipped with USB interfaces or comprehensive public interfaces that comply with the definition of USB specifications, and are less likely to have Ethernet functional interfaces. Therefore, the conversion device can conveniently connect industrial terminal equipment to the gateway for interconnection.

[0027] The conversion between USB protocol and Ethernet protocol is based on USB2.0 specification, supports high-speed (480Mbps) and full-speed (12Mbps) modes, and converts to 100M Ethernet, supports 100BASE-TX and 10BASE-TX, and complies with IEEE802.3 and IEEE802.3u. A network transformer is attached to the Ethernet output end to perform signal coupling, impedance matching, waveform repair, signal clutter suppression and high voltage isolation.

[0028] The USB port of the conversion device can be directly connected to an interface that complies with USB2.0 and below specifications, and the Ethernet port can be directly connected to an IEEE802.3 network interface for use.

[0029] In Ethernet devices, when connecting to RJ45 via PHY, a network transformer is added in the middle. Some transformers have the center tap connected to the power supply, while others connect the capacitor to the ground. And when connecting to the power supply, the power supply value can be different, including 3.3V, 2.5V, and 1.8V.

[0030] As for why some center taps are connected to power and some to ground, this is mainly determined by the UTP port driver type of the PHY chip used. There are two types of drivers, voltage drive and current drive. The voltage drive must be connected to the power supply; the current drive can be directly connected to a capacitor to the ground. Therefore, for different chips, the connection method of the center tap is closely related to PHY. For details, please refer to the chip datasheet and reference design.

[0031] As for why different voltages are connected when connecting to the power supply, this is also determined by the UTP port level specified in the PHY chip data used. The corresponding voltage must be connected according to the determined level, that is, if it is 2.5v, it should be pulled up to 2.5v, and if it is 3.3v, it should be pulled up to 3.3v.

[0032] As for what the transformer is for, and can it be left unconnected, theoretically, it is possible to connect it directly to RJ45 without a transformer, and it will work normally, but the transmission distance will be very limited, and when connected to network ports of different levels, it will also be affected, and the external interference to the chip is also very large. When the network transformer is connected, it is mainly used for signal level coupling. First, it can enhance the signal and make its transmission distance longer; second, it isolates the chip end from the outside, greatly enhances the anti-interference ability, and adds a lot of protection to the chip (such as lightning strikes); third, when connected to network ports of different levels (such as some PHY chips are 2.5V, and some PHY chips are 3.3V), it will not affect each other's devices.

[0033] In general, network transformers mainly have the functions of signal transmission, impedance matching, waveform repair, signal noise suppression and high voltage isolation.

[0034] A transformer is required between the PHY chip and RJ5, with 8 Ethernet lines, to suppress common-mode signals, conduct differential-mode signals, and isolate DC signals. In the pre-transformer stage, there is usually a center tap to borrow 2.5V or 3.3V, and the center tap of the secondary is connected to 4 resistors of 75ohm plus a 2000V discharge capacitor to ground.

[0035] like Figure 4-7As shown in the figure, two 49.9 or 50Ω (accuracy 1%) terminating resistors are connected in parallel between the transmitting differential line and the receiving differential line. The function of this resistor is to achieve impedance matching. For a transformer with a primary ratio of 1:1, the ratio of its input resistance to output resistance is also 1:1. The result of this parallel connection is a matching resistor of 100Ω at the output end. The characteristic impedance of the twisted pair cables we use now is mostly 100Ω.

[0036] First, if Figure 3 As shown in the schematic diagram, the entire system uses the USB bus power supply mode and does not use an external power supply. The main chip U1 requires 3.3V power supply, and the USB provides 5V power supply, so an LDO is used to stabilize the 3.3V output, such as the TPS79333 of U2 in the figure. The crystal oscillator selects a 25MHz passive external crystal oscillator. Multiple VDD33IOs of U1 are connected together for direct access.

[0037] U1's power supply VDD33 is connected to VDD33A through a 120 ohm bead at 100MHz. In addition, VDDUSBPLL must be connected to VDDCORE through a 120 ohm bead at 100MHz to work properly. At the same time, place a 0.1uF decoupling capacitor near these power supply pins.

[0038] Secondly, the USB signal is transmitted to the main chip U1 through J1 and the USB interface. U1 buffers, processes and converts the data into an Ethernet MAC of 100Base-Tx compliant with IEEE802.3, and transmits it through the Tx and Rx data packets of the built-in configured Ethernet physical layer.

[0039] Finally, the Ethernet signal converted by U1 is connected to the Ethernet interface through the network transformer. The center tap of the transformer primary is connected to VDD = 3.3V; the center tap of the secondary is connected to 4 resistors of 75 ohms, and then to a 2000V withstand voltage, 1nF capacitor to ground.

[0040] The main function of the network transformer is signal coupling: first, it tidies the signal waveform and suppresses clutter, making it transmit farther. Second, the chip is isolated from the outside, the anti-interference ability is greatly enhanced, and the chip is protected from external lightning strikes. Third, when the middle tap of the remote transmitter is connected to the network port of different voltage levels (such as 2.5V and 3.3V), it will not affect each other's equipment.

[0041] In addition, two 49.9 ohm (accuracy 1%) resistors are connected in parallel between the transmit differential line and the receive differential line for impedance matching. The ratio of the primary to the secondary of transformers TC1 and TC2 is 1:1, and the ratio of their input resistance to output resistance is also 1:1. The result of the parallel resistors is a matching resistor of 100 ohms at the output end, which matches the characteristic impedance of the commonly used twisted pair of 100 ohms.

[0042] Regarding the connected external EEPROM, you can select its capacity through U1's 53-pin EEP_SIZE. You can choose 128 bytes (128*8bit) or 256 bytes (256*8bit). Of course, the main chip U1 can run without EEPROM.

[0043] like Figure 3 In the schematic diagram, a 3-wire external EEPROM is supported to configure the USB descriptor and MAC address. Pins 29, 30, 31, 32, 53 and 56 control and communicate with the external EEPROM. In order for the EEPROM configuration content to be valid, the EEPROM must be configured correctly. The following table shows the format of the EEPROM and the typical configuration data of the external EEPROM of the LAN9500A.

[0044] Working principle and use process of the utility model: First, the contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.

[0045] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the utility model involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the concept of the utility model. For example, the above features are replaced with the technical features with similar functions disclosed in the present application (but not limited to) by each other to form a technical solution.

Claims

1. An industrial-grade USB and Ethernet communication protocol conversion device, comprising a device body (1), characterized in that: The device body (1) is internally provided with a main chip LAN9500A, and the periphery of the main chip LAN9500A mainly includes a USB interface (2), an Ethernet interface (3), an external EEPROM (4), and an optional external Ethernet physical layer interface (5). The interior of the main chip LAN9500A is mainly composed of a USB part, an Ethernet part and a FIFO buffer in the middle, and the main chip LAN9500A also includes an EEPROM controller.

2. The industrial-grade USB to Ethernet communication protocol conversion device according to claim 1, characterized in that: The FIFO is a transfer station for transmit and receive packets using internal SRAM buffering.

3. The industrial-grade USB to Ethernet communication protocol conversion device according to claim 1, characterized in that: The Ethernet part integrates an Ethernet access controller compliant with IEEE802.3 suitable for twisted pair mode, and can choose a built-in or external 100Base-Tx (100Mbps) based Ethernet physical layer that can be configured as full-duplex or half-duplex.

4. The industrial-grade USB to Ethernet communication protocol conversion device according to claim 1, characterized in that: The USB part integrates the USB controller and the USB bottom layer protocol, and completes the USB protocol instructions, including the generation and extraction of data packets, interrupt management, control verification, error retransmission, and wake-up.

5. The industrial-grade USB to Ethernet communication protocol conversion device according to claim 1, characterized in that: The EEPROM controller is used to connect to a 3-wire external EEPROM.

6. The industrial-grade USB to Ethernet communication protocol conversion device according to claim 1, characterized in that: The EEPROM is automatically loaded when powered on or reset, and mainly stores USB descriptors and USB device descriptors, as well as the configuration of the Ethernet media access controller. When in use, the user can also choose to run without EEPROM.