Data subscription method, device and system

By using switches (such as FPGA chips) in cars to convert ECU data that does not support Ethernet functions into data formats that support Ethernet functions, the problem of ECU data interaction delay and interoperability in cars is solved, and low-latency, high-speed Reliable data transmission.

CN118803079APending Publication Date: 2024-10-18BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310400123.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively solve the data interaction problem between ECUs that do not support Ethernet functions and ECUs that support Ethernet functions in automobiles, resulting in data transmission delays and interoperability difficulties.

Method used

Receive data subscription or publishing requests sent by ECUs that do not support Ethernet functions through switches (such as FPGA chips), convert the data format, obtain data from the second ECU control module that does not support Ethernet functions, and convert it into data that supports Ethernet functions. format and sent to the first ECU control module that supports Ethernet function through Ethernet communication.

Benefits of technology

It achieves data interaction with low latency, high reliability and flexibility, is suitable for multi-data, high-concurrency application scenarios, and improves the flexibility and response speed of information interaction between different ECUs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803079A_ABST
    Figure CN118803079A_ABST
Patent Text Reader

Abstract

The invention provides a data subscription method and device, and relates to the technical field of data communication. The method comprises the following steps: receiving a data subscription or publishing request sent by a first ECU control module, wherein the first ECU control module supports a first data format; in response to the data subscription request, acquiring data from a second ECU control module, the second ECU control module supporting a second data format; and converting the data from the second data format into the first data format, and sending the data after format conversion to the first ECU control module. According to the method and the device, different responses are quickly made according to subscription function requirements or release function requirements of different ECU control modules, so that lightweight data interaction among different ECUs can be conveniently realized, and the effects of low delay and high reliability are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data communication technology, and in particular to a data subscription method, device and system. Background Art

[0002] With the integration of modern communication and network technologies with the automotive industry, cars are constantly developing towards intelligence and networking. The requirements for the diversity, richness, and safety of functions such as smart cockpits and autonomous driving are becoming increasingly higher, and the amount of data in internal car communications is gradually increasing. SOA (Service-Oriented Architecture) is a high-level architectural design concept that allows software components to be reused by using service interfaces based on a common communication language on the network. Therefore, based on the SOA architecture, the ECU (Electronic Control Unit) inside the car should be used as a node to provide services.

[0003] However, there are many ECUs in vehicles that do not have Ethernet functions. These ECUs are not included in the existing SOA architecture. There are generally two methods for capturing the data related technologies of these ECUs. The first is to use hardware with controller chips with Ethernet, and upgrade the chips of the ECUs so that they can run middleware software for subscription and publishing, but the cost of this method is too high; the second is to set up a middleware for data proxy forwarding in the software, namely SOME / IP (Scalable Service-Oriented MiddlewarE overIP, a service-oriented scalable middleware located above the IP protocol layer), and send data to the SOME / IP mechanism through buses such as CAN / CANFD / LIN. The SOME / IP mechanism then forwards the data on behalf of the SOME / IP mechanism. Although this application solves the problem of excessive bandwidth occupation caused by broadcast communication of the CAN network, the mechanism only defines relatively basic specifications, and application interoperability is difficult to guarantee. For example, patent 202010307595.0 provides an in-vehicle interaction method, device and storage medium. The method requires obtaining the controlled devices in the in-vehicle system that support interactive services through the SOME / IP service discovery mechanism. It requires that the devices that perform the interaction must adopt the SOME / IP mechanism and the services must have been defined in advance. For traditional ECUs that do not use SOME / IP communication, it is still impossible to use the service discovery mechanism based on the SOME / IP mechanism for interaction. Summary of the invention

[0004] The present disclosure provides a data subscription method, device, electronic device and storage medium.

[0005] According to a first aspect of the present disclosure, a data subscription method is provided, the method comprising: receiving a data subscription or publishing request sent by a first ECU control module, the first ECU control module supporting a first data format; in response to the data subscription request, obtaining data from a second ECU control module, the second ECU control module supporting a second data format; converting the data from the second data format to the first data format, and sending the format-converted data to the first ECU control module.

