CN115941380A - Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle - Google Patents

Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle Download PDF

Info

Publication number
CN115941380A
CN115941380A CN202211352882.9A CN202211352882A CN115941380A CN 115941380 A CN115941380 A CN 115941380A CN 202211352882 A CN202211352882 A CN 202211352882A CN 115941380 A CN115941380 A CN 115941380A
Authority
CN
China
Prior art keywords
signal
target
service
service interface
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211352882.9A
Other languages
Chinese (zh)
Inventor
王林
栗羽峰
耿俊庆
王强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202211352882.9A priority Critical patent/CN115941380A/en
Publication of CN115941380A publication Critical patent/CN115941380A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本申请提供了一种处理车辆控制器局域网CAN信号的方法、装置和车辆,该方法包括:接收第一ECU发送的目标CAN信号;确定目标CAN信号的标识;根据目标CAN信号的标识和第一映射关系,确定目标CAN信号对应的目标服务接口,第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系;根据目标服务接口,确定目标CAN信号对应的通信数据,通信数据用于使多个ECU通过网关以以太网通信方式通信。该方法能够通过网关将CAN信号服务化,得到CAN信号对应的以太网通信方式的通信数据,从而使车辆中的ECU除了通过常见的CAN通信方式通信之外,还可以通过以太网通信方式进行通信,为车辆中的ECU提供了多样化的通信方式。

Figure 202211352882

The present application provides a method, a device and a vehicle for processing a CAN signal of a vehicle controller local area network. The method includes: receiving a target CAN signal sent by a first ECU; determining an identifier of the target CAN signal; The mapping relationship is to determine the target service interface corresponding to the target CAN signal, and the first mapping relationship is used to indicate the corresponding relationship between the identifier of the CAN signal and the identifier of the service interface; according to the target service interface, determine the communication data corresponding to the target CAN signal, and communicate The data is used to enable multiple ECUs to communicate via Ethernet communication via a gateway. This method can serve the CAN signal through the gateway, and obtain the communication data of the Ethernet communication mode corresponding to the CAN signal, so that the ECU in the vehicle can communicate not only through the common CAN communication mode, but also through the Ethernet communication mode. , providing a variety of communication methods for the ECU in the vehicle.

Figure 202211352882

Description

一种处理车辆控制器局域网CAN信号的方法、装置和车辆Method, device and vehicle for processing CAN signal of vehicle controller local area network

技术领域technical field

本申请涉及车载领域,并且更具体地,涉及车载领域中一种处理车辆控制器局域网CAN信号的方法、装置和车辆。The present application relates to the field of vehicles, and more specifically, to a method, device and vehicle for processing CAN signals of a vehicle controller area network in the field of vehicles.

背景技术Background technique

目前,在车辆行业,随着网络技术的不断发展和完善,车辆的功能变得越来越丰富。车辆中的多个电子控制单元(Electronic Control Unit,ECU)可以通过车辆上提供的多种通信方式来进行通信,以控制车辆实现不同的功能。车辆中常见的几种通信方式包括:控制器局域网络(Controller Area Network,CAN)总线通信、局域互联网络(LocalInterconnect Network,LIN)总线通信、Flex Ray总线通信、面向媒体的系统传输(MediaOriented Systems Transport,MOST)总线通信、以太网通信等。At present, in the vehicle industry, with the continuous development and improvement of network technology, the functions of vehicles are becoming more and more abundant. Multiple electronic control units (Electronic Control Unit, ECU) in the vehicle can communicate through various communication methods provided on the vehicle to control the vehicle to achieve different functions. Several common communication methods in vehicles include: Controller Area Network (Controller Area Network, CAN) bus communication, Local Interconnect Network (Local Interconnect Network, LIN) bus communication, Flex Ray bus communication, media-oriented system transmission (MediaOriented Systems Transport, MOST) bus communication, Ethernet communication, etc.

示例性的,目前车辆中主要采用CAN总线通信方式来实现数据交互。但随着以太网通信技术的快速发展,越来越多的车辆开始通过以太网通信的方式实现数据交互。CAN总线通信是面向信号的通信,以太网通信是面向服务的通信,因此车辆中的多个ECU在采用以太网通信的过程中,需要将CAN信号转换为以太网数据,以使车辆ECU之间能够通过以太网通信。Exemplarily, at present, CAN bus communication is mainly used in vehicles to realize data interaction. However, with the rapid development of Ethernet communication technology, more and more vehicles are beginning to realize data interaction through Ethernet communication. CAN bus communication is signal-oriented communication, and Ethernet communication is service-oriented communication. Therefore, when multiple ECUs in a vehicle use Ethernet communication, they need to convert CAN signals into Ethernet data, so that the vehicle ECUs can communicate with each other. Ability to communicate via Ethernet.

综上,如何实现车辆中多个ECU的CAN信号服务化,以满足车辆ECU之间可以通过以太网通信,成为了亟需解决的问题。To sum up, how to realize the CAN signal service of multiple ECUs in the vehicle, so that the ECUs of the vehicle can communicate through Ethernet, has become an urgent problem to be solved.

发明内容Contents of the invention

本申请提供了一种处理车辆控制器局域网CAN信号的方法、装置和车辆,该方法能够通过网关将CAN信号服务化,得到CAN信号对应的以太网通信方式的通信数据,从而使车辆中的ECU除了通过常见的CAN通信方式通信之外,还可以通过以太网通信方式进行通信,为车辆中的ECU提供了多样化的通信方式。The application provides a method, device and vehicle for processing CAN signals in the vehicle controller local area network. The method can serve the CAN signals through the gateway, and obtain the communication data of the Ethernet communication mode corresponding to the CAN signals, so that the ECU in the vehicle can In addition to communicating through the common CAN communication method, it can also communicate through the Ethernet communication method, providing a variety of communication methods for the ECU in the vehicle.

第一方面,提供了一种处理车辆控制器局域网CAN信号的方法,该方法由网关执行,该方法包括:接收第一ECU发送的目标CAN信号;确定该目标CAN信号的标识;根据该目标CAN信号的标识和第一映射关系,确定该目标CAN信号对应的目标服务接口,该第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系;根据该目标服务接口,确定该目标CAN信号对应的通信数据,该通信数据用于使多个ECU通过该网关以以太网通信方式通信。In a first aspect, a method for processing a CAN signal of a vehicle controller local area network is provided, the method is executed by a gateway, and the method includes: receiving a target CAN signal sent by a first ECU; determining the identity of the target CAN signal; according to the target CAN The identification of the signal and the first mapping relationship determine the target service interface corresponding to the target CAN signal, and the first mapping relationship is used to indicate the corresponding relationship between the identification of the CAN signal and the identification of the service interface; according to the target service interface, determine The communication data corresponding to the target CAN signal, the communication data is used to enable multiple ECUs to communicate through the gateway in the form of Ethernet communication.

在上述技术方案中,提出了一种处理CAN信号的方法,具体是在获取来自车辆中的ECU发送的目标CAN信号之后,确定目标CAN信号的标识,进一步根据目标CAN信号的标识和第一映射关系,确定出目标CAN信号对应的服务接口,其中,第一映射关系用于指示CAN信号的标识和服务接口的标识之间的对应关系。在本申请中,通过网关中的CAN信号的标识和服务接口的标识之间的对应关系,使得网关能够在接收目标CAN信号之后,快速确定目标CAN信号对应的服务接口,提高了CAN信号处理的效率。最后根据目标CAN信号对应的服务接口,得到目标CAN信号对应的通信数据。其中,通信数据用于使多个ECU能够通过网关以以太网通信方式通信。结合前述步骤得到的服务接口,在该过程中,能够直接根据目标CAN信号对应的服务接口确定目标CAN信号对应的通信数据,实现了将CAN信号转为以太网通信方式对应的通信数据的效果,从而丰富了车辆中ECU的通信方式的种类,解决了ECU通信方式的单一性,并且达到了ECU在使用以太网通信方式通信时更加高效的效果。In the above technical solution, a method for processing CAN signals is proposed, specifically, after obtaining the target CAN signal sent by the ECU in the vehicle, the identification of the target CAN signal is determined, and further according to the identification of the target CAN signal and the first mapping relationship, to determine the service interface corresponding to the target CAN signal, wherein the first mapping relationship is used to indicate the correspondence between the identifier of the CAN signal and the identifier of the service interface. In this application, through the corresponding relationship between the CAN signal identification and the service interface identification in the gateway, the gateway can quickly determine the service interface corresponding to the target CAN signal after receiving the target CAN signal, which improves the CAN signal processing. efficiency. Finally, according to the service interface corresponding to the target CAN signal, the communication data corresponding to the target CAN signal is obtained. Among them, the communication data is used to enable a plurality of ECUs to communicate in an Ethernet communication manner through a gateway. Combining the service interface obtained in the preceding steps, in this process, the communication data corresponding to the target CAN signal can be directly determined according to the service interface corresponding to the target CAN signal, and the effect of converting the CAN signal into the communication data corresponding to the Ethernet communication mode is realized. Therefore, the types of communication modes of the ECU in the vehicle are enriched, the singleness of the communication mode of the ECU is solved, and the effect of more efficient communication of the ECU using the Ethernet communication mode is achieved.

