CN115840435A - Data transmission method, device, vehicle and storage medium - Google Patents
Data transmission method, device, vehicle and storage medium Download PDFInfo
- Publication number
- CN115840435A CN115840435A CN202211130754.XA CN202211130754A CN115840435A CN 115840435 A CN115840435 A CN 115840435A CN 202211130754 A CN202211130754 A CN 202211130754A CN 115840435 A CN115840435 A CN 115840435A
- Authority
- CN
- China
- Prior art keywords
- node
- diagnosis
- electronic control
- module
- request message
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 84
- 230000005540 biological transmission Effects 0.000 title claims abstract description 40
- 238000003745 diagnosis Methods 0.000 claims abstract description 311
- 230000004044 response Effects 0.000 claims abstract description 57
- 238000004891 communication Methods 0.000 claims abstract description 33
- 230000004913 activation Effects 0.000 claims description 102
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012795 verification Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 25
- 238000013507 mapping Methods 0.000 abstract description 10
- 238000001994 activation Methods 0.000 description 88
- 230000006870 function Effects 0.000 description 16
- 230000003068 static effect Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及车辆诊断技术领域,更具体地,涉及一种数据传输方法、装置、车辆及存储介质。The present application relates to the technical field of vehicle diagnosis, and more specifically, to a data transmission method, device, vehicle and storage medium.
背景技术Background technique
在车辆进行故障诊断时,由诊断节点向网关节点发送诊断请求,网关节点进而将该诊断请求转发至对应的电子控制节点(Electronic Control Unit,ECU)。在相关技术中,网关节点通常采用IP组播的方式实现对诊断请求的转发,例如,基于ECU逻辑地址与组播地址之间的映射,网关节点将诊断请求组播至对应的ECU。When the vehicle is performing fault diagnosis, the diagnosis node sends a diagnosis request to the gateway node, and the gateway node further forwards the diagnosis request to the corresponding electronic control node (Electronic Control Unit, ECU). In the related art, the gateway node usually implements the forwarding of the diagnosis request by means of IP multicast, for example, based on the mapping between the logical address of the ECU and the multicast address, the gateway node multicasts the diagnosis request to the corresponding ECU.
然而,ECU逻辑地址与组播地址之间的映射过程给网关节点带来了较多的通信和运行开销,降低了网关节点的通信效率。However, the mapping process between the ECU logical address and the multicast address brings more communication and operation overhead to the gateway node, which reduces the communication efficiency of the gateway node.
发明内容Contents of the invention
本申请实施例提供一种数据传输方法、装置、车辆及存储介质。Embodiments of the present application provide a data transmission method, device, vehicle, and storage medium.
第一方面,本申请一些实施例提供一种数据传输方法,该方法包括:在网关节点中的第一诊断模块处于激活状态的情况下,向多个电子控制节点发送指定信号,指定信号用于指示电子控制节点中的第二诊断模块进入使能状态;接收诊断节点发送的诊断请求报文,诊断请求报文用于请求获取多个电子控制节点中的目标电子控制节点的故障类型;将诊断请求报文发送至目标电子控制节点;接收目标电子控制节点发送的诊断响应报文,并将诊断响应报文发送至诊断节点。In the first aspect, some embodiments of the present application provide a data transmission method, the method includes: when the first diagnostic module in the gateway node is in an activated state, sending a specified signal to multiple electronic control nodes, the specified signal is used for Instructing the second diagnostic module in the electronic control node to enter the enable state; receiving the diagnostic request message sent by the diagnostic node, the diagnostic request message is used to request to obtain the fault type of the target electronic control node among the multiple electronic control nodes; The request message is sent to the target electronic control node; the diagnosis response message sent by the target electronic control node is received, and the diagnosis response message is sent to the diagnosis node.
第二方面,本申请一些实施例提供另一种数据传输方法,该方法包括:接收网关节点在网关节点中的第一诊断模块处于激活状态下发送的指定信号;基于指定信号,控制电子控制节点中的第二诊断模块进入使能状态;接收网关节点转发的诊断请求报文,诊断请求报文由诊断节点发送至网关节点,诊断请求报文用于请求获取电子控制节点的故障类型;基于诊断请求报文,将诊断响应报文发送至网关节点,网关节点用于将诊断响应报文转发至诊断节点。In the second aspect, some embodiments of the present application provide another data transmission method, the method includes: receiving a specified signal sent by the gateway node when the first diagnostic module in the gateway node is in an activated state; based on the specified signal, controlling the electronic control node The second diagnosis module in the system enters the enable state; receives the diagnosis request message forwarded by the gateway node, the diagnosis request message is sent from the diagnosis node to the gateway node, and the diagnosis request message is used to request to obtain the fault type of the electronic control node; based on the diagnosis The request message sends the diagnosis response message to the gateway node, and the gateway node is used to forward the diagnosis response message to the diagnosis node.
第三方面,本申请一些实施例提供一种数据传输装置,该装置包括:第一发送模块、第一接收模块、第二发送模块和第二接收模块。其中,第一发送模块用于在网关节点中的第一诊断模块处于激活状态的情况下,向多个电子控制节点发送指定信号,指定信号用于指示电子控制节点中的第二诊断模块进入使能状态。第一接收模块用于接收诊断节点发送的诊断请求报文,诊断请求报文用于请求获取多个电子控制节点中的目标电子控制节点的故障类型。第二发送模块用于将诊断请求报文发送至目标电子控制节点。第二接收模块用于接收目标电子控制节点发送的诊断响应报文,并将诊断响应报文发送至诊断节点。In a third aspect, some embodiments of the present application provide a data transmission device, including: a first sending module, a first receiving module, a second sending module, and a second receiving module. Wherein, the first sending module is used to send a specified signal to multiple electronic control nodes when the first diagnostic module in the gateway node is in an activated state, and the specified signal is used to instruct the second diagnostic module in the electronic control node to enter the active state. able state. The first receiving module is used for receiving the diagnosis request message sent by the diagnosis node, and the diagnosis request message is used for requesting to acquire the fault type of the target electronic control node among the plurality of electronic control nodes. The second sending module is used to send the diagnosis request message to the target electronic control node. The second receiving module is used for receiving the diagnosis response message sent by the target electronic control node, and sending the diagnosis response message to the diagnosis node.
第四方面,本申请一些实施例提供另一种数据传输装置,该装置包括:第三接收模块、控制模块、第四接收模块和第三发送模块。其中,第三接收模块用于接收网关节点在网关节点中的第一诊断模块处于激活状态下发送的指定信号。控制模块用于基于指定信号,控制电子控制节点中的第二诊断模块进入使能状态。第四接收模块用于接收网关节点转发的诊断请求报文,诊断请求报文由诊断节点发送至网关节点,诊断请求报文用于请求获取电子控制节点的故障类型。第三发送模块用于基于诊断请求报文,将诊断响应报文发送至网关节点,网关节点用于将诊断响应报文转发至诊断节点。In a fourth aspect, some embodiments of the present application provide another data transmission device, which includes: a third receiving module, a control module, a fourth receiving module, and a third sending module. Wherein, the third receiving module is used for receiving a specified signal sent by the gateway node when the first diagnosis module in the gateway node is in an activated state. The control module is used for controlling the second diagnosis module in the electronic control node to enter the enabled state based on the designated signal. The fourth receiving module is used to receive the diagnosis request message forwarded by the gateway node. The diagnosis request message is sent from the diagnosis node to the gateway node. The diagnosis request message is used to request to obtain the fault type of the electronic control node. The third sending module is used for sending the diagnosis response message to the gateway node based on the diagnosis request message, and the gateway node is used for forwarding the diagnosis response message to the diagnosis node.
第五方面,本申请一些实施例还提供一种车辆,该车辆包括:网关节点、多个电子控制节点、一个或多个处理器、存储器以及一个或多个应用程序。其中,多个电子控制节点连接于网关节点;一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个程序配置用于执行上述的方法。In a fifth aspect, some embodiments of the present application further provide a vehicle, where the vehicle includes: a gateway node, multiple electronic control nodes, one or more processors, memory, and one or more application programs. Wherein, multiple electronic control nodes are connected to the gateway node; one or more application programs are stored in memory and configured to be executed by one or more processors, and one or more program programs are configured to execute the above method.
第六方面,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序指令。其中,计算机程序指令可被处理器调用执行上述的方法。In a sixth aspect, the embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium. Wherein, the computer program instructions can be invoked by the processor to execute the above methods.
第七方面,本申请实施例还提供一种计算机程序产品,该计算机程序产品被执行时,实现上述的方法。In a seventh aspect, the embodiment of the present application further provides a computer program product, which implements the above method when the computer program product is executed.
本申请提供了一种数据传输方法、装置、车辆及存储介质,在该方法中,网关节点中的第一诊断模块在处于激活状态的情况下,会向多个电子控制节点发送指定信号,以使得多个电子控制节点中的第二诊断模块进入使能状态,也即使得电子控制节点进入准备接收诊断请求报文的状态。在后续网关节点接收到诊断节点发送的诊断请求报文的情况下,会基于诊断请求报文中的相关信息(例如,报文的目的地址)确定出多个电子控制节点中的目标电子控制节点,进而将该诊断请求报文发送至目标电子控制节点,也即完成报文的转发工作。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The present application provides a data transmission method, device, vehicle, and storage medium. In this method, when the first diagnostic module in the gateway node is in an active state, it will send a specified signal to multiple electronic control nodes to Making the second diagnosis modules in the plurality of electronic control nodes enter the enabling state, that is, making the electronic control nodes enter the state of preparing to receive the diagnosis request message. When the subsequent gateway node receives the diagnostic request message sent by the diagnostic node, it will determine the target electronic control node among the multiple electronic control nodes based on the relevant information in the diagnostic request message (for example, the destination address of the message) , and then send the diagnosis request message to the target electronic control node, that is, complete the forwarding of the message. Since the gateway node can determine the target electronic control node through the diagnostic request message, there is no process of mapping the logical address of the electronic control node to the multicast address, making the communication between the gateway node and the electronic control node more efficient.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请实施例提供的一种车辆的结构示意图。Fig. 1 shows a schematic structural diagram of a vehicle provided by an embodiment of the present application.
图2示出了本申请第一实施例提供的一种数据传输方法的流程示意图。Fig. 2 shows a schematic flowchart of a data transmission method provided by the first embodiment of the present application.
图3示出了本申请第二实施例提供的一种数据传输方法的流程示意图。Fig. 3 shows a schematic flow chart of a data transmission method provided by the second embodiment of the present application.
图4示出了本申请第三实施例提供的一种数据传输方法的流程示意图。FIG. 4 shows a schematic flow chart of a data transmission method provided by a third embodiment of the present application.
图5示出了本申请第四实施例提供的一种数据传输方法的流程示意图。FIG. 5 shows a schematic flowchart of a data transmission method provided by a fourth embodiment of the present application.
图6示出了本申请实施例提供的一种数据传输装置的模块框图。FIG. 6 shows a block diagram of a data transmission device provided by an embodiment of the present application.
图7示出了本申请实施例提供的另一种数据传输装置的模块框图。FIG. 7 shows a block diagram of another data transmission device provided by an embodiment of the present application.
图8示出了本申请实施例提供的车辆的模块框图。Fig. 8 shows a block diagram of a vehicle provided by an embodiment of the present application.
图9示出了本申请实施例提供的计算机可读存储介质的模块框图。FIG. 9 shows a block diagram of a computer-readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性地,仅用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present application and should not be construed as limiting the present application.
为了使本技术领域的人员更好地理解本申请的方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.
本申请提供了一种数据传输方法、装置、车辆及存储介质,在该方法中,网关节点中的第一诊断模块在处于激活状态的情况下,会向多个电子控制节点发送指定信号,以使得多个电子控制节点中的第二诊断模块进入使能状态,也即使得电子控制节点进入准备接收诊断请求报文的状态。在后续网关节点接收到诊断节点发送的诊断请求报文的情况下,会基于诊断请求报文中的相关信息(例如,报文的目的地址)确定出多个电子控制节点中的目标电子控制节点,进而将该诊断请求报文发送至目标电子控制节点,也即完成报文的转发工作。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The present application provides a data transmission method, device, vehicle, and storage medium. In this method, when the first diagnostic module in the gateway node is in an active state, it will send a specified signal to multiple electronic control nodes to Making the second diagnosis modules in the plurality of electronic control nodes enter the enabling state, that is, making the electronic control nodes enter the state of preparing to receive the diagnosis request message. When the subsequent gateway node receives the diagnostic request message sent by the diagnostic node, it will determine the target electronic control node among the multiple electronic control nodes based on the relevant information in the diagnostic request message (for example, the destination address of the message) , and then send the diagnosis request message to the target electronic control node, that is, complete the forwarding of the message. Since the gateway node can determine the target electronic control node through the diagnostic request message, there is no process of mapping the logical address of the electronic control node to the multicast address, making the communication between the gateway node and the electronic control node more efficient.
为了便于详细说明本申请方案,下面先结合附图对本申请实施例中的应用环境进行介绍。请参阅图1,本申请实施例提供的数据传输方法应用于车辆100,车辆100是指以动力装置驱动或者牵引,供人员乘用或者用于运送物品的交通工具,其包括但不限于小轿车、中巴车、大巴车等等。具体地,车辆100和诊断节点50通信连接,车辆100包括网关节点10、多个电子控制节点(Electronic Control Unit,ECU)30,其中,网关节点10分别与多个电子控制节点30建立通信连接,诊断节点50通过网关节点10与车辆100建立通信连接。For the convenience of describing the solution of the present application in detail, the application environment in the embodiment of the present application will be introduced below with reference to the accompanying drawings. Please refer to Fig. 1. The data transmission method provided by the embodiment of the present application is applied to a
网关节点10作为车辆网络系统中的核心控制装置,负责协调控制器局域网络(Controller Area Network,CAN)和其他数据网络之间的协议转换、数据交换、故障诊断等工作。在本申请中,网关节点10分别与诊断节点50和多个电子控制节点30建立通信连接。具体地,网关节点10通过以太网连接于诊断节点50,并通过控制器局域网络(ControllerArea Network,CAN)或者通过以太网连接于多个电子控制节点30。其中,网关节点10可以是设置在车辆100内的网关设备,也可以是集成于车辆100的处理器上的网关模块,本实施例不作具体限定。As the core control device in the vehicle network system, the
具体地,网关节点10中设置有基于汽车开放系统架构AUTOSARCP的DoIP模块(也即,第一诊断模块),在该DoIP模块中存储有DoIP协议。在本申请实施例的网关节点10的DoIP模块中添加有诊断节点50的源地址(SourceAddress,SA),也即DoIP协议对应的诊断请求报文中首部的源ECU地址。此外,网关节点10的DoIP模块中还添加有多个电子控制节点30的目标地址(Target Address,TA),也即DoIP协议对应的诊断请求报文中首部的目标ECU逻辑地址。本实施例对AUTOSARCP的基础软件层(Basic Software,BSW)协议栈的具体开发工具不作限定。Specifically, the
在本申请实施例中,在网关节点10的ECU协议栈的DoIP配置中,路由激活方式设置为报文激活(也即,DOIP_ROUTING_ACTIVATION_MSG),此外,网关节点10还添加有静态端口号13400,该静态端口号13400用于监听诊断节点50发送的车辆识别请求报文、激活请求报文和诊断请求报文等等,以及监听电子控制节点30发送的诊断响应报文。其中,该静态端口号13400包括传输控制协议(Transmission Control Protocol,TCP)和用户数据包协议(User Datagram Protocol,UDP),具体地,静态端口号13400由ISO13400标准进行规定,本申请实施例不再赘述。In the embodiment of the present application, in the DoIP configuration of the ECU protocol stack of the
在本申请实施例中,网关节点10中还设置有第一软件组件(Software Component,SWC),该第一软件组件用于对网关节点10中的DoIP模块进行使能(ActivationLineSwitchActive),也即,使得网关节点10中的DoIP模块进入工作状态。此外,网关节点10中还添加有与DoIP模块关联的网络层模块(例如,LdCom模块)之间的协议数据单元(Protocol Data Unit,PDU)的路由关系配置。In the embodiment of the present application, the
电子控制节点30是一种小型的计算机管理中心,其具有信号(数据)采集、计算处理、分析判断以及决定对策等功能。在本申请中,电子控制节点30与网关节点10建立通信连接。其中,电子控制节点30可以是设置在车辆100内的电子控制器,也可以是集成于车辆100的处理器上的电子控制模块,具体地,电子控制节点30可以用于车辆100的巡航控制、灯光控制、安全气囊控制、燃油加热控制、排气控制、制动控制等等,根据实现的功能不同,可以设置不同类型的电子控制节点30,本实施例对此不作具体限定。The
同样地,电子控制节点30中设置有基于汽车开放系统架构AUTOSARCP的DoIP模块(也即,第二诊断模块),在该DoIP模块中存储有DoIP协议。在本申请实施例的电子控制节点30的DoIP模块中添加有诊断节点50的源地址(SourceAddress,SA),也即DoIP协议对应的诊断请求报文中首部的源ECU地址。Likewise, the
在本申请实施例中,在电子控制节点30的ECU协议栈的DoIP配置中,路由激活方式设置为自动激活(也即,DOIP_ROUTING_ACTIVATION_AUTOMATIC),因此,电子控制节点30中的DoIP模块不需要通过报文进行激活。同样地,在电子控制节点30中添加有静态端口号13400,该静态端口号13400用于监听网关节点10发送的诊断请求报文。In the embodiment of the present application, in the DoIP configuration of the ECU protocol stack of the
在本申请实施例中,电子控制节点30还设置有第二软件组件(SoftwareComponent,SWC),该第二软件组件用于对电子控制节点30进行使能(ActivationLineSwitchActive),也即,使得电子控制节点30中的DoIP模块进入工作状态。具体地,电子控制节点30的AUTOSAR协议栈配置中添加有指定信号的定义,该指定信号用于指示电子控制节点30进入使能状态。因此,当电子控制节点30接收到指定信号的情况下,调用AUTOSAR DoIP模块提供的标准接口(也即,通过SWC)进行使能,使得电子控制节点30中的DoIP模块进入使能状态。In the embodiment of the present application, the
在本申请实施例中,电子控制节点30中还添加有与DoIP模块与关联的网络层模块(例如,LdCom模块)之间的协议数据单元(Protocol Data Unit,PDU)的路由关系配置。In the embodiment of the present application, the
诊断节点50是一种用于检测车辆故障的故障自检仪。在本申请中,诊断节点50通过以太网连接于网关节点10,也即,网关节点10作为诊断节点50的边缘节点(DoIP EdgeNode)。因此,诊断节点50在请求对某个电子控制节点30发起诊断请求时,只需要在诊断请求报文中写入目标电子控制节点30的目标逻辑地址(Target Address,TA)并将该诊断请求报文发送至网关节点10,后续由网关节点10基于诊断请求报文中的目标逻辑地址将该诊断请求报文发送至对应的电子控制节点30。因此,诊断节点50只需要确定目标电子控制节点30的设备逻辑地址,即可完成诊断请求报文的发送任务。具体地,诊断节点50可以是设置在车辆100内的诊断设备,也可以是集成于车辆100的处理器上的诊断模块,本实施例不作具体限定。The
在本申请实施例中,诊断节点50中网络接口控制器(Network InterfaceController,NIC)的IP地址所在的网段和网关节点10与诊断节点50连接的NIC配置的IP地址所在的网段相同。In the embodiment of the present application, the network segment where the IP address of the network interface controller (Network Interface Controller, NIC) in the
请参阅图2,图2示意性地示出了本申请第一实施例提供的一种数据传输方法。该方法应用于网关节点,具体地,该方法包括如下过程。Please refer to FIG. 2 , which schematically shows a data transmission method provided in the first embodiment of the present application. The method is applied to a gateway node, and specifically, the method includes the following procedures.
S210,在网关节点中的第一诊断模块处于激活状态的情况下,向多个电子控制节点发送指定信号。S210, when the first diagnostic module in the gateway node is in an activated state, send a specified signal to multiple electronic control nodes.
在第一诊断模块处于激活状态的情况下,第一诊断模块对Socket进行初始化,并通过第一指定端口(例如,静态端口号13400)对诊断节点和电子控制节点发送的诊断请求报文进行监听。此时,网关节点完成了接收和发送诊断请求报文的准备。When the first diagnosis module is in the active state, the first diagnosis module initializes the Socket, and listens to the diagnosis request message sent by the diagnosis node and the electronic control node through the first designated port (for example, the static port number 13400) . At this point, the gateway node is ready to receive and send the diagnosis request message.
指定信号表征网关节点中的第一诊断模块已成功激活,用于指示电子控制节点中的第二诊断模块进入使能状态。在本申请实施例中,网关节点通过CAN网络向多个电子控制节点广播该指定信号,其中,指定信号可以是脉冲编码调制(Pulse Code Modulation,PCM)信号,本实施例对指定信号的具体形式不作限定。这里需要说明的是,在多个电子控制节点的AUTOSAR协议栈配置中添加有该指定信号的定义,多个电子控制节点在监听到指定信号的情况下,控制自身的第二诊断模块进入使能状态。电子控制节点基于指定信号对第二诊断模块进行使能的实施方式在下文实施例中进行介绍。The specified signal indicates that the first diagnostic module in the gateway node has been successfully activated, and is used to instruct the second diagnostic module in the electronic control node to enter an enabled state. In the embodiment of the present application, the gateway node broadcasts the specified signal to multiple electronic control nodes through the CAN network, wherein the specified signal can be a pulse code modulation (Pulse Code Modulation, PCM) signal, and the specific form of the specified signal in this embodiment Not limited. What needs to be explained here is that the definition of the specified signal is added to the AUTOSAR protocol stack configuration of multiple electronic control nodes. When multiple electronic control nodes monitor the specified signal, they control their own second diagnostic module to enable state. An implementation manner in which the electronic control node enables the second diagnostic module based on a specified signal is described in the following embodiments.
需要说明的是,由于电子控制节点中的第二诊断模块的路由激活方式为自动激活。因此,当第二诊断模块处于使能状态的情况下,电子控制节点完成了接收诊断请求报文的准备,也即,电子控制节点可以通过第二指定端口(例如,静态端口号13400)对网关节点发送的诊断请求报文进行监听。It should be noted that, since the routing activation mode of the second diagnostic module in the electronic control node is automatic activation. Therefore, when the second diagnosis module is in the enabled state, the electronic control node has completed the preparation for receiving the diagnosis request message, that is, the electronic control node can communicate with the gateway through the second designated port (for example, the static port number 13400) The diagnostic request message sent by the node is monitored.
S220,接收诊断节点发送的诊断请求报文。S220. Receive a diagnosis request message sent by the diagnosis node.
诊断请求报文用于请求获取多个电子控制节点中的目标电子控制节点的运行数据,以实现对目标电子控制节点的诊断。诊断请求报文包括以下内容:地址信息、诊断数据和诊断数据长度。其中,地址信息包括报文类型、源地址、目的地址和地址类型。源地址是诊断请求报文的发送地址,也即诊断节点的设备逻辑地址。目的地址是诊断请求报文的接收地址,也即目标电子控制节点的设备逻辑地址。地址类型可以是物理寻址或功能寻址,在本申请实施例中,仅以地址类型为物理寻址为例进行说明。诊断数据包括服务标识,用于唯一标识某个诊断服务。The diagnosis request message is used to request to obtain the operation data of the target electronic control node among the plurality of electronic control nodes, so as to realize the diagnosis of the target electronic control node. The diagnostic request message includes the following contents: address information, diagnostic data and diagnostic data length. Wherein, the address information includes message type, source address, destination address and address type. The source address is the sending address of the diagnosis request message, that is, the device logical address of the diagnosis node. The destination address is the receiving address of the diagnostic request message, that is, the device logic address of the target electronic control node. The address type may be physical addressing or functional addressing, and in this embodiment of the application, only the address type is physical addressing as an example for illustration. Diagnostic data includes a service ID, which uniquely identifies a diagnostic service.
S230,将诊断请求报文发送至目标电子控制节点。S230. Send the diagnosis request message to the target electronic control node.
在本申请实施例中,网关节点在确定出目标电子控制节点后,直接将诊断请求报文转发至目标电子控制节点,相比于相关技术中需要将电子控制节点的设备逻辑地址映射到组播地址再进行数据转发,本申请实施例能够节省网关节点在进行诊断请求报文的转发时的处理开销,使得诊断请求报文的转发过程更加高效。在一些实施例中,S230可以包括如下过程。In the embodiment of the present application, after the gateway node determines the target electronic control node, it directly forwards the diagnosis request message to the target electronic control node. The address is then forwarded, and the embodiment of the present application can save the processing overhead of the gateway node when forwarding the diagnosis request message, making the forwarding process of the diagnosis request message more efficient. In some embodiments, S230 may include the following process.
S2310,获取诊断请求报文的目的地址。S2310. Obtain the destination address of the diagnosis request message.
网关节点接收到诊断请求报文后,网络层通过预先存储的解包算法对诊断请求报文进行解包处理,得到诊断请求报文中的目的地址。After the gateway node receives the diagnosis request message, the network layer unpacks the diagnosis request message through a pre-stored unpacking algorithm to obtain the destination address in the diagnosis request message.
S2320,获取多个电子控制节点的设备逻辑地址。S2320, acquiring device logic addresses of multiple electronic control nodes.
网关节点通过读取内部配置文件中预先存储的信息,即可确定出多个电子控制节点的设备逻辑地址。The gateway node can determine the device logic addresses of multiple electronic control nodes by reading the pre-stored information in the internal configuration file.
S2330,将多个电子控制节点中设备逻辑地址与目的地址相同的电子控制节点,确定为目标电子控制节点。S2330. Determine, among the plurality of electronic control nodes, the electronic control node whose device logic address is the same as the destination address as the target electronic control node.
网关节点依次将目的地址和多个电子控制节点对应的设备逻辑地址进行比较,若目的地址和设备逻辑地址相同,则将该设备逻辑地址对应的电子控制节点确定为目标电子控制节点。The gateway node sequentially compares the destination address with the device logic addresses corresponding to multiple electronic control nodes, and if the destination address is the same as the device logic address, then determines the electronic control node corresponding to the device logic address as the target electronic control node.
S2340,将诊断请求报文发送至目标电子控制节点。S2340. Send the diagnosis request message to the target electronic control node.
作为一种实施方式,网关节点在接收到诊断请求报文的情况下,先经过网络层对该诊断请求报文进行解包操作。然后将协议数据单元(Protocol Data Unit,PDU)路由至DoIP协议栈以及LdCom模块,此时,DoIP报文首部与数据域均未改变,也即,SA依旧是诊断节点的设备逻辑地址,TA依旧是目标电子控制节点的设备逻辑地址。最后由PDU经网络层协议栈组帧后将该诊断请求报文转发至目标电子控制节点。As an implementation manner, when the gateway node receives the diagnosis request message, it first unpacks the diagnosis request message through the network layer. Then route the protocol data unit (Protocol Data Unit, PDU) to the DoIP protocol stack and the LdCom module. At this time, the header and data field of the DoIP message have not changed. is the device logical address of the target electronic control node. Finally, the diagnostic request message is forwarded to the target electronic control node after the PDU is framed by the network layer protocol stack.
本申请实施例提供了一种数据传输方法,在该方法中,网关节点能够快速确定出目标电子控制节点,提高了网关节点和目标电子控制节点之间的通信效率。The embodiment of the present application provides a data transmission method. In the method, the gateway node can quickly determine the target electronic control node, and the communication efficiency between the gateway node and the target electronic control node is improved.
在一些可能的实施例中,在S220之后,网关节点使用统一的协议数据单元(Protocol Data Unit,PDU),并通过受限的广播地址(例如,255.255.255.255)将诊断请求报文发送至多个电子控制节点。多个电子控制节点在接收到诊断请求报文的情况下,获取诊断请求报文的目的地址以及本地的设备逻辑地址,其中,本地的设备逻辑地址可以从电子控制节点的配置文件中读取。电子控制节点进而判断目的地址和自身的设备逻辑地址是否相同。若目的地址和设备逻辑地址相同,则该电子控制节点为目标电子控制节点,进而对诊断请求报文进行响应,也即向网关节点发送诊断响应报文。若目的地址和设备逻辑地址不相同,则不对诊断请求报文进行响应。In some possible embodiments, after S220, the gateway node uses a unified protocol data unit (Protocol Data Unit, PDU), and sends the diagnostic request message to multiple Electronic control node. When multiple electronic control nodes receive the diagnostic request message, they obtain the destination address of the diagnostic request message and the local device logical address, wherein the local device logical address can be read from the configuration file of the electronic control node. The electronic control node then judges whether the destination address is the same as its own device logic address. If the destination address is the same as the logical address of the device, the electronic control node is the target electronic control node, and then responds to the diagnosis request message, that is, sends a diagnosis response message to the gateway node. If the destination address is not the same as the logical address of the device, it will not respond to the diagnosis request message.
S240,接收目标电子控制节点发送的诊断响应报文,并将诊断响应报文发送至诊断节点。S240. Receive a diagnosis response message sent by the target electronic control node, and send the diagnosis response message to the diagnosis node.
在目标电子控制节点接收到诊断请求报文的情况下,会向网关节点发送诊断响应报文。此时,网关节点接收目标电子控制节点发送的诊断响应报文,并将诊断响应报文发送至诊断节点。具体地,诊断响应报文中包括目标电子控制节点的运行数据。诊断响应报文包括以下内容:地址信息、运行结果数据。其中,地址信息包括报文类型、源地址、目的地址和地址类型。源地址是诊断响应报文的发送地址,也即目标电子控制节点的设备逻辑地址。目的地址是诊断响应报文的接收地址,也即诊断节点的设备逻辑地址。地址类型可以是物理寻址或功能寻址,在本申请实施例中,地址类型为物理寻址。运行结果数据是目标电子控制节点调用诊断请求报文中的服务标识对应的服务得到的执行结果,诊断节点可以根据该运行结果数据来确定目标电子控制节点的故障类型。When the target electronic control node receives the diagnosis request message, it will send a diagnosis response message to the gateway node. At this time, the gateway node receives the diagnosis response message sent by the target electronic control node, and sends the diagnosis response message to the diagnosis node. Specifically, the diagnostic response message includes the operating data of the target electronic control node. The diagnosis response message includes the following contents: address information, operation result data. Wherein, the address information includes message type, source address, destination address and address type. The source address is the sending address of the diagnostic response message, that is, the device logic address of the target electronic control node. The destination address is the receiving address of the diagnostic response message, that is, the device logic address of the diagnostic node. The address type may be physical addressing or functional addressing, and in this embodiment of the application, the address type is physical addressing. The operation result data is the execution result obtained by the target electronic control node calling the service corresponding to the service identifier in the diagnosis request message, and the diagnosis node can determine the fault type of the target electronic control node according to the operation result data.
本申请实施例提供了一种数据传输方法,在该方法中,网关节点中的第一诊断模块在处于激活状态的情况下,会向多个电子控制节点发送指定信号,以使得多个电子控制节点中的第二诊断模块进入使能状态,也即使得电子控制节点进入准备接收诊断请求报文的状态。在后续网关节点接收到诊断节点发送的诊断请求报文的情况下,会基于诊断请求报文中的相关信息(例如,报文的目的地址)确定出多个电子控制节点中的目标电子控制节点,进而将该诊断请求报文发送至目标电子控制节点,也即完成报文的转发工作。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The embodiment of the present application provides a data transmission method. In this method, when the first diagnostic module in the gateway node is activated, it will send a specified signal to multiple electronic control nodes, so that multiple electronic control nodes The second diagnosis module in the node enters the enable state, that is, the electronic control node enters the state of preparing to receive the diagnosis request message. When the subsequent gateway node receives the diagnostic request message sent by the diagnostic node, it will determine the target electronic control node among the multiple electronic control nodes based on the relevant information in the diagnostic request message (for example, the destination address of the message) , and then send the diagnosis request message to the target electronic control node, that is, complete the forwarding of the message. Since the gateway node can determine the target electronic control node through the diagnostic request message, there is no process of mapping the logical address of the electronic control node to the multicast address, making the communication between the gateway node and the electronic control node more efficient.
在上文实施例中提到,网关节点在自身的第一诊断模块处于激活状态的情况下,执行后续的数据转发步骤(比如将诊断请求报文转发至目标电子控制节点,或者,将诊断响应报文转发至诊断节点)。下面对第一诊断模块的激活过程进行阐述。As mentioned in the above embodiment, when the first diagnosis module of the gateway node is in the active state, it performs subsequent data forwarding steps (such as forwarding the diagnosis request message to the target electronic control node, or sending the diagnosis response The message is forwarded to the diagnostic node). The activation process of the first diagnostic module will be described below.
请参阅图3,图3示意性地示出了本申请第二实施例提供的一种数据传输方法。该方法应用于网关节点,在一些实施例中,在S210之前还包括如下过程。Please refer to FIG. 3 , which schematically shows a data transmission method provided by the second embodiment of the present application. The method is applied to a gateway node, and in some embodiments, the following process is also included before S210.
S302,接收诊断节点发送的激活请求报文。S302. Receive an activation request message sent by the diagnosis node.
激活请求报文用于请求对网关节点的第一诊断模块进行路由激活。激活请求报文携带诊断节点的工作参数,上述工作参数包括源地址、激活类型、诊断节点的身份信息中的至少一项,其中,源地址为诊断节点的设备逻辑地址。The activation request message is used to request routing activation of the first diagnostic module of the gateway node. The activation request message carries working parameters of the diagnosis node, and the above work parameters include at least one item of source address, activation type, and identity information of the diagnosis node, wherein the source address is the device logical address of the diagnosis node.
在一些实施例中,诊断节点发现并识别出车辆后,维修人员可以在诊断节点处添加该车辆作为诊断对象,之后,诊断节点与该车辆中的网关节点建立通信连接(例如,TCPSocket连接),并通过该通信连接向网关节点发送激活请求报文。诊断节点发现并识别车辆的实现方式将在下文进行阐述。In some embodiments, after the diagnosis node discovers and identifies the vehicle, the maintenance personnel can add the vehicle as a diagnosis object at the diagnosis node, and then, the diagnosis node establishes a communication connection (for example, a TCPSocket connection) with the gateway node in the vehicle, And send an activation request message to the gateway node through the communication connection. The way in which the diagnosis node discovers and recognizes the vehicle will be described below.
S304,检测诊断节点的工作参数是否满足预设的激活规则。S304. Detect whether the working parameter of the diagnosis node satisfies a preset activation rule.
其中,预设的激活规则包括以下至少一项:源地址注册规则、激活类型支持规则、在线规则和身份验证通过规则。在本申请实施例中,网关节点在收到激活请求报文后,协议栈将协议数据单元(Protocol Data Unit,PDU)路由至第一诊断模块(也即,DoIP模块),协议栈进一步提取DoIP数据报中诊断节点的工作参数。其中,诊断节点的工作参数包括诊断节点的设备逻辑地址、激活类型和身份信息中的一项或多项。具体地,S304包括如下过程。Wherein, the preset activation rules include at least one of the following: source address registration rules, activation type support rules, online rules, and authentication passing rules. In the embodiment of the present application, after the gateway node receives the activation request message, the protocol stack routes the Protocol Data Unit (PDU) to the first diagnostic module (that is, the DoIP module), and the protocol stack further extracts the DoIP The working parameters of the diagnostic node in the datagram. Wherein, the working parameters of the diagnosis node include one or more items of the diagnosis node's device logic address, activation type and identity information. Specifically, S304 includes the following process.
S3041,检测第一诊断模块的配置文件中是否包括诊断节点的设备逻辑地址,在第一诊断模块的配置文件中包括诊断节点的设备逻辑地址的情况下,确定诊断节点的工作参数满足源地址注册规则。S3041. Detect whether the configuration file of the first diagnosis module includes the device logic address of the diagnosis node, and if the configuration file of the first diagnosis module includes the device logic address of the diagnosis node, determine that the working parameters of the diagnosis node satisfy the source address registration rule.
在申请实施例中,第一诊断模块的配置文件中预先配置有多个设备的设备逻辑地址。若该配置文件中添加有诊断节点的设备逻辑地址,则确定诊断节点的工作参数满足源地址注册规则。反之,若第一诊断模块的配置文件中未添加有诊断节点的设备逻辑地址,则确定诊断节点的工作参数不满足源地址注册规则。In the embodiment of the application, the configuration file of the first diagnosis module is pre-configured with device logical addresses of multiple devices. If the device logical address of the diagnostic node is added to the configuration file, it is determined that the working parameters of the diagnostic node satisfy the source address registration rule. On the contrary, if the configuration file of the first diagnosis module does not add the device logical address of the diagnosis node, it is determined that the working parameters of the diagnosis node do not satisfy the source address registration rule.
S3043,检测诊断节点中的激活类型是否为指定激活类型,且是否与第一诊断模块的激活类型相同,在诊断节点中的激活类型为指定激活类型,且与第一诊断模块的激活类型相同的情况下,确定诊断节点的工作参数满足激活类型支持规则。S3043, detecting whether the activation type in the diagnosis node is a designated activation type and is the same as the activation type of the first diagnosis module, and whether the activation type in the diagnosis node is a designated activation type and is the same as the activation type of the first diagnosis module In this case, it is determined that the operating parameters of the diagnostic node meet the activation type support rules.
作为一种实施方式,诊断节点中的激活类型可以基于工作参数中激活类型位读取。网关节点先确定激活类型是否为指定激活类型,若确定激活类型为指定激活类型,则判断是否与第一诊断模块预设的激活类型相同,若诊断节点中的激活类型与第一诊断模块的激活类型相同,则确定诊断节点的工作参数满足激活类型支持规则。反之,若诊断节点中的激活类型不是指定激活类型,或者诊断节点中的激活类型与第一诊断模块的激活类型不相同,则确定诊断节点的工作参数不满足激活类型支持规则。As an implementation manner, the activation type in the diagnosis node can be read based on the activation type bit in the working parameter. The gateway node first determines whether the activation type is the specified activation type, and if it is determined that the activation type is the specified activation type, then judges whether it is the same as the preset activation type of the first diagnosis module, if the activation type in the diagnosis node is the same as the activation type of the first diagnosis module If the types are the same, it is determined that the working parameters of the diagnosis node meet the activation type support rules. On the contrary, if the activation type in the diagnosis node is not the specified activation type, or the activation type in the diagnosis node is not the same as the activation type of the first diagnosis module, it is determined that the working parameters of the diagnosis node do not satisfy the activation type support rule.
具体地,指定激活类型为报文激活类型,报文激活类型可以由一个或多个字母或符号组成,例如,报文激活类型为DOIP_ROUTING_ACTIVATION_MSG。本申请实施例不做具体限定。Specifically, the specified activation type is a message activation type, and the message activation type may consist of one or more letters or symbols, for example, the message activation type is DOIP_ROUTING_ACTIVATION_MSG. The embodiments of this application do not make specific limitations.
S3045,检测诊断节点和网关节点之间是否存在可用的通信连接,在诊断节点和网关节点之间存在可用的通信连接的情况下,确定诊断节点的工作参数满足在线规则。S3045. Detect whether there is an available communication connection between the diagnosis node and the gateway node, and if there is an available communication connection between the diagnosis node and the gateway node, determine that the working parameters of the diagnosis node meet the online rules.
作为一种实施方式,诊断节点和网关节点之间是否存在可用的通信连接是基于诊断节点向网关节点发送的心跳包来确定的。若网关节点在预设时长内接收到诊断节点发送的心跳包,则说明诊断节点和网关节点之间存在可用的通信连接。具体地,心跳包是基于心跳机制的一种自定义协议包,本申请对心跳包的具体实现不作限定。As an implementation manner, whether there is an available communication connection between the diagnosis node and the gateway node is determined based on a heartbeat packet sent by the diagnosis node to the gateway node. If the gateway node receives the heartbeat packet sent by the diagnosis node within the preset time period, it means that there is an available communication connection between the diagnosis node and the gateway node. Specifically, the heartbeat packet is a custom protocol packet based on the heartbeat mechanism, and this application does not limit the specific implementation of the heartbeat packet.
作为另一种实施方式,诊断节点和网关节点之间是否存在可用的通信连接是基于预设的诊断函数来确定的。若诊断函数的返回值为第一预设值,则说明诊断节点和网关节点之间存在可用的通信连接。反之,若诊断函数的返回值为第二预设值,则说明诊断节点和网关节点之间不存在可用的通信连接。其中,诊断函数可以是非阻塞模式下的select函数,第一预设值和第二预设值由诊断函数默认设定,示例性地,第一预设值为1,第二预设值为0。As another implementation manner, whether there is an available communication connection between the diagnosis node and the gateway node is determined based on a preset diagnosis function. If the return value of the diagnosis function is the first preset value, it means that there is an available communication connection between the diagnosis node and the gateway node. On the contrary, if the return value of the diagnosis function is the second preset value, it means that there is no available communication connection between the diagnosis node and the gateway node. Wherein, the diagnostic function may be a select function in non-blocking mode, the first preset value and the second preset value are set by default by the diagnostic function, for example, the first preset value is 1, and the second preset value is 0 .
S3047,检测诊断节点中的身份信息是否为指定身份信息,在身份信息为指定身份信息的情况下,确定诊断节点的工作参数满足身份验证通过规则。S3047. Detect whether the identity information in the diagnosis node is the specified identity information, and if the identity information is the specified identity information, determine that the working parameters of the diagnosis node satisfy the identity verification pass rule.
作为一种实施方式,若第一诊断模块的配置文件中存储的身份信息(也即,指定身份信息)和诊断节点的身份信息相同,则确定诊断节点的工作参数满足身份验证通过规则。反之,若第一诊断模块的配置文件中存储的身份信息和诊断节点的身份信息不相同,则确定诊断节点的工作参数不满足身份验证通过规则。具体地,身份信息可以包括帐户信息或/及密码信息。As an implementation manner, if the identity information stored in the configuration file of the first diagnosis module (that is, specified identity information) is the same as the identity information of the diagnosis node, then it is determined that the working parameters of the diagnosis node satisfy the identity authentication pass rule. On the contrary, if the identity information stored in the configuration file of the first diagnosis module is different from the identity information of the diagnosis node, it is determined that the working parameters of the diagnosis node do not satisfy the authentication passing rule. Specifically, the identity information may include account information or/and password information.
S306,在诊断节点的工作参数满足预设的激活规则的情况下,控制第一诊断模块进入激活状态。S306. Control the first diagnosis module to enter an activation state when the working parameter of the diagnosis node satisfies a preset activation rule.
网关节点在诊断节点的工作参数满足预设的激活规则的情况下,控制第一诊断模块进入激活状态。反之,网关节点在诊断节点的工作参数不满足预设的激活规则的情况下,则不对第一诊断模块进行激活。The gateway node controls the first diagnosis module to enter the activation state when the working parameter of the diagnosis node satisfies a preset activation rule. Conversely, the gateway node does not activate the first diagnostic module when the working parameters of the diagnostic node do not meet the preset activation rules.
第一诊断模块进入激活状态之后,网关节点通过周期任务内的运行时环境(Runtime Environment,RTE)调用第一诊断模块提供的AUTOSAR标准接口,即可确定第一诊断模块是否处于激活状态。具体地,AUTOSAR标准接口的输出参数为布尔类型参数,例如,若AUTOSAR标准接口的输出参数为True,则说明第一诊断模块处于激活状态,若AUTOSAR标准接口的输出参数为False,则说明第一诊断模块处于未激活状态。After the first diagnosis module enters the activation state, the gateway node calls the AUTOSAR standard interface provided by the first diagnosis module through the Runtime Environment (RTE) in the periodic task to determine whether the first diagnosis module is in the activation state. Specifically, the output parameter of the AUTOSAR standard interface is a Boolean type parameter. For example, if the output parameter of the AUTOSAR standard interface is True, it means that the first diagnostic module is active; if the output parameter of the AUTOSAR standard interface is False, it means that the first The diagnostic module is inactive.
在一些实施例中,网关节点在诊断节点的工作参数满足预设的激活规则的情况下,向诊断节点发送激活响应报文。其中,激活响应报文中的测试设备地址为激活请求报文中的源地址,即诊断节点的设备逻辑地址,实体地址为网关节点的设备逻辑地址。在后续过程中,诊断节点在接收到激活响应报文的情况下,即可确定网关节点中的第一诊断模块处于激活状态,则向网关节点发送诊断请求报文。In some embodiments, the gateway node sends an activation response message to the diagnostic node when the working parameters of the diagnostic node meet a preset activation rule. Wherein, the test device address in the activation response message is the source address in the activation request message, that is, the device logic address of the diagnosis node, and the entity address is the device logic address of the gateway node. In the subsequent process, upon receiving the activation response message, the diagnosis node can determine that the first diagnosis module in the gateway node is in an activated state, and then send a diagnosis request message to the gateway node.
在本申请实施例中,具体介绍了通过激活请求报文激活第一诊断模块的实施方式,使得第一诊断模块激活后的网关节点能够实现对诊断请求报文的转发工作。In the embodiment of the present application, the embodiment of activating the first diagnosis module through an activation request message is specifically introduced, so that the gateway node after the activation of the first diagnosis module can implement the forwarding work of the diagnosis request message.
请参阅图4,图4示意性地示出了本申请第三实施例提供的一种数据传输方法。该方法应用于电子控制节点,具体地,该方法包括如下过程。Please refer to FIG. 4 , which schematically shows a data transmission method provided by a third embodiment of the present application. The method is applied to an electronic control node, and specifically, the method includes the following process.
S410,接收网关节点在网关节点中的第一诊断模块处于激活状态下发送的指定信号。S410. Receive a specified signal sent by the gateway node when the first diagnostic module in the gateway node is in an activated state.
指定信号的相关介绍可以参考S210中的相关介绍,在此不再赘述。For the relevant introduction of the designated signal, refer to the relevant introduction in S210, which will not be repeated here.
S420,基于指定信号,控制电子控制节点中的第二诊断模块进入使能状态。S420. Based on the specified signal, control the second diagnostic module in the electronic control node to enter an enabled state.
由于电子控制节点中的第二诊断模块的路由激活方式为自动激活。因此,当第二诊断模块处于使能状态的情况下,电子控制节点完成了接收诊断请求报文的准备。也即,电子控制节点不需要网关节点发送额外的激活报文对第二诊断模块进行激活的步骤,节约了网关节点和电子控制节点之间的通讯资源,加快了电子控制节点中的第二诊断模块的激活速度。具体地,S420包括如下过程。Since the routing activation mode of the second diagnostic module in the electronic control node is automatic activation. Therefore, when the second diagnosis module is in an enabled state, the electronic control node is ready to receive the diagnosis request message. That is, the electronic control node does not require the gateway node to send an additional activation message to activate the second diagnostic module, which saves communication resources between the gateway node and the electronic control node, and speeds up the second diagnosis in the electronic control node. The activation speed of the module. Specifically, S420 includes the following process.
S4210,基于指定信号,将电子控制节点中的第二诊断模块对应的使能状态位设置为指定值。S4210. Based on the specified signal, set the enable status bit corresponding to the second diagnostic module in the electronic control node to a specified value.
在本申请实施例中,电子控制节点在接收到指定信号的情况下,通过运行时环境(Runtime Environment,RTE)调用第二诊断模块提供的AUTOSAR标准接口,该AUTOSAR标准接口用于对第二诊断模块进行使能。具体地,在电子控制节点在接收到指定信号的情况下,AUTOSAR标准接口将第二诊断模块对应的使能状态位(Activation Line Status)设置为指定值,示例性地,指定值为DOIP_ACTIVATION_LINE_ACTIVE。In the embodiment of the present application, when the electronic control node receives the designated signal, it calls the AUTOSAR standard interface provided by the second diagnosis module through the runtime environment (Runtime Environment, RTE), and the AUTOSAR standard interface is used for the second diagnosis The module is enabled. Specifically, when the electronic control node receives a specified signal, the AUTOSAR standard interface sets the activation status bit (Activation Line Status) corresponding to the second diagnostic module to a specified value, for example, the specified value is DOIP_ACTIVATION_LINE_ACTIVE.
S4230,通过电子控制节点中的指定端口监听是否接收到诊断请求报文。S4230, monitor whether a diagnostic request message is received through a designated port in the electronic control node.
在第二诊断模块处于使能状态的情况下,第二诊断模块将对Socket进行初始化工作,并开启第二指定端口监听是否接收到诊断请求报文。具体地,第二指定端口可以是静态端口号13400。When the second diagnosis module is enabled, the second diagnosis module will initialize the Socket, and open the second designated port to monitor whether a diagnosis request message is received. Specifically, the second designated port may be a static port number 13400.
S430,接收网关节点转发的诊断请求报文。S430. Receive a diagnosis request message forwarded by the gateway node.
诊断请求报文由诊断节点发送至网关节点,诊断请求报文用于请求获取电子控制节点的故障类型。具体地,诊断请求报文到达电子控制节点之后,电子控制节点先经过网络层协议栈对该诊断请求报文进行进行解包操作,并将解包后的诊断请求报文发送至LdCom模块,后续将协议数据单元(Protocol Data Unit,PDU)路由至DoIP模块(也即,电子控制节点中的第二诊断模块),此时,电子控制节点完成了诊断请求报文的接收工作。The diagnosis request message is sent from the diagnosis node to the gateway node, and the diagnosis request message is used to request to obtain the fault type of the electronic control node. Specifically, after the diagnostic request message arrives at the electronic control node, the electronic control node first unpacks the diagnostic request message through the network layer protocol stack, and sends the unpacked diagnostic request message to the LdCom module. Route the protocol data unit (Protocol Data Unit, PDU) to the DoIP module (that is, the second diagnosis module in the electronic control node), and at this time, the electronic control node completes the receiving work of the diagnosis request message.
S440,基于诊断请求报文,将诊断响应报文发送至网关节点。S440. Send the diagnosis response message to the gateway node based on the diagnosis request message.
网关节点用于将诊断响应报文转发至诊断节点。具体地,电子控制节点中的第二诊断模块生成诊断响应报文之后,将PDU路由至LdCom模块,后续网络层协议栈对该诊断响应报文进行压缩后,将压缩后的诊断响应报文发送至网关节点。The gateway node is used to forward the diagnosis response message to the diagnosis node. Specifically, after the second diagnostic module in the electronic control node generates a diagnostic response message, it routes the PDU to the LdCom module, and the subsequent network layer protocol stack compresses the diagnostic response message, and sends the compressed diagnostic response message to to the gateway node.
本申请提供了一种数据传输方法,在该方法中,电子控制节点在接收到网关节点发送的指定信号的情况下,控制电子控制节点中的第二诊断模块进入使能状态,也即做好了接收诊断请求报文的准备工作。在后续电子控制节点接收到网关节点转发的诊断请求报文的情况下,向网关节点发送诊断响应报文,再由网关节点将诊断响应报文发送至诊断节点,进而完成了诊断节点对电子控制节点的故障诊断工作。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The present application provides a data transmission method. In this method, the electronic control node controls the second diagnostic module in the electronic control node to enter the enabled state when receiving the designated signal sent by the gateway node. Prepared for receiving diagnostic request message. When the subsequent electronic control node receives the diagnostic request message forwarded by the gateway node, it sends a diagnostic response message to the gateway node, and then the gateway node sends the diagnostic response message to the diagnostic node, thus completing the diagnostic node’s control of the electronic control. Node fault diagnosis work. Since the gateway node can determine the target electronic control node through the diagnosis request message, there is no process of mapping the logical address of the electronic control node to the multicast address, so that the gateway node and the multicast address Communication between electronically controlled nodes is more efficient.
请参阅图5,图5示意性地示出了本申请第五实施例提供的一种数据传输方法。该方法应用于诊断节点、网关节点和目标电子控制节点,具体地,该方法包括如下过程。Please refer to FIG. 5 , which schematically shows a data transmission method provided by a fifth embodiment of the present application. The method is applied to the diagnosis node, the gateway node and the target electronic control node, specifically, the method includes the following process.
S510,网关节点向诊断节点发送车辆声明报文。S510, the gateway node sends a vehicle declaration message to the diagnosis node.
车辆声明报文中包括车辆的识别码。在本申请实施例中,网关节点在确定与诊断节点建立通讯连接(例如,基于以太网通讯连接)的情况下,网关节点中通过第一软件组件对第一诊断模块(也即,DoIP模块)进行使能,使其进入使能状态,也即(DOIP_ACTIVATION_LINE_ACTIVE状态)。具体地,第一诊断模块的使能状态由AUTOSAR DoIP协议标准定义,本申请不作具体限定。The vehicle declaration message includes the identification number of the vehicle. In the embodiment of the present application, when the gateway node determines to establish a communication connection (for example, based on an Ethernet communication connection) with the diagnosis node, the gateway node uses the first software component to connect the first diagnosis module (that is, the DoIP module) Enable it to enter the enabled state, that is (DOIP_ACTIVATION_LINE_ACTIVE state). Specifically, the enabled state of the first diagnostic module is defined by the AUTOSAR DoIP protocol standard, which is not specifically limited in this application.
在第一诊断模块处于使能状态的情况下,网关节点向诊断节点发送车辆声明报文。其中,车辆声明报文中包括车辆的识别码。车辆的识别码也即车辆识别代码(VehicleIdentification Number,VIN),是一种表明车辆身份的代码,该VIN码由ISO13400中约束。不同车辆的VIN码各不相同,也即,诊断节点通过对车辆声明报文中的VIN码进行识别,能够确定出唯一的车辆。具体地,网关节点中的DoIP协议栈可通过AUTOSAR接口获取该VIN码。When the first diagnosis module is in an enabled state, the gateway node sends a vehicle declaration message to the diagnosis node. Wherein, the vehicle declaration message includes the identification code of the vehicle. The vehicle identification code, also known as the vehicle identification number (Vehicle Identification Number, VIN), is a code that indicates the identity of the vehicle, and the VIN code is constrained by ISO13400. The VIN codes of different vehicles are different, that is, the diagnostic node can determine a unique vehicle by identifying the VIN code in the vehicle declaration message. Specifically, the DoIP protocol stack in the gateway node can obtain the VIN code through the AUTOSAR interface.
在一些实施例中,网关节点为了保证诊断节点能够顺利接收到车辆声明报文,可以在预设时间内多次发送车辆声明报文,例如,发送次数为3次。In some embodiments, in order to ensure that the diagnostic node can successfully receive the vehicle declaration message, the gateway node may send the vehicle declaration message multiple times within a preset time, for example, the number of sending times is 3 times.
在一些实施例中,为了保证网关节点和诊断节点之间数据传输的私密性,网关节点可以通过受限的广播地址向诊断节点发送车辆声明报文。例如,受限的广播地址为255.255.255.255。In some embodiments, in order to ensure the privacy of data transmission between the gateway node and the diagnosis node, the gateway node may send a vehicle declaration message to the diagnosis node through a restricted broadcast address. For example, a restricted broadcast address is 255.255.255.255.
在本申请实施例中,在第一诊断模块处于使能状态的情况下,网关节点中的DoIP协议栈还执行初始化UDPSocket的步骤,使得UDP中指定的静态端口号13400处于报文监听状态,也即,第一诊断模块通过静态端口号13400对车辆识别请求报文进行监听。In this embodiment of the application, when the first diagnostic module is in the enabled state, the DoIP protocol stack in the gateway node also executes the step of initializing UDPSocket, so that the static port number 13400 specified in UDP is in the message monitoring state, and also That is, the first diagnostic module monitors the vehicle identification request message through the static port number 13400.
S515,诊断节点向网关节点发送车辆识别请求报文。S515, the diagnostic node sends a vehicle identification request message to the gateway node.
诊断节点在接收到网关节点发送的车辆声明报文的情况下,向网关节点发送车辆识别请求报文。After receiving the vehicle declaration message sent by the gateway node, the diagnostic node sends a vehicle identification request message to the gateway node.
S520,网关节点向诊断节点发送车辆识别响应报文。S520, the gateway node sends a vehicle identification response message to the diagnosis node.
网关节点在接收到诊断节点发送的车辆识别请求报文的情况下,向诊断节点发送车辆识别响应报文。The gateway node sends a vehicle identification response message to the diagnosis node when receiving the vehicle identification request message sent by the diagnosis node.
S525,诊断节点向网关节点发送激活请求报文。S525. The diagnostic node sends an activation request message to the gateway node.
诊断节点在接收到车辆识别响应报文的情况下,基于车辆识别响应报文添加车辆的相关消息,进而与网关节点建立TCP Socket连接,并向网关节点发送激活请求报文。具体地,该激活请求报文的源地址为诊断节点的设备逻辑地址。When the diagnostic node receives the vehicle identification response message, it adds vehicle-related information based on the vehicle identification response message, and then establishes a TCP Socket connection with the gateway node, and sends an activation request message to the gateway node. Specifically, the source address of the activation request message is the device logic address of the diagnosis node.
S530,网关节点向诊断节点发送激活响应报文。S530, the gateway node sends an activation response message to the diagnosis node.
具体地,网关节点在激活请求报文中的工作参数满足预设的激活规则的情况下,向诊断节点发送激活响应报文。Specifically, the gateway node sends an activation response message to the diagnostic node when the working parameters in the activation request message meet the preset activation rules.
S535,网关节点控制第一诊断模块进入激活状态。S535. The gateway node controls the first diagnosis module to enter an activation state.
这里需要说明的是,S530和S535在执行时不存在先后顺序,也即,S530和S535可以同时执行,或者S530早于S535执行,或者S530晚于S535执行。It should be noted here that there is no sequence when executing S530 and S535, that is, S530 and S535 can be executed at the same time, or S530 is executed earlier than S535, or S530 is executed later than S535.
S540,网关节点向目标电子控制节点发送指定信号。S540, the gateway node sends a specified signal to the target electronic control node.
S545,目标电子控制节点控制第二诊断模块进入使能状态。S545. The target electronic control node controls the second diagnostic module to enter an enabled state.
S550,诊断节点向网关节点发送诊断请求报文。S550, the diagnosis node sends a diagnosis request message to the gateway node.
S555,网关节点将诊断请求报文转发至目标电子控制节点。S555, the gateway node forwards the diagnosis request message to the target electronic control node.
S560,目标电子控制节点向网关节点发送诊断响应报文。S560, the target electronic control node sends a diagnosis response message to the gateway node.
S565,网关节点将诊断响应报文转发至诊断节点。S565. The gateway node forwards the diagnosis response message to the diagnosis node.
具体地,S530至S565的具体实施过程可以参考上文实施例中的相关介绍,在此不再赘述。Specifically, for the specific implementation process of S530 to S565, reference may be made to relevant introductions in the above embodiments, and details are not repeated here.
本申请实施例提供了一种数据传输方法,在该方法中,具体介绍了网关节点和诊断节点之间车辆识别请求和响应、路由激活请求和响应的过程,以及网关节点转发诊断请求报文和诊断响应报文的过程。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The embodiment of the present application provides a data transmission method. In this method, the process of vehicle identification request and response, route activation request and response between the gateway node and the diagnosis node is specifically introduced, and the gateway node forwards the diagnosis request message and The process of diagnosing response packets. Since the gateway node can determine the target electronic control node through the diagnostic request message, there is no process of mapping the logical address of the electronic control node to the multicast address, making the communication between the gateway node and the electronic control node more efficient.
请参阅图6,图6示意性地示出了本申请实施例提供的一种数据传输装置600的结构框图。该数据传输装置600包括:第一发送模块610、第一接收模块620、第二发送模块630和第二接收模块640。其中,第一发送模块610用于在网关节点中的第一诊断模块处于激活状态的情况下,向多个电子控制节点发送指定信号,指定信号用于指示电子控制节点中的第二诊断模块进入使能状态。第一接收模块620用于接收诊断节点发送的诊断请求报文,诊断请求报文用于请求获取多个电子控制节点中的目标电子控制节点的故障类型。第二发送模块630用于将诊断请求报文发送至目标电子控制节点。第二接收模块640用于接收目标电子控制节点发送的诊断响应报文,并将诊断响应报文发送至诊断节点。Referring to FIG. 6 , FIG. 6 schematically shows a structural block diagram of a
在一些实施例中,第二发送模块630还用于获取诊断请求报文的目的地址;获取多个电子控制节点的设备逻辑地址;将多个电子控制节点中设备逻辑地址与目的地址相同的电子控制节点,确定为目标电子控制节点;将诊断请求报文发送至目标电子控制节点。In some embodiments, the
在一些实施例中,数据传输装置600还包括第五接收模块(图中未示出)、检测模块(图中未示出)和激活状态控制模块(图中未示出)。其中,第五接收模块用于接收诊断节点发送的激活请求报文,激活请求报文携带诊断节点的工作参数。检测模块用于检测诊断节点的工作参数是否满足预设的激活规则,预设的激活规则包括以下至少一项:源地址注册规则、激活类型支持规则、在线规则和身份验证通过规则。激活状态控制模块用于在诊断节点的工作参数满足预设的激活规则的情况下,控制第一诊断模块进入激活状态。In some embodiments, the
在一些实施例中,检测模块还用于检测第一诊断模块的配置文件中是否包括诊断节点的设备逻辑地址,在第一诊断模块的配置文件中包括诊断节点的设备逻辑地址的情况下,确定诊断节点的工作参数满足源地址注册规则;或/及检测诊断节点中的激活类型是否为指定激活类型,且是否与第一诊断模块的激活类型相同,在诊断节点中的激活类型为指定激活类型,且与第一诊断模块的激活类型相同的情况下,确定诊断节点的工作参数满足激活类型支持规则;或/及检测诊断节点和网关节点之间是否存在可用的通信连接,在诊断节点和网关节点之间存在可用的通信连接的情况下,确定诊断节点的工作参数满足在线规则;或/及检测诊断节点中的身份信息是否为指定身份信息,在身份信息为指定身份信息的情况下,确定诊断节点的工作参数满足身份验证通过规则。In some embodiments, the detection module is also used to detect whether the configuration file of the first diagnosis module includes the device logic address of the diagnosis node, and if the configuration file of the first diagnosis module includes the device logic address of the diagnosis node, determine The working parameters of the diagnostic node meet the source address registration rules; or/and detect whether the activation type in the diagnostic node is the specified activation type, and whether it is the same as the activation type of the first diagnostic module, and the activation type in the diagnostic node is the specified activation type , and in the case of the same activation type as the first diagnostic module, determine that the working parameters of the diagnostic node meet the activation type support rules; or/and detect whether there is an available communication connection between the diagnostic node and the gateway node, and between the diagnostic node and the gateway When there is an available communication connection between the nodes, determine that the working parameters of the diagnostic node meet the online rules; or/and detect whether the identity information in the diagnostic node is the specified identity information, and if the identity information is the specified identity information, determine The working parameters of the diagnosis node meet the authentication pass rules.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
本申请提供了一种数据传输装置,在该装置中,网关节点中的第一诊断模块在处于激活状态的情况下,会向多个电子控制节点发送指定信号,以使得多个电子控制节点中的第二诊断模块进入使能状态,也即使得电子控制节点进入准备接收诊断请求报文的状态。在后续网关节点接收到诊断节点发送的诊断请求报文的情况下,会基于诊断请求报文中的相关信息(例如,报文的目的地址)确定出多个电子控制节点中的目标电子控制节点,进而将该诊断请求报文发送至目标电子控制节点,也即完成报文的转发工作。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The present application provides a data transmission device, in which, when the first diagnostic module in the gateway node is in an activated state, it will send a specified signal to multiple electronic control nodes, so that the multiple electronic control nodes The second diagnosis module enters the enabling state, that is, the electronic control node enters the state of preparing to receive the diagnosis request message. When the subsequent gateway node receives the diagnostic request message sent by the diagnostic node, it will determine the target electronic control node among the multiple electronic control nodes based on the relevant information in the diagnostic request message (for example, the destination address of the message) , and then send the diagnosis request message to the target electronic control node, that is, complete the forwarding of the message. Since the gateway node can determine the target electronic control node through the diagnostic request message, there is no process of mapping the logical address of the electronic control node to the multicast address, making the communication between the gateway node and the electronic control node more efficient.
请参阅图7,图7示意性地示出了本申请实施例提供的另一种数据传输装置700的结构框图。该数据传输装置700包括:第三接收模块710、控制模块720、第四接收模块730和第三发送模块740。其中,第三接收模块710用于接收网关节点在网关节点中的第一诊断模块处于激活状态下发送的指定信号。控制模块720用于基于指定信号,控制电子控制节点中的第二诊断模块进入使能状态。第四接收模块730用于接收网关节点转发的诊断请求报文,诊断请求报文由诊断节点发送至网关节点,诊断请求报文用于请求获取电子控制节点的故障类型。第三发送模块740用于基于诊断请求报文,将诊断响应报文发送至网关节点,网关节点用于将诊断响应报文转发至诊断节点。Referring to FIG. 7 , FIG. 7 schematically shows a structural block diagram of another
在一些实施例中,控制模块720还用于基于指定信号,将电子控制节点中的第二诊断模块对应的使能状态位设置为指定值;通过电子控制节点中的指定端口监听是否接收到诊断请求报文。In some embodiments, the
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
本申请提供了一种数据传输装置,在该装置中,电子控制节点在接收到网关节点发送的指定信号的情况下,控制电子控制节点中的第二诊断模块进入使能状态,也即做好了接收诊断请求报文的准备工作。在后续电子控制节点接收到网关节点转发的诊断请求报文的情况下,向网关节点发送诊断响应报文,再由网关节点将诊断响应报文发送至诊断节点,进而完成了诊断节点对电子控制节点的故障诊断工作。由于网关节点通过诊断请求报文即可确定出目标电子控制节点,因此不存在将电子控制节点的逻辑地址与组播地址进行映射的过程,使得网关节点和电子控制节点之间的通信更加高效。The present application provides a data transmission device. In this device, the electronic control node controls the second diagnostic module in the electronic control node to enter the enabled state when receiving the designated signal sent by the gateway node. Prepared for receiving diagnostic request message. When the subsequent electronic control node receives the diagnostic request message forwarded by the gateway node, it sends a diagnostic response message to the gateway node, and then the gateway node sends the diagnostic response message to the diagnostic node, thus completing the diagnostic node’s control of the electronic control. Node fault diagnosis work. Since the gateway node can determine the target electronic control node through the diagnostic request message, there is no process of mapping the logical address of the electronic control node to the multicast address, making the communication between the gateway node and the electronic control node more efficient.
请参阅图8,其示出了本申请实施例还提供一种车辆800,该车辆800包括:一个或多个处理器810、存储器820、网关节点830、多个电子控制节点840以及一个或多个应用程序。其中,一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行上述实施例中所描述的方法。Please refer to FIG. 8 , which shows that the embodiment of the present application also provides a
处理器810可以包括一个或者多个处理核。处理器810利用各种接口和线路连接整个电池管理系统内的各种部分,通过运行或执行存储在存储器820内的指令、程序、代码集或指令集,以及调用存储在存储器820内的数据,执行电池管理系统的各种功能和处理数据。可选地,处理器810可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器810可集成中央处理器810(Central Processing Unit,CPU)、图像处理器810(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器810中,单独通过一块通信芯片进行实现。
存储器820可以包括随机存储器820(Random Access Memory,RAM),也可以包括只读存储器820(Read-Only Memory,ROM)。存储器820可用于存储指令、程序、代码、代码集或指令集。存储器820可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(例如,触控功能、声音播放功能、图像播放功能等)、用于实现上述各种方法实施例的指令等。存储数据区还可以存储电子设备图在使用中所创建的数据(例如,电话本、音视频数据、聊天记录数据)等。The
多个电子控制节点840连接于网关节点830,具体地,网关节点830和多个电子控制节点840的相关介绍请参考上文环境实施例中的详细阐述,在此不再赘述。A plurality of
请参阅图9,其示出了本申请实施例还提供一种计算机可读存储介质900,该计算机可读存储介质900中存储有计算机程序指令910,计算机程序指令910可被处理器调用以执行上述实施例中所描述的方法。Please refer to FIG. 9 , which shows that the embodiment of the present application also provides a computer-
计算机可读存储介质900可以是诸如闪存、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、电动程控只读存储器(Electrical Programmable Read Only Memory,EPROM)、硬盘或者只读存储器(Read-Only Memory,ROM)。可选地,计算机可读存储介质包括非易失性计算机可读存储介质(Non-transitory Computer-readable Storage Medium)。计算机可读存储介质900具有执行上述方法中的任何方法步骤的计算机程序指令910的存储空间。这些计算机程序指令910可以从一个或者多个计算机程序产品中读出或者可以写入到这一个或者多个计算机程序产品中。The computer-
以上,仅是本申请的较佳实施例而已,并非对本申请作任何形式上的限制,虽然本申请已以较佳实施例揭示如上,然而并非用以限定本申请,任何本领域技术人员,在不脱离本申请技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本申请技术方案内容,依据本申请的技术实质对以上实施例所作的任何简介修改、等同变化与修饰,均仍属于本申请技术方案的范围内。The above are only the preferred embodiments of the application, and do not limit the application in any form. Although the application has been disclosed as above with the preferred embodiments, it is not intended to limit the application. Anyone skilled in the art, Without departing from the scope of the technical solution of the present application, when the technical content disclosed above can be used to make some changes or be modified into equivalent embodiments with equivalent changes, but if it does not deviate from the technical solution of the application, the technical essence of the application will Any brief modifications, equivalent changes and modifications made in the above embodiments still fall within the scope of the technical solutions of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211130754.XA CN115840435A (en) | 2022-09-16 | 2022-09-16 | Data transmission method, device, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211130754.XA CN115840435A (en) | 2022-09-16 | 2022-09-16 | Data transmission method, device, vehicle and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115840435A true CN115840435A (en) | 2023-03-24 |
Family
ID=85574932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211130754.XA Pending CN115840435A (en) | 2022-09-16 | 2022-09-16 | Data transmission method, device, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115840435A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116224976A (en) * | 2023-05-08 | 2023-06-06 | 北京集度科技有限公司 | Test method and device |
CN116389326A (en) * | 2023-04-06 | 2023-07-04 | 纵目科技(重庆)有限公司 | DoIP-based protocol, refreshing test method, system, equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050165906A1 (en) * | 1997-10-06 | 2005-07-28 | Mci, Inc. | Deploying service modules among service nodes distributed in an intelligent network |
CN108696424A (en) * | 2017-04-07 | 2018-10-23 | 上汽通用汽车有限公司 | Vehicle communication system |
CN111142500A (en) * | 2019-12-26 | 2020-05-12 | 国汽(北京)智能网联汽车研究院有限公司 | Permission setting method and device for vehicle diagnosis data and vehicle-mounted gateway controller |
CN113141306A (en) * | 2021-04-15 | 2021-07-20 | 常州易控汽车电子股份有限公司 | Diagnostic message routing method and bus routing equipment thereof |
CN113204226A (en) * | 2021-04-25 | 2021-08-03 | 重庆长安汽车股份有限公司 | Vehicle diagnosis system and method |
CN113485920A (en) * | 2021-07-01 | 2021-10-08 | 中瓴智行(成都)科技有限公司 | Method and device for realizing DoIP entity, readable storage medium and electronic equipment |
WO2022082679A1 (en) * | 2020-10-22 | 2022-04-28 | 华为技术有限公司 | Communication method and related device |
CN114827183A (en) * | 2021-06-30 | 2022-07-29 | 长城汽车股份有限公司 | Vehicle diagnosis method, system, device and storage medium |
-
2022
- 2022-09-16 CN CN202211130754.XA patent/CN115840435A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050165906A1 (en) * | 1997-10-06 | 2005-07-28 | Mci, Inc. | Deploying service modules among service nodes distributed in an intelligent network |
CN108696424A (en) * | 2017-04-07 | 2018-10-23 | 上汽通用汽车有限公司 | Vehicle communication system |
CN111142500A (en) * | 2019-12-26 | 2020-05-12 | 国汽(北京)智能网联汽车研究院有限公司 | Permission setting method and device for vehicle diagnosis data and vehicle-mounted gateway controller |
WO2022082679A1 (en) * | 2020-10-22 | 2022-04-28 | 华为技术有限公司 | Communication method and related device |
CN113141306A (en) * | 2021-04-15 | 2021-07-20 | 常州易控汽车电子股份有限公司 | Diagnostic message routing method and bus routing equipment thereof |
CN113204226A (en) * | 2021-04-25 | 2021-08-03 | 重庆长安汽车股份有限公司 | Vehicle diagnosis system and method |
CN114827183A (en) * | 2021-06-30 | 2022-07-29 | 长城汽车股份有限公司 | Vehicle diagnosis method, system, device and storage medium |
CN113485920A (en) * | 2021-07-01 | 2021-10-08 | 中瓴智行(成都)科技有限公司 | Method and device for realizing DoIP entity, readable storage medium and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116389326A (en) * | 2023-04-06 | 2023-07-04 | 纵目科技(重庆)有限公司 | DoIP-based protocol, refreshing test method, system, equipment and medium |
CN116224976A (en) * | 2023-05-08 | 2023-06-06 | 北京集度科技有限公司 | Test method and device |
CN116224976B (en) * | 2023-05-08 | 2023-08-25 | 北京集度科技有限公司 | Test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9912560B2 (en) | Method and device for checking health of link | |
EP1892929B1 (en) | A method, an apparatus and a system for message transmission | |
CN115840435A (en) | Data transmission method, device, vehicle and storage medium | |
JP2022519178A (en) | In-vehicle gateway communication method, in-vehicle gateway, and intelligent vehicle | |
CN113557697B (en) | Management device, vehicle communication system, vehicle communication management method, and vehicle communication management program | |
CN108521459A (en) | Vehicle diagnosis method, related equipment and system | |
CN113341933B (en) | Diagnostic system and method for vehicle central controller | |
CN104883277B (en) | A kind of information interacting method and system based on BMC | |
CN113285860B (en) | Method and system for flashing slave node through master node | |
JP2024010202A (en) | Management device, communication system, vehicle communication management method, and vehicle communication management program | |
JP2013530595A (en) | Method for transitioning the drive state of at least one device | |
WO2020088278A1 (en) | Communication method and apparatus, and related devices | |
CN113994720B (en) | Relay device, vehicle communication system, vehicle, communication method, and communication program | |
CN116349216A (en) | Edge computing method and system, edge device and control server | |
CN114237195A (en) | OBD emission diagnosis method and related equipment | |
CN104796883B (en) | Communication means, wireless access point, wireless controller and communication system | |
CN118444662A (en) | Vehicle diagnosis method, device, vehicle and storage medium | |
CN109150724B (en) | Communication method and network card | |
CN117459546A (en) | Diagnostic methods, devices and vehicles | |
CN116436994B (en) | Profinet protocol message transmission method, device, equipment and medium | |
CN115484227A (en) | HUD automatic adaptation method, system and device and vehicle | |
CN119485569A (en) | In-vehicle network data transmission method, device, switch, vehicle and storage medium | |
JPH0851453A (en) | Network device, network device detection method, and network configuration recognition method | |
WO2024029166A1 (en) | Management device, vehicle communication management method, and vehicle communication management program | |
CN116567635A (en) | Illegal external connection monitoring method, device, computer equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230324 |
|
RJ01 | Rejection of invention patent application after publication |