[0006] In the present disclosure, in response to a data subscription request, obtaining data from a second ECU control module includes: obtaining a data type identifier from the data subscription request, wherein the data type identifier is used to mark different specified function requests; and according to the data type identifier, obtaining data corresponding to the data type identifier from the second ECU control module.

[0007] In the present disclosure, the method further includes: determining an identifier of a second ECU control module according to the data type identifier, wherein the identifier of the second ECU control module is used to uniquely mark the second ECU control module.

[0008] In the present disclosure, obtaining data from the second ECU control module includes: identifying the communication interface corresponding to the second ECU control module through the identification of the second ECU control module, the communication interface including at least one of CAN, CAN FD, and LIN; and obtaining data in a second data format through the communication interface.

[0009] In the present disclosure, converting data from a second data format to a first data format and sending the format-converted data to a first ECU control module includes: converting data in the second data format into a DDS or SOME IP format; and sending the data in the DDS or SOME IP format to the first ECU control module via Ethernet communication.

[0010] In the present disclosure, obtaining data from the second ECU control module includes: identifying the Ethernet interface corresponding to the second ECU control module through the identifier of the second ECU control module; obtaining data in a second data format through the Ethernet interface, the second data format being DDS or SOME IP format.

[0011] In the present disclosure, converting data from a second data format to a first data format and sending the format-converted data to a first ECU control module includes: parsing data in a DDS or SOME IP format to obtain data in a first data format; and sending the data in the first data format to the first ECU control module through at least one of a CAN, a CAN FD, and a LIN interface.

[0012] In the present disclosure, sending the format-converted data to the first ECU control module includes: determining the interface identifier of the first ECU control module for receiving data according to a routing table, the routing table including the correspondence between the data receiving interface identifier and the data sending interface identifier of the switch; and sending the data to the first ECU control module through the interface corresponding to the interface identifier.

[0013] In summary, by receiving a data subscription or publishing request sent by the first ECU control module, the first ECU control module supports the first data format; in response to the data subscription request, data is obtained from the second ECU control module, and the second ECU control module supports the second data format; the data is converted from the second data format to the first data format, and the format-converted data is sent to the first ECU control module, and the received data format that does not support the Ethernet function is converted into a data format that supports the Ethernet function, thereby achieving a low latency effect.

[0014] According to a second aspect of the present disclosure, a data subscription device is provided, which includes: a receiving unit, used to receive a data subscription or publishing request sent by a first ECU control module, the first ECU control module supports a first data format; a responding unit, used to obtain data from a second ECU control module in response to the data subscription request, the second ECU control module supports a second data format; a sending unit, used for the switch to convert data from the second data format to the first data format, and send the format-converted data to the first ECU control module.

[0015] In summary, through the data subscription device, by receiving the data subscription request sent by the first ECU control module, the first ECU control module supports the first data format; in response to the data subscription request, data is obtained from the second ECU control module, and the second ECU control module supports the second data format; the data is converted from the second data format to the first data format, and the format-converted data is sent to the first ECU control module, and the received data format that does not support the Ethernet function is converted into a data format that supports the Ethernet function, thereby achieving a low latency effect.

[0016] According to a third aspect of the present disclosure, a data subscription system is provided, which is applied to data format conversion in a data communication scenario of multiple ECU control modules of a vehicle based on an SOA architecture, and the system includes: a first ECU control module, which supports a first data format; a second ECU control module, which supports a second data format; and a switch; wherein the first ECU control module sends a data subscription or publishing request to the switch, and in response to the data subscription request, the switch obtains data from the second ECU control module, converts the data from the second data format to the first data format, and sends the format-converted data to the first ECU control module.

[0017] In the present disclosure, the system further includes: a memory storing a routing table, wherein the routing table includes a correspondence between a data receiving interface identifier and a data sending interface identifier of the switch.

[0018] According to an embodiment of the present disclosure, through a data subscription system, an ECU control module based on a switch can convert received data formats that do not support Ethernet functions into data formats that support Ethernet functions, thereby achieving a low latency effect.

[0019] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0020] at least one processor; and

