Control monitoring device and system of CAN network

文档序号:1965897 发布日期:2021-12-14 浏览:18次 中文

阅读说明:本技术 Can网络的控制监听装置及系统 (Control monitoring device and system of CAN network ) 是由 张振 焦亮 胡志恒 董秀成 刘翔 高华 尚程 瞿铭君 孟欢 朱庆春 薛丽莹 黄 于 2021-09-09 设计创作,主要内容包括:本发明公开了一种CAN网络的控制监听装置及系统,该装置包括第一以太网接口模块、第一CAN协议控制芯片、通信模块、第二CAN协议控制芯片和第二以太网接口模块;第一以太网接口模块与第一CAN协议控制芯片连接,第一CAN协议控制芯片与第二CAN协议控制芯片连接,第二CAN协议控制芯片与第二以太网接口模块连接;通信模块旁路连接第一CAN协议控制芯片和第二CAN协议控制芯片,通信模块用于向测试设备发送目标数据,目标数据为第一CAN协议控制芯片与第二CAN协议控制芯片之间传输的CAN网络数据:本发明将CAN网络适配的目标数据,通过旁路连接的通信模块发送至测试设备,进而实现在使用以太网接口的CAN网络的控制监听系统中,对CAN网络进行检测,提高CAN网络检测的可靠性。(The invention discloses a control monitoring device and a system of a CAN network, wherein the device comprises a first Ethernet interface module, a first CAN protocol control chip, a communication module, a second CAN protocol control chip and a second Ethernet interface module; the first Ethernet interface module is connected with a first CAN protocol control chip, the first CAN protocol control chip is connected with a second CAN protocol control chip, and the second CAN protocol control chip is connected with a second Ethernet interface module; the communication module bypass is connected with the first CAN protocol control chip and the second CAN protocol control chip, the communication module is used for sending target data to the test equipment, and the target data is CAN network data transmitted between the first CAN protocol control chip and the second CAN protocol control chip: the invention transmits the target data adapted to the CAN network to the test equipment through the communication module connected with the bypass, thereby realizing the detection of the CAN network in the control monitoring system of the CAN network using the Ethernet interface and improving the reliability of the CAN network detection.)

1. A control monitoring system of a CAN network is characterized by comprising: the device comprises a first Ethernet interface module, a first CAN protocol control chip, a communication module, a second CAN protocol control chip and a second Ethernet interface module;

the first Ethernet interface module is used for receiving first Ethernet data, unpacking the first Ethernet data, and packaging an unpacking result according to a CAN protocol to obtain a first CAN protocol data packet;

the first Ethernet interface module transmits a first CAN protocol data packet to a first CAN protocol control chip;

the first CAN protocol control chip is used for carrying out CAN network control according to the CAN protocol data packet and sending target data contained in the first CAN protocol data packet to the second CAN protocol control chip;

the second CAN protocol control chip generates a second CAN protocol data packet according to target data contained in the CAN protocol data packet;

the second CAN protocol control chip transmits the second CAN protocol data packet to the second Ethernet interface module;

the second Ethernet interface module generates second Ethernet data according to the second CAN protocol data packet;

the communication module is connected with the first CAN protocol control chip and the second CAN protocol control chip through a bypass and is used for acquiring the target data sent by the first CAN protocol control chip to the second CAN protocol control chip; and sending the target data to the test equipment.

2. A control monitoring device of a CAN network is characterized by comprising:

the device comprises a first Ethernet interface module, a first CAN protocol control chip, a communication module, a second CAN protocol control chip and a second Ethernet interface module;

the first Ethernet interface module is connected with the first CAN protocol control chip, the first CAN protocol control chip is connected with the second CAN protocol control chip, and the second CAN protocol control chip is connected with the second Ethernet interface module;

the communication module bypass is connected with the first CAN protocol control chip and the second CAN protocol control chip, the communication module is used for sending target data to test equipment, and the target data is CAN network data transmitted between the first CAN protocol control chip and the second CAN protocol control chip.

3. The apparatus of claim 2,

the first CAN protocol control chip comprises a first data receiving pin and a first data sending pin;

the second CAN protocol control chip comprises a second data receiving pin and a second data sending pin;

the communication module comprises a third data receiving pin;

the second data sending pin, the first data receiving pin and the third data receiving pin form a T-shaped connection;

the first data sending pin, the second data receiving pin and the third data receiving pin form a T-shaped connection.

