Data processing device and method, electronic equipment and storage medium

By using a PHY chip and control module with adaptability in the data processing device, flexible switching between vehicle-mounted Ethernet and ordinary Ethernet is achieved, which solves the problem of poor adaptability in the prior art and improves the flexibility and convenience of the device .

CN118921338APending Publication Date: 2024-11-08KUNYI ELECTRONICS TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410912641.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing Ethernet conversion devices cannot adapt to multiple in-vehicle Ethernet standards, resulting in poor flexibility and adaptability of data processing devices, and are unable to adapt to switching between 100-MG and gigabit Ethernet.

Method used

A data processing device is designed, including an FPGA chip, an MCU chip control module and a forwarding chip. The first and second types of rate adaptive PHY chips are used to realize the in-vehicle Ethernet and ordinary Ethernet interfaces through the control module. Data conversion and rate adaptive switching.

Benefits of technology

It realizes flexible switching between 100-megabit and gigabit vehicle-mounted Ethernet and ordinary Ethernet, improves the application flexibility and convenience of data processing devices, and adapts to a variety of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921338A_ABST
    Figure CN118921338A_ABST
Patent Text Reader

Abstract

The invention provides a data processing device and method, electronic equipment and a storage medium, the device comprises a control module, a first type of forwarding chip and a second type of forwarding chip, the first type of forwarding chip is configured to receive data through a vehicle-mounted Ethernet interface and send the data to the control module, receiving the data sent by the control module and sending the data through a vehicle-mounted Ethernet interface; the second type of forwarding chip is configured to receive the data through the common Ethernet interface and send the data to the control module, and receive the data sent by the control module and send the data through the common Ethernet interface; the control module is configured to receive data sent to the control module by the first type of forwarding chip and forward the data to the second type of forwarding chip; and receiving the data sent to the control module by the second type of forwarding chip, and forwarding the data to the first type of forwarding chip. The data processing device provided by the invention can adapt to various application scenes, and the application flexibility and the use convenience of the data processing device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application based on the invention patent application with application date of October 12, 2023, application number 202311323712.2, and invention name “Data processing device, method, electronic device and storage medium”. Technical Field

[0002] The present application relates to the field of Ethernet communication technology, and in particular to a data processing device, method, electronic device and storage medium. Background Art

[0003] The interface of the in-vehicle Ethernet is a single twisted pair of cables. The traditional Ethernet interface requires four twisted pairs of cables for data transmission. The personal computer uses a traditional Ethernet interface. When developing and debugging in-vehicle equipment, the Ethernet interface of the personal computer needs to be connected to the in-vehicle Ethernet interface. Currently, it is generally converted through an Ethernet conversion device. The Ethernet port rate of the existing Ethernet conversion device is fixed and only supports switching between 100M Ethernet and ordinary Ethernet, or only supports switching between Gigabit Ethernet and ordinary Ethernet. When the in-vehicle Ethernet standards are different, different conversion devices need to be used. Summary of the invention

[0004] The embodiments of the present application provide a data processing device, method, electronic device and storage medium to alleviate the problem that current data processing devices cannot adapt to a variety of scenarios and have poor flexibility.

[0005] To solve the above technical problems, the present application provides the following technical solutions:

[0006] The present application provides a data processing device, including an FPGA chip, an MCU chip control module and a forwarding chip, wherein the forwarding chip includes a first type forwarding chip and a second type forwarding chip, and the first type forwarding chip and the second type forwarding chip are rate adaptive PHY chips;

[0007] The first end of the first type forwarding chip is an in-vehicle Ethernet interface, and the second end of the first type forwarding chip is connected to the control module; the first end of the second type forwarding chip is a common Ethernet interface, and the second end of the second type forwarding chip is connected to the control module;

[0008] The first type forwarding chip corresponds to the second type forwarding chip one by one, and the first type forwarding chip is configured to: receive data through the vehicle Ethernet interface and send it to the control module, receive data sent by the control module and send it through the vehicle Ethernet interface; the second type forwarding chip is configured to: receive data through the common Ethernet interface and send it to the control module, receive data sent by the control module and send it through the common Ethernet interface;

[0009] The control module is configured to: receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip.

[0010] The present application also provides a data processing method, which is applied to a data processing device, wherein the data processing device includes a control module and a forwarding chip, wherein the forwarding chip includes a first type forwarding chip and a second type forwarding chip, wherein the first type forwarding chip corresponds to the second type forwarding chip in a one-to-one manner, wherein a first end of the first type forwarding chip is an in-vehicle Ethernet interface, and a second end of the first type forwarding chip is connected to the control module; a first end of the second type forwarding chip is a common Ethernet interface, and a second end of the second type forwarding chip is connected to the control module; the method includes:

[0011] Receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip.

[0012] An embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in the above-mentioned data processing method.

[0013] Beneficial effects: The present application provides a data processing device, method and storage medium, the device includes a control module, a first type of forwarding chip and a second type of forwarding chip, the first type of forwarding chip receives data and sends it to the control module, the control module sends the data to the second type of forwarding chip corresponding to the first type of forwarding chip; the second type of forwarding chip receives data and sends it to the control module, the control module sends the data to the first type of forwarding chip corresponding to the second type of forwarding chip; the first type of forwarding chip and the second type of forwarding chip are rate-adaptive PHY chips, through the first type of forwarding chip and the second type of forwarding chip, the conversion between 100M / 1G in-vehicle Ethernet and ordinary Ethernet can be adaptively switched to adapt to a variety of application scenarios, thereby improving the application flexibility and ease of use of the data processing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0015] Figure 1A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0016] Figure 2 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0017] Figure 3 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0018] Figure 4 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0019] Figure 5 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0020] Figure 6 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0021] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0022] Figure 8 This is a schematic diagram of the SPI communication timing provided in the embodiments of the present application.

[0023] Fig. 9 A flowchart of the data processing method provided in this application.