[0021] a memory communicatively connected to at least one processor; wherein,

[0022] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to perform the method of the first aspect described above.

[0023] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method of the aforementioned first aspect.

[0024] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising a computer program, and when the computer program is executed by a processor, the computer program implements the method of the aforementioned first aspect.

[0025] To summarize, by receiving a data subscription or publishing request sent by the first ECU control module, the first ECU control module supports the first data format; in response to the data subscription request, data is obtained from the second ECU control module, and the second ECU control module supports the second data format; the data is converted from the second data format to the first data format, and the format-converted data is sent to the first ECU control module, and the received data format that does not support the Ethernet function is converted into a data format that supports the Ethernet function, thereby improving the flexibility of information interaction between the ECU based on CAN protocol transmission and the ECU based on vehicle-mounted Ethernet transmission, and quickly making different responses according to the subscription function requirements or publishing function requirements of different ECU control modules, thereby facilitating lightweight data interaction between different ECUs, achieving low latency and high reliability, and can be flexibly applied in multi-data and high-concurrency application scenarios.

[0026] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0028] Figure 1 A flowchart of a data subscription method provided by an embodiment of the present disclosure;

[0029] Figure 2 A flowchart of a data subscription method provided by an embodiment of the present disclosure;

[0030] Figure 3 A schematic diagram of a data subscription system architecture provided by an embodiment of the present disclosure;

[0031] Figure 4 A schematic diagram of the structure of a specific switch provided in an embodiment of the present disclosure;

[0032] Figure 5 A schematic diagram of a data subscription system provided by an embodiment of the present disclosure;

[0033] Figure 6 A structural diagram of a data subscription device provided in an embodiment of the present disclosure;

[0034] Figure 7 A schematic block diagram of an exemplary electronic device 700 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0036] A data subscription method, device, electronic device, and storage medium according to an embodiment of the present disclosure are described below with reference to the accompanying drawings.

[0037] With the integration of modern communication and network technologies with the automotive industry, automobiles are constantly developing towards intelligence and networking. The demands for diversity, richness, and safety of functions such as smart cockpits and autonomous driving are becoming increasingly higher, and the amount of data in internal automotive communications is gradually increasing.

[0038] SOA (Service-Oriented Architecture) is a high-level architectural design concept that allows software components to be reusable by using service interfaces based on a common communication language on the network.

[0039] All business functions can be defined as a service. Service means that not only the module itself needs to implement and use this function, but also provide open capabilities to the outside world. When other systems need to use this function, there is no need to develop it again.

[0040] Because different services are implemented using different technologies, each independent service is heterogeneous. If there is no unified standard, the interfaces provided by each heterogeneous system to the outside world are various, and the hardware and software (operating system, programming language) used are different. SOA uses middleware (including DDS, SOME / IP, ZMQ, etc.) to shield heterogeneous systems from providing various different interface methods to the outside world, so as to achieve efficient interconnection between services. Open services to send requests or access data, realize protocol conversion, data conversion, transparent dynamic routing and other functions between various systems, eliminating the trouble of developers having to integrate from scratch.

[0041] After adopting the SOA architecture, each service runs independently of each other, and it is not even clear how much a service depends on other services. This reduces the dependencies and mutual influences between services and achieves loose coupling. If loose coupling is not achieved, once a service is upgraded, all other services that depend on it will fail, which will definitely not meet business needs.

[0042] SOA integrates independently deployed and maintained services and allows them to communicate and work together to build a software application across different systems. The underlying layer of the middleware that SOA relies on is Ethernet communication. However, except for a few medium and large controllers, the other controllers on the vehicle are small ECUs. The controllers have limited computing power and no Ethernet function, making it impossible to deploy middleware to provide SOA services for the entire vehicle.

[0043] The present disclosure proposes a data subscription method, which can be executed by a switch. The switch, as a hardware improvement, such as an FPGA chip, can quickly convert the format of data, avoiding the problem of uncontrollable transmission delay caused by the strong dependence of data communication on software in related technologies. By receiving a data subscription or publishing request sent by a first ECU control module, the first ECU control module supports a first data format; in response to the data subscription request, obtaining data from a second ECU control module, the second ECU control module supports a second data format; converting the data from the second data format to the first data format, and sending the format-converted data to the first ECU control module, the switch is executed, and the switch converts the received data format that does not support Ethernet function into a data format that supports Ethernet function, thereby achieving a low latency effect.