结合第一方面,在某些可能的实现方式中,该根据该目标CAN信号的标识和第一映射关系,确定该目标CAN信号对应的目标服务接口,包括:根据该目标CAN信号的标识,确定该目标CAN信号对应的目标CAN消息的标识,其中,一个CAN消息包括至少一个CAN信号;根据该目标CAN消息的标识和第二映射关系,确定该目标CAN消息对应的目标服务,该第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系,该服务包括至少一个服务接口;根据该服务的标识和该服务对应的至少一个服务接口,确定该至少一个服务接口的标识;根据该目标服务、该至少一个服务接口的标识和该目标CAN信号的标识,确定该目标CAN信号对应的目标服务接口。With reference to the first aspect, in some possible implementation manners, determining the target service interface corresponding to the target CAN signal according to the identification of the target CAN signal and the first mapping relationship includes: determining according to the identification of the target CAN signal The identification of the target CAN message corresponding to the target CAN signal, wherein a CAN message includes at least one CAN signal; according to the identification of the target CAN message and the second mapping relationship, determine the target service corresponding to the target CAN message, the second mapping The relationship is used to indicate the corresponding relationship between the identifier of the CAN message and the identifier of the service, and the service includes at least one service interface; according to the identifier of the service and at least one service interface corresponding to the service, determine the identifier of the at least one service interface; According to the target service, the identifier of the at least one service interface and the identifier of the target CAN signal, determine the target service interface corresponding to the target CAN signal.

在上述技术方案中,提出了一种确定目标服务接口的方法,具体是基于目标CAN信号的标识,确定出目标CAN信号对应的目标CAN消息的标识,根据目标CAN消息的标识和第二映射关系,得到目标CAN消息对应的目标服务,其中,第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系。进一步根据服务的标识确定出该服务对应的所有服务接口的标识,最后根据目标服务、每一个服务接口的标识和目标CAN信号的标识,得到目标CAN信号对应的服务接口。上述通过CAN消息的标识和服务的标识之间的关系,以及服务的标识以及服务接口的标识之间的层层对应关系,通过逐级递进的方式将CAN信号转为以太网通信方式对应的通信数据,保证了目标CAN信号在转换为通信数据过程的准确性和高效性。In the above technical solution, a method for determining the target service interface is proposed, specifically based on the identification of the target CAN signal, the identification of the target CAN message corresponding to the target CAN signal is determined, and according to the identification of the target CAN message and the second mapping relationship , to obtain the target service corresponding to the target CAN message, where the second mapping relationship is used to indicate the correspondence between the identifier of the CAN message and the identifier of the service. Further determine the identifiers of all service interfaces corresponding to the service according to the identifier of the service, and finally obtain the service interface corresponding to the target CAN signal according to the target service, the identifier of each service interface and the identifier of the target CAN signal. Through the above-mentioned relationship between the identification of the CAN message and the identification of the service, and the layer-by-layer correspondence between the identification of the service and the identification of the service interface, the CAN signal is converted to the corresponding Ethernet communication method in a step-by-step manner. The communication data ensures the accuracy and efficiency of the conversion of the target CAN signal into communication data.

结合第一方面和上述实现方式,在某些可能的实现方式中,该方法还包括:接收第二ECU发送的第一请求,该第一请求用于请求获取该目标CAN信号对应的通信数据;响应于该第一请求,将该目标CAN信号对应的通信数据发送至该第二ECU。With reference to the first aspect and the above-mentioned implementation manners, in some possible implementation manners, the method further includes: receiving a first request sent by the second ECU, where the first request is used to request to obtain communication data corresponding to the target CAN signal; In response to the first request, the communication data corresponding to the target CAN signal is sent to the second ECU.

在上述技术方案中,在得到目标CAN信号的通信数据之后,网关还可以通过接收第一请求的方式,向车辆中的其他ECU发送目标CAN信号对应的通信数据。实现了车辆中的多个ECU之间以以太网通信方式通信的效果。In the above technical solution, after obtaining the communication data of the target CAN signal, the gateway may also send the communication data corresponding to the target CAN signal to other ECUs in the vehicle by receiving the first request. Realize the effect of communication between multiple ECUs in the vehicle by means of Ethernet communication.

结合第一方面和上述实现方式,在某些可能的实现方式中,该方法还包括:根据该CAN信号的参数信息,确定该服务和该服务对应的至少一个服务接口,其中,该参数信息包括该CAN信号的发送类型、该CAN信号的信号类型、该CAN信号对应的设备类型中的任意一种或多种。With reference to the first aspect and the above-mentioned implementation manners, in some possible implementation manners, the method further includes: determining the service and at least one service interface corresponding to the service according to the parameter information of the CAN signal, where the parameter information includes Any one or more of the sending type of the CAN signal, the signal type of the CAN signal, and the type of equipment corresponding to the CAN signal.

在上述技术方案中,可以预先通过CAN信号的参数信息,确定出服务以及服务中的多个服务接口。从而当接收到CAN信号时,可以根据预先设置的服务以及服务接口,确定每一个CAN信号对应的服务接口。上述预先配置服务以及服务接口的方式实现了对CAN信号的系统性管理,提高了CAN信号转以太网对应的通信数据的效率。In the above technical solution, the service and multiple service interfaces in the service can be determined in advance through the parameter information of the CAN signal. Therefore, when a CAN signal is received, the service interface corresponding to each CAN signal can be determined according to the preset service and service interface. The above method of pre-configuring the service and the service interface realizes the systematic management of the CAN signal, and improves the efficiency of transferring the CAN signal to the communication data corresponding to the Ethernet.

结合第一方面和上述实现方式,在某些可能的实现方式中,ECU与该网关的连接方式包括CAN连接、以太网连接、局域互联网络LIN连接、面向媒体的系统传输MOST连接、FlexRay连接中的任意一种或多种连接方式。Combining the first aspect and the above implementation, in some possible implementations, the connection between the ECU and the gateway includes CAN connection, Ethernet connection, local area Internet network LIN connection, media-oriented system transmission MOST connection, FlexRay connection Any one or more of the connection methods.

结合第一方面和上述实现方式,在某些可能的实现方式中,服务接口的类型包括方法接口、属性接口、事件接口中的任意一种或多种接口。With reference to the first aspect and the foregoing implementation manners, in some possible implementation manners, the type of the service interface includes any one or more of a method interface, an attribute interface, and an event interface.

综上,本申请提出了一种处理CAN信号的方法,具体是在获取来自车辆中的ECU发送的目标CAN信号之后,确定目标CAN信号的标识,进一步根据目标CAN信号的标识和第一映射关系,确定出目标CAN信号对应的服务接口,其中,第一映射关系用于指示CAN信号的标识和服务接口的标识之间的对应关系。在本申请中,通过网关中的CAN信号的标识和服务接口的标识之间的对应关系,使得网关能够在接收目标CAN信号之后,快速确定目标CAN信号对应的服务接口,提高了CAN信号处理的效率。最后根据目标CAN信号对应的服务接口,得到目标CAN信号对应的通信数据。其中,通信数据用于使多个ECU能够通过网关以以太网通信方式通信。结合前述步骤得到的服务接口,在该过程中,能够直接根据目标CAN信号对应的服务接口确定目标CAN信号对应的通信数据,实现了将CAN信号转为以太网通信方式对应的通信数据的效果,从而丰富了车辆中ECU的通信方式的种类,解决了ECU通信方式的单一性,并且达到了ECU在使用以太网通信方式通信时更加高效的效果。To sum up, this application proposes a method for processing CAN signals, specifically, after obtaining the target CAN signal sent by the ECU in the vehicle, determine the identity of the target CAN signal, and further according to the identity of the target CAN signal and the first mapping relationship , determine the service interface corresponding to the target CAN signal, where the first mapping relationship is used to indicate the correspondence between the identifier of the CAN signal and the identifier of the service interface. In this application, through the corresponding relationship between the CAN signal identification and the service interface identification in the gateway, the gateway can quickly determine the service interface corresponding to the target CAN signal after receiving the target CAN signal, which improves the CAN signal processing. efficiency. Finally, according to the service interface corresponding to the target CAN signal, the communication data corresponding to the target CAN signal is obtained. Among them, the communication data is used to enable a plurality of ECUs to communicate in an Ethernet communication manner through a gateway. Combining the service interface obtained in the preceding steps, in this process, the communication data corresponding to the target CAN signal can be directly determined according to the service interface corresponding to the target CAN signal, and the effect of converting the CAN signal into the communication data corresponding to the Ethernet communication mode is realized. Therefore, the types of communication modes of the ECU in the vehicle are enriched, the singleness of the communication mode of the ECU is solved, and the effect of more efficient communication of the ECU using the Ethernet communication mode is achieved.