[0024] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0026] In-vehicle Ethernet is a new LAN technology that uses Ethernet to connect electronic control units in the car. Unlike ordinary Ethernet technology that uses 4 pairs of unshielded twisted pairs to transmit data, in-vehicle Ethernet can achieve 100Mbps and 1Gbps, or even higher speed data transmission on a single pair of unshielded twisted pairs. Compared with ordinary Ethernet, it can better adapt to the vehicle environment and meet the automotive industry's requirements for high reliability, low electromagnetic radiation, low power consumption, bandwidth allocation, low latency, and synchronous real-time performance.

[0027] Based on the rapid development of in-vehicle Ethernet, in order to support the interaction of data between in-vehicle LAN and ordinary LAN, data processing devices are urgently needed for data transmission between in-vehicle Ethernet and ordinary Ethernet.

[0028] An embodiment of the present application provides a data processing device, method, and computer-readable storage medium, wherein the data processing device may be directly integrated into a vehicle-mounted device or may not be integrated into the vehicle-mounted device, and the data processing device may be directly connected to the vehicle-mounted device as an external device to perform data processing.

[0029] See also Figure 1 , Figure 1 A structural schematic diagram of a data processing device provided in an embodiment of the present application, the data processing device includes a control module and a forwarding chip, the forwarding chip includes a first type forwarding chip and a second type forwarding chip, the first type forwarding chip and the second type forwarding chip are rate adaptive PHY chips; the first end of the first type forwarding chip is an in-vehicle Ethernet interface, and the second end of the first type forwarding chip is connected to the control module; the first end of the second type forwarding chip is an ordinary Ethernet interface, and the second end of the second type forwarding chip is connected to the control module; the first type forwarding chip corresponds to the second type forwarding chip one-to-one, and the first type forwarding chip is configured to: receive data through the in-vehicle Ethernet interface and send it to the control module, receive data sent by the control module and send it through the in-vehicle Ethernet interface; the second type forwarding chip is configured to: receive data through the ordinary Ethernet interface and send it to the control module, receive data sent by the control module and send it through the ordinary Ethernet interface; the control module is configured to: receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip.

[0030] In one embodiment, the common Ethernet interface is an RJ45 interface. In other embodiments, the common Ethernet interface may use a common Ethernet interface type, such as an RJ11 interface, etc. Hereinafter, for ease of understanding, the common Ethernet interface type uses an RJ45 interface, and the common Ethernet is recorded as RJ45 Ethernet. The specific details involved are only for the purpose of example and ease of understanding, and are not limiting.

[0031] In one embodiment, the first type of forwarding chip is an in-vehicle Ethernet PHY chip, and the second type of forwarding chip is a common Ethernet PHY chip, such as Figure 1As shown, the number of the first type forwarding chip and the second type forwarding chip are both 1, one end of the vehicle Ethernet PHY chip is the vehicle Ethernet interface, which is connected to the vehicle Ethernet T1_0, and the other end is connected to the ordinary Ethernet PHY chip through the control module. One end of the ordinary Ethernet PHY chip is the ordinary Ethernet interface, which is connected to the ordinary Ethernet RJ45_0, so as to realize the intercommunication and interaction between the vehicle Ethernet T1_0 and the ordinary Ethernet RJ45_0, that is, the ordinary Ethernet can capture all the messages of the vehicle Ethernet at the other end and send them, and the vehicle Ethernet can also obtain all the messages of the ordinary Ethernet at the other end and send them.

[0032] In one embodiment, if Figure 2 As shown, the number of the first type forwarding chip and the second type forwarding chip are both 2, the two first type forwarding chips are respectively recorded as the first forwarding chip Tcar PHY-1 and the second forwarding chip Tcar PHY-2, and the two second type forwarding chips are respectively recorded as the third forwarding chip RJ45 PHY-1 and the fourth forwarding chip RJ45 PHY-2. One end of TcarPHY-1 is an in-vehicle Ethernet interface, connected to the in-vehicle Ethernet T1_1, and the other end is connected to RJ45 PHY-1 through a control module. One end of RJ45 PHY-1 is a common Ethernet interface, connected to the common Ethernet RJ45_1. One end of Tcar PHY-2 is an in-vehicle Ethernet interface, connected to the in-vehicle Ethernet T1_2, and the other end is connected to RJ45 PHY-2 through a control module. One end of RJ45PHY-2 is a common Ethernet interface, connected to the common Ethernet RJ45_2. The in-vehicle equipment is connected to T1_1 and T1_2, and the host computer is connected to RJ45_1 and RJ45_2. At this time, the vehicle Ethernet T1_1 and the vehicle Ethernet T1_2 do not communicate with each other, the ordinary Ethernet RJ45_1 and the vehicle Ethernet T1_1 directly communicate with each other, and the ordinary Ethernet RJ45_2 and the vehicle Ethernet T1_2 directly communicate with each other.

[0033] Generally, the PHY chip receives electrical, optical and other analog signals, and after demodulation and A / D conversion, sends the signal to the MAC chip for processing through the MII interface. After receiving the data sent by the MAC chip, it processes it, converts the parallel data into serial stream data, encodes the data according to the encoding rules of the physical layer, and then converts it into an analog signal to send the data out. In this application, there is no MAC chip, and the control module directly forwards the data converted by the PHY chip, and uses the form of PHY to PHY to perform data conversion between in-vehicle Ethernet and ordinary Ethernet.

[0034] The first type forwarding chip and the second type forwarding chip are rate adaptive PHY chips. According to their self-negotiation mode, 100M to Gigabit adaptive switching can be achieved, and both 100M vehicle Ethernet and ordinary Ethernet can be converted, and Gigabit vehicle Ethernet and ordinary Ethernet can be converted. In the self-negotiation mode, the first type forwarding chip conducts self-negotiation with the vehicle-mounted equipment, and the second type forwarding chip conducts self-negotiation with the host computer, and the first type forwarding chip stores the self-negotiation capability of the ordinary Ethernet signal, and the second type forwarding chip stores the self-negotiation capability of the ordinary vehicle Ethernet signal. The first type forwarding chip and the second type forwarding chip will automatically adjust the transmission rate to the maximum speed and duplex mode that both have at the same time according to their own and each other's self-negotiation capability values. For example, when the network environment of ordinary Ethernet and vehicle Ethernet data can reach 100M, the data processing device can support the switching of 100M vehicle Ethernet and ordinary Ethernet, and when the network environment of ordinary Ethernet and vehicle Ethernet data can reach 1000M, the data processing device can support the switching of Gigabit Ethernet and ordinary Ethernet.