[0044] A data subscription method, device, electronic device, storage medium, and program product proposed in the present disclosure are described in detail below with reference to the accompanying drawings.

[0045] Figure 1 The flowchart of a data subscription method provided by an embodiment of the present disclosure is shown in FIG. 1 , which can be executed by a switch, wherein the switch can be an FPGA chip. Figure 1 As shown, the method comprises the following steps:

[0046] Step 101: receiving a data subscription or publishing request sent by a first ECU control module, where the first ECU control module supports a first data format.

[0047] In one implementation of the present disclosure, the first ECU control module may be an ECU, which refers to a functional module in a vehicle system that supports Ethernet functions and can directly subscribe to data, in which middleware may be installed. The first data format refers to a DDS or SOME IP format that supports Ethernet functions.

[0048] Specifically, a data subscription or publishing request sent by the ECU is received. The data subscription or publishing request may be transmitted in the data transmission channel in the form of a message.

[0049] The data subscription or publishing request may be to subscribe to or publish functional data in the SOA architecture, such as vehicle speed data, steering data, etc.

[0050] Step 102: In response to the data subscription request, obtain data from a second ECU control module, where the second ECU control module supports a second data format.

[0051] In one embodiment of the present disclosure, in response to a data subscription request sent by a first ECU control module, data corresponding to a second ECU control module to which the first ECU control module requests to subscribe is obtained according to the subscription request. In the present disclosure, obtaining data refers to obtaining a data type identifier.

[0052] Among them, the second ECU control module can be communicated with the first ECU control module, the second ECU control module can be an ECU, and the second ECU control module supports the second data format, which means that it does not support the Ethernet function and cannot directly subscribe to data. It is a functional module corresponding to the first ECU control module in the vehicle system.

[0053] In addition, after receiving the subscription request, the subscription request can be confirmed whether to parse the data subscription request. After confirming that the received data is a data subscription request message, the above-mentioned operation of obtaining data from the second ECU control module in response to the data subscription request is executed.

[0054] Confirming the subscription request may include: confirming whether the subscription request meets the requirements, confirming whether the execution device sending the subscription request meets the requirements, etc.

[0055] Step 103: convert the data from the second data format to the first data format, and send the format-converted data to the first ECU control module.

[0056] In one embodiment of the present disclosure, this solution is based on a switch set up on an FPGA chip, which acts as a proxy for an ECU with a CAN / CAN FD / LIN interface. After responding to a data subscription request and obtaining data from a second ECU control module, the second data format is converted into a first data format, i.e., an Ethernet format, and a communication middleware protocol message is published to the outside. At the same time, the information of external nodes is also subscribed, and the communication middleware protocol message is converted into corresponding CAN / LIN / CAN FD communication and sent to the ECU.

[0057] Therefore, according to an embodiment of the present disclosure, by receiving a data subscription or publishing request sent by a first ECU control module, the first ECU control module supports a first data format; in response to the data subscription request, data is obtained from a second ECU control module, and the second ECU control module supports a second data format; the data is converted from the second data format to the first data format, and the format-converted data is sent to the first ECU control module. This can be executed by a switch, and the switch (such as an FPGA chip) converts the received data format that does not support the Ethernet function into a data format that supports the Ethernet function, thereby improving the flexibility of information interaction between ECUs based on CAN protocol transmission and ECUs based on vehicle-mounted Ethernet transmission, and quickly making different responses according to the subscription function requirements or publishing function requirements of different ECU control modules, thereby facilitating lightweight data interaction between different ECUs, achieving low latency and high reliability, and can be flexibly applied in multi-data, high-concurrency application scenarios.