具体的,本申请提出了一种确定目标服务接口的方法,具体是基于目标CAN信号的标识,确定出目标CAN信号对应的目标CAN消息的标识,根据目标CAN消息的标识和第二映射关系,得到目标CAN消息对应的目标服务,其中,第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系。进一步根据服务的标识确定出该服务对应的所有服务接口的标识,最后根据目标服务、每一个服务接口的标识和目标CAN信号的标识,得到目标CAN信号对应的服务接口。上述通过CAN消息的标识和服务的标识之间的关系,以及服务的标识以及服务接口的标识之间的层层对应关系,通过逐级递进的方式将CAN信号转为以太网通信方式对应的通信数据,保证了目标CAN信号在转换为通信数据过程的准确性和高效性。Specifically, the present application proposes a method for determining the target service interface, specifically based on the target CAN signal identification, determining the target CAN message identification corresponding to the target CAN signal, and according to the target CAN message identification and the second mapping relationship, A target service corresponding to the target CAN message is obtained, wherein the second mapping relationship is used to indicate a correspondence between the identifier of the CAN message and the identifier of the service. Further determine the identifiers of all service interfaces corresponding to the service according to the identifier of the service, and finally obtain the service interface corresponding to the target CAN signal according to the target service, the identifier of each service interface and the identifier of the target CAN signal. Through the above-mentioned relationship between the identification of the CAN message and the identification of the service, and the layer-by-layer correspondence between the identification of the service and the identification of the service interface, the CAN signal is converted to the corresponding Ethernet communication method in a step-by-step manner. The communication data ensures the accuracy and efficiency of the conversion of the target CAN signal into communication data.

进一步,在得到目标CAN信号的通信数据之后,网关还可以通过接收第一请求的方式,向车辆中的其他ECU发送目标CAN信号对应的通信数据。实现了车辆中的多个ECU之间以以太网通信方式通信的效果。Further, after obtaining the communication data of the target CAN signal, the gateway can also send the communication data corresponding to the target CAN signal to other ECUs in the vehicle by receiving the first request. Realize the effect of communication between multiple ECUs in the vehicle by means of Ethernet communication.

在本申请中,可以预先通过CAN信号的参数信息,确定出多个服务以及服务中的多个服务接口。从而当接收到CAN信号时,可以根据预先设置的服务以及服务接口,确定每一个CAN信号对应的服务接口。上述预先配置服务以及服务接口的方式实现了对CAN信号的系统性管理,提高了CAN信号转以太网对应的通信数据的效率。In this application, multiple services and multiple service interfaces in the services can be determined in advance through the parameter information of the CAN signal. Therefore, when a CAN signal is received, the service interface corresponding to each CAN signal can be determined according to the preset service and service interface. The above method of pre-configuring the service and the service interface realizes the systematic management of the CAN signal, and improves the efficiency of transferring the CAN signal to the communication data corresponding to the Ethernet.

第二方面,提供了一种处理车辆控制器局域网CAN信号的装置,该装置包含于网关,该装置包括:接收模块,用于接收第一ECU发送的目标CAN信号;第一确定模块,用于确定该目标CAN信号的标识;根据该目标CAN信号的标识和第一映射关系,确定该目标CAN信号对应的目标服务接口,该第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系;根据该目标服务接口,确定该目标CAN信号对应的通信数据,该通信数据用于使多个ECU通过该网关以以太网通信方式通信。In a second aspect, there is provided a device for processing a CAN signal of a vehicle controller local area network, the device is included in a gateway, and the device includes: a receiving module for receiving a target CAN signal sent by a first ECU; a first determining module for Determine the identification of the target CAN signal; determine the target service interface corresponding to the target CAN signal according to the identification of the target CAN signal and the first mapping relationship, and the first mapping relationship is used to indicate the difference between the identification of the CAN signal and the identification of the service interface The corresponding relationship among them; according to the target service interface, determine the communication data corresponding to the target CAN signal, and the communication data is used to enable multiple ECUs to communicate through the gateway via Ethernet communication.

结合第二方面,在某些可能的实现方式中,该第一确定模块具体用于:根据该目标CAN信号的标识,确定该目标CAN信号对应的目标CAN消息的标识,其中,一个CAN消息包括至少一个CAN信号;根据该目标CAN消息的标识和第二映射关系,确定该目标CAN消息对应的目标服务,该第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系,该服务包括至少一个服务接口;根据该服务的标识和该服务对应的至少一个服务接口,确定该至少一个服务接口的标识;根据该目标服务、该至少一个服务接口的标识和该目标CAN信号的标识,确定该目标CAN信号对应的目标服务接口。With reference to the second aspect, in some possible implementation manners, the first determining module is specifically configured to: determine an identifier of a target CAN message corresponding to the target CAN signal according to the identifier of the target CAN signal, wherein a CAN message includes At least one CAN signal; determine the target service corresponding to the target CAN message according to the target CAN message identifier and a second mapping relationship, the second mapping relationship is used to indicate the correspondence between the CAN message identifier and the service identifier, The service includes at least one service interface; according to the identification of the service and at least one service interface corresponding to the service, determine the identification of the at least one service interface; according to the target service, the identification of the at least one service interface and the target CAN signal Identification, to determine the target service interface corresponding to the target CAN signal.

结合第二方面和上述实现方式,在某些可能的实现方式中,该装置还包括:处理模块,用于接收第二ECU发送的第一请求,该第一请求用于请求获取该目标CAN信号对应的通信数据;响应于该第一请求,将该目标CAN信号对应的通信数据发送至该第二ECU。With reference to the second aspect and the above implementation manners, in some possible implementation manners, the device further includes: a processing module, configured to receive a first request sent by the second ECU, where the first request is used to request to obtain the target CAN signal Corresponding communication data: in response to the first request, sending the communication data corresponding to the target CAN signal to the second ECU.

结合第二方面和上述实现方式,在某些可能的实现方式中,该装置还包括:第二确定模块,用于根据该CAN信号的参数信息,确定该服务和该服务对应的至少一个服务接口,其中,该参数信息包括该CAN信号的发送类型、该CAN信号的信号类型、该CAN信号对应的设备类型中的任意一种或多种。With reference to the second aspect and the above-mentioned implementation manners, in some possible implementation manners, the device further includes: a second determining module, configured to determine the service and at least one service interface corresponding to the service according to the parameter information of the CAN signal , wherein the parameter information includes any one or more of the transmission type of the CAN signal, the signal type of the CAN signal, and the device type corresponding to the CAN signal.

结合第二方面和上述实现方式,在某些可能的实现方式中,ECU与该网关的连接方式包括CAN连接、以太网连接、局域互联网络LIN连接、面向媒体的系统传输MOST连接、FlexRay连接中的任意一种或多种连接方式。Combining the second aspect and the above implementation, in some possible implementations, the connection between the ECU and the gateway includes CAN connection, Ethernet connection, local area Internet network LIN connection, media-oriented system transmission MOST connection, FlexRay connection Any one or more of the connection methods.

结合第二方面和上述实现方式,在某些可能的实现方式中,服务接口的类型包括方法接口、属性接口、事件接口中的任意一种或多种接口。With reference to the second aspect and the above implementation manners, in some possible implementation manners, the type of the service interface includes any one or more of a method interface, an attribute interface, and an event interface.

第三方面,提供一种网关,该网关包括:存储器和处理器。该存储器用于存储可执行程序代码,该处理器用于从存储器中调用并运行该可执行程序代码,使得该网关执行上述第一方面或第一方面任意一种可能的实现方式中的方法。In a third aspect, a gateway is provided, and the gateway includes: a memory and a processor. The memory is used to store executable program codes, and the processor is used to call and run the executable program codes from the memory, so that the gateway executes the method in the above first aspect or any possible implementation manner of the first aspect.

第四方面,提供一种车辆,该车辆包括用于执行上述第一方面或第一方面任意一种可能的实现方式中的方法的网关,In a fourth aspect, a vehicle is provided, and the vehicle includes a gateway for performing the method in the above-mentioned first aspect or any possible implementation manner of the first aspect,

第五方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行上述第一方面或第一方面任意一种可能的实现方式中的方法。In a fifth aspect, a computer program product is provided, and the computer program product includes: computer program code, when the computer program code is run on a computer, the computer is made to execute any one of the above-mentioned first aspect or any one of the possible steps of the first aspect. method in the implementation.

第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行上述第一方面或第一方面任意一种可能的实现方式中的方法。In a sixth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores computer program codes, and when the computer program codes run on a computer, the computer executes the first aspect or any of the first aspects. A method in one possible implementation.

附图说明Description of drawings

图1是本申请实施例提供的一种车辆ECU之间通信的场景示意图;FIG. 1 is a schematic diagram of a scene of communication between vehicle ECUs provided by an embodiment of the present application;

图2是本申请实施例提供的一种CAN消息的结构示意图;Fig. 2 is a schematic structural diagram of a CAN message provided by an embodiment of the present application;

图3是本申请实施例提供的一种服务的结构示意图;Fig. 3 is a schematic structural diagram of a service provided by an embodiment of the present application;

图4是本申请实施例提供的一种处理车辆控制器局域网CAN信号的方法的示意性流程图;Fig. 4 is a schematic flowchart of a method for processing a CAN signal of a vehicle controller local area network provided by an embodiment of the present application;

图5是本申请实施例提供的一种处理车辆控制器局域网CAN信号的装置的结构示意图;Fig. 5 is a schematic structural diagram of a device for processing CAN signals of a vehicle controller local area network provided by an embodiment of the present application;

图6是本申请实施例提供的一种车辆的结构示意图。Fig. 6 is a schematic structural diagram of a vehicle provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B:文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solution in this application will be described clearly and in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B: "and/or" in the text is only a description of associated objects The association relationship indicates that there may be three kinds of relationships, such as A and/or B, which may indicate that A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiment of the present application, "A plurality" means two or more than two.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者多个该特征。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of these features.