[0035] The embodiment of the present application realizes the conversion of 100M mode, 1000M mode adaptive vehicle Ethernet and ordinary Ethernet. Regardless of whether the port of the vehicle device under test is in 100M or 1000M mode, the port connected by the present application will adapt to the rate mode of the port of the device under test, effectively improving the application flexibility of the product and the convenience of customer use. In addition, multi-channel data conversion can be achieved by increasing the number of first-type forwarding chips and second-type forwarding chips.

[0036] In one embodiment, the forwarding chip includes two first-type forwarding chips and two second-type forwarding chips, and the control module is provided with a first transceiver mode and a second transceiver mode; when the control module is set to the first transceiver mode, the control module is configured to: receive data sent to the control module by the first-type forwarding chip, and forward it to the second-type forwarding chip corresponding to the first-type forwarding chip; receive data sent to the control module by the second-type forwarding chip, and forward it to the first-type forwarding chip corresponding to the second-type forwarding chip; when the control module is set to the second transceiver mode, the control module is configured to: select one second-type forwarding chip from the two second-type forwarding chips as a monitoring chip; receive data sent to the control module by two first-type forwarding chips, forward data sent to the control module by one first-type forwarding chip to another first-type forwarding chip, and forward data sent to the control module by two first-type forwarding chips to the monitoring chip.

[0037] Compared with the prior art, the data processing device in the embodiment of the present application has two transceiver modes. The first transceiver mode is a traditional vehicle-mounted Ethernet-ordinary Ethernet conversion device, which can convert vehicle-mounted Ethernet and ordinary Ethernet to realize data conversion between different media; the second transceiver mode is actually a data acquisition mode. The two vehicle-mounted devices communicate through the vehicle-mounted Ethernet, that is, data is transmitted to each other through two first-type forwarding chips. At the same time, the upper computer can simultaneously monitor and obtain the data of the two vehicle-mounted devices, so that the data of the two vehicle-mounted Ethernets can be transmitted in one data stream without changing the data of the two vehicle-mounted Ethernets, so as to facilitate subsequent equipment to analyze the data of the two vehicle-mounted Ethernets, such as some data analysis work with data synchronization requirements, and for example, it can be used to verify the correctness of the two data.

[0038] The data processing device of the present application supports two transceiver modes. In one embodiment, the control module can be configured as the first transceiver mode or the second transceiver mode in a variety of ways. For example, the control module can be connected to the host computer to control the application loaded by the control module, or the control signal is sent to the control module by the host computer for control, or two buttons are set, corresponding to the first transceiver mode and the second transceiver mode, respectively, and the start / stop of the two transceiver modes is controlled by the button. It can also be automatically configured, for example, when the ordinary Ethernet interfaces corresponding to the two second-type forwarding chips are connected (the two ordinary Ethernet interfaces are connected to the switch, and then connected to the host computer through the switch, or the two ordinary Ethernet interfaces are connected to the host computer respectively), it is automatically configured to the first transceiver mode at this time, and when only one ordinary Ethernet interface corresponding to the second-type forwarding chip in the two second-type forwarding chips is connected to the host computer, it is automatically configured to the second transceiver mode at this time. Generally, in the second transceiver mode, the second-type forwarding chip connected to the host computer is used as a monitoring chip.

[0039] In one embodiment, the control module includes two first control units and two second control units, the two first control units correspond one-to-one to the two first type forwarding chips, the two second control units correspond one-to-one to the two second type forwarding chips, and the two first control units correspond one-to-one to the two second control units;

[0040] In the first transceiver mode, the first control unit is configured to: receive data from the first type forwarding chip corresponding to the first control unit and store the data in the storage area of ​​the first control unit, take out the data from the storage area of ​​the second control unit corresponding to the first control unit and send it to the first type forwarding chip corresponding to the first control unit; the second control unit is configured to: receive data from the second type forwarding chip corresponding to the second control unit and store the data in the storage area of ​​the second control unit, take out the data from the storage area of ​​the first control unit corresponding to the second control unit and send it to the second type forwarding chip corresponding to the second control unit;

[0041] In the second transceiver mode, a second type forwarding chip is selected from two second type forwarding chips as a monitoring chip, and a second control unit corresponding to the monitoring chip is used as a monitoring unit. The first control unit is configured to: receive data from the first type forwarding chip corresponding to the first control unit and store the data in the storage area of ​​the first control unit, retrieve data from the storage area of ​​another first control unit and send it to the first type forwarding chip corresponding to the first control unit; the monitoring unit is configured to: poll the storage areas of the two first control units, retrieve data from the storage area of ​​the first control unit when the storage area of ​​the first control unit is not empty and send it to the monitoring chip, and query the storage area of ​​another first control unit when the storage area of ​​the first control unit is empty. In one embodiment, Figure 3 As shown, the two first control units are respectively recorded as the first controller Tcar-1 Ctrl and the second controller Tcar-2 Ctrl, and the two second control units are respectively recorded as the third controller RJ45-1Ctrl and the fourth controller RJ45-2 Ctrl. The first forwarding chip Tcar PHY-1 corresponds to the first controller Tcar-1 Ctrl, the second forwarding chip Tcar PHY-2 corresponds to the second controller Tcar-2 Ctrl, the third forwarding chip RJ45 PHY-1 corresponds to the third controller RJ45-1 Ctrl, the fourth forwarding chip RJ45 PHY-2 corresponds to the fourth controller RJ45-2 Ctrl, the first controller Tcar-1Ctrl corresponds to the third controller RJ45-1 Ctrl, and the second controller Tcar-2 Ctrl corresponds to the fourth controller RJ45-2 Ctrl.

[0042] In one embodiment, if Figure 4 , Figure 5 As shown, the storage area of ​​the first control unit is a FIFO buffer area, and the storage area of ​​the second control unit is a FIFO buffer area; FIFO is a first-in-first-out data buffer, which is easy to use, has a fast read and write speed, and can ensure the timing of data.

