CAN bus gateway of multi-protocol Ethernet interface
By designing a CAN bus gateway with a multi-protocol Ethernet interface and using a multi-channel protocol selector to realize automatic protocol conversion, the problems of single function and low stability in the existing technology are solved, and automatic conversion of multiple protocols and device interconnection are realized. Improved system stability.
Patent Information
- Application Number
- CN202420219315.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2034-01-30
AI Technical Summary
The existing protocol conversion gateway has a single function, supports few protocols, and is not very stable. It cannot realize automatic conversion of multiple protocols, making it impossible to realize interconnection and interoperability between various devices through one gateway.
Design a CAN bus gateway with a multi-protocol Ethernet interface, including CPU, memory, status indication and multi-channel protocol selector. The multi-channel protocol selector is connected to the Ethernet interface through the Ethernet driver, and in turn connected to the CAN isolation, CAN driver and CAN interface, with internal preset protocol conversion formulas and conversion tables, can perform automatic protocol conversion based on the identification and format of data.
It realizes automatic determination of the protocol of input data for conversion, avoids the use of multiple gateways with different protocols, improves system stability, and effectively prevents equipment interference through CAN isolation to ensure operational stability.
Smart Images

Figure CN221669894U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of intelligent gateways, in particular to a CAN bus gateway with a multi-protocol Ethernet interface. Background Art
[0002] The protocol conversion gateway can meet the application requirements of various occasions and can quickly realize the conversion from one protocol to another, thereby greatly improving the construction speed of the project. However, most protocol conversion gateways have relatively simple functions, support few protocols, and are not very stable. They cannot realize the automatic conversion of multiple protocols and cannot realize the interconnection between various devices through one gateway; therefore, a CAN bus gateway with a multi-protocol Ethernet interface is proposed. Utility Model Content
[0003] In order to solve the above problems, that is, to solve the problems raised by the above background technology, the utility model proposes a CAN bus gateway with a multi-protocol Ethernet interface, which includes a CPU, the CPU is respectively connected to a memory, a status indicator and a multi-way protocol selector, the multi-way protocol selector is connected to an Ethernet interface through an Ethernet driver, and the Ethernet interface is used to connect to a remote server;
[0004] The multi-way protocol selector is connected to a CAN isolation, a CAN driver and a CAN interface in sequence, and the CAN interface is used to connect to an external CAN bus;
[0005] The multi-way protocol selector has preset protocol conversion formulas and conversion tables inside. The multi-way protocol selector is used to select corresponding conversion formulas and conversion tables for conversion according to the identification and format of the data transmitted from the CAN interface, and then transmit them to the Ethernet interface, i.e., its external device. The multi-way protocol selector is also used to select corresponding conversion formulas and conversion tables for conversion according to the identification and format of the data transmitted from the Ethernet interface, and then transmit them to the CAN interface, i.e., its external device.
[0006] The utility model is further configured as follows: the protocols include MQTT, Modbus / TCP, UDP and TCP.
[0007] The utility model is further configured as follows: the memory is used to cache data transmitted by the Ethernet interface and the CAN interface.
[0008] The utility model is further configured as follows: the status indication is used to display the currently selected protocol.
[0009] The utility model is further configured as follows: the CAN isolation is used to isolate the device connected to the CAN interface
[0010] The beneficial technical effects of the utility model are as follows: the device of the present application can automatically determine the protocol of the current input data, convert it according to the conversion table, avoid using multiple gateways of different protocols, and realize the conversion of various protocols; through the set CAN isolation, the interference of CAN devices can be effectively prevented, making the operation more stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 Shown is a schematic diagram of the structure of the utility model. DETAILED DESCRIPTION
[0012] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0013] The utility model proposes a CAN bus gateway with a multi-protocol Ethernet interface, comprising a CPU, wherein the CPU is respectively connected to a memory, a status indicator and a multi-way protocol selector, wherein the multi-way protocol selector is connected to an Ethernet interface via an Ethernet driver, and the Ethernet interface is used to connect to a remote server;
[0014] The multi-way protocol selector is connected to a CAN isolation, a CAN driver and a CAN interface in sequence, and the CAN interface is used to connect to an external CAN bus;
[0015] The multi-way protocol selector has preset protocol conversion formulas and conversion tables inside. The multi-way protocol selector is used to select corresponding conversion formulas and conversion tables for conversion according to the identification and format of the data transmitted from the CAN interface, and then transmit them to the Ethernet interface, i.e., its external device. The multi-way protocol selector is also used to select corresponding conversion formulas and conversion tables for conversion according to the identification and format of the data transmitted from the Ethernet interface, and then transmit them to the CAN interface, i.e., its external device.
[0016] The protocols include MQTT, Modbus / TCP, UDP and TCP.
[0017] The memory is used to cache data transmitted by the Ethernet interface and the CAN interface.
[0018] The status indicator is used to display the currently selected protocol.
[0019] The CAN isolation is used to isolate devices connected to the CAN interface to prevent interference and provide greater stability.
[0020] When in use: connect the Ethernet interface of this device to the server, connect the CAN interface to the CAN bus, and the data of the CAN bus is transmitted to the multi-way protocol selector through the CAN interface and CAN isolation in turn, and then transmitted to the Ethernet driver and Ethernet interface for protocol conversion, and finally transmitted to the server; the data sent by the server enters from the Ethernet interface, passes through the multi-way protocol selector and CAN isolation in turn, and is finally transmitted to the CAN bus through the CAN interface. The bidirectional data is stored in the memory, and the status indicator displays the currently selected protocol.
[0021] Although the present invention has been described with reference to preferred embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present invention. In particular, the various technical features mentioned in the various embodiments may be combined in any manner as long as there is no structural conflict. The present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
[0022] In the description of the present invention, the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings, which are only for the convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0023] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0024] The term "comprise" or any other similar term is intended to cover a non-exclusive inclusion, such that a process, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, article, or apparatus / device.
[0025] So far, the technical solution of the present invention has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A CAN bus gateway with a multi-protocol Ethernet interface, characterized in that: It includes a CPU, the CPU is respectively connected to a memory, a status indicator and a multi-way protocol selector, the multi-way protocol selector is connected to an Ethernet interface through an Ethernet driver, and the Ethernet interface is used to connect to a remote server; The multi-way protocol selector is connected to a CAN isolation, a CAN driver and a CAN interface in sequence, and the CAN interface is used to connect to an external CAN bus; The multi-way protocol selector has preset protocol conversion formulas and conversion tables inside. The multi-way protocol selector is used to select corresponding conversion formulas and conversion tables for conversion according to the identification and format of the data transmitted from the CAN interface, and then transmit them to the Ethernet interface, i.e., its external device. The multi-way protocol selector is also used to select corresponding conversion formulas and conversion tables for conversion according to the identification and format of the data transmitted from the Ethernet interface, and then transmit them to the CAN interface, i.e., its external device.
2. The CAN bus gateway with a multi-protocol Ethernet interface according to claim 1, characterized in that: The protocols include MQTT, Modbus / TCP, UDP and TCP.
3. The CAN bus gateway with a multi-protocol Ethernet interface according to claim 1, characterized in that: The memory is used to cache data transmitted by the Ethernet interface and the CAN interface.
4. The CAN bus gateway with a multi-protocol Ethernet interface according to claim 1, characterized in that: The status indicator is used to display the currently selected protocol.
5. The CAN bus gateway with a multi-protocol Ethernet interface according to claim 1, characterized in that: The CAN isolation is used to isolate devices connected to the CAN interface.