[0058] Figure 2 A flow chart of a data subscription method provided in an embodiment of the present disclosure is provided, and the method is executed by a switch, such as an FPGA chip. Figure 2 based on Figure 1 In the embodiment shown, step 102 and step 103 are further defined. Figure 2 In the embodiment shown, step 102 includes step 202 and step 203, and step 103 includes step 204 and step 207. Figure 2 As shown, the method comprises the following steps:

[0059] Step 201: receiving a data subscription or publishing request sent by a first ECU control module, where the first ECU control module supports a first data format.

[0060] In some embodiments of the present disclosure, the switch designed in the present solution receives the message sent by the ECU. For example, if the autonomous driving system wants to subscribe to or publish vehicle speed data, the autonomous driving system will send a request to subscribe to or publish vehicle speed data to the switch.

[0061] Step 202: Obtain a data type identifier from the data subscription request.

[0062] In some embodiments of the present disclosure, a data type identifier is used to mark different specified function requests, and the data type identifier may be a data subscription identifier, a subscription cancellation identifier, a communication response identifier, a subscription failure response identifier, or a subscription success response identifier, etc. The data subscription identifier may identify a data subscription request, the subscription cancellation identifier may identify a subscription cancellation request, the communication response identifier may identify a communication response message, the subscription failure response identifier may identify a subscription failure response message, and the subscription success response identifier may identify a subscription success response message. The data type identifier may be a data type name or a data type ID, etc.

[0063] For example, the data subscription request sent by the first ECU control module includes a data type identifier, which is a data subscription identifier. In this way, after receiving the data subscription request sent by the first ECU control module, the second ECU control module can determine that the received data is a data subscription request according to the data subscription identifier.

[0064] Step 203: According to the data type identifier, data corresponding to the data type identifier is obtained from the second ECU control module.

[0065] In some embodiments of the present disclosure, when the received data is determined to be a data subscription request according to the data type identifier, the identifier of the second ECU control module is determined to obtain the data corresponding to the second control identifier. The identifier of the second ECU control module is used to uniquely mark the second ECU control module, that is, the ID of the second ECU control module.

[0066] It can be understood that the data type identifier is an identifier of the data, and before determining the data, it is necessary to select the second ECU control module and obtain the data from the determined second ECU control module.

[0067] Among them, the communication interface corresponding to the second ECU control module is identified through the identifier of the second ECU control module, and the communication interface includes at least one of CAN, CAN FD, and LIN; and data in the second data format is obtained through the communication interface.

[0068] Step 204: convert the data in the second data format into a DDS or SOME IP format.

[0069] In some embodiments of the present disclosure, data in DDS or SOME IP format is parsed to obtain data in a first data format, and the acquired data in the first data format is forwarded to at least one of the CAN, CAN FD, and LIN interfaces, and the data of at least one of the CAN, CAN FD, and LIN interfaces is converted into a DDS or SOME IP message.

[0070] In the present disclosure, step 205 and step 206 may also be directly executed after step 203 .

[0071] Step 205: Identify the Ethernet interface corresponding to the second ECU control module through the identifier of the second ECU control module.

[0072] Step 206: Acquire data in a second data format through the Ethernet interface, where the second data format is DDS or SOMEIP format.

[0073] In some implementations of the present disclosure, when the second data format supports Ethernet functions, data subscription or publishing can be directly performed on the switch, and data forwarding will be performed through the switch.

[0074] It is understandable that the switch will not process the data format of this data, but will directly forward the original data.

[0075] Step 207: Send the data in DDS or SOME IP format to the first ECU control module via Ethernet communication.

[0076] In some embodiments of the present disclosure, data in DDS or SOME IP format is parsed to obtain data in a first data format, and the data in the first data format is sent to a first ECU control module through at least one of the CAN, CAN FD, and LIN interfaces, that is, the data in DDS or SOME IP format is converted into corresponding CAN / LIN / CAN FD communication and sent to the ECU.

[0077] According to an embodiment of the present disclosure, by receiving a data subscription request sent by a first ECU control module, the first ECU control module supports a first data format, obtains a data type identifier from the data subscription request, obtains data corresponding to the data type identifier from the second ECU control module according to the data type identifier, converts the data in the second data format into a DDS or SOME IP format, sends the data in the DDS or SOME IP format to the first ECU control module via Ethernet communication, obtains the data in the second data format via Ethernet communication, and the second data format is a DDS or SOME IP format, thereby realizing that edge nodes, i.e., ECU nodes that do not support Ethernet functions, are incorporated into the SOA architecture, the SOA boundary is extended, the edge ECU nodes of the vehicle are proxied, and are converted into software middleware formats for external publication and subscription, thereby turning more nodes of the vehicle into the SOA architecture, better performing SOA services, and achieving a low latency effect.

[0078] based on Figure 1 , Figure 2 In the embodiment shown, a switch is taken as an example. Figure 3 A schematic diagram of a data subscription system architecture provided by an embodiment of the present disclosure. Figure 3 As shown, the system is executed by an FPGA chip.

[0079] In some embodiments of the present disclosure, a switch is designed to proxy an ECU whose interface is CAN / CAN FD / LIN.

[0080] Among them, the switch is designed using FPGA.

[0081] After receiving the ECU message, the message format is converted into Ethernet format, and the middleware protocol message is published to the outside. At the same time, it can also subscribe to the information of external nodes, convert the middleware protocol message into the corresponding CAN / LIN / CAN FD communication and send it to the ECU.

[0082] To summarize, according to the embodiments of the present disclosure, after receiving the data, the FPGA-based switch quickly performs format conversion and forwards the converted data to realize the transit function of data subscription, and acts as an agent for the edge ECU nodes of the vehicle to publish and subscribe to the outside in the software middleware format, thereby turning more nodes of the vehicle into the SOA architecture, better performing SOA services and achieving the effect of low latency.

[0083] based on Figure 1 , Figure 2 and Figure 3 A data subscription method is proposed, and the present disclosure provides a specific switch structure, which is designed using FPGA, such as Figure 4 shown.

[0084] The switch includes CAN, CANFD, LIN nodes, routing tables, DDS / SOME IP Package data conversion, etc.

[0085] In some embodiments of the present disclosure, the CAN node is a CAN communication data link layer interface, which is used to configure CAN registers and send and receive CAN messages.

[0086] In some embodiments of the present disclosure, a CAN FD node is a CAN FD communication data link layer interface, which is used to configure registers for CAN FD, send and receive CAN FD messages.

[0087] In some embodiments of the present disclosure, a LIN node is a LIN communication data link layer interface used to configure LIN registers, send and receive LIN messages.

[0088] In some embodiments of the present disclosure, the routing table is a static routing table for storing routing information, such as a source CAN node ID and a destination CAN node ID.

[0089] In addition, each node in the switch will store the source CAN node ID and the destination CAN node ID, which have a mapping relationship with the storage information in the routing table.

[0090] In some embodiments of the present disclosure, the DDS / SOME IP Package is used to parse the DDS or SOME IP messages transmitted from Ethernet and forward them to CAN, CANFD, LIN nodes; and convert the data of the CAN, CANFD, LIN nodes into DDS or SOME IP messages.

[0091] Among them, DDS / SOME IP Package is equivalent to the data protocol package, which is used to parse the data and convert the source data format into the target format. Specifically, it receives and immediately forwards the raw data sent by CAN and LIN.

[0092] It should be noted that the source data cannot be forwarded intact, but needs to be reassembled according to a certain format.

[0093] For example, when the raw data receives a rotation speed or a current data, the current data cannot be forwarded directly. It is necessary to convert the current data into the DDS standard format, parse it to tell the current and the approximate length of the current and the location where the current is generated, and then turn it into a service data packet before forwarding it.

[0094] In summary, by designing an FPGA-based switch, the edge ECU nodes of the vehicle can be proxied and converted into software middleware format for external publishing and subscription, thereby turning more nodes of the vehicle into SOA architecture, better performing SOA services and achieving a low-latency effect.

[0095] based on Figure 1 , Figure 2 The embodiment shown, Figure 5 Schematic diagram of a data subscription system provided by an embodiment of the present disclosure. Figure 5 As shown, the system is applied to data format conversion in a vehicle data communication scenario of multiple ECU control modules based on SOA architecture. The system includes:

[0096] A first ECU control module 510, used for the first ECU control module to support a first data format;

[0097] A second ECU control module 520, used for the second ECU control module to support a second data format;

[0098] Switch 530;

[0099] The first ECU control module sends a data subscription or publishing request to the switch.

[0100] In response to the data subscription request, the switch obtains data from the second ECU control module, converts the data from the second data format to the first data format, and sends the format-converted data to the first ECU control module.

[0101] In the present disclosure, the switch may use FPGA chips. FPGA (Field Programmable Gate Array) is a subcategory of digital chips. Field programmability is the biggest feature of FPGA. After the CPU, GPU and other chips are manufactured, their functions are fixed. After the FPGA is manufactured, specific circuits can be configured through EDA software according to user needs, thereby giving it specific functions.

[0102] In summary, through the data subscription system, the edge ECU nodes of the vehicle can be proxied and converted into software middleware format for external publishing and subscription, thereby turning more nodes of the vehicle into SOA architecture, better performing SOA services and achieving a low-latency effect.

[0103] Corresponding to the above-mentioned data subscription method, the present disclosure also proposes a data subscription device. Figure 6 A structural diagram of a data subscription device 600 provided in an embodiment of the present disclosure. The device includes:

[0104] A receiving unit 610 is used to receive a data subscription or publishing request sent by a first ECU control module, and the first ECU control module supports a first data format;

[0105] A response unit 620, configured to obtain data from a second ECU control module in response to a data subscription request, wherein the second ECU control module supports a second data format;

[0106] The sending unit 630 is used for the switch to convert the data from the second data format to the first data format, and send the format-converted data to the first ECU control module.

[0107] In some embodiments, the response unit 620 is used to: obtain a data type identifier from a data subscription request, wherein the data type identifier is used to mark different specified function requests; and obtain data corresponding to the data type identifier from the second ECU control module according to the data type identifier.

[0108] In some embodiments, the apparatus 600 further includes: a determination unit, configured to determine an identifier of a second ECU control module according to a data type identifier, wherein the identifier of the second ECU control module is used to uniquely mark the second ECU control module.

[0109] In some embodiments, the response unit 620 is used to: through the identification of the second ECU control module, the switch identifies the communication interface corresponding to the second ECU control module, and the communication interface includes at least one of CAN, CAN FD, and LIN; through the communication interface, obtain data in the second data format.

[0110] In some embodiments, the sending unit 630 is used to: convert the data in the second data format of the switch into DDS or SOME IP format; and send the data in the DDS or SOME IP format to the first ECU control module via Ethernet communication.

[0111] In some embodiments, the response unit 620 is used to: identify the Ethernet interface corresponding to the second ECU control module through the identification of the second ECU control module; obtain data in a second data format through the Ethernet interface, and the second data format is DDS or SOME IP format.

[0112] In some embodiments, the sending unit 630 is used to: the switch parses the data in DDS or SOME IP format to obtain data in a first data format; and sends the data in the first data format to the first ECU control module through at least one of the CAN, CAN FD, and LIN interfaces.

[0113] In some embodiments, the sending unit 630 is used to: determine the interface identifier for receiving data by the first ECU control module according to the routing table, the routing table including the correspondence between the data receiving interface identifier and the data sending interface identifier of the switch; and send the data to the first ECU control module through the interface corresponding to the interface identifier.

[0114] In summary, according to the embodiments of the present disclosure, the switch receives a data subscription or publishing request sent by the first ECU control module, and the first ECU control module supports the first data format; the switch obtains data from the second ECU control module in response to the data subscription request, and the second ECU control module supports the second data format; the switch converts the data from the second data format to the first data format, and sends the format-converted data to the first ECU control module, which is executed by the switch, and the switch converts the received data format that does not support the Ethernet function into a data format that supports the Ethernet function, thereby achieving a low latency effect.

[0115] It should be noted that since the device embodiment of the present disclosure corresponds to the above-mentioned method embodiment, the above-mentioned explanation of the method embodiment is also applicable to the device of the present embodiment, and the principle is the same. For details not disclosed in the device embodiment, reference can be made to the above-mentioned method embodiment, and they will not be repeated in this disclosure.