[0043] When the device works in the first transceiver mode, only end-to-end data conversion is actually performed, and the data path is the first type forwarding chip-first control unit-second control unit-second type forwarding chip; when the device works in the second transceiver mode, on the one hand, the two vehicle-mounted devices need to communicate, and on the other hand, the host computer needs to capture data. There are two data paths, such as Figure 5 As shown, one is the first forwarding chip-first controller-second controller-second forwarding chip, and the other is the first controller / second controller-monitoring chip. Therefore, for the second transceiver mode, the first control unit needs at least 2 FIFO buffers, while for the first transceiver mode, the second control unit only needs one FIFO buffer.

[0044] In one embodiment, in the first transceiver mode, the first control unit uses a FIFO buffer area, such as Figure 4 As shown, the first controller Tcar-1 Ctrl receives data from the first forwarding chip Tcar PHY-1 and stores the data in the FIFO buffer area of ​​the first controller Tcar-1 Ctrl, the first controller Tcar-1 Ctrl takes out data from the FIFO buffer area of ​​the third controller RJ45-1 Ctrl and sends it to the first forwarding chip Tcar PHY-1; the second controller Tcar-2 Ctrl receives data from the second forwarding chip Tcar PHY-2 and stores the data in the FIFO buffer area of ​​the second controller Tcar-2 Ctrl, the second controller Tcar-2 Ctrl takes out data from the FIFO buffer area of ​​the fourth controller RJ45-2 Ctrl and sends it to the second forwarding chip Tcar PHY-2; the third controller RJ45-1 Ctrl receives data from the third forwarding chip RJ45PHY-1 and stores the data in the FIFO buffer area of ​​the third controller RJ45-1 Ctrl, the third controller RJ45-1 Ctrl takes out data from the FIFO buffer area of ​​the first controller Tcar-1 Ctrl and sends it to the third forwarding chip RJ45 PHY-1; the fourth controller RJ45-2 Ctrl receives data from the fourth forwarding chip RJ45 PHY-2 and stores the data in the FIFO buffer area of ​​the fourth controller RJ45-2Ctrl. The fourth controller RJ45-2 Ctrl takes data from the FIFO buffer area of ​​the second controller Tcar-2 Ctrl and sends it to the fourth forwarding chip RJ45 PHY-2. At this time, the vehicle Ethernet T1_1 and the vehicle Ethernet T1_2 do not communicate with each other, the ordinary Ethernet RJ45_1 and the vehicle Ethernet T1_1 communicate with each other, and the ordinary Ethernet RJ45_2 and the vehicle Ethernet T1_2 communicate with each other, that is, the ordinary Ethernet can capture all the messages of the vehicle Ethernet at the opposite end and send them out, and the vehicle Ethernet can also obtain all the messages of the ordinary Ethernet at the opposite end and send them out.

[0045] In one embodiment, in the second transceiver mode, the first control unit is provided with two FIFO buffer areas, and the first control unit is configured to: receive data from the first type forwarding chip corresponding to the first control unit and store the data in the first FIFO buffer area and the second FIFO buffer area of ​​the first control unit at the same time, take out data from the first FIFO buffer area of ​​another first control unit and send it to the first type forwarding chip corresponding to the first control unit; the monitoring unit is configured to: poll the second FIFO buffer areas of the two first control units, take out data from the second FIFO buffer area of ​​the first control unit when the second FIFO buffer area of ​​the first control unit is not empty and send it to the monitoring chip, and query the second FIFO buffer area of ​​the other first control unit when the second FIFO buffer area of ​​the first control unit is empty.

[0046] In one implementation, in the second transceiver mode, the first control unit uses two FIFO buffers, such as Figure 5As shown, the first controller Tcar-1 Ctrl receives data from the first forwarding chip Tcar PHY-1 and stores the data in the first FIFO buffer area and the second FIFO buffer area of ​​the first controller Tcar-1 Ctrl at the same time, and the first controller Tcar-1 Ctrl takes out data from the first FIFO buffer area of ​​the second controller Tcar-2 Ctrl and sends it to the first forwarding chip Tcar PHY-1; the second controller Tcar-2 Ctrl receives data from the second forwarding chip Tcar PHY-2 and stores the data in the first FIFO buffer area and the second FIFO buffer area of ​​the second controller Tcar-2 Ctrl at the same time, and the second controller Tcar-2 Ctrl takes out data from the first FIFO buffer area of ​​the first controller Tcar-1 Ctrl and sends it to the second forwarding chip Tcar PHY-2; the third forwarding chip RJ45 PHY-1 serves as a monitoring chip, and the third controller RJ45-1 Ctrl corresponding to the third forwarding chip RJ45 PHY-1 serves as a monitoring unit, and the fourth controller RJ45-2 Ctrl does not work. The third controller RJ45-1 Ctrl polls the second FIFO buffer area of ​​the first controller Tcar-1 Ctrl and the second FIFO buffer area of ​​the second controller Tcar-2 Ctrl. It can query the second FIFO buffer area of ​​the first controller and the second FIFO buffer area of ​​the second controller in turn at fixed time intervals, or query the second FIFO buffer area of ​​the first controller and the second FIFO buffer area of ​​the second controller in turn in a fixed order. For the second FIFO buffer area currently accessed by the third controller RJ45-1 Ctrl, if the second FIFO buffer area currently accessed is not empty, data is taken out from it and sent to the third forwarding chip RJ45 PHY-1. If the second FIFO buffer area currently accessed is empty, no operation is performed, and the second FIFO buffer area of ​​another controller is queried. At this time, the vehicle Ethernet T1_1 and the vehicle Ethernet T1_2 are interoperable and interactive, and the ordinary Ethernet (RJ45_1) can capture all messages of the vehicle Ethernet T1_1 and the vehicle Ethernet T1_2 at the same time and send them out.