图1是本申请实施例提供的一种车辆ECU之间通信的场景示意图。Fig. 1 is a schematic diagram of a scene of communication between vehicle ECUs provided by an embodiment of the present application.

示例性的,如图1所示,图1中包括网关101、ECU102和ECU103。其中,ECU102和ECU103分别与网关101连接,ECU102和ECU103可以通过网关101实现数据的相互传输。Exemplarily, as shown in FIG. 1 , a gateway 101 , an ECU 102 and an ECU 103 are included in FIG. 1 . Wherein, the ECU 102 and the ECU 103 are respectively connected to the gateway 101 , and the ECU 102 and the ECU 103 can realize data mutual transmission through the gateway 101 .

可选的,网关101可以为信号转服务(Signal to Service,S2S)网关。Optionally, the gateway 101 may be a Signal to Service (S2S) gateway.

可选的,ECU102和ECU103与网关101的连接方式包括CAN连接、以太网连接、LIN连接、MOST连接、Flex Ray连接中的任意一种连接。Optionally, the connection mode between ECU102 and ECU103 and gateway 101 includes any connection in CAN connection, Ethernet connection, LIN connection, MOST connection, and Flex Ray connection.

一种可能的场景中,ECU102可以与网关101通过CAN连接、ECU103可以与网关101通过以太网连接。下面本申请实施例以ECU102与网关101CAN连接,ECU103与网关101以太网连接为例,对本申请实施例提供的一种处理车辆控制器局域网CAN信号的方法进行详细的介绍。In a possible scenario, the ECU 102 may be connected to the gateway 101 via CAN, and the ECU 103 may be connected to the gateway 101 via Ethernet. In the following embodiment of the application, the ECU 102 is connected to the gateway 101 by CAN, and the ECU 103 is connected to the gateway 101 by Ethernet as an example, and a method for processing the CAN signal of the vehicle controller local area network provided by the embodiment of the application is described in detail.

应理解的是,CAN通信是面向信号的通信方式,以太网通信是面向服务的通信。在介绍本申请实施例提供的一种处理车辆控制器局域网CAN信号的方法之前,先对本申请实施例中的CAN消息、CAN信号、服务以及服务接口的关系进行简单的介绍。It should be understood that CAN communication is a signal-oriented communication manner, and Ethernet communication is a service-oriented communication. Before introducing a method for processing the CAN signal of the vehicle controller area network provided by the embodiment of the present application, a brief introduction is given to the relationship between the CAN message, the CAN signal, the service and the service interface in the embodiment of the present application.

图2是本申请实施例提供的一种CAN消息的结构示意图。Fig. 2 is a schematic structural diagram of a CAN message provided by an embodiment of the present application.

示例性的,如图2所示,为了满足用户在驾车过程中的各种需求,保障用户的生命财产安全,可以通过车辆中配置的多个ECU来获取并处理车辆行驶过程中的各种行驶参数,以便于及时对车辆行驶过程中的异常数据进行处理和上报。Exemplarily, as shown in Figure 2, in order to meet the various needs of the user during the driving process and ensure the safety of the user's life and property, multiple ECUs configured in the vehicle can be used to obtain and process various driving data during the driving process of the vehicle. parameters, so as to timely process and report abnormal data during vehicle driving.

其中,车辆中的多个ECU包括发动机控制模块(Engine Control Module,ECM)、电池管理系统(Battery Manage System,BMS)控制器、变速箱控制单元(TransmissionControl Unit,TCU,也称为变速箱控制器)、混合动力控制单元(Hybrid Control Unit,HCU)、电池管理系统(Battery Management System,BMS,也可称为“能量存储系统”)、空调控制器(Automatic Temperature Control,ATC)等多个ECU。Among them, multiple ECUs in the vehicle include Engine Control Module (Engine Control Module, ECM), Battery Management System (Battery Manage System, BMS) controller, Transmission Control Unit (Transmission Control Unit, TCU, also known as transmission controller ), hybrid control unit (Hybrid Control Unit, HCU), battery management system (Battery Management System, BMS, also known as "energy storage system"), air conditioning controller (Automatic Temperature Control, ATC) and other ECUs.

如图2所示,结合图1,ECU102可以为上述多个ECU中的任意一个ECU,例如ECU102为ATC,那么ATC就可以在车辆行驶的过程中,可以通过车辆中的传感器采集的数据,获取车辆中的空调的温度、状态信息、风量、当前工作模式等各种信息,并将这些信息以CAN信号的形式发送至网关101。例如图2中的CAN信号2011、CAN信号2012、CAN信号2013和CAN信号2014。As shown in Figure 2, in conjunction with Figure 1, the ECU 102 can be any one of the above-mentioned multiple ECUs. Various information such as temperature, status information, air volume, and current working mode of the air conditioner in the vehicle are sent to the gateway 101 in the form of CAN signals. For example, CAN signal 2011 , CAN signal 2012 , CAN signal 2013 and CAN signal 2014 in FIG. 2 .

但是,由于CAN信号不能单独发送,因此ATC在向网关101发送上述空调温度、状态信息、风量、当前工作模式时,可以将上述CAN信号2011、CAN信号2012、CAN信号2013和CAN信号2014以一个CAN消息201(或者称为一帧CAN报文)的形式发送。也就是说,一个CAN消息可以包括多个CAN信号。However, since the CAN signal cannot be sent separately, when the ATC sends the above-mentioned air-conditioning temperature, status information, air volume, and current operating mode to the gateway 101, the above-mentioned CAN signal 2011, CAN signal 2012, CAN signal 2013, and CAN signal 2014 can be combined into one It is sent in the form of CAN message 201 (or called a frame of CAN message). That is to say, one CAN message can include multiple CAN signals.

进一步地,当其他ECU需要获取ATC的空调温度、状态信息、风量、当前工作模式等信息时,可以通过向网关101发送请求的方式,网关101基于该请求,可以将上述ATC的空调温度、状态信息、风量、当前工作模式等信息发送至其他ECU。Further, when other ECUs need to obtain information such as the air-conditioning temperature, status information, air volume, and current working mode of the ATC, they can send a request to the gateway 101. Based on the request, the gateway 101 can obtain the air-conditioning temperature, status Information, air volume, current working mode and other information are sent to other ECUs.

目前,随着以太网通信的不断发展,越来越多的车辆中的ECU开始采用面向服务的以太网通信。At present, with the continuous development of Ethernet communication, more and more ECUs in vehicles begin to adopt service-oriented Ethernet communication.

图3是本申请实施例提供的一种服务的结构示意图。Fig. 3 is a schematic structural diagram of a service provided by an embodiment of the present application.

示例性的,如图3所示,结合图1,图3中的ECU103与网关101之间为以太网连接。假设ECU103为ECM,ECM可以具备以下功能:例如获取发动机的转速、发动机的工作状态、调节发动机的转速等。Exemplarily, as shown in FIG. 3 , with reference to FIG. 1 , the ECU 103 and the gateway 101 in FIG. 3 are connected by Ethernet. Assuming that the ECU 103 is an ECM, the ECM may have the following functions: for example, obtaining the engine speed, the working state of the engine, adjusting the engine speed, and so on.

在车辆中的ECU使用以太网通信方式通信时,ECM的功能可以统一用服务301表示。在服务301中,可以将ECM的上述不同的功能对应存储在不同服务301中的不同服务接口中,例如服务接口3011用于实现发送发动机的转速的功能;服务接口3012用于实现上报发动机的工作状态的功能;服务接口3013用于实现调节发动机的转速的功能。When the ECU in the vehicle communicates using the Ethernet communication method, the functions of the ECM can be collectively represented by a service 301 . In the service 301, the above-mentioned different functions of the ECM can be correspondingly stored in different service interfaces in different services 301, for example, the service interface 3011 is used to realize the function of sending the rotational speed of the engine; the service interface 3012 is used to realize the reporting of the work of the engine The function of the state; the service interface 3013 is used to realize the function of adjusting the rotational speed of the engine.

进一步,ECM可以将这些服务数据发送至网关101,当其他ECU需要获取当前发动机的转速时,可以通过向网关101发送请求,以调用服务301中的服务接口3011来实现发动机数据的获取过程。其他的服务接口同理。Further, the ECM can send these service data to the gateway 101. When other ECUs need to obtain the current engine speed, they can send a request to the gateway 101 to call the service interface 3011 in the service 301 to realize the engine data acquisition process. The same applies to other service interfaces.

结合图2和图3,在车辆中多个ECU通信的过程中,当车辆中的多个ECU对应的通信连接方式不同时(例如ECU102与网关101通过CAN连接,ECU103与网关101通过以太网连接),ECU103如果需要获取ECU102的数据时,网关101在接收到ECU102的CAN信号之后,首先需要将CAN信号转化为ECU103可以接收的以太网数据后,才可以将ECU102的数据发送至ECU103。2 and 3, in the process of communication between multiple ECUs in the vehicle, when the corresponding communication connection modes of the multiple ECUs in the vehicle are different (for example, ECU102 is connected to the gateway 101 through CAN, and ECU103 is connected to the gateway 101 through Ethernet. ), if the ECU103 needs to obtain the data of the ECU102, after the gateway 101 receives the CAN signal of the ECU102, it first needs to convert the CAN signal into Ethernet data that the ECU103 can receive, and then the data of the ECU102 can be sent to the ECU103.