4. The apparatus of claim 2, wherein the communication module is a mobile cellular network communication module.

5. The apparatus of claim 2, further comprising a DC-DC power module to power the first ethernet interface module, the first CAN protocol control chip, the communication module, the second CAN protocol control chip, and the second ethernet interface module.

6. The apparatus of claim 2,

the first Ethernet interface module transmits the first CAN protocol data packet to the first CAN protocol control chip through the SPI;

and the second CAN protocol control chip transmits the second CAN protocol data packet to the second Ethernet interface module through the SPI.

Technical Field

The embodiment of the invention relates to the technology of Internet of things, in particular to a control monitoring device and system of a CAN (controller area network).

Background

With the rapid popularization and development of the internet of things, devices based on a Controller Area Network (CAN) are increasingly widely applied to industrial control systems. In the scenario of car networking, when detecting vehicle-mounted data, it is usually necessary to use a terminal with an analysis function to interface with a CAN bus (twisted pair) on a vehicle. And carrying out vehicle-mounted data detection through a terminal with subsystem functions.

When the ethernet-to-CAN device no longer uses the twisted pair (CAN _ H and CAN _ L) of the standard CAN protocol, the detection of the CAN cannot be realized due to the lack of the standard CAN interface, and the CAN detection is unreliable. How to detect the CAN under the condition of using the ethernet interface becomes a problem to be solved urgently.

Disclosure of Invention

The invention provides a control monitoring device and a control monitoring system of a CAN (controller area network) network, which are used for detecting the CAN in conversion equipment using an Ethernet interface and improving the reliability of CAN detection.

In a first aspect, an embodiment of the present invention provides a control monitoring system for a CAN network, where the control monitoring system includes: the device comprises a first Ethernet interface module, a first CAN protocol control chip, a communication module, a second CAN protocol control chip and a second Ethernet interface module;

the first Ethernet interface module is used for receiving first Ethernet data, unpacking the first Ethernet data and packaging the unpacking result according to the CAN protocol to obtain a first CAN protocol data packet;

the first Ethernet interface module transmits the first CAN protocol data packet to a first CAN protocol control chip;

the first CAN protocol control chip is used for carrying out CAN network control according to the CAN protocol data packet and sending target data contained in the first CAN protocol data packet to the second CAN protocol control chip;

the second CAN protocol control chip generates a second CAN protocol data packet according to target data contained in the CAN protocol data packet;

the second CAN protocol control chip transmits a second CAN protocol data packet to the second Ethernet interface module;

the second Ethernet interface module generates second Ethernet data according to a second CAN protocol data packet;

the communication module is connected with the first CAN protocol control chip and the second CAN protocol control chip through a bypass and used for acquiring target data sent by the first CAN protocol control chip to the second CAN protocol control chip; and sending the target data to the test equipment.

In a second aspect, an embodiment of the present invention further provides a control monitoring apparatus for a CAN network, including:

the device comprises a first Ethernet interface module, a first CAN protocol control chip, a communication module, a second CAN protocol control chip and a second Ethernet interface module;

the first Ethernet interface module is connected with a first CAN protocol control chip, the first CAN protocol control chip is connected with a second CAN protocol control chip, and the second CAN protocol control chip is connected with a second Ethernet interface module;

the communication module bypass is connected with the first CAN protocol control chip and the second CAN protocol control chip, the communication module is used for sending target data to the test equipment, and the target data is CAN network data transmitted between the first CAN protocol control chip and the second CAN protocol control chip.

In the control monitoring system of the CAN network provided in the embodiment of the present invention, a first CAN protocol control chip and a second CAN protocol control chip are disposed between a first ethernet interface module and a second ethernet interface module. The first Ethernet interface module receives first Ethernet data, unpacks the first Ethernet data, and packages unpacked results according to a CAN protocol to obtain a first CAN protocol data packet. The first CAN protocol control chip performs CAN network control according to the CAN protocol data packet and sends target data contained in the first CAN protocol data packet to the second CAN protocol control chip. The communication module is used for performing bypass connection on the connection between the first CAN protocol control chip and the second CAN protocol control chip, and further monitoring target data which are communicated between the first CAN protocol control chip and the second CAN protocol control chip and are applicable to a CAN network. The communication module sends the acquired target data to the test equipment, and then the target data suitable for the CAN network CAN be tested through the test equipment. And the second Ethernet interface module generates second Ethernet data according to the target data and outputs the second Ethernet data through the Ethernet data. The invention converts the Ethernet data into the target data adaptive to the CAN network, and sends the target data to the test equipment through the communication module connected with the bypass while carrying out CAN network control according to the target data, thereby realizing the detection of the CAN network in the control monitoring system of the CAN network using the Ethernet interface and improving the reliability of the CAN network detection.