[0047] In one embodiment, the FIFO buffer area includes a data FIFO and a bypass FIFO, the data FIFO is configured to receive Ethernet data packets, and the bypass FIFO is configured to receive a send completion instruction. When a data FIFO receives a complete Ethernet data packet, a send completion instruction is generated and stored in the corresponding bypass FIFO. Specifically, taking the first forwarding chip and the first controller as an example, when the first forwarding chip starts to receive data, the first controller detects that the data receiving bit is valid, and pushes the data received by the first forwarding chip into the data FIFO of the first controller. When the data transmission is completed, the first controller detects that the data receiving bit is invalid, generates a send completion instruction and presses it into the bypass FIFO of the first controller. In this way, it is possible to directly determine whether the data FIFO is empty by querying the bypass FIFO. In the second transceiver mode, the monitoring unit polls the bypass FIFOs of the two first control units. For the bypass FIFO currently accessed, when the bypass FIFO is not empty, the data is taken out from its corresponding data FIFO and sent to the monitoring chip. When the bypass FIFO is empty, it is skipped, no operation is performed, and the bypass FIFO of another first control unit is queried. This application supports two sending and receiving modes, which can be switched, so that the product has more application scenarios, can meet the different needs of customers, and effectively improve the application flexibility of the product.

[0048] In one embodiment, if Figure 6 As shown, the control module includes an FPGA chip (Field Programmable Gate Array) and an MCU chip (Microcontroller Unit, a single-chip microcomputer or a single-chip microcomputer), the FPGA chip is connected to the MCU chip, the MCU chip is configured to send a target configuration instruction to the FPGA chip, the FPGA chip is configured to be set to a first transceiver mode or a second transceiver mode according to the received target configuration instruction, a first type forwarding chip is connected to the FPGA chip, and a second type forwarding chip is connected to the FPGA chip.

[0049] This application manages data services through FPGA chips and manages control interfaces through MCU chips. The combination of MCU chips and FPGA chips makes their configuration more flexible and their operation more convenient.

[0050] The MCU chip is connected to the first type of forwarding chip, and the MCU chip is configured to send a first configuration signal to the first type of forwarding chip and read the chip status from the first type of forwarding chip, and the first type of forwarding chip is configured to initialize and change the configuration according to the received first configuration signal; the MCU chip is connected to the second type of forwarding chip, and the MCU chip is configured to send a second configuration signal to the second type of forwarding chip and read the chip status from the second type of forwarding chip, and the second type of forwarding chip is configured to initialize and change the configuration according to the received second configuration signal.

[0051] The MCU chip is provided with a first communication interface and a second communication interface, wherein the first communication interface is used to realize the connection between the MCU chip and the first type forwarding chip and the second type forwarding chip, and the second communication interface is used to realize the connection between the MCU chip and the FPGA chip.

[0052] The first configuration signal and the second configuration signal are sent through the first communication interface. In one embodiment, the first communication interface may be an MDIO interface, which is used to connect to the first type forwarding chip and the second type forwarding chip, respectively, that is, the communication interface between the MCU and the vehicle Ethernet PHY and the ordinary Ethernet PHY is MDIO. After power-on, the PHY chip is initialized through the MCU chip, and the configuration of the PHY chip can be changed in real time through the host computer and the latest status of the PHY chip can be obtained.

[0053] In one embodiment, the second communication interface can be an SPI interface. In the SPI communication protocol, the MCU chip is the SPIMaster (SPI master device), and the FPGA chip is the SPI Slave (SPI slave device). The MCU chip can control the internal registers of the FPGA in real time through the SPI interface. The internal registers store basic information such as the FPGA ID, version number, and compile time. The MCU chip can also operate the internal registers of the FPGA chip through the SPI interface and the chip internal bus to control the state of the LED indicator. The outside world can judge the current state of the FPGA chip through the LED indicator, such as the switch, the first transceiver mode, and the second transceiver mode. The MCU chip can also operate the internal registers of the FPGA chip through the SPI interface and the chip internal bus to set the mode of the first transceiver mode or the second transceiver mode. The FPGA chip can also obtain the link (connection status) and speed (transmission rate) of the Ethernet port from the MCU chip through the register, so as to be used for the construction of the internal logic of the FPGA chip, and adjust the internal data transmission and storage logic in the 100M and 1000M modes respectively. The SPI communication protocol supports 16-bit address and 16-bit data read and write operations. The chip select is pulled low to be effective. The read and write bit '1' is read, '0' is write, and the address and data bits are transmitted high first and then low. like Figure 8 As shown, the CS signal is the enable signal (chip select signal), SCK is the clock signal, and the MCU chip now pulls the CS signal low to ensure that the PFGA chip starts to receive data. When the FPGA chip detects the edge signal of the clock signal, the FPGA chip immediately reads the signal on the data line, thus obtaining one bit of data (1 bit). MOSI indicates the master device data output, the MOSI signal of the MCU chip is in output mode, and the MOSI signal of the PFGA chip is in input mode; MISO indicates the master device data input, the MISO of the MCU chip is in input mode, and the MISO of the PFGA chip is in output mode.

[0054] In one embodiment, the MCU chip also includes a Uart port, which is a USB to Type-C port type. The MCU chip can be connected to a host computer such as a PC through the Uart port, and the MCU chip is controlled by the host computer to achieve control of the entire device. The MCU chip also includes a JTAG interface. The MCU chip obtains the latest version of the FPGA from the external SPI Flash and loads the FPGA firmware through the JTAG interface; and the MCU chip can save the current configuration in the SPI Flash chip (supports automatic saving or manual saving), and after powering on again, it will obtain the configuration saved before power failure from the SPI Flash chip, and also supports restoring factory settings, i.e., Rst reset. In addition, the firmware version can also be saved in the external Flash chip, and the FPGA firmware and MCU firmware can be upgraded online through the JTAG interface and the external Flash chip.

[0055] In one embodiment, if Figure 7 As shown, the FPGA chip includes 4 interface conversion modules, 2 first type forwarding chips and 2 second type forwarding chips correspond one to one to the 4 interface conversion modules, and the interface conversion module is configured to perform mutual conversion between the RGMII interface standard and the GMII interface standard, which is recorded as RGMII<->GMII module.

[0056] RGMII (Reduced Gigabit Media-Independent Interface) and GMII (Gigabit Media-Independent Interface) are two Ethernet interface standards, both of which are used to transmit Ethernet data. GMII transmits data and control signals to the PHY chip separately, using an 8-bit parallel interface. GMII transmits 8 bits in one clock cycle, of which 8 bits are transmitted on the rising edge and not on the falling edge; RGMII combines data and control signals together, using a 4-bit parallel interface, and transmits 8 bits in one clock cycle, of which 4 bits are transmitted on the rising edge and 4 bits are transmitted on the falling edge. Compared with GMII, the use of RGMII interface can reduce the bus width used to transmit data and control signals, thereby saving the number of pins of the physical interface and saving space in board-level design.

[0057] The RGMII interface (Reduced GMII interface) is a simplified GMII interface. The GMII interface provides an 8-bit data channel, and the clock is 125MHz when achieving a data transmission rate of 1000Mbps. Compared with the GMII interface, the RGMII interface reduces a total of 8 data lines on TXD (data transmission pin) and RXD (data reception pin). At a transmission rate of 1000Mbps, the clock frequency is 125Mhz, and the transmit data line / receive data line sends / receives TXD[3:0] / RXD[3:0] in the GMII interface on the rising edge of the clock signal, and sends / receives TXD[7:4] / RXD[7:4] in the GMII interface on the falling edge of the clock signal (the transmit data line sends 4 bits of data on the rising edge and 4 bits of data on the falling edge, and the receive data line receives 4 bits of data on the rising edge and 4 bits of data on the falling edge), and the signal GTX_CLK (transmitter clock signal) reflects the status of TX_EN (enable) and TX_ER (transmit data error), that is, TX_EN is sent on the rising edge of GTX_CLK, and TX_ER is sent on the falling edge. Similarly, for RX_CLK (receiver clock signal), RX_EN (enable) is sent on the rising edge of RX_CLK, and RX_ER (transmit data error) is sent on the falling edge.

[0058] For FPGA chips, it is more stable to use the rising edge of a clock for processing at a 125MHz clock. Considering that if the clock frequency is increased to 250MHz, the timing requirements will be higher, which may cause some stability problems. Therefore, based on the characteristics of RGMII, in order to facilitate data processing and timing stability, this application adopts the RGMII<->GMII module to convert between the RGMII interface and the GMII interface, which facilitates data processing and timing stability and reduces the complexity of board design.

[0059] The conversion between RGMII and GMII can be achieved through an intermediate conversion circuit. This conversion circuit can convert the data and clock between the RGMII interface and the GMII interface. When converting from the RGMII interface to the GMII interface, the high-speed RGMII data and clock are converted to the lower rate of the GMII to adapt to the transmission rate of the GMII interface. When converting from the GMII interface to the RGMII interface, the data and clock of the GMII interface are converted to the high rate of the RGMII.

[0060] In one embodiment, the first transceiver mode can be called bypass mode. In bypass mode, the vehicle Ethernet T1_1 and the vehicle Ethernet T1_2 do not exchange data, the ordinary Ethernet RJ45_1 and the vehicle Ethernet T1_1 interact directly, and the ordinary Ethernet RJ45_2 and the vehicle Ethernet T1_2 interact directly, that is, the ordinary Ethernet can capture all messages of the vehicle Ethernet at the other end and send them, and the vehicle Ethernet can also obtain all messages of the ordinary Ethernet at the other end and send them.

[0061] Taking the capture of vehicle Ethernet messages through ordinary Ethernet as an example, the implementation logic is as follows: the vehicle Ethernet data is received through the vehicle Ethernet PHY chip, and after conversion through the RGMII<->GMII module of the FPGA chip, the FPGA chip detects that the RX_EN signal of the vehicle-side GMII interface is valid, and then pushes the RXD[7:0] data into the internal FIFO of the FPGA chip. Since the general Ethernet message length is between 64B and 1518B, the FIFO depth is set to 4096 and the data length is 8 bits, which can ensure that up to 2 frames of the longest Ethernet message are cached at the same time. After the RX_EN signal fails, it means that the vehicle Ethernet end has transmitted a complete Ethernet message. The FPGA enables TX_EN and moves the cached data in the FIFO out in sequence according to the minimum frame interval of 96 bytes for Ethernet frame transmission. After passing through the RGMII<->GMII module, it is forwarded through the ordinary Ethernet PHY chip. The ordinary Ethernet interface can be directly connected to the PC or domain control end to realize the capture and acquisition of vehicle Ethernet data.

[0062] The second transceiver mode can be called mirror mode. In-vehicle Ethernet T1_1 and in-vehicle Ethernet T1_2 can realize data interaction, and ordinary Ethernet (RJ45_1) can simultaneously capture all messages of in-vehicle Ethernet T1_1 and in-vehicle Ethernet T1_2 and send them out.

[0063] like Figure 7As shown, the third forwarding chip RJ45 PHY-1 is used as a monitoring chip. The mirror mode implementation logic is as follows: ordinary Ethernet does not split and parse the messages of the vehicle Ethernet, and forwards the messages of the vehicle Ethernet T1_1 / vehicle Ethernet T1_2 to the ordinary Ethernet RJ45_1 in a polling manner. The ordinary Ethernet RJ45_1 can be connected to the PC or domain control to monitor the messages of the vehicle Ethernet. In mirror mode, the logic of the FPGA chip receiving the vehicle Ethernet message is similar to the logic of the bypass mode, except that two FIFOs are used to press the data of the two vehicle Ethernets into the two data FIFOs respectively. At the same time, after receiving a complete Ethernet data message, the completion information instruction is pressed into a bypass FIFO. If the bypass FIFO is not empty, it means that the data of the corresponding Ethernet port is cached. The FPGA polls the non-empty state of the two bypass FIFOs, takes out the data from the data FIFO respectively, and forwards it through the ordinary Ethernet according to the minimum frame interval, so as to realize the capture and monitoring of the two vehicle Ethernet messages at the same time.

[0064] By using the bypass mode, data can be transmitted between the ordinary Ethernet and the vehicle Ethernet at the other end, and data conversion between different media can be realized; by using the mirror mode, the bypass monitoring function of the vehicle Ethernet port can be realized, and the data of the two vehicle Ethernets can be captured using ordinary Ethernet, so that the data of the two vehicle Ethernets can be transmitted in one data stream without changing the data of the two vehicle Ethernets, so as to facilitate the subsequent equipment to analyze the data of the two vehicle Ethernets. For example, for some data analysis work with data synchronization requirements, the data link with the mirror function can effectively meet the needs, and can be used to verify the correctness of the data of the two channels, etc.

[0065] It can be understood that, for the first control unit and the second control unit, the FIFO buffer area in the first transceiver mode and the buffer area in the second transceiver mode can be reused or can be independent of each other, such as Figure 7 As shown, Figure 7 The data link of the first transceiver mode and the second transceiver mode are shown at the same time. In the figure, the FIFO buffer area in the first transceiver mode and the buffer area in the second transceiver mode are independent of each other. The above details do not limit the present application to be implemented using the above specific details. For example, through logical control, the FIFO buffer area used by the first transceiver mode is used in the second transceiver mode.

[0066] Furthermore, the present application also provides a data processing method, which is applied to the data processing device provided in the above embodiment. Fig. 9 The data processing method provided in this application comprises the following steps:

[0067] Receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip.

[0068] In one embodiment, the forwarding chip includes two first-type forwarding chips and two second-type forwarding chips, and the control module is provided with a first transceiver mode and a second transceiver mode;

[0069] In the first transceiver mode, the data sent by the first type forwarding chip to the control module is received, and forwarded to the second type forwarding chip corresponding to the first type forwarding chip; the data sent by the second type forwarding chip to the control module is received, and forwarded to the first type forwarding chip corresponding to the second type forwarding chip;

[0070] In the second transceiver mode, a second type forwarding chip is selected from two second type forwarding chips as a monitoring chip; data sent to the control module by two first type forwarding chips are received, data sent to the control module by one first type forwarding chip is forwarded to another first type forwarding chip, and data sent to the control module by the two first type forwarding chips are forwarded to the monitoring chip.

[0071] Accordingly, the present application also provides an electronic device, such as Fig.10 As shown, the electronic device may include a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109. Those skilled in the art will appreciate that Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0072] The radio frequency circuit 101 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 108 for processing; in addition, the data related to the uplink is sent to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications and virtual machine backups by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to customer settings and function control.

[0073] The display unit 104 may be used to display information input by a client or information provided to a client and various graphical client interfaces of the server. These graphical client interfaces may be composed of graphics, texts, icons, videos and any combination thereof.

[0074] For example, the analysis results of the fast Fourier transform, the frequency values ​​of the original audio file and the fast Fourier transform, the amplitude values ​​of the original audio file and the fast Fourier transform, the frequency error value, the amplitude error value, and the PWM signal comparison results can be displayed.

[0075] The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. The audio circuit 106 includes a speaker, which may provide an audio interface between the user and the electronic device.

[0076] WiFi is a short-range wireless transmission technology. The electronic device provides wireless broadband Internet access to the customer through the WiFi module 107. Fig.10 A WiFi module 107 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the application.

[0077] The processor 108 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire mobile phone. It performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring.

[0078] The processor 108 may include a control chip and a forwarding chip, the forwarding chip includes a first type forwarding chip and a second type forwarding chip, the first type forwarding chip and the second type forwarding chip are rate adaptive PHY chips; the first end of the first type forwarding chip is an in-vehicle Ethernet interface, and the second end of the first type forwarding chip is connected to the control module; the first end of the second type forwarding chip is an ordinary Ethernet interface, and the second end of the second type forwarding chip is connected to the control module; the first type forwarding chip and the second type forwarding chip correspond one-to-one, and the first type forwarding chip is configured to: receive data through the in-vehicle Ethernet interface and send it to the control module, receive data sent by the control module and send it through the in-vehicle Ethernet interface; the second type forwarding chip is configured to: receive data through the ordinary Ethernet interface and send it to the control module, receive data sent by the control module and send it through the ordinary Ethernet interface; the control module is configured to: receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip. The electronic device also includes a power source 109 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 108 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0079] Although not shown, the electronic device may also include a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 108 in the server will load the executable files corresponding to the processes of one or more applications into the memory 102 according to the following instructions, and the processor 108 will run the application stored in the memory 102, thereby achieving the following functions:

[0080] Receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip.

[0081] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description above and will not be repeated here.

[0082] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0083] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer programs can be executed by a processor to implement the following functions:

[0084] Receive data sent by the first type forwarding chip to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip; receive data sent by the second type forwarding chip to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip.

[0085] The computer-readable storage medium may include:

[0086] Read Only Memory (ROM), Random Access Memory (RAM), disk or CD, etc.

[0087] Since the computer program stored in the computer-readable storage medium can execute any step of the data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method for an electronic device provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0088] The data processing device, method, electronic device and computer-readable storage medium provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present application.

Claims

1. A data processing device, characterized in that: It includes a control module and a forwarding chip, wherein the forwarding chip includes at least two first-type forwarding chips and at least two second-type forwarding chips, and the first-type forwarding chips and the second-type forwarding chips are PHY chips; The first type forwarding chip corresponds to the second type forwarding chip; the control module is provided with a first transceiver mode and a second transceiver mode; When the control module is set to the first transceiver mode, the control module is configured to: receive data received by the first type forwarding chip through the vehicle Ethernet interface and sent to the control module, and forward it to the second type forwarding chip corresponding to the first type forwarding chip, so that the second type forwarding chip receives the data sent by the control module and sends it through the common Ethernet interface; and / or receive data received by the second type forwarding chip through the common Ethernet interface and sent to the control module, and forward it to the first type forwarding chip corresponding to the second type forwarding chip, so that the first type forwarding chip receives the data sent by the control module and sends it through the vehicle Ethernet interface; When the control module is set to the second transceiver mode, the control module is configured to: select a second type forwarding chip from the at least two second type forwarding chips as a monitoring chip; receive data received by two first type forwarding chips among the at least two first type forwarding chips through the vehicle Ethernet interface and sent to the control module, forward the data sent to the control module by one first type forwarding chip to another first type forwarding chip, so that the first type forwarding chip receives the data sent by the control module and sends it through the vehicle Ethernet interface, and forward the data sent to the control module by the two first type forwarding chips to the monitoring chip, so that the monitoring chip receives the data sent by the control module and sends it through the ordinary Ethernet interface.

