Direct encapsulation of sensor data over Ethernet
By using direct mapping technology in automotive systems, sensor data is directly mapped to Ethernet packets, which solves the problem of sensor data conversion delay and achieves low-latency, low-cost and low-power data transmission.
Patent Information
- Application Number
- CN202380018922.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-24
- Filing Date
- 2023-02-23
- Publication Date
- 2024-09-06
AI Technical Summary
In automotive systems, there is a high delay in the process of receiving and converting sensor data into communication packets, which affects driver safety, and existing technologies increase hardware size, cost, and power consumption.
Direct mapping technology is used to map sensor data directly into Ethernet packets. The sensor bridge includes a sensor interface, a mapper and a communication processor. The mapper maps the data to the specified bit position in the Ethernet packet and transmits it through the Ethernet network. transmission, reducing latency and reducing hardware requirements.
It significantly reduces the delay of sensor data in the Ethernet network, reduces the size, cost and power consumption of the sensor bridge, and achieves low-latency data transmission.
Smart Images

Figure CN118614043A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of U.S. Provisional Patent Application No. 63 / 313,291, filed on February 24, 2022, the disclosure of which is incorporated herein by reference. Technical Field
[0003] The present disclosure relates generally to sensors and packet networks, and in particular to methods and systems for transmitting sensor data over a packet network. Background Art
[0004] Various communication systems and applications, such as automotive systems, involve the transmission of media such as audio and video over packet networks. For example, one example protocol for the transmission of audio and video over an Ethernet network is specified in IEEE Standard 1722-2016, entitled "IEEE Standard for a Transport Protocol for Time-Sensitive Applications in Bridged Local Area Networks," dated December 2016.
[0005] Various interfaces can be used to connect to sensors such as cameras and radars. An example of an interface between an image sensor and an application processor is the MIPI Camera Serial Interface 2 (CSI-2) interface, which is specified in "Errata 01 for MIPI CSI-2 Specification (Camera Serial Interface 2) - Specification Version 2.1" in April 2018.
[0006] The above description is presented as a general overview of relevant technology in the field and should not be construed as an admission that any of the information it contains constitutes prior art against the present patent application. Summary of the invention
[0007] Embodiments described herein provide a sensor bridge for use in an Ethernet network in a vehicle. The sensor bridge includes a sensor interface, a mapper, and a communication processor. The sensor interface is configured to receive sensor data from a sensor installed in the vehicle. The mapper is configured to form mapped sensor data by applying a direct mapping to the sensor data, the direct mapping mapping a specified portion of the sensor data to a corresponding bit position in one or more Ethernet packets. The communication processor is configured to generate one or more Ethernet packets including the mapped sensor data, and transmit the one or more Ethernet packets over an Ethernet network.
[0008] In some embodiments, the mapper is further configured to add routing information for routing one or more Ethernet packets in the Ethernet network to the mapped sensor data at the specified location. Additionally or alternatively, the mapper is further configured to add operations, maintenance, and management (OAM) information for transmission in one or more Ethernet packets to the mapped sensor data at the specified location.
[0009] In an embodiment, the mapper is configured to map the sensor data with a latency of no more than one microsecond.In a disclosed embodiment, the sensor bridge further comprises a memory buffer, and the mapper is configured to fill the memory buffer with the received sensor data according to the direct mapping and output the mapped sensor data from the memory buffer.
[0010] According to the embodiments described herein, a method for transmitting sensor data in an Ethernet network in a vehicle is additionally provided. The method includes receiving sensor data from a sensor installed in the vehicle. Mapped sensor data is formed by applying a direct mapping to the sensor data, the direct mapping mapping a specified portion of the sensor data to a corresponding bit position in one or more Ethernet packets. One or more Ethernet packets including the mapped sensor data are generated and transmitted over the Ethernet network.
[0011] The present disclosure may be more fully understood through the following detailed description of the embodiments in conjunction with the accompanying drawings, in which: BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a block diagram schematically illustrating an automotive Ethernet communication system according to embodiments described herein;
[0013] Figure 2 is a schematic diagram of an embodiment according to the present invention. Figure 1 A block diagram of a mapper in a sensor bridge of a system; and
[0014] Figure 3is a flow chart schematically illustrating a method for mapping sensor data directly onto Ethernet frames according to embodiments described herein. DETAILED DESCRIPTION
[0015] In many applications that involve the transmission of sensor data over packet networks, low latency is a primary consideration. For example, consider an automotive system that collects data from cameras, radars, lidars, and other sensors for analysis by a central processor. In this environment, it is extremely important to analyze the data, such as identifying safety hazards as quickly as possible. Minimizing latency in such a system can directly impact driver safety.
[0016] In current solutions, one of the main sources of latency is the interface between the sensor and the network, that is, the latency generated by the process of receiving sensor data and converting it into communication packets. The embodiments described herein use direct mapping techniques to map sensor data directly to communication packets to significantly reduce this latency. The disclosed techniques also reduce the size, cost, and power consumption of the hardware required to convert sensor data into communication packets.
[0017] The embodiments herein are described by way of example in the context of an Ethernet network in a vehicle. However, the disclosed techniques are not limited to any particular network type or protocol and may be used in any other network environment where low latency is required, such as in an industrial control network. The terms "packet" and "frame" are used interchangeably throughout this disclosure.
[0018] In some embodiments, the system includes a sensor bridge that connects the sensor to an Ethernet network. The sensor includes a sensor interface, a mapper, and a communication processor. The sensor interface receives sensor data from the sensor. The mapper applies a predefined mapping that maps a specified portion of the sensor data to a corresponding bit position in one or more Ethernet frames. The communication processor performs both a media access control layer (MAC) and a physical layer (PHY) function to generate an Ethernet frame including the mapped sensor data. The Ethernet frame is transmitted over the network.
[0019] In some embodiments, the sensor interface receives sensor data in raw form from the sensor, such as video data, radar data, lidar data, and / or audio data, which is digitized by an analog-to-digital converter (ADC) coupled to the sensor. The sensor data is typically received via a high-speed parallel or serial bus.
[0020] The mapper uses a predefined mapping that maps a specified portion of the sensor data to a corresponding bit position in one or more Ethernet frames. For example, in the case of a camera, the sensor data includes video data and related signaling (control signals). The mapping can specify the bit positions in the Ethernet frame for signaling (such as frame start, frame end, line start, line end, horizontal and vertical synchronization), for metadata (such as timestamps), and for actual video pixel values. In this environment, the mapping of the specified portion of the sensor data to the corresponding bit positions in one or more communication frames is referred to as direct mapping in this article.
[0021] In some embodiments, the mapping performed by the mapper is also direct in that the mapping requires only a single write operation into a memory buffer and a single read operation from the memory buffer. To enable direct mapping, in this implementation, the mapper includes a memory buffer preconfigured according to the format of an Ethernet frame. When sensor data is being streamed from the sensor interface, the mapper fills the buffer with sensor data by writing portions of the sensor data into corresponding locations in the buffer, as specified by the mapping.
[0022] By using the direct mapping techniques described herein, the latency of a sensor bridge (the time from when a bit of sensor data is received at the sensor interface to when the same bit is transmitted to the network in an Ethernet frame) can be significantly reduced. In implementations, the latency of the mapper is typically reduced to less than 1 μsec. The disclosed techniques also reduce the size, cost, and power consumption of the sensor bridge.
[0023] Figure 1 is a block diagram schematically illustrating an automotive Ethernet communication system 20 according to an embodiment described herein. In the embodiment described herein, the system 20 is installed in a vehicle 24 and includes a plurality of sensors 28 that communicate with and are controlled by a controller 32. The controller 32 is also referred to herein as a central processor or central computer. In other (not shown) embodiments, the system 20 may be installed in an industrial network, a monitoring network, or other suitable network involving the transmission of sensor data over a network.
[0024] In various embodiments, the sensor 28 may include any suitable type of sensor. Several non-limiting examples of sensors include cameras, speed sensors, accelerometers, audio sensors, infrared sensors, radar sensors, lidar sensors, ultrasonic sensors, range finders or other proximity sensors, etc. The controller 32 may include any suitable type of processor, such as a CPU or a GPU.
[0025] The sensor 28 and the controller 32 communicate via an Ethernet network that includes a plurality of network links 40 and one or more Ethernet switches 44. The Ethernet link 40 may include, for example, a twisted pair cable. The sensor 28 is connected to the Ethernet network via one or more sensor bridges 36. A given sensor bridge may connect a single sensor or multiple sensors to the Ethernet network. The sensor bridge 36, the switch 44, and the controller 32 may communicate via the network link 40 at any suitable bit rate. Example bit rates are 2.5 Gb / s, 5 Gb / s, or 10 Gb / s according to the IEEE 802.3ch-2020 standard and 25 Gb / s according to the IEEE 802.3cy standard.
[0026] Figure 1 The illustration on the left hand side of the diagram illustrates an example implementation of a sensor bridge 36 in an embodiment. In this example, the sensor 28 outputs analog sensor data, such as analog video. The sensor 28 is coupled to an analog-to-digital converter (ADC) 48, which digitizes the analog sensor data and outputs digitized sensor data.
[0027] The sensor bridge 36 includes a sensor interface 52 that receives digitized sensor data. The received sensor data includes various parts of different types, such as media (e.g., video pixel values in the case of video, radar or lidar media in the case of radar or lidar, etc.), signaling (e.g., synchronization markers marking the beginning and end of lines and frames), metadata, operations management and maintenance (OAM) data, and / or any other suitable data type. The sensor interface 52 and the ADC 48 typically communicate via a 16-bit or 24-bit parallel bus.
[0028] The sensor bridge 36 further includes a mapper 56 and a communication processor 60. The mapper 56 maps the sensor data directly onto Ethernet frames using techniques described in detail below. The mapper 56 generates a MAC frame that is provided to the communication processor 60.
[0029] The communication processor 60 includes a MAC processor 64 that implements the Ethernet MAC layer and a PHY processor 68 that implements the Ethernet PHY layer. The PHY processor 68 includes a physical coding sublayer (PCS) module 72, a physical medium attachment (PMA) module 76, and a physical medium dependent (PMD) module 80 that implement the Ethernet PCS, PMA, and PMD sublayers, respectively. The resulting Ethernet frame is sent to, for example, a switch 44 via an appropriate Ethernet link 40.
[0030] In some embodiments, the sensor bridge 36 further includes a routing information and OAM module 84 that inserts routing information and / or OAM data into the MAC frame. The routing information and / or OAM data may be added at any specified location in the MAC frame relative to the mapped sensor data. The routing information may include, for example, a source address (SA) and a destination address (DA) of the Ethernet frame, a virtual local area network (VLAN) value to be assigned to the Ethernet frame, a priority (or other quality of service indication) of the Ethernet frame, a length of the Ethernet packet, and / or any other suitable parameter used for subsequent routing of the Ethernet frame via the network. The OAM information may include, for example, diagnostic data, control information for controlling a remote general purpose input output (GPIO) port or control data read from a local GPIO port, control data and commands for remote register access, and the like. Additionally or alternatively, in some embodiments, the sensor bridge 36 may insert into the MAC frame information such as authentication data and / or encryption keys.
[0031] In some embodiments, the routing information and OAM module 84 can be locally and / or remotely programmed to generate and insert the appropriate information into the MAC frame. In an embodiment, the sensor bridge 36 includes a dedicated state machine that defines the timing of the insertion, such as when to insert sensor data and when to insert routing and / or OEM information.
[0032] Figure 2 is a diagram schematically illustrating a mapper 56 in a sensor bridge 36 of a system 20 according to an embodiment described herein. In this example, the mapper 56 stores a direct mapping 88 that maps a specified portion of sensor data to a corresponding bit position in one or more Ethernet frames. The mapper 56 includes a memory buffer 92 organized according to the mapping 88.
[0033] In some embodiments, the buffer 92 has predefined memory locations (e.g., addresses) that are specifically designated to store corresponding portions of the sensor data. In an embodiment, the order of the designated memory locations in the buffer 92 is the same as the order of the fields in the MAC frame that will be supplied from the mapper 56 to the MAC processor 64 (see Figure 1 In one embodiment, the format of the MAC frame, and therefore the configuration of buffer 92, conforms to the IEEE 1722-2016 standard referenced above.
[0034] Figure 2 The field list at the bottom of illustrates a non-limiting example mapping of this classification. In this example embodiment, the specified portion of the sensor data includes:
[0035] Synchronization markers such as start of frame, end of frame, start of line, end of line, horizontal sync (H_SYNC), and vertical sync (V_SYNC).
[0036] Embedded data, such as a timestamp indicating the time the sensor data was captured, the clock speed of the sensor interface, video parameters (e.g., resolution, refresh rate, pixel depth, color space), and register values.
[0037] Media content depending on the sensor type (e.g. video data in a suitable format (such as YUV, RGB or RAW), audio data in a suitable format (such as inter-IC sound (I 2 S)), lidar data or radar data).
[0038] Statistics computed on media content, such as video frame histograms.
[0039] OAM information, such as diagnostic data, control information for controlling remote GPIO ports or control data read from local GPIO ports, control data and commands for remote register access, etc.
[0040] User-defined data.
[0041] The above list is depicted by way of example only. In alternative embodiments, map 88 may map any other suitable portion of sensor data, and buffer 92 may be organized in any other suitable manner.
[0042] In a typical mode of operation, the mapper 56 receives raw sensor data ( Figure 1 ). The mapper 56 parses the sensor data, identifies the various portions of the sensor data, and fills the buffer 92 accordingly.
[0043] In some embodiments, the map 88 also includes the module 84 ( Figure 1 ) is mapped to corresponding bit positions in the Ethernet frame. As part of filling buffer 92, mapper 56 fills appropriate locations in buffer 92 with routing information and / or OAM information.
[0044] In parallel with filling the buffer 92 with the incoming sensor data, the mapper 88 streams the MAC frames from the buffer 92 to the MAC processor 64 ( Figure 1 By using direct mapping in this manner, the end-to-end latency of the sensor bridge 36 (from the time a bit of sensor data is received by the sensor interface 52 from the ADC 48 to the time the same bit is transmitted from the sensor bridge 36 to the network in an Ethernet frame) is typically on the order of 1 μsec.
[0045] Figure 3 is a flow chart schematically illustrating a method for mapping sensor data directly onto Ethernet frames according to embodiments described herein. In an embodiment, the method is performed by the sensor bridge 36 .
[0046] The method begins at input operation 100 with the sensor interface 52 receiving raw digitized sensor data from the ADC 48. At mapping operation 104, the mapper 56 maps a specified portion of the sensor data (e.g., the above Figure 2 The mapper 56 maps the MAC frame to a predefined bit position in one or more Ethernet frames. The mapper 56 sends the resulting MAC frame to the communication processor 60.
[0047] At Ethernet frame generation operation 108 , the communication processor 60 generates one or more Ethernet frames including the directly mapped sensor data. At transmission operation 112 , the communication processor 60 transmits the Ethernet frames over the link 40 .
[0048] Figure 1 and Figure 2 The system 20, sensor bridge 36 and mapper 56 are shown as well as Figure 3 The configurations described in the method are all example configurations and are depicted only for the sake of clarity. In alternative embodiments, any other suitable configuration may be used. Dedicated hardware or firmware may be used, such as using hard-wired or programmable logic in, for example, an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA) to implement various elements of the system 20, the sensor bridge 36, and the mapper 56. Additionally or alternatively, some functions of the system 20, the sensor bridge 36, and the mapper 56 may be implemented in software and / or using a combination of hardware elements and software elements. For the sake of clarity, elements that are not mandatory for understanding the disclosed technology are omitted from the drawings.
[0049] In some embodiments, some functions of the system 20, the sensor bridge 36, and / or the mapper 56 may be implemented in one or more programmable processors, such as one or more central processing units (CPUs), microcontrollers, and / or digital signal processors (DSPs), which are programmed in software to perform the functions described herein. The software may be downloaded to any processor in electronic form, such as over a network, or the software may alternatively or additionally be provided and / or stored on a non-transitory tangible medium, such as a magnetic, optical, or electronic memory.
[0050] Although the embodiments described herein primarily address automotive networking issues, the methods and systems described herein may also be used in other applications involving the transmission of video over a network, such as in security camera applications, industrial monitoring camera applications, and many other applications.
[0051] It should be noted that the above embodiments are cited by way of example, and the present invention is not limited to the contents specifically shown and described above. On the contrary, the scope of the present invention includes both combinations and sub-combinations of the various features described above, as well as changes and modifications of the various features that a person skilled in the art would expect when reading the foregoing description and that are not disclosed in the prior art. The documents incorporated by reference into this patent application should be considered as an integral part of this application, but if any term defined in these incorporated documents conflicts with the definition explicitly or implicitly given in this specification, only the definition in this specification should be considered.
Claims
1. A sensor bridge for use in an Ethernet network in a vehicle, the sensor bridge comprising: a sensor interface configured to receive sensor data from a sensor installed in the vehicle; a mapper configured to form mapped sensor data by applying a direct mapping to the sensor data, the direct mapping mapping specified portions of the sensor data to corresponding bit positions in one or more Ethernet packets; as well as A communication processor is configured to generate the one or more Ethernet packets including the mapped sensor data and transmit the one or more Ethernet packets over the Ethernet network. 2 . The sensor bridge according to claim 1 , wherein the mapper is further configured to add routing information for routing the one or more Ethernet packets in the Ethernet network to the mapped sensor data at a specified location. 3 . The sensor bridge according to claim 1 , wherein the mapper is further configured to add operations, maintenance, and management (OAM) information to the mapped sensor data at a specified location for transmission in the one or more Ethernet packets. 4 . The sensor bridge according to claim 1 , wherein the mapper is configured to map the sensor data with a latency of no more than one microsecond. 5 . The sensor bridge according to claim 1 , further comprising a memory buffer, wherein the mapper is configured to fill the memory buffer with the received sensor data according to the direct mapping and output the mapped sensor data from the memory buffer.
6. A method for transmitting sensor data in an Ethernet network in a vehicle, the method comprising: receiving sensor data from sensors installed in the vehicle; forming the mapped sensor data by applying a direct mapping to the sensor data, the direct mapping mapping specified portions of the sensor data to corresponding bit positions in one or more Ethernet packets; as well as The one or more Ethernet packets including the mapped sensor data are generated and transmitted over the Ethernet network. 7 . The method of claim 6 , wherein applying the direct mapping further comprises adding routing information for routing the one or more Ethernet packets in the Ethernet network to the mapped sensor data at a specified location.
8. The method of claim 6, wherein applying the direct mapping further comprises adding operations, maintenance, and management (OAM) information to the mapped sensor data at a specified location for transmission in the one or more Ethernet packets.
9. The method of any one of claims 6 to 8, wherein applying the direct mapping comprises mapping the sensor data with a latency of no more than one microsecond.
10. The method of any one of claims 6 to 8, wherein applying the direct mapping comprises filling a memory buffer with the received sensor data according to the direct mapping and outputting the mapped sensor data from the memory buffer.