图4是本申请实施例提供的一种处理车辆局域网CAN信号的方法的示意性流程图。应理解,该方法可以应用于如图1所示的场景中,由图1中的网关101执行。Fig. 4 is a schematic flowchart of a method for processing CAN signals of a vehicle local area network provided by an embodiment of the present application. It should be understood that the method can be applied to the scenario shown in FIG. 1 and executed by the gateway 101 in FIG. 1 .

示例性的,如图4所示,该方法400包括:Exemplarily, as shown in FIG. 4, the method 400 includes:

401,接收第一ECU发送的目标CAN信号。401. Receive a target CAN signal sent by a first ECU.

应理解,在本申请实施例中,第一ECU与网关通信连接。因此网关可以接收第一ECU发送的目标CAN信号。可选的,第一ECU为车辆中多个ECU中的任意一个ECU。It should be understood that, in this embodiment of the present application, the first ECU is connected to the gateway through communication. So the gateway can receive the target CAN signal sent by the first ECU. Optionally, the first ECU is any one of multiple ECUs in the vehicle.

可选的,对于车辆中的任意一个ECU,ECU与网关的连接方式包括CAN连接、以太网连接、LIN连接、MOST连接、Flex Ray连接中的任意一种或多种连接方式。Optionally, for any ECU in the vehicle, the connection between the ECU and the gateway includes any one or more of CAN connection, Ethernet connection, LIN connection, MOST connection, and Flex Ray connection.

还应理解,在本申请实施例中,对目标CAN信号进行服务化之前,工程师可以预先根据之前获取的多个CAN信号的参数信息,在网关中设置CAN信号的标识与服务接口的标识之间的多组对应关系,并将这些对应关系存储为第一映射关系。在实际CAN服务化的过程中,当接收到目标CAN信号后,网关可以直接根据预先存储的第一映射关系,找到目标CAN信号对应的服务接口。It should also be understood that in the embodiment of the present application, before the target CAN signal is serviced, the engineer can pre-set the CAN signal identifier and the service interface identifier in the gateway according to the parameter information of multiple CAN signals acquired before. multiple sets of corresponding relationships, and store these corresponding relationships as the first mapping relationship. In the actual CAN service process, after receiving the target CAN signal, the gateway can directly find the service interface corresponding to the target CAN signal according to the first pre-stored mapping relationship.

可选的,CAN信号的参数信息包括CAN信号的发送类型、CAN信号的信号类型、CAN信号对应的设备类型。Optionally, the parameter information of the CAN signal includes the sending type of the CAN signal, the signal type of the CAN signal, and the device type corresponding to the CAN signal.

可选的,CAN信号的发送类型包括周期型(Cyclic)发送、事件型(On Change)发送、周期事件型(cyclic and on event)发送、使能型(if active)发送、周期使能型(cyclicand if active)发送等任意一种或多种发送类型。Optionally, the sending type of the CAN signal includes periodic (Cyclic) sending, event-type (On Change) sending, periodic event-type (cyclic and on event) sending, enabling type (if active) sending, periodic enabling type ( cyclic and if active) sending and any other sending type or more.

可选的,CAN对应的设备类型包括空调、座椅、发动机等。Optionally, the device types corresponding to the CAN include air conditioners, seats, engines, and the like.