2. The data processing device according to claim 1, characterized in that: The control module includes at least two first control units and at least two second control units, at least two of the first control units correspond one-to-one to at least two of the first type forwarding chips, at least two of the second control units correspond one-to-one to at least two of the second type forwarding chips, and at least two of the first control units correspond one-to-one to at least two of the second type forwarding chips; In the first transceiver mode, the first control unit is configured to: receive data from the first type forwarding chip corresponding to the first control unit and store the data in the storage area of ​​the first control unit, take out data from the storage area of ​​the second control unit corresponding to the first control unit and send it to the first type forwarding chip corresponding to the first control unit, so that the first type forwarding chip receives the data sent by the first control unit and sends it through the vehicle Ethernet interface; the second control unit is configured to: receive data from the second type forwarding chip corresponding to the second control unit and store the data in the storage area of ​​the second control unit, take out data from the storage area of ​​the first control unit corresponding to the second control unit and send it to the second type forwarding chip corresponding to the second control unit, so that the second type chip receives the data sent by the second control unit and sends it through the ordinary Ethernet interface; In the second transceiver mode, a second type forwarding chip is selected from at least two of the second type forwarding chips as a monitoring chip, and a second control unit corresponding to the monitoring chip is used as a monitoring unit, and the first control unit is configured to: receive data from the first type forwarding chip corresponding to the first control unit and store the data in a storage area of ​​the first control unit, take out data from the storage area of ​​another first control unit among at least two first control units and send it to the first type forwarding chip corresponding to the first control unit, so that the first type forwarding chip receives the data sent by the first control unit and sends it through the vehicle Ethernet interface; the monitoring unit is configured to: poll the storage areas of two first control units among at least two first control units, take out data from the storage area of ​​the first control unit when the storage area of ​​the first control unit is not empty and send it to the monitoring chip, so that the monitoring chip receives the data sent by the monitoring unit and sends it through a common Ethernet interface, and query the storage area of ​​another first control unit when the storage area of ​​the first control unit is empty.

3. The data processing device according to claim 2, characterized in that: The storage area of ​​the first control unit is a FIFO buffer area, and the storage area of ​​the second control unit is a FIFO buffer area; In the second transceiver mode, the first control unit is provided with at least two FIFO buffer areas, and the first control unit is configured to: receive data from the first type forwarding chip corresponding to the first control unit and store the data in the first FIFO buffer area and the second FIFO buffer area of ​​the first control unit at the same time, take out data from the first FIFO buffer area of ​​another first control unit among the at least two first control units and send it to the first type forwarding chip corresponding to the first control unit; the monitoring unit is configured to: poll the second FIFO buffer areas of two first control units among the at least two first control units, take out data from the second FIFO buffer area of ​​the first control unit when the second FIFO buffer area of ​​the first control unit is not empty and send it to the monitoring chip, and query the second FIFO buffer area of ​​the other first control unit when the second FIFO buffer area of ​​the first control unit is empty.

4. The data processing device according to claim 2, characterized in that: The storage area of ​​the first control unit is a FIFO buffer area, and the storage area of ​​the second control unit is a FIFO buffer area. The FIFO buffer area includes a data FIFO and a bypass FIFO. The data FIFO is configured to receive Ethernet data packets, and the bypass FIFO is configured to receive a send completion instruction.

5. The data processing device according to claim 1, characterized in that: The control module includes an FPGA chip and an MCU chip, the FPGA chip is connected to the MCU chip, the MCU chip is configured to send target configuration instructions to the FPGA chip, the FPGA chip is configured to be set to a first transceiver mode or a second transceiver mode according to the received target configuration instructions, the first type forwarding chip is connected to the FPGA chip, and the second type forwarding chip is connected to the FPGA chip.

6. The data processing device according to claim 5, characterized in that: The MCU chip is connected to the first type forwarding chip, the MCU chip is configured to send a first configuration signal to the first type forwarding chip and read a chip status from the first type forwarding chip, and the first type forwarding chip is configured to perform initialization and configuration changes according to the received first configuration signal; The MCU chip is connected to the second type forwarding chip, the MCU chip is configured to send a second configuration signal to the second type forwarding chip and read the chip status from the second type forwarding chip, and the second type forwarding chip is configured to initialize and change the configuration according to the received second configuration signal.

7. The data processing device according to claim 5, characterized in that: The FPGA chip includes at least 4 interface conversion modules, and at least 2 first-type forwarding chips and at least 2 second-type forwarding chips correspond one-to-one to the at least 4 interface conversion modules; The interface conversion module is configured to perform mutual conversion between the RGMII interface standard and the GMII interface standard.

8. A data processing method, applied in a data processing device, characterized in that: The data processing device includes a control module and a forwarding chip, the forwarding chip includes at least two first-type forwarding chips and a second-type forwarding chip, the first-type forwarding chip and the second-type forwarding chip are PHY chips, and the first-type forwarding chip corresponds to the second-type forwarding chip; The control module is provided with a first transceiver mode and a second transceiver mode; the method comprises: In the first transceiver mode, data received by the first type forwarding chip through the vehicle Ethernet interface and sent to the control module is received, and forwarded to the second type forwarding chip corresponding to the first type forwarding chip, so that the second type forwarding chip receives the data sent by the control module and sends it through the common Ethernet interface; and / or data received by the second type forwarding chip through the common Ethernet interface and sent to the control module is received, and forwarded to the first type forwarding chip corresponding to the second type forwarding chip, so that the first type forwarding chip receives the data sent by the control module and sends it through the vehicle Ethernet interface; In the second transceiver mode, a second type forwarding chip is selected from the at least two second type forwarding chips as a monitoring chip; data received by two first type forwarding chips among the at least two first type forwarding chips through the vehicle Ethernet interface and sent to the control module are received, data sent to the control module by one first type forwarding chip is forwarded to another first type forwarding chip, so that the first type forwarding chip receives the data sent by the control module and sends it through the vehicle Ethernet interface, and data sent to the control module by the two first type forwarding chips are forwarded to the monitoring chip, so that the monitoring chip receives the data sent by the control module and sends it through the ordinary Ethernet interface.

9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the processor comprises a control module and a forwarding chip; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the data processing method according to claim 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the data processing method according to claim 8.

Citation Information

Cited By

  • Data control system and measurement and control system

    CN121072797A