[0116] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0117] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0118] like Figure 7As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 702 or a computer program loaded from a storage unit 708 to a RAM (Random Access Memory) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An I / O (Input / Output) interface 705 is also connected to the bus 704.

[0119] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0120] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as a method for data subscription. For example, in some embodiments, the method for data subscription may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the aforementioned data subscription method in any other appropriate manner (for example, by means of firmware).

[0121] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0122] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0123] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0124] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0125] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0126] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0127] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0129] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data subscription method, characterized in that: The method comprises: Receiving a data subscription or publishing request sent by a first ECU control module, wherein the first ECU control module supports a first data format; In response to the data subscription request, acquiring data from a second ECU control module, the second ECU control module supporting a second data format; The data is converted from the second data format to the first data format, and the format-converted data is sent to the first ECU control module.

2. The method according to claim 1, characterized in that In response to the data subscription request, acquiring data from the second ECU control module includes: Acquire a data type identifier from the data subscription request, wherein the data type identifier is used to mark different specified function requests; According to the data type identifier, data corresponding to the data type identifier is obtained from the second ECU control module.

3. The method according to claim 2, characterized in that The method further comprises: The identifier of the second ECU control module is determined according to the data type identifier, and the identifier of the second ECU control module is used to uniquely mark the second ECU control module.

4. The method according to any one of claims 1 to 3, characterized in that The acquiring of data from the second ECU control module comprises: Identify a communication interface corresponding to the second ECU control module through the identifier of the second ECU control module, wherein the communication interface includes at least one of CAN, CAN FD, and LIN; Data in a second data format is acquired through the communication interface.

5. The method according to claim 4, characterized in that The converting the data from the second data format to the first data format and sending the format-converted data to the first ECU control module includes: Converting the data in the second data format into DDS or SOMEIP format; The data in DDS or SOMEIP format is sent to the first ECU control module via Ethernet communication.

6. The method according to any one of claims 1 to 3, characterized in that The acquiring of data from the second ECU control module comprises: Identify the Ethernet interface corresponding to the second ECU control module through the identifier of the second ECU control module; Data in a second data format is acquired through the Ethernet interface, where the second data format is a DDS or SOMEIP format.

7. The method according to claim 6, characterized in that The converting the data from the second data format to the first data format and sending the format-converted data to the first ECU control module includes: Parsing the data in the DDS or SOME IP format to obtain data in the first data format; The data in the first data format is sent to the first ECU control module through at least one of the CAN, CAN FD, and LIN interfaces.

8. The method according to claim 1, characterized in that The sending of the format-converted data to the first ECU control module comprises: Determine, according to a routing table, an interface identifier of the first ECU control module receiving the data, wherein the routing table includes a correspondence between a data receiving interface identifier and a data sending interface identifier of the switch; The data is sent to the first ECU control module through the interface corresponding to the interface identifier.

9. A data subscription device, characterized in that: The device comprises: A receiving unit, configured to receive a data subscription or publishing request sent by a first ECU control module, wherein the first ECU control module supports a first data format; a response unit, configured to obtain data from a second ECU control module in response to the data subscription request, wherein the second ECU control module supports a second data format; The sending unit is used to convert the data from the second data format to the first data format, and send the format-converted data to the first ECU control module.

10. A data subscription system, characterized in that: The system comprises A first ECU control module, wherein the first ECU control module supports a first data format; a second ECU control module, wherein the second ECU control module supports a second data format; switch; Wherein, the first ECU control module sends a data subscription or publishing request to the switch, In response to the data subscription request, the switch obtains data from the second ECU control module, converts the data from the second data format to the first data format, and sends the format-converted data to the first ECU control module.

11. The system according to claim 10, characterized in that: The switch includes a CAN node link layer interface, a CANFD node link layer interface, and a LIN node link layer interface.

12. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

13. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

14. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.

Citation Information

Cited By

  • SOA service-based steer-by-wire cooperative control method, vehicle, storage medium and program product

    CN120589086A