Drawings

Fig. 1 is a schematic structural diagram of a control monitoring system of a CAN network in a first embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Example one

Fig. 1 is a schematic structural diagram of a control monitoring system of a CAN network according to an embodiment of the present invention, where the system is applied to a case where data transmission control of an internet of things is performed by using an ethernet, especially a case where data transmission is performed by using an ethernet interface in an internet of vehicles. The system comprises: a first ethernet interface module 101, a first CAN protocol control chip 102, a communication module 105, a second CAN protocol control chip 103 and a second ethernet interface module 104.

The first ethernet interface module 101 is configured to receive first ethernet data, unpack the first ethernet data, and package an unpack result according to a CAN protocol to obtain a first CAN protocol data packet.

The first ethernet interface module 101 has an RJ45 interface and is capable of connecting with an RJ 45. RJ (Registered Jack) 45 is one of the connectors of information sockets (i.e., communication outlets) in wiring systems, and is composed of a plug (connector, crystal header) and a socket (module), and the plug has 8 grooves and 8 contacts. First ethernet interface module 101 receives first ethernet data through RJ 45. The first ethernet data may be a packet of a User Datagram Protocol (UDP), a Transmission Control Protocol (TCP), or an Internet Protocol (IP). And analyzing the first Ethernet data to obtain an unpacking result. And packaging the unpacking result according to the CAN protocol to obtain a first CAN protocol data packet which accords with the CAN protocol.

The first ethernet interface module 101 transmits the first CAN protocol data packet to the first CAN protocol control chip 102.

First ethernet interface module 101 may be connected to first CAN protocol control chip 102 through SPI. The first CAN protocol data packet is transmitted to the first CAN protocol control chip 102 through the SPI.

The first CAN protocol control chip 102 is configured to perform CAN network control according to a CAN protocol data packet, and send target data included in the first CAN protocol data packet to the second CAN protocol control chip 103.

After receiving the first CAN protocol data packet, the first CAN protocol control chip 102 identifies the CAN data packet according to the CAN protocol, and completes the CAN protocol control process. And simultaneously, target data of an application layer carried by a CAN protocol is converted into data receiving RxD communication and data sending TxD communication of a serial interface. The hardware is implemented as a data reception RxD pin and a data transmission TxD pin. The data receiving RxD pin of the first CAN protocol control chip 102 is also called a first data receiving pin, and the data transmitting TxD pin of the first CAN protocol control chip 102 is also called a first data transmitting pin.

The second CAN-protocol control chip 103 also has a data receive RxD pin and a data transmit TxD pin. A data transmission TxD pin of the first CAN protocol control chip 102 is connected with a data reception RxD pin of the second CAN protocol control chip 103. A data receiving RxD pin of the first CAN protocol control chip 102 is connected with a data transmitting TxD pin of the second CAN protocol control chip 103. The data receiving RxD pin of the second CAN protocol control chip 103 is also called a second data receiving pin, and the data transmitting TxD pin of the second CAN protocol control chip 103 is also called a second data transmitting pin.

From the viewpoint of data flow, when ethernet data is received by the first ethernet interface module 101 and sent out through the second ethernet interface module 104, the first CAN-protocol control chip 102 sends target data to the data-receiving RxD pin of the second CAN-protocol control chip 103 through data-sending TxD communication. Optionally, when the ethernet data is received by the second ethernet interface module 104 and sent out through the first ethernet interface module 101, the second CAN protocol control chip 103 sends the target data to the data receiving RxD pin of the first CAN protocol control chip 102 through data sending TxD communication.

The second CAN protocol control chip 103 generates a second CAN protocol data packet according to the target data included in the CAN protocol data packet.

The second CAN protocol control chip 103 receives the target data transmitted by the first CAN protocol control chip 102 through a data receiving RxD pin. The second CAN protocol control chip 103 packages the target data according to the CAN protocol to obtain a second CAN protocol data packet.

The second CAN protocol control chip 103 transmits the second CAN protocol data packet to the second ethernet interface module 104.

The second CAN protocol control chip 103 is connected to the second ethernet interface module 104 through the SPI. The second CAN protocol packet is transmitted to the second ethernet interface module 104 through the SPI.

The second ethernet interface module 104 generates second ethernet data from the second CAN protocol data packet.

The second ethernet interface module 104 unpacks the second CAN protocol data packet according to the CAN protocol, and obtains an unpack result. And packaging the unpacking result according to a transmission protocol used by Ethernet transmission to obtain second Ethernet data. And outputting the second Ethernet data through an RJ45 interface.

The communication module 105 is connected with the first CAN protocol control chip 102 and the second CAN protocol control chip 103 through a bypass, and the communication module 105 is used for acquiring target data sent by the first CAN protocol control chip 102 to the second CAN protocol control chip 103; and sending the target data to the test equipment.

The communication module 105 has two data receiving RxD pins, and the data receiving RxD pin of the communication module 105 is also called a third data receiving pin. A data receiving RxD pin of the communication module 105 forms a T-type connection with the data transmitting TxD pin of the first CAN protocol control chip 102 and the data receiving RxD pin of the second CAN protocol control chip 103, in other words, the communication module 105 is connected to the data transmitting TxD pin of the first CAN protocol control chip 102 and the data receiving RxD pin of the second CAN protocol control chip 103 by a bypass. Through the above-described bypass connection, the communication module 105 CAN acquire target data transmitted from the first CAN-protocol control chip 102 to the second CAN-protocol control chip 103.

The other data receiving RxD pin of the communication module 105 forms a T-type connection with the data transmitting TxD pin of the second CAN protocol control chip 103 and the data receiving RxD pin of the first CAN protocol control chip 102, in other words, the communication module 105 is connected to the data transmitting TxD pin of the second CAN protocol control chip 103 and the data receiving RxD pin of the first CAN protocol control chip 102 by a bypass. Through the above-described bypass connection, the communication module 105 CAN acquire target data transmitted to the first CAN protocol control chip 102 by the second CAN protocol control chip 103.

After acquiring the target data, the communication module 105 sends the target data to the test equipment. The communication module 105 may be a mobile cellular network communication module capable of transmitting the target data to a 3G network, a 4G network, or a 5G network.

The testing device can be a tablet computer, a notebook computer and other mobile terminals. The test equipment can also be computer equipment such as a personal computer, a workstation and the like. The tester CAN control the test equipment to receive the target data and carry out CAN network detection on the test equipment according to the received target data.

Further, the control monitoring system of the CAN network also comprises a DC-DC power supply module. The DC-DC power module is used to supply power to the first ethernet interface module 101, the first CAN protocol control chip 102, the communication module 105, the second CAN protocol control chip 103, and the second ethernet interface module 104.

The CAN detection terminal at present needs to be connected with a power supply with 220V voltage because the CAN detection terminal needs to perform CAN analysis task. In the invention, the communication module 105 sends the target data to the test equipment for testing, so that the control monitoring system of the CAN network does not need to perform CAN analysis tasks, thereby greatly reducing the power supply requirement of the control monitoring system of the CAN network. So that the DC-DC power supply module can be used for power supply. The DC-DC power module CAN be connected with portable power supply equipment such as a mobile power supply and the like, a power supply with 220V voltage does not need to be connected, and convenience of CAN network testing is greatly improved.

Further, ethernet data may be transmitted in the direction of input from the first ethernet interface module 101 and output from the second ethernet interface module 104. Or may be transmitted in the direction of the input from the second ethernet interface module 104 and the output from the first ethernet interface module 101.

In the control monitoring system of the CAN network provided in the embodiment of the present invention, a first CAN protocol control chip 102 and a second CAN protocol control chip 103 are disposed between a first ethernet interface module 101 and a second ethernet interface module 104. The first Ethernet interface module receives first Ethernet data, unpacks the first Ethernet data, and packages unpacked results according to a CAN protocol to obtain a first CAN protocol data packet. The first CAN protocol control chip 102 performs CAN network control according to the CAN protocol data packet, and transmits target data included in the first CAN protocol data packet to the second CAN protocol control chip 103. The communication module 105 performs bypass connection on the connection between the first CAN protocol control chip 102 and the second CAN protocol control chip 103, and CAN monitor target data applicable to the CAN network communicated between the first CAN protocol control chip 102 and the second CAN protocol control chip 103. The communication module 105 sends the acquired target data to the test equipment, so that the target data suitable for the CAN network CAN be tested through the test equipment. The second ethernet interface module 104 generates second ethernet data according to the target data, and outputs the second ethernet data through the ethernet data. According to the CAN network adaptive monitoring system, the Ethernet data is converted into the CAN network adaptive target data, the CAN network is controlled according to the target data, and meanwhile, the target data is sent to the testing equipment through the communication module 105 connected with the bypass, so that the CAN network is detected in the CAN network control monitoring system using the Ethernet interface, and the reliability of CAN network detection is improved.

Example two

The second embodiment of the present invention provides a control monitoring apparatus for a CAN network, including: a first ethernet interface module 101, a first CAN protocol control chip 102, a communication module 105, a second CAN protocol control chip 103 and a second ethernet interface module 104; the first Ethernet interface module 101 is connected with a first CAN protocol control chip 102, the first CAN protocol control chip 102 is connected with a second CAN protocol control chip 103, and the second CAN protocol control chip 103 is connected with a second Ethernet interface module 104; the communication module 105 is connected to the first CAN protocol control chip 102 and the second CAN protocol control chip 103 in a bypass manner, the communication module 105 is configured to send target data to the test device, and the target data is CAN network data transmitted between the first CAN protocol control chip 102 and the second CAN protocol control chip 103.

On the basis of the above embodiment, the first CAN protocol control chip 102 includes a first data receiving pin and a first data transmitting pin; the second CAN protocol control chip 103 includes a second data receiving pin and a second data transmitting pin; the communication module 105 includes a third data receiving pin. The second data sending pin, the first data receiving pin and the third data receiving pin form T-shaped connection; the first data sending pin, the second data receiving pin and the third data receiving pin form T-shaped connection. The T-connection enables the communication module 105 to bypass the first data transmission pin of the first CAN protocol control chip 102 and the second data transmission pin of the second CAN protocol control chip 103. The communication module 105 is caused to acquire the target data transmitted by the first CAN-protocol control chip 102 or the second CAN-protocol control chip 103. The bypass connection CAN achieve rapid acquisition of target data without affecting CAN network control.

On the basis of the above embodiment, the communication module 105 is a mobile cellular network communication module. The mobile communication network CAN transmit the target data to the test equipment, and the test equipment CAN detect the CAN network, so that the CAN network detection is more convenient to deploy.

On the basis of the above embodiment, the controller further includes a DC-DC power supply module, and the DC-DC power supply module is configured to supply power to the first ethernet interface module 101, the first CAN protocol control chip 102, the communication module 105, the second CAN protocol control chip 103, and the second ethernet interface module 104. The DC-DC power supply module is capable of implementing a 5V input voltage for a Universal Serial Bus (USB) interface. The device has low power consumption characteristic, and 5V input voltage can play a role in safety protection of each module and each chip.

On the basis of the foregoing embodiment, the first ethernet Interface module 101 transmits the first CAN protocol data packet to the first CAN protocol control chip 102 through a Serial Peripheral Interface (SPI) Interface; the second CAN protocol control chip 103 transmits the second CAN protocol data packet to the second ethernet interface module 104 through the SPI. SPI can improve data transmission's stability, improves data transmission quality.

The control monitoring device of the CAN network provided by the embodiment of the invention comprises a first ethernet interface module 101, a first CAN protocol control chip 102, a communication module 105, a second CAN protocol control chip 103 and a second ethernet interface module 104; the first Ethernet interface module 101 is connected with a first CAN protocol control chip 102, the first CAN protocol control chip 102 is connected with a second CAN protocol control chip 103, and the second CAN protocol control chip 103 is connected with a second Ethernet interface module 104; the communication module 105 is connected to the first CAN protocol control chip 102 and the second CAN protocol control chip 103 in a bypass manner, the communication module 105 is configured to send target data to the test device, and the target data is CAN network data transmitted between the first CAN protocol control chip 102 and the second CAN protocol control chip 103. Can be with the target data of ethernet data conversion CAN network adaptation, when carrying out CAN network control according to the target data, send the communication module 105 of target data through bypass connection to test equipment, and then realize detecting the CAN network in the control monitoring system of the CAN network that uses the ethernet interface, improve CAN network detection's reliability.

It should be noted that, in the embodiment of the apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种机车消防控制器直流载波通信模块

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!