示例性的,可以先按照设备的不同,将CAN信号进行分类,例如将空调中(或者ATC)的所有CAN信号对应多个不同的服务;将座椅(或者座椅控制器)对应的所有CAN信号对应多个不同的服务。在空调对应的不同服务中,不同服务可以表示不同功能,例如温度调节对应服务1、风量调节对应服务2等。然后在服务1中,根据具体CAN信号类型的不同,(例如某一些CAN信号表示空调当前的温度;某一些CAN信号表示空调的工作模式(例如制冷、制热或空气净化等),将不同的CAN信号设置为一个服务中的不同服务接口。Exemplarily, CAN signals can be classified according to different devices, for example, all CAN signals in the air conditioner (or ATC) correspond to multiple different services; all CAN signals corresponding to the seat (or seat controller) Signals correspond to several different services. Among the different services corresponding to the air conditioner, different services may represent different functions, for example, service 1 corresponding to temperature adjustment, service 2 corresponding to air volume adjustment, and so on. Then in service 1, according to the specific CAN signal type, (for example, some CAN signals indicate the current temperature of the air conditioner; some CAN signals indicate the working mode of the air conditioner (such as cooling, heating or air purification, etc.), different CAN signals are set to different service interfaces in one service.

可选的,服务接口的类型包括方法(method)接口、属性(Field)接口以及事件(Event)接口中的任意一种或多种接口。其中,Event表示事件发送、Method表示方法调用、Field表示字段处理。Optionally, the type of the service interface includes any one or more of a method (method) interface, a property (Field) interface, and an event (Event) interface. Among them, Event means event sending, Method means method call, and Field means field processing.

应理解,对于不同类型的服务接口而言,Method和Event服务接口主要为针对动作的服务接口、Method是用于请求进行某个动作的服务接口,Event是用于发生了某个动作,通知对方的服务接口;Field主要是用于对某个数据的读写的服务接口。It should be understood that for different types of service interfaces, Method and Event service interfaces are mainly service interfaces for actions, Method is a service interface for requesting a certain action, and Event is used to notify the other party when a certain action occurs The service interface; Field is mainly used to read and write a certain data service interface.

示例性的,对于ATC而言,能够提供的一些基本功能包括:打开或关闭空调;调高或者调低空调的风量;告知当前的环境温度;告知当前的目标温度等。Exemplarily, for the ATC, some basic functions that can be provided include: turning on or off the air conditioner; increasing or decreasing the air volume of the air conditioner; notifying the current ambient temperature; notifying the current target temperature and so on.

可以将上述功能中的“打开或关闭空调、调高或者调低空调的风量”设置对应两个Method接口;将上述功能中的“告知当前的温度”用一个Event接口来表示,可以不断上报当前的环境温度;将上述功能中的“告知当前的目标温度”用一个Field接口表示,因为目标温度不仅可以设置,还可以读取。In the above functions, "turn on or off the air conditioner, increase or decrease the air volume of the air conditioner" can be set to correspond to two Method interfaces; in the above functions, "inform the current temperature" can be represented by an Event interface, which can continuously report the current temperature. The ambient temperature; the "inform the current target temperature" in the above function is represented by a Field interface, because the target temperature can not only be set, but also read.

以此类推,通过上述设置过程,就可以得到多个不同ECU的CAN信号的标识与多个服务接口的标识之间的对应关系。By analogy, through the above setting process, the corresponding relationship between the identifications of CAN signals of multiple different ECUs and the identifications of multiple service interfaces can be obtained.

表1是本申请实施例提供的一种CAN信号与服务接口之间的对应关系的示意性表格。Table 1 is a schematic table of a correspondence between a CAN signal and a service interface provided in an embodiment of the present application.

表1——CAN信号与服务接口之间的对应关系列表Table 1 - List of correspondence between CAN signals and service interfaces

Figure BDA0003919610310000111
Figure BDA0003919610310000111

示例性的,如表1所示,服务接口与CAN信号之间并不是一对一的关系。一个服务接口中可以对应多个CAN信号,一个CAN信号也可以对应不同的服务接口,具体的设置方式可以由管理员根据实际情况进行动态调整。Exemplarily, as shown in Table 1, there is not a one-to-one relationship between the service interface and the CAN signal. One service interface can correspond to multiple CAN signals, and one CAN signal can also correspond to different service interfaces. The specific setting method can be dynamically adjusted by the administrator according to the actual situation.

在上述技术方案中,可以预先通过CAN信号的参数信息,确定出服务以及服务中的多个服务接口。从而当接收到CAN信号时,可以根据预先设置的服务以及服务接口,确定每一个CAN信号对应的服务接口。上述预先配置服务以及服务接口的方式实现了对CAN信号的系统性管理,提高了CAN信号转以太网对应的通信数据的效率。In the above technical solution, the service and multiple service interfaces in the service can be determined in advance through the parameter information of the CAN signal. Therefore, when a CAN signal is received, the service interface corresponding to each CAN signal can be determined according to the preset service and service interface. The above method of pre-configuring the service and the service interface realizes the systematic management of the CAN signal, and improves the efficiency of transferring the CAN signal to the communication data corresponding to the Ethernet.

进一步,当ECU与网关通过CAN连接时,网关可以接收ECU发送的目标CAN信号,并根据上述预设的多组对应关系得到目标CAN信号对应的目标服务接口。Further, when the ECU and the gateway are connected through CAN, the gateway can receive the target CAN signal sent by the ECU, and obtain the target service interface corresponding to the target CAN signal according to the above-mentioned preset multi-group correspondence.

402,确定目标CAN信号的标识。402. Determine the identity of the target CAN signal.

应理解,每一个CAN信号在发送至网关时,都可以对应一个唯一的标识,因此,网关在接收目标CAN信号时,可以确定目标CAN信号的标识。其中,CAN信号的标识可以用来表示CAN信号对应的数据类型以及对应具体属于哪一个CAN消息。It should be understood that when each CAN signal is sent to the gateway, it may correspond to a unique identifier. Therefore, when the gateway receives the target CAN signal, it can determine the identifier of the target CAN signal. Wherein, the identifier of the CAN signal can be used to indicate the data type corresponding to the CAN signal and which CAN message it specifically belongs to.

还应理解,CAN消息也叫CAN报文,指的是发送单元向接收单元传输数据的帧。CAN报文可以通过CAN总线,将多个数据从发送单元传输至接收单元卷。多个数据体现在CAN总线上就是多个CAN信号。It should also be understood that a CAN message is also called a CAN message, which refers to a frame in which a sending unit transmits data to a receiving unit. CAN messages can transmit multiple data from the sending unit to the receiving unit via the CAN bus. Multiple data are embodied on the CAN bus as multiple CAN signals.

403,根据每一个CAN信号的标识和第一映射关系,确定目标CAN信号对应的目标服务接口,第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系。403. Determine the target service interface corresponding to the target CAN signal according to the identifier of each CAN signal and the first mapping relationship, where the first mapping relationship is used to indicate the correspondence between the identifier of the CAN signal and the identifier of the service interface.

对于接收的每一个CAN信号,网关可以根据每一个CAN信号的标识,以及网关中存储的预设的多组对应关系,确定出每一个CAN信号对应的服务接口。For each received CAN signal, the gateway can determine the service interface corresponding to each CAN signal according to the identification of each CAN signal and the preset multiple sets of correspondences stored in the gateway.

一种可能的实现方式中,由于每一个CAN信号都对应一个CAN消息或者CAN报文,并且每一个服务接口都有对应的唯一服务,且每一个服务对应唯一的标识。在根据目标CAN信号的标识和第一映射关系,确定目标CAN信号对应的目标接口时,具体包括:In a possible implementation manner, each CAN signal corresponds to a CAN message or CAN message, and each service interface has a corresponding unique service, and each service corresponds to a unique identifier. When determining the target interface corresponding to the target CAN signal according to the identification of the target CAN signal and the first mapping relationship, specifically include:

根据目标CAN信号的标识,确定目标CAN信号对应的目标CAN消息的标识,其中,一个CAN消息包括至少一个CAN信号;According to the identification of the target CAN signal, determine the identification of the target CAN message corresponding to the target CAN signal, wherein a CAN message includes at least one CAN signal;

根据目标CAN消息的标识和第二映射关系,确定目标CAN消息对应的目标服务,第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系,服务包括至少一个服务接口;According to the identification of the target CAN message and the second mapping relationship, determine the target service corresponding to the target CAN message, the second mapping relationship is used to indicate the corresponding relationship between the identification of the CAN message and the identification of the service, and the service includes at least one service interface;

根据服务的标识和服务对应的至少一个服务接口,确定至少一个服务接口的标识;Determine the identifier of at least one service interface according to the identifier of the service and at least one service interface corresponding to the service;

根据目标服务、至少一个服务接口的标识和目标CAN信号的标识,确定目标CAN信号对应的目标服务接口。Determine the target service interface corresponding to the target CAN signal according to the target service, the identifier of at least one service interface, and the identifier of the target CAN signal.

在接收到目标CAN信号之后,本申请实施例中,可以根据目标CAN信号的标识,首先确定出目标CAN信号所属的CAN消息以及该CAN消息的标识。由于每一个CAN消息对应了不同的服务,因此根据CAN消息的标识和服务的标识之间的对应关系,确定出目标CAN消息对应的目标服务。进一步,结合服务的标识、服务对应的所有服务接口的标识和目标CAN信号的标识,就确定出目标CAN信号对应的目标服务接口。After receiving the target CAN signal, in the embodiment of the present application, according to the identification of the target CAN signal, the CAN message to which the target CAN signal belongs and the identification of the CAN message can be determined first. Since each CAN message corresponds to a different service, the target service corresponding to the target CAN message is determined according to the correspondence between the CAN message identifier and the service identifier. Further, the target service interface corresponding to the target CAN signal is determined by combining the service identifier, the identifiers of all service interfaces corresponding to the service, and the identifier of the target CAN signal.

在上述技术方案中,提出了一种确定目标服务接口的方法,具体是基于目标CAN信号的标识,确定出目标CAN信号对应的目标CAN消息的标识,根据目标CAN消息的标识和第二映射关系,得到目标CAN消息对应的目标服务,其中,第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系。进一步根据服务的标识确定出该服务对应的所有服务接口的标识,最后根据目标服务、每一个服务接口的标识和目标CAN信号的标识,得到目标CAN信号对应的服务接口。上述通过CAN消息地标识和服务的标识之间的关系,以及服务的标识以及服务接口的标识之间的层层对应关系,通过逐级递进的方式将CAN信号转为以太网通信方式对应的通信数据,保证了目标CAN信号在转换为通信数据过程的准确性和高效性。In the above technical solution, a method for determining the target service interface is proposed, specifically based on the identification of the target CAN signal, the identification of the target CAN message corresponding to the target CAN signal is determined, and according to the identification of the target CAN message and the second mapping relationship , to obtain the target service corresponding to the target CAN message, where the second mapping relationship is used to indicate the correspondence between the identifier of the CAN message and the identifier of the service. Further determine the identifiers of all service interfaces corresponding to the service according to the identifier of the service, and finally obtain the service interface corresponding to the target CAN signal according to the target service, the identifier of each service interface and the identifier of the target CAN signal. Through the above-mentioned relationship between the CAN message identification and the service identification, and the layer-by-layer correspondence between the service identification and the service interface identification, the CAN signal is converted to the corresponding Ethernet communication method in a step-by-step manner. The communication data ensures the accuracy and efficiency of the conversion of the target CAN signal into communication data.

404,根据目标服务接口,确定目标CAN信号对应的通信数据,通信数据用于使多个ECU通过网关以以太网通信方式通信。404. According to the target service interface, determine the communication data corresponding to the target CAN signal, where the communication data is used to enable multiple ECUs to communicate in an Ethernet communication manner through the gateway.

根据步骤403,即可确定出目标CAN信号对应的目标服务接口,根据目标服务接口,就可以得到目标CAN信号对应的通信数据,即以太网数据。According to step 403, the target service interface corresponding to the target CAN signal can be determined, and according to the target service interface, communication data corresponding to the target CAN signal, ie Ethernet data, can be obtained.

进一步,当车辆中的其他ECU需要获取网关中存储的目标CAN信号对应的以太网数据时,还可以通过向网关发送请求的方式获取,具体包括:Furthermore, when other ECUs in the vehicle need to obtain the Ethernet data corresponding to the target CAN signal stored in the gateway, it can also be obtained by sending a request to the gateway, specifically including:

接收第二ECU发送的第一请求,第一请求用于请求获取目标CAN信号对应的通信数据;receiving a first request sent by the second ECU, where the first request is used to request to obtain communication data corresponding to the target CAN signal;

响应于第一请求,将目标CAN信号对应的通信数据发送至第二ECU。In response to the first request, the communication data corresponding to the target CAN signal is sent to the second ECU.

具体的,若车辆中的其他ECU(第二ECU)与网关通过以太网连接时,需要获取第一ECU的目标CAN信号对应的通信数据时,网关可以通过以太网通信方式将目标CAN信号对应的通信数据发送至第二ECU。Specifically, if other ECUs (second ECUs) in the vehicle are connected to the gateway via Ethernet, and it is necessary to obtain the communication data corresponding to the target CAN signal of the first ECU, the gateway can transmit the communication data corresponding to the target CAN signal through Ethernet communication. The communication data is sent to the second ECU.

在上述技术方案中,在得到目标CAN信号的通信数据之后,网关还可以通过接收第一请求的方式,向车辆中的其他ECU发送目标CAN信号对应的通信数据。实现了车辆中的多个ECU之间以以太网通信方式通信的效果。In the above technical solution, after obtaining the communication data of the target CAN signal, the gateway may also send the communication data corresponding to the target CAN signal to other ECUs in the vehicle by receiving the first request. Realize the effect of communication between multiple ECUs in the vehicle by means of Ethernet communication.

应理解,在本申请实施例中,网关在对CAN信号进行服务化之后,还可以将原来的CAN信号进行存储。在接收到其他ECU发送的数据请求时,根据发送请求ECU的连接方式,将对应的数据发送至其他ECU。例如,如果发送请求的其他ECU同样是CAN连接,那么网关将CAN信号发送至其他ECU,如果发送请求的ECU为以太网连接,那么网关则将服务化后的以太网数据发送至其他ECU。同理,如果网关接收的数据为以太网数据,也可以将以太网数据转为CAN信号,并发送至其他以CAN连接的ECU中。上述方式都可以作为本申请的保护范围。It should be understood that, in the embodiment of the present application, the gateway may also store the original CAN signal after serving the CAN signal. When receiving data requests sent by other ECUs, send the corresponding data to other ECUs according to the connection method of the ECU sending the request. For example, if the other ECU that sends the request is also connected to CAN, the gateway will send the CAN signal to other ECUs; if the ECU that sent the request is connected to Ethernet, the gateway will send the serviced Ethernet data to other ECUs. Similarly, if the data received by the gateway is Ethernet data, the Ethernet data can also be converted into CAN signals and sent to other ECUs connected with CAN. All the above methods can be regarded as the protection scope of the present application.

图5是本申请实施例提供的一种处理车辆控制器局域网CAN信号的装置的结构示意图,该装置应用于如图1所示的网关101中。FIG. 5 is a schematic structural diagram of a device for processing CAN signals of a vehicle controller area network provided by an embodiment of the present application. The device is applied to the gateway 101 shown in FIG. 1 .

示例性的,如图5所示,该装置500包括:Exemplarily, as shown in FIG. 5, the device 500 includes:

接收模块501,用于接收ECU发送的目标CAN信号;A receiving module 501, configured to receive the target CAN signal sent by the ECU;

第一确定模块502,用于确定该目标CAN信号的标识;根据该目标CAN信号的标识和第一映射关系,确定该目标CAN信号对应的目标服务接口,该第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系;根据该目标服务接口,确定该目标CAN信号对应的通信数据,该通信数据用于使多个ECU通过该网关以以太网通信方式通信。The first determination module 502 is used to determine the identification of the target CAN signal; according to the identification of the target CAN signal and the first mapping relationship, determine the target service interface corresponding to the target CAN signal, and the first mapping relationship is used to indicate the CAN signal The corresponding relationship between the identification of the service interface and the identification of the service interface; according to the target service interface, determine the communication data corresponding to the target CAN signal, and the communication data is used to enable multiple ECUs to communicate in Ethernet communication through the gateway.

一种可能的实现方式中,该第一确定模块502具体用于:根据该目标CAN信号的标识,确定该目标CAN信号对应的目标CAN消息的标识,其中,每一个CAN消息包括至少一个CAN信号;根据该目标CAN消息的标识和第二映射关系,确定该目标CAN消息对应的目标服务,该第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系,该服务包括至少一个服务接口;根据该服务的标识和该服务对应的至少一个服务接口,确定该至少一个服务接口的标识;根据该目标服务、该至少一个服务接口的标识和该目标CAN信号的标识,确定该目标CAN信号对应的目标服务接口。In a possible implementation manner, the first determining module 502 is specifically configured to: determine the identifier of the target CAN message corresponding to the target CAN signal according to the identifier of the target CAN signal, wherein each CAN message includes at least one CAN signal ; According to the identification of the target CAN message and the second mapping relationship, determine the target service corresponding to the target CAN message, the second mapping relationship is used to indicate the correspondence between the identification of the CAN message and the identification of the service, the service includes at least A service interface; according to the identification of the service and at least one service interface corresponding to the service, determine the identification of the at least one service interface; according to the target service, the identification of the at least one service interface and the identification of the target CAN signal, determine the The target service interface corresponding to the target CAN signal.

可选的,该装置还包括:处理模块,用于接收第一ECU发送的第一请求,该第一请求用于请求获取该目标CAN信号对应的通信数据;响应于该第一请求,将该目标CAN信号对应的通信数据发送至该第一ECU。Optionally, the device further includes: a processing module, configured to receive a first request sent by the first ECU, where the first request is used to request to obtain communication data corresponding to the target CAN signal; in response to the first request, the The communication data corresponding to the target CAN signal is sent to the first ECU.

可选的,该装置还包括:第二确定模块,用于根据该CAN信号的参数信息,确定该服务和该服务对应的至少一个服务接口,其中,该参数信息包括该CAN信号的发送类型、该CAN信号的信号类型、该CAN信号对应的设备类型中的任意一种或多种。Optionally, the device further includes: a second determining module, configured to determine the service and at least one service interface corresponding to the service according to parameter information of the CAN signal, wherein the parameter information includes the sending type of the CAN signal, Any one or more of the signal type of the CAN signal and the device type corresponding to the CAN signal.

一种可能的实现方式中,ECU与该网关的连接方式包括CAN连接、以太网连接、局域互联网络LIN连接、面向媒体的系统传输MOST连接、Flex Ray连接中的任意一种或多种连接方式。In a possible implementation, the connection between the ECU and the gateway includes any one or more of CAN connection, Ethernet connection, local area interconnection network LIN connection, media-oriented system transmission MOST connection, and Flex Ray connection Way.

一种可能的实现方式中,服务接口的类型包括方法接口、属性接口、事件接口中的任意一种或多种接口。In a possible implementation manner, the type of the service interface includes any one or more of a method interface, an attribute interface, and an event interface.

图6是本申请实施例提供的一种车辆的结构示意图。Fig. 6 is a schematic structural diagram of a vehicle provided by an embodiment of the present application.

示例性的,如图6所示,结合图1,该车辆600包括图1中的网关101,其中,网关101包括:存储器601和处理器602,其中,存储器601中存储有可执行程序代码6011,处理器602用于调用并执行该可执行程序代码6011执行一种处理车辆控制器局域网CAN信号的方法。Exemplarily, as shown in FIG. 6, with reference to FIG. 1, the vehicle 600 includes the gateway 101 in FIG. , the processor 602 is used to call and execute the executable program code 6011 to execute a method for processing a vehicle controller area network CAN signal.

本实施例可以根据上述方法示例对车辆进行功能模块的划分,例如,可以对应各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中,上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the functional modules of the vehicle can be divided according to the above-mentioned method examples. For example, each functional module can be corresponded to, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can use hardware The form is realized. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

在采用对应各个功能划分各个功能模块的情况下,该网关可以包括:接收模块、第一确定模块等。需要说明的是,上述方法实施例涉及的各个步骤的所有相关内容的可以援引到对应功能模块的功能描述,在此不再赘述。In the case of dividing each functional module corresponding to each function, the gateway may include: a receiving module, a first determining module, and the like. It should be noted that all the relevant content of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

本实施例提供的车辆,用于执行上述一种处理车辆控制器局域网CAN信号的方法,因此可以达到与上述实现方法相同的效果。The vehicle provided in this embodiment is used to implement the above-mentioned method for processing the CAN signal of the vehicle controller area network, so the same effect as the above-mentioned implementation method can be achieved.

在采用集成的单元的情况下,车辆可以包括处理模块、存储模块。其中,处理模块可以用于对车辆的动作进行控制管理。存储模块可以用于支持车辆执行相互程序代码和数据等。In the case of integrated units, the vehicle may include processing modules, storage modules. Wherein, the processing module can be used to control and manage the actions of the vehicle. The storage module can be used to support the vehicle to execute mutual program codes and data, etc.

其中,处理模块可以是处理器或控制器,其可以实现或执行结合本申请公开内容所藐视的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包括一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等,存储模块可以是存储器。Wherein, the processing module can be a processor or a controller, which can realize or execute various exemplary logic blocks, modules and circuits that are despised in conjunction with the disclosure of the present application. The processor can also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, etc., and the storage module can be a memory.

本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述相关方法步骤实现上述实施例中的一种处理车辆控制器局域网CAN信号的方法。This embodiment also provides a computer-readable storage medium, where computer program code is stored in the computer-readable storage medium, and when the computer program code is run on the computer, the computer executes the above-mentioned related method steps to realize the steps in the above-mentioned embodiment. A method for processing CAN signals of a vehicle controller area network.

本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的一种处理车辆控制器局域网CAN信号的方法。This embodiment also provides a computer program product. When the computer program product is run on a computer, it causes the computer to execute the above related steps, so as to realize the method for processing the CAN signal of the vehicle controller area network in the above embodiment.

其中,本实施例提供的车辆、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the vehicles, computer-readable storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding methods provided above. The beneficial effects of the method will not be repeated here.

通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by different Completion of functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

1.一种处理车辆控制器局域网CAN信号的方法,其特征在于,所述方法由网关执行,所述方法包括:1. A method for processing vehicle controller local area network CAN signals, characterized in that, the method is carried out by a gateway, and the method comprises: 接收第一ECU发送的目标CAN信号;receiving the target CAN signal sent by the first ECU; 确定所述目标CAN信号的标识;determining the identity of the target CAN signal; 根据所述目标CAN信号的标识和第一映射关系,确定所述目标CAN信号对应的目标服务接口,所述第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系;According to the identification of the target CAN signal and the first mapping relationship, determine the target service interface corresponding to the target CAN signal, and the first mapping relationship is used to indicate the corresponding relationship between the identification of the CAN signal and the identification of the service interface; 根据所述目标服务接口,确定所述目标CAN信号对应的通信数据,所述通信数据用于使多个ECU通过所述网关以以太网通信方式通信。According to the target service interface, the communication data corresponding to the target CAN signal is determined, and the communication data is used to enable multiple ECUs to communicate in an Ethernet communication manner through the gateway. 2.根据权利要求1所述的方法,其特征在于,所述根据所述目标CAN信号的标识和第一映射关系,确定所述目标CAN信号对应的目标服务接口,包括:2. The method according to claim 1, wherein said determining the target service interface corresponding to the target CAN signal according to the identification of the target CAN signal and the first mapping relationship comprises: 根据所述目标CAN信号的标识,确定所述目标CAN信号对应的目标CAN消息的标识,其中,一个CAN消息包括至少一个CAN信号;According to the identification of the target CAN signal, determine the identification of the target CAN message corresponding to the target CAN signal, wherein a CAN message includes at least one CAN signal; 根据所述目标CAN消息的标识和第二映射关系,确定所述目标CAN消息对应的目标服务,所述第二映射关系用于指示CAN消息的标识和服务的标识之间的对应关系,所述服务包括至少一个服务接口;Determine the target service corresponding to the target CAN message according to the identifier of the target CAN message and a second mapping relationship, the second mapping relationship is used to indicate the correspondence between the identifier of the CAN message and the identifier of the service, the The service includes at least one service interface; 根据所述服务的标识和所述服务对应的至少一个服务接口,确定所述至少一个服务接口的标识;Determine the identifier of the at least one service interface according to the identifier of the service and at least one service interface corresponding to the service; 根据所述目标服务、所述至少一个服务接口的标识和所述目标CAN信号的标识,确定所述目标CAN信号对应的目标服务接口。Determine the target service interface corresponding to the target CAN signal according to the target service, the identifier of the at least one service interface, and the identifier of the target CAN signal. 3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, characterized in that the method further comprises: 接收第二ECU发送的第一请求,所述第一请求用于请求获取所述目标CAN信号对应的通信数据;receiving a first request sent by the second ECU, where the first request is used to request to obtain communication data corresponding to the target CAN signal; 响应于所述第一请求,将所述目标CAN信号对应的通信数据发送至所述第二ECU。In response to the first request, sending communication data corresponding to the target CAN signal to the second ECU. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, characterized in that the method further comprises: 根据所述CAN信号的参数信息,确定所述服务和所述服务对应的至少一个服务接口,其中,所述参数信息包括所述CAN信号的发送类型、所述CAN信号的信号类型、所述CAN信号对应的设备类型中的任意一种或多种。According to the parameter information of the CAN signal, determine the service and at least one service interface corresponding to the service, where the parameter information includes the transmission type of the CAN signal, the signal type of the CAN signal, the CAN Any one or more of the device types corresponding to the signal. 5.根据权利要求1或2所述的方法,其特征在于,ECU与所述网关的连接方式包括CAN连接、以太网连接、局域互联网络LIN连接、面向媒体的系统传输MOST连接、Flex Ray连接中的任意一种或多种连接方式。5. The method according to claim 1 or 2, wherein the connection mode between the ECU and the gateway comprises a CAN connection, an Ethernet connection, a local area Internet network LIN connection, a media-oriented system transmission MOST connection, a Flex Ray Any one or more connection methods in the connection. 6.根据权利要求1或2所述的方法,其特征在于,服务接口的类型包括方法接口、属性接口、事件接口中的任意一种或多种接口。6. The method according to claim 1 or 2, wherein the type of the service interface includes any one or more of a method interface, an attribute interface, and an event interface. 7.一种处理车辆控制器局域网CAN信号的装置,其特征在于,所述装置应用于网关,所述装置包括:7. A device for processing vehicle controller local area network CAN signals, characterized in that the device is applied to a gateway, and the device comprises: 接收模块,用于接收第一ECU发送的目标CAN信号;a receiving module, configured to receive the target CAN signal sent by the first ECU; 第一确定模块,用于确定所述目标CAN信号的标识;根据所述目标CAN信号的标识和第一映射关系,确定所述目标CAN信号对应的目标服务接口,所述第一映射关系用于指示CAN信号的标识与服务接口的标识之间的对应关系;根据所述目标服务接口,确定所述目标CAN信号对应的通信数据,所述通信数据用于使多个ECU通过网关以以太网通信方式通信。The first determination module is used to determine the identification of the target CAN signal; according to the identification of the target CAN signal and the first mapping relationship, determine the target service interface corresponding to the target CAN signal, and the first mapping relationship is used for Indicate the correspondence between the identification of the CAN signal and the identification of the service interface; according to the target service interface, determine the communication data corresponding to the target CAN signal, and the communication data is used to enable multiple ECUs to communicate with Ethernet through the gateway way of communication. 8.一种网关,其特征在于,所述网关包括:8. A gateway, characterized in that the gateway comprises: 存储器,用于存储可执行程序代码;memory for storing executable program code; 处理器,用于从所述存储器中调用并运行所述可执行程序代码,使得所述网关执行如权利要求1至6中任意一项所述的方法。A processor, configured to call and run the executable program code from the memory, so that the gateway executes the method according to any one of claims 1-6. 9.一种车辆,其特征在于,所述车辆包括用于执行如权利要求1至6中任意一项所述的方法的网关。9. A vehicle, characterized in that the vehicle comprises a gateway for performing the method according to any one of claims 1-6. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序被执行时,实现如权利要求1至6中任意一项所述的方法。10. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 6 is implemented .
CN202211352882.9A 2022-11-01 2022-11-01 Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle Pending CN115941380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211352882.9A CN115941380A (en) 2022-11-01 2022-11-01 Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211352882.9A CN115941380A (en) 2022-11-01 2022-11-01 Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle

Publications (1)

Publication Number Publication Date
CN115941380A true CN115941380A (en) 2023-04-07

Family

ID=86556602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211352882.9A Pending CN115941380A (en) 2022-11-01 2022-11-01 Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle

Country Status (1)

Country Link
CN (1) CN115941380A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116467096A (en) * 2023-04-21 2023-07-21 无锡车联天下信息技术有限公司 Data transmission method and system for inter-core communication and communication core

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140080838A (en) * 2012-12-20 2014-07-01 현대오트론 주식회사 Apparatus for monitoring status of ecu based on can communication in heterogeneous network and method thereof
CN106130855A (en) * 2016-07-18 2016-11-16 珠海格力电器股份有限公司 Data processing method and device
US20190079842A1 (en) * 2017-09-13 2019-03-14 Hyundai Motor Company Failure diagnosis apparatus and method for in-vehicle control unit
US20200169555A1 (en) * 2018-11-26 2020-05-28 Electronics And Telecommunications Research Institute Device and method for communication between in-vehicle devices over intra-vehicle network based on automotive ethernet
CN112731837A (en) * 2020-12-23 2021-04-30 北京百度网讯科技有限公司 Method, device, equipment, medium, product and vehicle for determining vehicle state
US20210184890A1 (en) * 2019-12-17 2021-06-17 Hyundai Motor Company Apparatus and Method for Diagnosing Sleep of CAN for Vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140080838A (en) * 2012-12-20 2014-07-01 현대오트론 주식회사 Apparatus for monitoring status of ecu based on can communication in heterogeneous network and method thereof
CN106130855A (en) * 2016-07-18 2016-11-16 珠海格力电器股份有限公司 Data processing method and device
US20190079842A1 (en) * 2017-09-13 2019-03-14 Hyundai Motor Company Failure diagnosis apparatus and method for in-vehicle control unit
US20200169555A1 (en) * 2018-11-26 2020-05-28 Electronics And Telecommunications Research Institute Device and method for communication between in-vehicle devices over intra-vehicle network based on automotive ethernet
US20210184890A1 (en) * 2019-12-17 2021-06-17 Hyundai Motor Company Apparatus and Method for Diagnosing Sleep of CAN for Vehicle
CN112731837A (en) * 2020-12-23 2021-04-30 北京百度网讯科技有限公司 Method, device, equipment, medium, product and vehicle for determining vehicle state

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116467096A (en) * 2023-04-21 2023-07-21 无锡车联天下信息技术有限公司 Data transmission method and system for inter-core communication and communication core
CN116467096B (en) * 2023-04-21 2024-05-31 无锡车联天下信息技术有限公司 Data transmission method and system for inter-core communication and communication core

Similar Documents

Publication Publication Date Title
CN110758289B (en) A sleep and wake-up method for an in-vehicle hybrid network including in-vehicle Ethernet
WO2020216235A1 (en) Vehicle-mounted gateway communication method, vehicle-mounted gateway, and smart vehicle
CN102340432B (en) Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus
US20220276856A1 (en) Software upgrading method, apparatus, and system
US10601606B2 (en) Communications on vehicle data buses
CN101547149B (en) Dynamic scheduling method for OSEK COM messages based on CAN network
US11418935B2 (en) System and method for implementing automobile electronic control function, and automobile
WO2017124867A1 (en) Automobile electrical system and isolation system for automobile electrical system
CN107453895B (en) Method for configuring a communication path and first communication node constituting a vehicle network
CN102658801A (en) Controller area network (CAN) system network management method for new energy vehicle
CN107920007B (en) First communication node of a plurality of communication nodes in a vehicle network and method for operating the same
CN113415208A (en) Power exchange control assembly
CN115941380A (en) Method and device for processing CAN (controller area network) signal of vehicle controller and vehicle
WO2016086659A1 (en) Service message transmission method, device and system
CN115002160B (en) Method and system for implementing car cloud service
KR102273410B1 (en) A device, system and a method for reprograming electronic control unit
CN119137029A (en) A vehicle control method and device
CN118475505A (en) Control system, method and device for determining takeover controller
Ling et al. The car body control bus design based on CAN/LIN Bus
US20250023923A1 (en) Vehicle on-board network system, gateway, and communication method
CN205344780U (en) Automotive electrical system and isolation system for automotive electrical system
CN115509198B (en) Method, device, electronic equipment and storage medium for determining Electronic Control Unit (ECU)
CN116418816A (en) Service-oriented vehicle AUTOSAR communication method
US11424950B2 (en) Can communication protocol system for exchanging fuel and/or operating fluid consumption-optimizing and noise-optimizing messages between drive components and output components
Nan et al. Bus communication and control protocol using the electric passenger car control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination