[go: up one dir, main page]

CN113497719B - Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment - Google Patents

Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment Download PDF

Info

Publication number
CN113497719B
CN113497719B CN202010199017.XA CN202010199017A CN113497719B CN 113497719 B CN113497719 B CN 113497719B CN 202010199017 A CN202010199017 A CN 202010199017A CN 113497719 B CN113497719 B CN 113497719B
Authority
CN
China
Prior art keywords
target
service
vehicle
execution device
ecu
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.)
Active
Application number
CN202010199017.XA
Other languages
Chinese (zh)
Other versions
CN113497719A (en
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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202010199017.XA priority Critical patent/CN113497719B/en
Publication of CN113497719A publication Critical patent/CN113497719A/en
Application granted granted Critical
Publication of CN113497719B publication Critical patent/CN113497719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a service-oriented vehicle-mounted ECU software upgrading method, a service-oriented vehicle-mounted ECU software upgrading system and related equipment, wherein the service-oriented vehicle-mounted ECU software upgrading method comprises the following steps: the execution device sends a subscription request to target service providing device to request subscription of target refreshing machine function service matched with target vehicle-mounted ECU, the target service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU needing to be subjected to software upgrading; the target service providing device receives the subscription request and feeds back a subscription confirmation response to the executing device; the execution device receives the subscription confirmation response and transmits a software upgrade package of the target vehicle-mounted ECU to the target service providing device; the target service providing device receives the software upgrading package of the target vehicle-mounted ECU and executes the software upgrading flow aiming at the target vehicle-mounted ECU according to the software upgrading package. Therefore, the implementation of the invention provides a service-oriented vehicle-mounted ECU software upgrading method, and provides a more flexible, safer and configurable software upgrading mode for the whole vehicle ECU software upgrading.

Description

面向服务的车载ECU软件升级方法及系统、相关设备Service-oriented vehicle ECU software upgrade method and system, and related equipment

技术领域Technical Field

本发明涉及车载软件升级技术领域,尤其涉及一种面向服务的车载ECU软件升级方法及系统、相关设备。The present invention relates to the technical field of vehicle-mounted software upgrade, and in particular to a service-oriented vehicle-mounted ECU software upgrade method and system, and related equipment.

背景技术Background technique

随着车载网络通信技术的快速发展,汽车上车载以太网的应用也越来越广泛,例如:娱乐系统、智能驾驶系统等逐步切换为采用车载以太网进行信号的传输。因此,对整车ECU(Electronic Control Unit,电子控制单元)和以太网的刷新需求也越来越强烈。With the rapid development of in-vehicle network communication technology, the application of in-vehicle Ethernet in automobiles is becoming more and more extensive. For example, entertainment systems, intelligent driving systems, etc. are gradually switching to in-vehicle Ethernet for signal transmission. Therefore, the demand for refreshing the vehicle ECU (Electronic Control Unit) and Ethernet is becoming more and more urgent.

当前,对整车ECU的软件升级一般可通过多种路径,如OBD(On BoardDiagnostics,车载自动诊断系统)、USB(Universal Serial Bus,通用串行总线)、OTA(Overthe Air,空中下载技术)等。然而,实践发现,当前的整车ECU的软件升级策略比较单一,提供一种更加灵活的软件升级策略为整车ECU进行软件升级显得尤为重要。At present, the software upgrade of the vehicle ECU can generally be carried out through a variety of paths, such as OBD (On Board Diagnostics, vehicle automatic diagnostic system), USB (Universal Serial Bus, universal serial bus), OTA (Over the Air, air download technology), etc. However, it is found in practice that the current software upgrade strategy of the vehicle ECU is relatively simple, and it is particularly important to provide a more flexible software upgrade strategy for the vehicle ECU to perform software upgrades.

发明内容Summary of the invention

本发明所要解决的技术问题在于,提供一种面向服务的车载ECU软件升级方法及系统、相关设备,能够更加灵活的实现车载ECU的软件升级。The technical problem to be solved by the present invention is to provide a service-oriented vehicle-mounted ECU software upgrade method and system, and related equipment, which can more flexibly realize the software upgrade of the vehicle-mounted ECU.

为了解决上述技术问题,本发明第一方面公开了面向服务的车载ECU软件升级方法,所述方法应用于包括执行设备以及至少一个服务提供设备的软件升级系统中,所述执行设备及所述服务提供设备均为车载设备,所述方法包括:In order to solve the above technical problems, the first aspect of the present invention discloses a service-oriented vehicle-mounted ECU software upgrade method, which is applied to a software upgrade system including an execution device and at least one service providing device, wherein both the execution device and the service providing device are vehicle-mounted devices, and the method comprises:

所述执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述目标服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;The execution device sends a subscription request to the target service providing device to request to subscribe to the target refresh machine function service matching the target vehicle-mounted ECU, wherein the target service providing device is used to provide the target refresh machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded;

所述目标服务提供设备接收所述订阅请求,并向所述执行设备反馈与所述订阅请求相匹配的订阅确认响应;The target service providing device receives the subscription request and feeds back a subscription confirmation response matching the subscription request to the execution device;

所述执行设备接收所述订阅确认响应并向所述目标服务提供设备传输所述目标车载ECU的软件升级包;The execution device receives the subscription confirmation response and transmits the software upgrade package of the target vehicle ECU to the target service providing device;

所述目标服务提供设备接收所述目标车载ECU的软件升级包,并根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;The target service providing device receives the software upgrade package of the target vehicle-mounted ECU, and executes a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;

其中,当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;Among them, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU;

当所述目标刷新机功能服务为以太网刷新机功能服务时,所述目标服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述目标服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the target service providing device is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the target service providing device is an in-vehicle gateway ECU.

本发明第二方面公开了一种面向服务的车载ECU软件升级系统,所述系统至少包括执行设备以及能够提供所述执行设备所需服务的至少一个服务提供设备,所述执行设备及所述服务提供设备均为车载设备;The second aspect of the present invention discloses a service-oriented vehicle-mounted ECU software upgrade system, the system comprising at least an execution device and at least one service providing device capable of providing services required by the execution device, the execution device and the service providing device are both vehicle-mounted devices;

所述执行设备包括第一通信模块以及传输模块,所述服务提供设备包括第二通信模块、反馈模块以及升级控制模块,其中:The execution device includes a first communication module and a transmission module, and the service providing device includes a second communication module, a feedback module and an upgrade control module, wherein:

所述第一通信模块,用于向所述服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;The first communication module is used to send a subscription request to the service provider to request to subscribe to a target flasher function service that matches a target vehicle-mounted ECU, wherein the service provider is used to provide the target flasher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded;

所述第二通信模块,用于接收所述订阅请求;The second communication module is used to receive the subscription request;

所述反馈模块,用于向所述执行设备反馈与所述订阅请求相匹配的订阅确认响应;The feedback module is used to feed back a subscription confirmation response matching the subscription request to the execution device;

所述第一通信模块,还用于接收所述订阅确认响应;The first communication module is further used to receive the subscription confirmation response;

所述传输模块,用于在所述第一通信模块接收到所述订阅确认响应之后,向所述服务提供设备传输所述目标车载ECU的软件升级包;The transmission module is used to transmit the software upgrade package of the target vehicle-mounted ECU to the service providing device after the first communication module receives the subscription confirmation response;

所述第二通信模块,还用于接收所述目标车载ECU的软件升级包;The second communication module is further used to receive the software upgrade package of the target vehicle-mounted ECU;

所述升级控制模块,用于根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;The upgrade control module is used to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;

其中,当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;Among them, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU;

当所述目标刷新机功能服务为以太网刷新机功能服务时,所述服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the service provider is an in-vehicle gateway ECU.

本发明第三方面一种执行设备,所述执行设备为车载设备,所述执行设备包括:A third aspect of the present invention provides an execution device, the execution device being a vehicle-mounted device, and the execution device comprising:

第一通信模块,用于向服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;A first communication module is used to send a subscription request to a service provider to request to subscribe to a target flasher function service that matches a target vehicle-mounted ECU, wherein the service provider is used to provide the target flasher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded;

所述第一通信模块,还用于接收所述服务提供设备反馈与所述订阅请求相匹配的订阅确认响应;The first communication module is further configured to receive a subscription confirmation response fed back by the service providing device that matches the subscription request;

传输模块,用于在所述第一通信模块接收到所述订阅确认响应之后,向所述服务提供设备传输所述目标车载ECU的软件升级包,以触发所述服务提供设备根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;a transmission module, configured to transmit the software upgrade package of the target vehicle-mounted ECU to the service providing device after the first communication module receives the subscription confirmation response, so as to trigger the service providing device to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;

其中,当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;Among them, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU;

当所述目标刷新机功能服务为以太网刷新机功能服务时,所述服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the service provider is an in-vehicle gateway ECU.

本发明第四方面公开了另一种执行设备,所述执行设备为车载设备,所述执行设备包括:A fourth aspect of the present invention discloses another execution device, the execution device is a vehicle-mounted device, and the execution device includes:

存储有可执行程序代码的存储器;A memory storing executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面任一所述的面向服务的车载ECU软件升级方法中执行设备所执行的部分或全部步骤。The processor calls the executable program code stored in the memory to execute part or all of the steps executed by the execution device in any service-oriented vehicle ECU software upgrade method described in the first aspect of the present invention.

本发明第五方面公开了计算机存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面任一所述的面向服务的车载ECU软件升级方法中执行设备所执行的部分或全部步骤。The fifth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps performed by the execution device in any service-oriented vehicle-mounted ECU software upgrade method described in the first aspect of the present invention.

本发明第六方面公开了一种服务提供设备,所述服务提供设备为车载设备,所述服务提供设备包括:A sixth aspect of the present invention discloses a service providing device, wherein the service providing device is a vehicle-mounted device, and the service providing device comprises:

第二通信模块,用于接收执行设备发送的订阅请求,所述订阅请求用于请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;A second communication module is used to receive a subscription request sent by an execution device, wherein the subscription request is used to request subscription to a target refresher function service that matches a target vehicle-mounted ECU, wherein the service providing device is used to provide the target refresher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded;

反馈模块,用于向所述执行设备反馈与所述订阅请求相匹配的订阅确认响应;A feedback module, configured to feed back a subscription confirmation response matching the subscription request to the execution device;

所述第二通信模块,还用于接收所述目标车载ECU的软件升级包;The second communication module is further used to receive the software upgrade package of the target vehicle-mounted ECU;

升级控制模块,用于根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;An upgrade control module, used to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;

其中,所述目标车载ECU的软件升级包是由所述执行设备接收到所述订阅确认响应之后发送至所述服务提供设备的;当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;The software upgrade package of the target vehicle-mounted ECU is sent to the service providing device by the execution device after receiving the subscription confirmation response; when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU;

当所述目标刷新机功能服务为以太网刷新机功能服务时,所述服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the service provider is an in-vehicle gateway ECU.

本发明第七方面公开了另一种服务提供设备,所述服务提供设备包括:A seventh aspect of the present invention discloses another service providing device, the service providing device comprising:

存储有可执行程序代码的存储器;A memory storing executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面任一所述的面向服务的车载ECU软件升级方法中目标服务提供设备所执行的部分或全部步骤。The processor calls the executable program code stored in the memory to execute part or all of the steps executed by the target service providing device in the service-oriented vehicle ECU software upgrade method described in any one of the first aspects of the present invention.

本发明第八方面公开了计算机存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面任一所述的面向服务的车载ECU软件升级方法中目标服务提供设备所执行的部分或全部步骤。The eighth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps performed by the target service providing device in the service-oriented vehicle ECU software upgrade method described in any one of the first aspects of the present invention.

与现有技术相比,本发明的有益效果在于:Compared with the prior art, the present invention has the following beneficial effects:

实施本发明能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,可见,本发明提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。The implementation of the present invention can subscribe to the refresh machine function service and obtain the software upgrade package through the execution device (which can also be understood as the upgrade end), and the service provider device that provides the refresh machine function service (such as an ECU with a refresh machine function) publishes the service to the execution device. After the software upgrade is confirmed, the execution device sends the obtained software upgrade package to the service provider device that provides the refresh machine function service for software upgrade. It can be seen that the present invention provides a service-oriented software upgrade strategy, which adds the subscription and release operations of the refresh machine function service before the software upgrade, providing a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明实施例公开的一种面向服务的车载ECU软件升级方法的流程示意图;FIG1 is a schematic flow chart of a service-oriented vehicle-mounted ECU software upgrade method disclosed in an embodiment of the present invention;

图2为本发明实施例公开的另一种面向服务的车载ECU软件升级方法的流程示意图;FIG2 is a schematic flow chart of another service-oriented vehicle-mounted ECU software upgrade method disclosed in an embodiment of the present invention;

图3为本发明实施例公开的一种面向服务的车载ECU软件升级系统的结构示意图;FIG3 is a schematic diagram of the structure of a service-oriented vehicle-mounted ECU software upgrade system disclosed in an embodiment of the present invention;

图4是本发明实施例公开的另一种面向服务的车载ECU软件升级系统的结构示意图;FIG4 is a schematic diagram of the structure of another service-oriented vehicle-mounted ECU software upgrade system disclosed in an embodiment of the present invention;

图5是本发明实施例公开的一种执行设备的结构示意图;FIG5 is a schematic diagram of the structure of an execution device disclosed in an embodiment of the present invention;

图6是本发明实施例公开的一种服务提供设备的结构示意图。FIG. 6 is a schematic diagram of the structure of a service providing device disclosed in an embodiment of the present invention.

具体实施方式Detailed ways

为了更好地理解和实施,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。For better understanding and implementation, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or devices.

本发明实施例公开了一种面向服务的车载ECU软件升级方法及系统、相关设备,能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,可见,本发明提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。以下分别进行详细说明。The embodiment of the present invention discloses a service-oriented vehicle-mounted ECU software upgrade method and system, and related equipment, which can subscribe to the refresh machine function service and obtain the software upgrade package through the execution device (which can also be understood as the upgrade end), and the service providing device that provides the refresh machine function service (such as an ECU with a refresh machine function) publishes the service to the execution device. After confirming the software upgrade, the execution device sends the acquired software upgrade package to the service providing device that provides the refresh machine function service for software upgrade. It can be seen that the present invention provides a service-oriented software upgrade strategy, adds the subscription and release operations of the refresh machine function service before the software upgrade, and provides a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade. The following are detailed descriptions.

实施例一Embodiment 1

请参阅图1,图1为本发明实施例公开的一种面向服务的车载ECU软件升级方法的流程示意图。其中,图1所描述的方法可以应用于包括执行设备以及至少一个服务提供设备的软件升级系统中,且执行设备以及服务提供设备均可以为车载设备,本发明实施例不做限定。如图1所示,该面向服务的车载ECU软件升级方法可以包括以下操作:Please refer to FIG. 1, which is a flow chart of a service-oriented vehicle-mounted ECU software upgrade method disclosed in an embodiment of the present invention. The method described in FIG. 1 can be applied to a software upgrade system including an execution device and at least one service providing device, and both the execution device and the service providing device can be vehicle-mounted devices, which is not limited in the embodiment of the present invention. As shown in FIG. 1, the service-oriented vehicle-mounted ECU software upgrade method can include the following operations:

101、执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务。101. The execution device sends a subscription request to the target service providing device to request to subscribe to the target flash machine function service matching the target vehicle ECU.

本发明实施例中,目标服务提供设备用于提供目标刷新机功能服务,目标车载ECU为需要进行软件升级的任一车载ECU(如空调控制器或全景控制器),且提供目标刷新机功能服务的服务提供设备可以有一个或多个。当提供目标刷新机功能服务的服务提供设备有一个时,服务提供设备即为目标服务提供设备;当提供目标刷新机功能服务的服务提供设备有多个时,执行设备可以根据确定出的设备选择方式从多个服务提供设备中选择其中一个服务提供设备作为目标服务提供设备。其中,该确定出的设备选择方式可以是预选设定在执行设备中的,其可以是高优先级选择方式、空闲选择方式、高服务成功率选择方式中的其中一种或多种的组合,且高优先级选择方式表示执行设备需要从多个服务提供设备中选择优先级最高或优先级高于预设优先级的服务提供设备作为目标服务提供设备,空闲选择方式表示执行设备需要从多个服务提供设备中选择当前较为空闲的服务提供设备作为目标服务提供设备,高服务成功率选择方式表示执行设备需要从多个服务提供设备中选择建立服务提供功能的成功率最高或高于预设成功率的服务提供设备作为目标服务提供设备。进一步的,当设备选择方式有多个时,每个选择方式均有对应的优先级,执行设备可以根据设备选择方式对应的优先级由低到高的方式逐步选择出目标服务提供设备。In an embodiment of the present invention, the target service providing device is used to provide a target refresher function service, the target vehicle ECU is any vehicle ECU (such as an air conditioning controller or a panoramic controller) that needs to be software upgraded, and there may be one or more service providing devices that provide the target refresher function service. When there is one service providing device that provides the target refresher function service, the service providing device is the target service providing device; when there are multiple service providing devices that provide the target refresher function service, the execution device may select one of the service providing devices from the multiple service providing devices as the target service providing device according to the determined device selection method. Among them, the determined device selection method may be pre-selected and set in the execution device, which may be a combination of one or more of the high priority selection method, the idle selection method, and the high service success rate selection method, and the high priority selection method indicates that the execution device needs to select the service providing device with the highest priority or a priority higher than the preset priority from multiple service providing devices as the target service providing device, the idle selection method indicates that the execution device needs to select the service providing device that is currently relatively idle from multiple service providing devices as the target service providing device, and the high service success rate selection method indicates that the execution device needs to select the service providing device with the highest success rate or a success rate higher than the preset success rate from multiple service providing devices as the target service providing device. Furthermore, when there are multiple device selection methods, each selection method has a corresponding priority, and the execution device can gradually select the target service providing device according to the priorities corresponding to the device selection methods from low to high.

102、目标服务提供设备接收订阅请求,并向执行设备反馈与订阅请求相匹配的订阅确认响应。102. The target service providing device receives the subscription request and feeds back a subscription confirmation response matching the subscription request to the execution device.

本发明实施例中,该订阅确认响应用于表示目标服务提供设备向执行设备提供或发布上述目标刷新机功能服务。进一步的,在目标服务提供设备接收订阅请求之后,可以先对订阅请求进行确认,在确认之后,再执行上述的向执行设备反馈与订阅请求相匹配的订阅确认响应的操作。又进一步的,目标服务提供设备对订阅请求进行确认可以包括:对订阅请求是否符合要求进行确认、对发送订阅请求的执行设备是否符合要求进行确认、对订阅请求所请求的服务进行确认中的一种或多种的组合,本发明实施例不做限定。这样可以提高目标服务提供设备与执行设备建立服务提供功能的准确性与可靠性,进而有利于提高软件升级的准确性。In an embodiment of the present invention, the subscription confirmation response is used to indicate that the target service provider device provides or publishes the above-mentioned target refresh machine function service to the execution device. Further, after the target service provider device receives the subscription request, it can first confirm the subscription request, and after confirmation, perform the above-mentioned operation of feeding back a subscription confirmation response that matches the subscription request to the execution device. Further, the target service provider device confirms the subscription request, which may include: confirming whether the subscription request meets the requirements, confirming whether the execution device that sends the subscription request meets the requirements, and confirming the service requested by the subscription request. One or more combinations of these are not limited in the embodiment of the present invention. This can improve the accuracy and reliability of the target service provider device and the execution device in establishing the service provision function, which is beneficial to improving the accuracy of software upgrades.

103、执行设备接收订阅确认响应并向目标服务提供设备传输目标车载ECU的软件升级包。103. The execution device receives the subscription confirmation response and transmits the software upgrade package of the target vehicle ECU to the target service provider device.

其中,目标车载ECU的软件升级包是由执行设备获取到的,可以本地获取,也可以远程获取,本发明实施例不做限定。The software upgrade package of the target vehicle-mounted ECU is obtained by the execution device, and may be obtained locally or remotely, which is not limited in the embodiment of the present invention.

104、目标服务提供设备接收目标车载ECU的软件升级包,并根据目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。104. The target service providing device receives the software upgrade package of the target vehicle-mounted ECU, and executes a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU.

本发明实施例中,目标车载ECU的软件升级包可以携带有软件版本号,以便于目标服务提供设备根据该软件版本号校验目标车载ECU的软件升级包是否为最新版本的软件升级包。进一步的,目标车载ECU的软件升级包还可以携带有软件升级起始时刻,以便于目标服务提供设备在当前时刻到达软件升级起始时刻时再根据目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。其中,软件升级起始时刻是根据目标车载ECU的实际工作情况确定的,本发明实施例不做限定。需要说明的是,在接收到目标车载ECU的软件升级包,目标服务提供设备可以先对其进行存储,在目标车载ECU需要进行升级或者到达升级时刻时,再根据已存储的目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。In an embodiment of the present invention, the software upgrade package of the target vehicle ECU may carry a software version number, so that the target service provider can verify whether the software upgrade package of the target vehicle ECU is the latest version of the software upgrade package according to the software version number. Further, the software upgrade package of the target vehicle ECU may also carry a software upgrade start time, so that the target service provider can execute the software upgrade process for the target vehicle ECU according to the software upgrade package of the target vehicle ECU when the current time reaches the software upgrade start time. Among them, the software upgrade start time is determined according to the actual working condition of the target vehicle ECU, and the embodiment of the present invention does not limit it. It should be noted that after receiving the software upgrade package of the target vehicle ECU, the target service provider can first store it, and when the target vehicle ECU needs to be upgraded or reaches the upgrade time, the software upgrade process for the target vehicle ECU is executed according to the stored software upgrade package of the target vehicle ECU.

可选的,当目标车载ECU的升级类型为远程升级类型时,执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当目标车载ECU的升级类型为本地升级类型时,执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种。Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of the vehicle-mounted diagnostic device, vehicle-mounted test equipment and in-vehicle gateway ECU.

可选的,当目标刷新机功能服务为以太网刷新机功能服务时,目标服务提供设备为车内网关ECU或车载仪表控制器;当目标刷新机功能服务为CAN刷新机功能服务时,目标服务提供设备为车内网关ECU。Optionally, when the target refresh machine function service is an Ethernet refresh machine function service, the target service providing device is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresh machine function service is a CAN refresh machine function service, the target service providing device is an in-vehicle gateway ECU.

可见,实施本发明实施例所描述的面向服务的车载ECU软件升级方法能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,也即:提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。It can be seen that the service-oriented vehicle-mounted ECU software upgrade method described in the embodiment of the present invention can subscribe to the refresh machine function service and obtain the software upgrade package through the execution device (which can also be understood as the upgrade end), and the service provider device that provides the refresh machine function service (such as an ECU with a refresh machine function) publishes the service to the execution device. After confirming the software upgrade, the execution device sends the acquired software upgrade package to the service provider device that provides the refresh machine function service for software upgrade, that is: providing a service-oriented software upgrade strategy, adding the subscription and release operations of the refresh machine function service before the software upgrade, providing a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade.

实施例二Embodiment 2

请参阅图2,图2为本发明实施例公开的另一种面向服务的车载ECU软件升级方法的流程示意图。其中,图2所描述的方法可以应用于包括执行设备以及至少一个服务提供设备的软件升级系统中,且执行设备以及服务提供设备均可以为车载设备,本发明实施例不做限定。如图2所示,该面向服务的车载ECU软件升级方法可以包括以下操作:Please refer to FIG. 2, which is a flow chart of another service-oriented vehicle-mounted ECU software upgrade method disclosed in an embodiment of the present invention. The method described in FIG. 2 can be applied to a software upgrade system including an execution device and at least one service providing device, and both the execution device and the service providing device can be vehicle-mounted devices, which is not limited in the embodiment of the present invention. As shown in FIG. 2, the service-oriented vehicle-mounted ECU software upgrade method can include the following operations:

201、服务提供设备向执行设备发布对应的刷新机功能服务。201. The service providing device publishes the corresponding refresh machine function service to the execution device.

本发明实施例中,在服务提供设备与执行设备建立服务提供功能之前,部分或全部服务提供设备均可以周期性或不定时的向执行设备发布对应的刷新机功能服务,这样能够使执行设备提前确认不同服务提供设备所提供的刷新机功能服务,有利于执行设备在确定出某一车载ECU需要升级时快速、准确的选择合适的服务提供设备进行刷新机功能服务的订阅。In an embodiment of the present invention, before the service providing device and the execution device establish the service providing function, some or all of the service providing devices may periodically or irregularly publish corresponding refresher function services to the execution device. This enables the execution device to confirm in advance the refresher function services provided by different service providing devices, which is beneficial for the execution device to quickly and accurately select a suitable service providing device to subscribe to the refresher function service when it determines that a certain vehicle-mounted ECU needs to be upgraded.

202、执行设备检测是否接收到针对目标车载ECU的软件升级指令,当检测结果为否时,可以结束本次流程,也可以继续触发执行步骤202;当检测结果为是时,可以触发执行步骤203。202. The execution device detects whether a software upgrade instruction for the target vehicle ECU is received. When the detection result is no, the process can be terminated or step 202 can be triggered. When the detection result is yes, step 203 can be triggered.

本发明实施例中,软件升级指令用于指示对目标车载ECU进行软件升级,也即目标车载ECU为需要进行软件升级的任一车载ECU,例如空调控制器或全景控制器。In the embodiment of the present invention, the software upgrade instruction is used to instruct to perform software upgrade on the target vehicle ECU, that is, the target vehicle ECU is any vehicle ECU that needs to perform software upgrade, such as an air conditioning controller or a panoramic controller.

203、执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务。203. The execution device sends a subscription request to the target service providing device to request to subscribe to the target flash machine function service matching the target vehicle-mounted ECU.

其中,目标服务提供设备是多个服务提供设备中的其中一个且用于提供目标刷新机功能服务,该订阅请求的类型可以是报文类型,也即该订阅请求可以是订阅报文。The target service providing device is one of a plurality of service providing devices and is used to provide a target refresher function service. The type of the subscription request may be a message type, that is, the subscription request may be a subscription message.

204、目标服务提供设备接收订阅请求。204. The target service providing device receives the subscription request.

本发明实施例中,在接收到订阅请求之后,目标服务提供设备可以先对订阅请求进行确认,在对订阅请求确认之后,再触发执行步骤205。需要说明的是,若无法对订阅请求进行确认,目标服务提供设备可以不做任何响应,也可以反馈订阅无效响应或订阅拒绝响应,以便于执行设备及时发送符合要求的订阅请求或者选择其它合适的服务提供设备订阅目标刷新机功能服务。In the embodiment of the present invention, after receiving the subscription request, the target service provider device may first confirm the subscription request, and after confirming the subscription request, trigger the execution of step 205. It should be noted that if the subscription request cannot be confirmed, the target service provider device may not make any response, or may feedback a subscription invalid response or a subscription rejection response, so that the execution device can send a subscription request that meets the requirements in a timely manner or select other appropriate service provider devices to subscribe to the target refresh machine function service.

205、目标服务提供设备向执行设备反馈与订阅请求相匹配的订阅确认响应。205. The target service providing device feeds back a subscription confirmation response matching the subscription request to the execution device.

本发明实施例中,该订阅确认响应用于表示目标服务提供设备允许执行设备订阅目标刷新机功能服务,也即目标服务提供设备反馈订阅确认响应或者执行设备接收到目标服务提供设备反馈的订阅确认响应之后,目标服务提供设备与执行设备建立了服务提供功能。其中,该订阅确认响应的类型可以是报文类型,也即该订阅确认响应可以具体为订阅确认报文。In the embodiment of the present invention, the subscription confirmation response is used to indicate that the target service providing device allows the execution device to subscribe to the target refresher function service, that is, after the target service providing device feeds back the subscription confirmation response or the execution device receives the subscription confirmation response fed back by the target service providing device, the target service providing device and the execution device establish a service providing function. The type of the subscription confirmation response may be a message type, that is, the subscription confirmation response may be specifically a subscription confirmation message.

206、执行设备接收订阅确认响应。206. The execution device receives a subscription confirmation response.

207、执行设备向目标服务提供设备传输目标车载ECU的软件升级包。207. The execution device transmits the software upgrade package of the target vehicle-mounted ECU to the target service providing device.

208、目标服务提供设备接收目标车载ECU的软件升级包,并根据目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。208. The target service providing device receives the software upgrade package of the target vehicle-mounted ECU, and executes a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU.

本发明实施例中,该软件升级流程主要是基于UDS(Unified DiagnosticServices,统一诊断服务)更新的软件升级流程,主要包括读取上述目标车载ECU的各种版本号、DTC(Diagnostic Trouble Code,诊断故障代码)的设置、通信设置、进入编程模式、数据传输、擦除指令及完整性校验等流程,本发明实施例不做限定。In the embodiment of the present invention, the software upgrade process is mainly a software upgrade process based on UDS (Unified Diagnostic Services), which mainly includes reading various version numbers of the above-mentioned target vehicle-mounted ECU, DTC (Diagnostic Trouble Code) settings, communication settings, entering programming mode, data transmission, erase instructions and integrity verification, etc., which are not limited in the embodiment of the present invention.

需要说明的是,对于执行设备、目标服务提供设备的其它详细描述以及对于执行设备、目标服务提供设备执行的步骤的其它详细描述可以参照实施例一中的相关描述,本发明实施例不再赘述。It should be noted that for other detailed descriptions of the execution device, the target service providing device and other detailed descriptions of the steps executed by the execution device and the target service providing device, reference can be made to the relevant descriptions in Embodiment 1, and the embodiments of the present invention will not be repeated here.

在一个可选的实施例中,在执行完毕步骤203之后,执行设备还可以执行以下操作:In an optional embodiment, after executing step 203, the execution device may further perform the following operations:

执行设备检测从发送订阅请求的时刻开始的某一时间段内是否接收到目标服务提供设备反馈的订阅确认响应,若未接收到该订阅确认响应,则确认订阅失败,可以继续触发执行步骤203。其中,该某一时间段的时长是预先设定的。The execution device detects whether a subscription confirmation response fed back by the target service provider device is received within a certain time period starting from the time of sending the subscription request. If the subscription confirmation response is not received, the subscription is confirmed to have failed, and step 203 can be triggered to execute. The duration of the certain time period is preset.

在该可选的实施例中,进一步可选的,执行设备确认订阅失败之后,以及在重新触发执行步骤203之前,执行设备还可以执行以下操作:In this optional embodiment, further optionally, after the execution device confirms that the subscription fails and before re-triggering the execution of step 203, the execution device may further perform the following operations:

执行设备判断订阅失败的累计次数是否达到或超过预先设定的次数,当判断结果为否时,继续触发执行步骤203;当判断结果为是时,可以结束本次流程,也可以选择能够提供目标刷新机功能服务的其它服务提供设备作为新的目标服务提供设备,并重新触发执行步骤203。The execution device determines whether the cumulative number of subscription failures reaches or exceeds the preset number. When the judgment result is no, it continues to trigger the execution of step 203; when the judgment result is yes, it can end this process, or select other service provider devices that can provide target refresh machine function services as new target service provider devices, and re-trigger the execution of step 203.

可见,该可选的实施例能够在订阅失败之后根据订阅失败的累计次数确定是否继续执行步骤203,实现了对执行设备的订阅控制,且在订阅失败的累计次数较多时,执行设备可以自动选择其它的服务提供设备进行订阅,减少因订阅失败且持续向同一服务提供设备发送订阅请求而导致的订阅成功率低以及订阅效率低的问题。It can be seen that this optional embodiment can determine whether to continue executing step 203 according to the cumulative number of subscription failures after the subscription fails, thereby realizing subscription control over the execution device, and when the cumulative number of subscription failures is large, the execution device can automatically select other service provider devices for subscription, thereby reducing the problems of low subscription success rate and low subscription efficiency caused by subscription failures and continuous sending of subscription requests to the same service provider device.

在另一个可选的实施例中,在执行完毕步骤203之前,该方法还可以包括以下操作:In another optional embodiment, before completing step 203, the method may further include the following operations:

执行设备确定所需订阅的服务的目标类型;The execution device determines the target type of the service to be subscribed;

执行设备根据目标类型选择能够提供目标类型的服务的服务提供设备作为目标服务提供设备,并触发执行上述的向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作。The execution device selects a service provider device that can provide the target type of service as the target service provider device according to the target type, and triggers the execution of the above-mentioned operation of sending a subscription request to the target service provider device to request subscription to the target refresher function service matching the target vehicle ECU.

可见,该可选的实施例能够在发送订阅请求之前,根据所需订阅服务的类型选择合适的服务提供设备发送订阅请求,有利于提高订阅成功率以及订阅成功之后服务提供设备提供或发布的刷新机功能服务满足需要进行软件升级的车载ECU的软件升级需求。It can be seen that this optional embodiment can select a suitable service provider device to send a subscription request according to the type of required subscription service before sending the subscription request, which is conducive to improving the subscription success rate and ensuring that the refresh machine function service provided or released by the service provider device after the subscription is successful meets the software upgrade requirements of the on-board ECU that needs to be upgraded.

可选的,上述目标刷新机服务可以为CAN刷新机功能服务、以太网刷新机功能服务以及CAN-以太网混合刷新机功能服务中的其中一种,也即,一个服务提供设备可以提供的刷新机功能服务可以包括CAN刷新机功能服务、以太网刷新机功能服务以及CAN-以太网混合刷新机功能服务中的至少一种,本发明实施例不做限定。需要说明的是,服务提供设备所提供的刷新机功能服务可以根据整车实际情况进行设计分配。Optionally, the target refresher service may be one of the CAN refresher function service, Ethernet refresher function service and CAN-Ethernet hybrid refresher function service, that is, the refresher function service that a service provider can provide may include at least one of the CAN refresher function service, Ethernet refresher function service and CAN-Ethernet hybrid refresher function service, which is not limited in the embodiment of the present invention. It should be noted that the refresher function service provided by the service provider can be designed and allocated according to the actual situation of the vehicle.

可选的,当上述目标车载ECU的升级类型为远程升级类型时,上述执行设备可以为车载Tbox或者汽车上任一带有无线通信模块的车载ECU。Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device may be a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module on the car.

可选的,当上述目标车载ECU的升级类型为本地升级类型时,执行设备可以为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种。这样能够根据待升级车载ECU的升级类型适应性选择进行订阅的执行设备。Optionally, when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device may be one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU. In this way, the execution device to be subscribed can be adaptively selected according to the upgrade type of the vehicle-mounted ECU to be upgraded.

在又一个可选的实施例中,上述订阅请求可以包括上述执行设备的属性参数和/或上述执行设备所要订阅的服务类型,其中,上述执行设备的属性参数可以包括上述执行设备的设备类型、上述执行设备的识别标识码中的至少一种,本发明实施例不做限定。In another optional embodiment, the above-mentioned subscription request may include the attribute parameters of the above-mentioned execution device and/or the service type to which the above-mentioned execution device wants to subscribe, wherein the attribute parameters of the above-mentioned execution device may include at least one of the device type of the above-mentioned execution device and the identification code of the above-mentioned execution device, which is not limited in this embodiment of the present invention.

在该可选的实施例中,进一步可选的,目标服务提供设备接收订阅请求之后,还可以执行以下操作:In this optional embodiment, further optionally, after receiving the subscription request, the target service providing device may further perform the following operations:

目标服务提供设备根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备,当判断结果为是时,触发执行上述的向执行设备反馈订阅确认响应的操作。The target service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request. When the determination result is yes, the above operation of feeding back a subscription confirmation response to the execution device is triggered.

又进一步可选的,当判断出上述执行设备不为合法订阅的执行设备时,目标服务提供设备还可以进一步反馈订阅拒绝响应,以表示拒绝执行设备的订阅请求,其中,订阅拒绝响应可以包括执行设备可以解析的目标标识,该目标标识用于表示执行设备不是合法订阅的执行设备或执行设备所请求订阅的服务不是目标服务提供设备所提供的功能服务。Further optionally, when it is determined that the above-mentioned execution device is not a legally subscribed execution device, the target service provider device may further feedback a subscription rejection response to indicate the rejection of the subscription request of the execution device, wherein the subscription rejection response may include a target identifier that can be resolved by the execution device, and the target identifier is used to indicate that the execution device is not a legally subscribed execution device or the service requested to be subscribed by the execution device is not a functional service provided by the target service provider device.

又进一步可选的,目标服务提供设备根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备,包括:Further optionally, the target service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request, including:

目标服务提供设备根据订阅请求所包括的内容判断执行设备所需的服务是否为目标服务提供设备所能提供的至少一种服务中的其中一种,当判断出执行设备所需的服务为目标服务提供设备所能提供的至少一种服务中的其中一种时,确定执行设备为合法订阅的执行设备。The target service provider device determines whether the service required by the execution device is one of at least one service that the target service provider device can provide based on the content included in the subscription request. When it is determined that the service required by the execution device is one of at least one service that the target service provider device can provide, the execution device is determined to be a legally subscribed execution device.

可见,该可选的实施例还能够在服务提供设备接收到订阅请求之后根据订阅请求包括的内容对发送订阅请求的执行设备进行订阅合法性的校验,有利于提高服务提供设备与执行设备建立的服务提供功能的准确性。It can be seen that this optional embodiment can also verify the legitimacy of the subscription of the execution device sending the subscription request according to the content included in the subscription request after the service providing device receives the subscription request, which is beneficial to improving the accuracy of the service providing function established by the service providing device and the execution device.

举例来说,以通过OTA对空调控制器(CAN刷新)、全景控制器(以太网刷新)进行软件升级为例进行说明,其中,Tbox为进行订阅服务以及刷新分配功能的执行器(也即执行设备),网关提供CAN刷新机功能服务、以太网刷新机功能服务,仪表控制器提供以太网刷新机功能服务,具体流程如下所述。For example, the software upgrade of the air-conditioning controller (CAN refresh) and the panoramic controller (Ethernet refresh) through OTA is used to illustrate. Among them, Tbox is the executor (that is, the execution device) for subscription services and refresh distribution functions, the gateway provides CAN refresh machine function services and Ethernet refresh machine function services, and the instrument controller provides Ethernet refresh machine function services. The specific process is described as follows.

通过OTA对空调控制器(CAN刷新)进行软件升级主要包括以下流程:The software upgrade of the air conditioning controller (CAN refresh) via OTA mainly includes the following processes:

步骤S01:网关周期性发送提供CAN刷新机功能服务的消息;Step S01: The gateway periodically sends a message providing a CAN flash machine function service;

步骤S02:Tbox接收到升级空调控制器的软件升级指令;Step S02: Tbox receives a software upgrade instruction for upgrading the air-conditioning controller;

步骤S03:Tbox订阅网关CAN刷新机功能服务,也即Tbox发送订阅报文至网关;Step S03: Tbox subscribes to the gateway CAN refresh machine function service, that is, Tbox sends a subscription message to the gateway;

步骤S04:网关接收到订阅报文并进行订阅确认,在确认之后,发送订阅确认报文给Tbox,Tbox接收到订阅确认报文,完成订阅过程;若Tbox在指定时间内未收到网关的订阅确认报文,则订阅失败,需回到步骤S03,此过程循环N次(N为可配置次数,如3),若N次后仍然订阅失败,Tbox会选择订阅其他可提供CAN刷新机功能的控制器重新开始订阅;Step S04: The gateway receives the subscription message and confirms the subscription. After confirmation, it sends a subscription confirmation message to Tbox. Tbox receives the subscription confirmation message and completes the subscription process. If Tbox does not receive the subscription confirmation message from the gateway within the specified time, the subscription fails and it is necessary to return to step S03. This process is repeated N times (N is a configurable number, such as 3). If the subscription still fails after N times, Tbox will choose to subscribe to other controllers that can provide CAN refresher function and start subscription again.

步骤S05:Tbox传输空调控制器升级软件包到网关;Step S05: Tbox transmits the air conditioner controller upgrade software package to the gateway;

步骤S06:网关接收并保存;Step S06: The gateway receives and saves;

步骤S07:网关作为CAN刷新机对空调控制器进行软件升级流程,该流程主要是基于UDS更新的软件升级流程,主要包含读取空调控制器的各种版本号、DTC设置、通信设置、进入编程模式、数据传输、擦除指令、完整性校验等流程;Step S07: The gateway acts as a CAN refresher to perform a software upgrade process on the air-conditioning controller. This process is mainly based on the software upgrade process of UDS update, and mainly includes reading various version numbers of the air-conditioning controller, DTC settings, communication settings, entering programming mode, data transmission, erasing instructions, integrity verification and other processes;

步骤S08:空调控制器软件升级完成。Step S08: The air conditioning controller software upgrade is completed.

以及,通过OTA对全景控制器(以太网刷新)进行软件升级包括以下流程:And, software upgrade of the panoramic controller via OTA (Ethernet refresh) includes the following process:

步骤S11:网关、仪表控制器周期性发送提供以太网刷新机功能服务的消息;Step S11: The gateway and the instrument controller periodically send messages providing Ethernet refresh machine function services;

步骤S12:Tbox接收到升级全景制器的软件升级指令;Step S12: Tbox receives a software upgrade instruction for upgrading the panoramic controller;

步骤S13:Tbox根据自身策略选择网关或仪表控制器中的其中一个订阅以太网刷新机功能服务,以选择网关进行订阅以太网刷新机功能服务为例,Tbox发送订阅报文给到网关;Step S13: Tbox selects one of the gateways or instrument controllers to subscribe to the Ethernet refresh machine function service according to its own strategy. Taking the gateway as an example to subscribe to the Ethernet refresh machine function service, Tbox sends a subscription message to the gateway;

步骤S14:网关接收到订阅报文并进行订阅确认,确认之后发送订阅确认报文至Tbox,Tbox接收到订阅确认报文,完成订阅过程;若Tbox在指定时间内未收到网关的订阅确认报文,则订阅失败,需回到步骤03,此过程循环N次(N为可配置次数,如3),若N次后仍然订阅失败,Tbox会选择订阅其他可提供以太网刷新机功能的控制器(如仪表控制器)重新开始订阅;Step S14: The gateway receives the subscription message and confirms the subscription. After confirmation, it sends a subscription confirmation message to Tbox. Tbox receives the subscription confirmation message and completes the subscription process. If Tbox does not receive the subscription confirmation message from the gateway within the specified time, the subscription fails and it needs to return to step 03. This process is repeated N times (N is a configurable number, such as 3). If the subscription still fails after N times, Tbox will choose to subscribe to other controllers that can provide Ethernet refresh machine function (such as instrument controller) and start subscription again.

步骤S15:Tbox传输全景控制器升级软件包到网关;Step S15: Tbox transmits the panoramic controller upgrade software package to the gateway;

步骤S16:网关接收并保存;Step S16: The gateway receives and saves;

步骤S17:网关作为以太网刷新机对全景控制器进行软件升级流程,该流程主要基于UDS更新的软件升级流程,主要包含读取全景控制器的各种版本号、DTC设置、通信设置、进入编程模式、数据传输、擦除指令、完整性校验等流程;Step S17: The gateway acts as an Ethernet refresher to perform a software upgrade process on the panoramic controller. This process is mainly based on the software upgrade process updated by UDS, and mainly includes reading various version numbers of the panoramic controller, DTC settings, communication settings, entering programming mode, data transmission, erasing instructions, integrity verification and other processes;

步骤S18:全景控制器软件升级完成。Step S18: The panoramic controller software upgrade is completed.

可见,实施本发明实施例所描述的面向服务的车载ECU软件升级方法能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,也即:提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。此外,还能够使执行设备提前确认不同服务提供设备所提供的刷新机功能服务,有利于执行设备在确定出某一车载ECU需要升级时快速、准确的选择合适的服务提供设备进行刷新机功能服务的订阅。此外,还能够实现对执行设备的订阅控制,且在订阅失败的累计次数较多时,执行设备可以自动选择其它的服务提供设备进行订阅,减少因订阅失败且持续向同一服务提供设备发送订阅请求而导致的订阅成功率低以及订阅效率低的问题。此外,还能够在发送订阅请求之前,根据所需订阅服务的类型选择合适的服务提供设备发送订阅请求,有利于提高订阅成功率以及订阅成功之后服务提供设备提供或发布的刷新机功能服务满足需要进行软件升级的车载ECU的软件升级需求。此外,还能够根据待升级车载ECU的升级类型适应性选择进行订阅的执行设备,以及还能够在服务提供设备接收到订阅请求之后根据订阅请求包括的内容对发送订阅请求的执行设备进行订阅合法性的校验,有利于提高服务提供设备与执行设备建立的服务提供功能的准确性。It can be seen that the service-oriented vehicle ECU software upgrade method described in the embodiment of the present invention can be implemented by the execution device (also understood as the upgrade end) to subscribe to the refresh machine function service and obtain the software upgrade package, and the service providing device (such as the ECU with the refresh machine function) that provides the refresh machine function service publishes the service to the execution device, and after confirming the software upgrade, the execution device sends the acquired software upgrade package to the service providing device that provides the refresh machine function service for software upgrade, that is: providing a service-oriented software upgrade strategy, adding the subscription and publishing operations of the refresh machine function service before the software upgrade, and providing a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade. In addition, it can also enable the execution device to confirm the refresh machine function service provided by different service providing devices in advance, which is conducive to the execution device to quickly and accurately select the appropriate service providing device to subscribe to the refresh machine function service when determining that a certain vehicle ECU needs to be upgraded. In addition, it can also realize the subscription control of the execution device, and when the cumulative number of subscription failures is large, the execution device can automatically select other service providing devices for subscription, reducing the problems of low subscription success rate and low subscription efficiency caused by subscription failure and continuous sending of subscription requests to the same service providing device. In addition, before sending a subscription request, it is also possible to select a suitable service provider device to send a subscription request according to the type of subscription service required, which is conducive to improving the subscription success rate and ensuring that the refresher function service provided or released by the service provider device after the subscription is successful meets the software upgrade requirements of the on-board ECU that needs to be upgraded. In addition, it is also possible to adaptively select the execution device for subscription according to the upgrade type of the on-board ECU to be upgraded, and after the service provider device receives the subscription request, it is also possible to verify the legality of the subscription of the execution device that sent the subscription request according to the content included in the subscription request, which is conducive to improving the accuracy of the service provision function established by the service provider device and the execution device.

实施例三Embodiment 3

本发明实施例公开了又一种面向服务的车载ECU软件升级方法,该方法可以应用于执行设备中,该执行设备为车载设备,且该方法可以包括以下操作:The embodiment of the present invention discloses another service-oriented vehicle-mounted ECU software upgrade method, which can be applied to an execution device, which is a vehicle-mounted device, and the method may include the following operations:

执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务;The execution device sends a subscription request to the target service provider device to request to subscribe to the target flash machine function service matching the target vehicle ECU;

执行设备接收订阅确认响应并向目标服务提供设备传输目标车载ECU的软件升级包,以触发目标服务提供设备接收目标车载ECU的软件升级包并根据目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。The execution device receives the subscription confirmation response and transmits the software upgrade package of the target vehicle ECU to the target service provider device, so as to trigger the target service provider device to receive the software upgrade package of the target vehicle ECU and execute the software upgrade process for the target vehicle ECU according to the software upgrade package of the target vehicle ECU.

可选的,在执行上述的向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务之前,该方法还可以包括以下操作:Optionally, before executing the above-mentioned sending of a subscription request to the target service providing device to request to subscribe to the target flash machine function service matching the target vehicle ECU, the method may further include the following operations:

执行设备检测是否接收到针对某一车载ECU的软件升级指令;The execution device detects whether a software upgrade instruction for a certain vehicle ECU is received;

当接收到针对某一车载ECU的软件升级指令时,执行设备执行上述的向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作;When receiving a software upgrade instruction for a certain vehicle-mounted ECU, the execution device executes the above-mentioned operation of sending a subscription request to the target service providing device to request to subscribe to the target flash machine function service matching the target vehicle-mounted ECU;

其中,目标车载ECU为该某一车载ECU。The target vehicle-mounted ECU is the certain vehicle-mounted ECU.

可选的,执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务之前,该方法还包括:Optionally, before the execution device sends a subscription request to the target service providing device to request to subscribe to a target flash machine function service matching the target vehicle-mounted ECU, the method further includes:

执行设备确定所需订阅的服务的目标类型;The execution device determines the target type of the service to be subscribed;

执行设备根据目标类型选择能够提供目标类型的服务的服务提供设备作为目标服务提供设备,并触发执行上述的向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作。The execution device selects a service provider device that can provide the target type of service as the target service provider device according to the target type, and triggers the execution of the above-mentioned operation of sending a subscription request to the target service provider device to request subscription to the target refresher function service matching the target vehicle ECU.

可选的,上述目标刷新机功能服务为CAN刷新机功能服务、以太网刷新机功能服务以及CAN-以太网混合刷新机功能服务中的其中一种。Optionally, the above-mentioned target refresh machine function service is one of a CAN refresh machine function service, an Ethernet refresh machine function service and a CAN-Ethernet hybrid refresh machine function service.

可选的,当目标车载ECU的升级类型为远程升级类型时,执行设备为车载Tbox或任一带有无线通信模块的车载ECU;和/或,当目标车载ECU的升级类型为本地升级类型时,执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种。Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; and/or, when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of the vehicle-mounted diagnostic device, the vehicle-mounted test equipment and the in-vehicle gateway ECU.

可选的,上述订阅请求包括执行设备的属性参数和/或执行设备所要订阅的服务类型,执行设备的属性参数包括执行设备的设备类型和/或执行设备的识别标识码。进一步可选的,执行设备向目标服务提供设备发送订阅请求,以触发目标服务订阅设备执行以下操作:Optionally, the subscription request includes attribute parameters of the execution device and/or the type of service to be subscribed by the execution device, and the attribute parameters of the execution device include the device type of the execution device and/or the identification code of the execution device. Further optionally, the execution device sends a subscription request to the target service providing device to trigger the target service subscription device to perform the following operations:

由目标服务提供设备根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备;The target service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request;

当判断出执行设备为合法订阅的执行设备时,由目标服务提供设备执行向执行设备反馈订阅确认响应的操作。When it is determined that the execution device is a legally subscribed execution device, the target service providing device performs an operation of feeding back a subscription confirmation response to the execution device.

进一步的,由目标服务提供设备根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备,可以包括:Furthermore, the target service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request, which may include:

由目标服务提供设备根据订阅请求所包括的内容判断执行设备所需的服务是否为目标服务提供设备所能提供的至少一种服务中的其中一种,当判断出执行设备所需的服务为目标服务提供设备所能提供的至少一种服务中的其中一种时,确定执行设备为合法订阅的执行设备。The target service provider device determines whether the service required by the execution device is one of at least one service that the target service provider device can provide based on the content included in the subscription request. When it is determined that the service required by the execution device is one of at least one service that the target service provider device can provide, the execution device is determined to be a legally subscribed execution device.

需要说明的是,对于本发明实施例中执行设备、服务提供设备的相关其它描述可以参照实施例一及实施例二中的相应描述,本发明实施例不再赘述。It should be noted that for other related descriptions of the execution device and the service providing device in the embodiments of the present invention, reference may be made to the corresponding descriptions in Embodiment 1 and Embodiment 2, and the embodiments of the present invention will not be repeated herein.

可见,实施本发明实施例能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,也即:提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。It can be seen that the implementation of the embodiment of the present invention can subscribe to the refresh machine function service and obtain the software upgrade package through the execution device (which can also be understood as the upgrade end), and the service provider device that provides the refresh machine function service (such as an ECU with a refresh machine function) publishes the service to the execution device. After confirming the software upgrade, the execution device sends the acquired software upgrade package to the service provider device that provides the refresh machine function service for software upgrade, that is: providing a service-oriented software upgrade strategy, adding the subscription and release operations of the refresh machine function service before the software upgrade, providing a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade.

实施例四Embodiment 4

本发明实施例公开了又一种面向服务的车载ECU软件升级方法,该方法可以应用于服务提供设备中,该服务提供设备为车载设备,且该方法可以包括以下操作:The embodiment of the present invention discloses another service-oriented vehicle-mounted ECU software upgrade method, which can be applied to a service providing device, which is a vehicle-mounted device, and the method may include the following operations:

服务提供设备接收执行设备发送的订阅请求,该订阅请求用于请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,服务提供设备用于提供目标刷新机功能服务,目标车载ECU为需要进行软件升级的任一车载ECU;The service providing device receives a subscription request sent by the execution device, the subscription request being used to request subscription to a target flasher function service matching a target vehicle-mounted ECU, wherein the service providing device is used to provide the target flasher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded;

服务提供设备向执行设备反馈与订阅请求相匹配的订阅确认响应;The service providing device feeds back a subscription confirmation response matching the subscription request to the execution device;

服务提供设备接收目标车载ECU的软件升级包;The service provider receives the software upgrade package of the target vehicle ECU;

服务提供设备根据目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。The service providing device executes a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU.

其中,目标车载ECU的软件升级包是由执行设备接收到订阅确认响应之后发送至服务提供设备的。Among them, the software upgrade package of the target vehicle-mounted ECU is sent to the service providing device by the execution device after receiving the subscription confirmation response.

可选的,目标刷新机功能服务为CAN刷新机功能服务、以太网刷新机功能服务以及CAN-以太网混合刷新机功能服务中的其中一种。Optionally, the target refresh machine function service is one of a CAN refresh machine function service, an Ethernet refresh machine function service, and a CAN-Ethernet hybrid refresh machine function service.

可选的,当目标车载ECU的升级类型为远程升级类型时,执行设备为车载Tbox或任一带有无线通信模块的车载ECU;和/或,当目标车载ECU的升级类型为本地升级类型时,执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种。Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; and/or, when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of the vehicle-mounted diagnostic device, the vehicle-mounted test equipment and the in-vehicle gateway ECU.

可选的,上述订阅请求包括执行设备的属性参数和/或执行设备所要订阅的服务类型,执行设备的属性参数包括执行设备的设备类型和/或执行设备的识别标识码。进一步可选的,服务提供设备接收订阅请求之后,还可以执行以下才做:Optionally, the subscription request includes attribute parameters of the execution device and/or the type of service to be subscribed by the execution device, and the attribute parameters of the execution device include the device type of the execution device and/or the identification code of the execution device. Further, after receiving the subscription request, the service providing device may also perform the following:

根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备;Determine whether the execution device is a legally subscribed execution device according to the content included in the subscription request;

当判断出执行设备为合法订阅的执行设备时,执行上述的向执行设备反馈订阅确认响应的操作。When it is determined that the execution device is a legally subscribed execution device, the above-mentioned operation of feeding back a subscription confirmation response to the execution device is performed.

进一步的,服务提供设备根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备,可以包括:Furthermore, the service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request, which may include:

根据订阅请求所包括的内容判断执行设备所需的服务是否为目标服务提供设备所能提供的至少一种服务中的其中一种,当判断出执行设备所需的服务为目标服务提供设备所能提供的至少一种服务中的其中一种时,确定执行设备为合法订阅的执行设备。Determine whether the service required by the execution device is one of at least one service that the target service provider can provide based on the content included in the subscription request. When it is determined that the service required by the execution device is one of at least one service that the target service provider can provide, determine that the execution device is a legally subscribed execution device.

需要说明的是,对于本发明实施例中执行设备、服务提供设备的相关其它描述可以参照实施例一及实施例二中的相应描述,本发明实施例不再赘述。It should be noted that for other related descriptions of the execution device and the service providing device in the embodiments of the present invention, reference may be made to the corresponding descriptions in Embodiment 1 and Embodiment 2, and the embodiments of the present invention will not be repeated herein.

可见,实施本发明实施例能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,也即:提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。It can be seen that the implementation of the embodiment of the present invention can subscribe to the refresh machine function service and obtain the software upgrade package through the execution device (which can also be understood as the upgrade end), and the service provider device that provides the refresh machine function service (such as an ECU with a refresh machine function) publishes the service to the execution device. After confirming the software upgrade, the execution device sends the acquired software upgrade package to the service provider device that provides the refresh machine function service for software upgrade, that is: providing a service-oriented software upgrade strategy, adding the subscription and release operations of the refresh machine function service before the software upgrade, providing a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade.

实施例五Embodiment 5

请参阅图3,图3为本发明实施例公开的一种面向服务的车载ECU软件升级系统的结构示意图。如图3所示,该面向服务的车载ECU软件升级系统可以包括执行设备以及能够提供执行设备所需服务的至少一个服务提供设备,执行设备及服务提供设备均为车载设备且执行设备可以包括第一通信模块301以及传输模块302,服务提供设备可以包括第二通信模块401、反馈模块402以及升级控制模块403,其中:Please refer to FIG3 , which is a schematic diagram of the structure of a service-oriented vehicle-mounted ECU software upgrade system disclosed in an embodiment of the present invention. As shown in FIG3 , the service-oriented vehicle-mounted ECU software upgrade system may include an execution device and at least one service providing device capable of providing services required by the execution device, the execution device and the service providing device are both vehicle-mounted devices and the execution device may include a first communication module 301 and a transmission module 302, the service providing device may include a second communication module 401, a feedback module 402 and an upgrade control module 403, wherein:

第一通信模块301,用于向服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,服务提供设备用于提供目标刷新机功能服务,目标车载ECU为需要进行软件升级的任一车载ECU。The first communication module 301 is used to send a subscription request to a service provider to request to subscribe to a target refresher function service that matches a target vehicle-mounted ECU, wherein the service provider is used to provide a target refresher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to perform a software upgrade.

第二通信模块401,用于接收订阅请求。The second communication module 401 is used to receive a subscription request.

反馈模块402,用于向执行设备反馈与订阅请求相匹配的订阅确认响应。The feedback module 402 is used to feed back a subscription confirmation response matching the subscription request to the execution device.

第一通信模块301,还用于接收订阅确认响应。The first communication module 301 is further configured to receive a subscription confirmation response.

传输模块302,用于在第一通信模块301接收到订阅确认响应之后,向服务提供设备传输目标车载ECU的软件升级包。The transmission module 302 is used to transmit the software upgrade package of the target vehicle-mounted ECU to the service providing device after the first communication module 301 receives the subscription confirmation response.

第二通信模块401,还用于接收目标车载ECU的软件升级包。The second communication module 401 is also used to receive the software upgrade package of the target vehicle-mounted ECU.

升级控制模块403,用于根据目标车载ECU的软件升级包执行针对目标车载ECU的软件升级流程。The upgrade control module 403 is used to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU.

其中,上述目标刷新机功能服务为CAN刷新机功能服务、以太网刷新机功能服务以及CAN-以太网混合刷新机功能服务中的其中一种。Among them, the above-mentioned target refresh machine function service is one of the CAN refresh machine function service, Ethernet refresh machine function service and CAN-Ethernet hybrid refresh machine function service.

可选的,当目标车载ECU的升级类型为远程升级类型时,执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当目标车载ECU的升级类型为本地升级类型时,执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种。Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of the vehicle-mounted diagnostic device, vehicle-mounted test equipment and in-vehicle gateway ECU.

可选的,当目标刷新机功能服务为以太网刷新机功能服务时,服务提供设备为车内网关ECU或车载仪表控制器;当目标刷新机功能服务为CAN刷新机功能服务时,服务提供设备为车内网关ECU。Optionally, when the target refresh machine function service is an Ethernet refresh machine function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresh machine function service is a CAN refresh machine function service, the service provider is an in-vehicle gateway ECU.

在一个可选的实施例中,如图4所示,执行设备还可以包括检测模块303,其中:In an optional embodiment, as shown in FIG4 , the execution device may further include a detection module 303, wherein:

检测模块303,用于检测是否接收到针对目标车载ECU的软件升级指令;当接收到针对目标车载ECU的软件升级指令时,触发第一通信模块301执行上述的向服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作。The detection module 303 is used to detect whether a software upgrade instruction for the target vehicle-mounted ECU is received; when a software upgrade instruction for the target vehicle-mounted ECU is received, the first communication module 301 is triggered to execute the above-mentioned operation of sending a subscription request to the service provider device to request to subscribe to the target refresh machine function service that matches the target vehicle-mounted ECU.

在又一个可选的实施例中,如图4所示,执行设备还可以包括:In yet another optional embodiment, as shown in FIG4 , the execution device may further include:

确定模块304,用于确定所需订阅的服务的目标类型。The determination module 304 is used to determine the target type of the service to be subscribed.

选择模块305,用于根据目标类型选择能够提供目标类型的服务的服务提供设备,并触发第一通信模块301执行上述的向服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作。The selection module 305 is used to select a service provider device that can provide services of the target type according to the target type, and trigger the first communication module 301 to execute the above-mentioned operation of sending a subscription request to the service provider device to request subscription to the target refresher function service that matches the target vehicle-mounted ECU.

在又一个可选的实施例中,上述订阅请求可以包括执行设备的属性参数和/或执行设备所要订阅的服务类型,执行设备的属性参数可以包括执行设备的设备类型和/或执行设备的识别标识码。可选的,如图4所示,服务提供设备还可以包括:In another optional embodiment, the subscription request may include attribute parameters of the execution device and/or the type of service to be subscribed by the execution device, and the attribute parameters of the execution device may include the device type of the execution device and/or the identification code of the execution device. Optionally, as shown in FIG4 , the service providing device may further include:

判断模块404,用于在第二通信模块401接收订阅请求之后,根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备;当判断出执行设备为合法订阅的执行设备时,触发反馈模块402执行上述的向执行设备反馈订阅确认响应的操作。The judgment module 404 is used to judge whether the execution device is a legally subscribed execution device based on the content included in the subscription request after the second communication module 401 receives the subscription request; when it is judged that the execution device is a legally subscribed execution device, the feedback module 402 is triggered to perform the above-mentioned operation of feeding back a subscription confirmation response to the execution device.

又进一步可选的,判断模块404根据订阅请求所包括的内容判断执行设备是否为合法订阅的执行设备的具体方式可以为:Further optionally, the specific manner in which the judgment module 404 judges whether the execution device is a legally subscribed execution device according to the content included in the subscription request may be:

根据订阅请求所包括的内容判断执行设备所需的服务是否为目标服务提供设备所能提供的至少一种服务中的其中一种,当判断出执行设备所需的服务为目标服务提供设备所能提供的至少一种服务中的其中一种时,确定执行设备为合法订阅的执行设备。Determine whether the service required by the execution device is one of at least one service that the target service provider can provide based on the content included in the subscription request. When it is determined that the service required by the execution device is one of at least one service that the target service provider can provide, determine that the execution device is a legally subscribed execution device.

可见,实施本发明实施例能够通过执行设备(也可理解为升级端)进行刷新机功能服务的订阅以及软件升级包的获取,且由提供刷新机功能服务的服务提供设备(如具有刷新机功能的ECU)向执行设备发布服务,待确认软件升级之后,由执行设备将获取的软件升级包发送至提供刷新机功能服务的服务提供设备进行软件升级,也即:提供面向服务的软件升级策略,在软件升级之前增加了刷新机功能服务的订阅和发布操作,为整车ECU软件升级提供了更加灵活、更加安全、更加可配置化的软件升级方式。It can be seen that the implementation of the embodiment of the present invention can subscribe to the refresh machine function service and obtain the software upgrade package through the execution device (which can also be understood as the upgrade end), and the service provider device that provides the refresh machine function service (such as an ECU with a refresh machine function) publishes the service to the execution device. After confirming the software upgrade, the execution device sends the acquired software upgrade package to the service provider device that provides the refresh machine function service for software upgrade, that is: providing a service-oriented software upgrade strategy, adding the subscription and release operations of the refresh machine function service before the software upgrade, providing a more flexible, safer and more configurable software upgrade method for the whole vehicle ECU software upgrade.

实施例六Embodiment 6

本发明实施例公开了一种执行设备,该执行设备可以如图3或图4中所描述的面向服务的车载ECU软件升级系统中的执行设备,也可以如图5所示。其中,如图5所示,该执行设备为车载设备且可以包括:The embodiment of the present invention discloses an execution device, which may be an execution device in a service-oriented vehicle-mounted ECU software upgrade system as described in FIG3 or FIG4, or may be as shown in FIG5. As shown in FIG5, the execution device is a vehicle-mounted device and may include:

存储有可执行程序代码的存储器501;A memory 501 storing executable program codes;

与存储器501耦合的处理器502;a processor 502 coupled to the memory 501;

处理器502调用存储器501中存储的可执行程序代码,用于执行实施例一或实施例二中所描述的面向服务的车载ECU软件升级方法中执行设备所执行的部分或全部步骤。The processor 502 calls the executable program code stored in the memory 501 to execute part or all of the steps executed by the execution device in the service-oriented vehicle ECU software upgrade method described in the first or second embodiment.

实施例七Embodiment 7

本发明实施例公开了一种服务提供设备,该执行设备可以如图3或图4中所描述的面向服务的车载ECU软件升级系统中的服务提供设备,也可以如图6所示。其中,如图6所示,该服务提供设备为车载设备且可以包括:The embodiment of the present invention discloses a service providing device, which can be a service providing device in a service-oriented vehicle-mounted ECU software upgrade system as described in FIG3 or FIG4, or as shown in FIG6. As shown in FIG6, the service providing device is a vehicle-mounted device and can include:

存储有可执行程序代码的存储器601;A memory 601 storing executable program codes;

与存储器601耦合的处理器602;a processor 602 coupled to the memory 601;

处理器602调用存储器601中存储的可执行程序代码,用于执行实施例一或实施例二中所描述的面向服务的车载ECU软件升级方法中目标服务提供设备所执行的部分或全部步骤。The processor 602 calls the executable program code stored in the memory 601 to execute part or all of the steps executed by the target service providing device in the service-oriented vehicle ECU software upgrade method described in the first or second embodiment.

实施例八Embodiment 8

本发明实施例公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,该计算机程序使得计算机执行实施例一或实施例二中面向服务的车载ECU软件升级方法中执行设备所执行的部分或全部步骤。An embodiment of the present invention discloses a computer-readable storage medium that stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps executed by an execution device in the service-oriented vehicle-mounted ECU software upgrade method in embodiment one or embodiment two.

实施例九Embodiment 9

本发明实施例公开了一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可操作来使计算机执行实施例一或实施例二中所描述的面向服务的车载ECU软件升级方法中执行设备所执行的部分或全部步骤。An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute part or all of the steps executed by an execution device in the service-oriented vehicle-mounted ECU software upgrade method described in Example 1 or Example 2.

实施例十Embodiment 10

本发明实施例公开了零一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,该计算机程序使得计算机执行实施例一或实施例二中面向服务的车载ECU软件升级方法中目标服务提供设备所执行的部分或全部步骤。An embodiment of the present invention discloses a computer-readable storage medium that stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps performed by a target service providing device in the service-oriented vehicle ECU software upgrade method in embodiment one or embodiment two.

实施例十一Embodiment 11

本发明实施例公开了另一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可操作来使计算机执行实施例一或实施例二中所描述的面向服务的车载ECU软件升级方法中目标服务提供设备所执行的部分或全部步骤。An embodiment of the present invention discloses another computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be operated to enable a computer to execute part or all of the steps performed by the target service providing device in the service-oriented vehicle ECU software upgrade method described in Example 1 or Example 2.

以上所描述的的实施例仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without paying creative labor.

通过以上的实施例的具体描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(ErasableProgrammable Read Only Memory,EPROM)、一次可编程只读存储器(One-timeProgrammable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

最后应说明的是:本发明实施例公开的一种面向服务的车载ECU软件升级方法及系统、相关设备所揭露的仅为本发明较佳实施例而已,仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各项实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应的技术方案的本质脱离本发明各项实施例技术方案的精神和范围。Finally, it should be noted that the service-oriented vehicle-mounted ECU software upgrade method and system, and related equipment disclosed in the embodiments of the present invention only disclose preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1.一种面向服务的车载ECU软件升级方法,其特征在于,所述方法应用于包括执行设备以及至少一个服务提供设备的软件升级系统中,所述执行设备及所述服务提供设备均为车载设备,所述方法包括:1. A service-oriented vehicle-mounted ECU software upgrade method, characterized in that the method is applied to a software upgrade system including an execution device and at least one service providing device, wherein both the execution device and the service providing device are vehicle-mounted devices, and the method comprises: 所述执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述目标服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;The execution device sends a subscription request to the target service providing device to request to subscribe to the target refresh machine function service matching the target vehicle-mounted ECU, wherein the target service providing device is used to provide the target refresh machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded; 所述目标服务提供设备接收所述订阅请求,并向所述执行设备反馈与所述订阅请求相匹配的订阅确认响应;The target service providing device receives the subscription request and feeds back a subscription confirmation response matching the subscription request to the execution device; 所述执行设备接收所述订阅确认响应并向所述目标服务提供设备传输所述目标车载ECU的软件升级包;The execution device receives the subscription confirmation response and transmits the software upgrade package of the target vehicle ECU to the target service providing device; 所述目标服务提供设备接收所述目标车载ECU的软件升级包,并根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;所述目标车载ECU的软件升级包携带有:用于供所述目标服务提供设备校验所述目标车载ECU的软件升级包是否为最新版本的软件升级包的软件版本号,以及,软件升级起始时刻,且所述软件升级起始时刻是根据所述目标车载ECU的实际工作情况确定的;The target service providing device receives the software upgrade package of the target vehicle-mounted ECU, and executes the software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU; the software upgrade package of the target vehicle-mounted ECU carries: a software version number for the target service providing device to verify whether the software upgrade package of the target vehicle-mounted ECU is the latest version of the software upgrade package, and a software upgrade start time, and the software upgrade start time is determined according to the actual working condition of the target vehicle-mounted ECU; 其中,当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;Among them, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU; 当所述目标刷新机功能服务为以太网刷新机功能服务时,所述目标服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述目标服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the target service providing device is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the target service providing device is an in-vehicle gateway ECU. 2.根据权利要求1所述的面向服务的车载ECU软件升级方法,其特征在于,所述方法还包括:2. The service-oriented vehicle-mounted ECU software upgrade method according to claim 1, characterized in that the method further comprises: 所述执行设备检测是否接收到针对某一车载ECU的软件升级指令;The execution device detects whether a software upgrade instruction for a certain vehicle-mounted ECU is received; 当接收到针对所述某一车载ECU的软件升级指令时,所述执行设备执行所述的向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作;When receiving a software upgrade instruction for the certain vehicle-mounted ECU, the execution device executes the operation of sending a subscription request to the target service providing device to request to subscribe to the target flash machine function service matching the target vehicle-mounted ECU; 其中,所述目标车载ECU为所述某一车载ECU。Wherein, the target vehicle-mounted ECU is the certain vehicle-mounted ECU. 3.根据权利要求1或2所述的面向服务的车载ECU软件升级方法,其特征在于,所述执行设备向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务之前,所述方法还包括:3. The service-oriented vehicle ECU software upgrade method according to claim 1 or 2, characterized in that before the execution device sends a subscription request to the target service provider device to request to subscribe to the target flash machine function service matching the target vehicle ECU, the method further comprises: 所述执行设备确定所需订阅的服务的目标类型;The execution device determines a target type of a service to be subscribed to; 所述执行设备根据所述目标类型选择能够提供所述目标类型的服务的服务提供设备作为目标服务提供设备,并触发执行所述的向目标服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作;The execution device selects a service providing device that can provide the target type of service as the target service providing device according to the target type, and triggers the execution of the operation of sending a subscription request to the target service providing device to request to subscribe to the target flash machine function service that matches the target vehicle-mounted ECU; 其中,所述订阅请求包括所述执行设备的属性参数和/或所述执行设备所要订阅的服务类型,所述执行设备的属性参数包括所述执行设备的设备类型和/或所述执行设备的识别标识码。The subscription request includes attribute parameters of the execution device and/or the type of service to be subscribed by the execution device, and the attribute parameters of the execution device include the device type of the execution device and/or the identification code of the execution device. 4.根据权利要求3所述的面向服务的车载ECU软件升级方法,其特征在于,所述目标服务提供设备接收所述订阅请求之后,所述方法还包括:4. The service-oriented vehicle ECU software upgrade method according to claim 3, characterized in that after the target service providing device receives the subscription request, the method further comprises: 所述目标服务提供设备根据所述订阅请求所包括的内容判断所述执行设备是否为合法订阅的执行设备;The target service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request; 当判断出所述执行设备为所述合法订阅的执行设备时,所述目标服务提供设备执行所述的向所述执行设备反馈订阅确认响应的操作;When it is determined that the execution device is the legally subscribed execution device, the target service providing device performs the operation of feeding back a subscription confirmation response to the execution device; 其中,所述目标服务提供设备根据所述订阅请求所包括的内容判断所述执行设备是否为合法订阅的执行设备,包括:The target service providing device determines whether the execution device is a legally subscribed execution device according to the content included in the subscription request, including: 所述目标服务提供设备根据所述订阅请求所包括的内容判断所述执行设备所需的服务是否为所述目标服务提供设备所能提供的至少一种服务中的其中一种,当判断出所述执行设备所需的服务为所述目标服务提供设备所能提供的至少一种服务中的其中一种时,确定所述执行设备为合法订阅的执行设备。The target service provider device determines whether the service required by the execution device is one of at least one service that the target service provider device can provide based on the content included in the subscription request. When it is determined that the service required by the execution device is one of at least one service that the target service provider device can provide, the execution device is determined to be a legally subscribed execution device. 5.一种面向服务的车载ECU软件升级系统,其特征在于,所述系统至少包括执行设备以及能够提供所述执行设备所需服务的至少一个服务提供设备,所述执行设备及所述服务提供设备均为车载设备;5. A service-oriented vehicle-mounted ECU software upgrade system, characterized in that the system comprises at least an execution device and at least one service providing device capable of providing services required by the execution device, and both the execution device and the service providing device are vehicle-mounted devices; 所述执行设备包括第一通信模块以及传输模块,所述服务提供设备包括第二通信模块、反馈模块以及升级控制模块,其中:The execution device includes a first communication module and a transmission module, and the service providing device includes a second communication module, a feedback module and an upgrade control module, wherein: 所述第一通信模块,用于向所述服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;The first communication module is used to send a subscription request to the service provider to request to subscribe to a target flasher function service that matches a target vehicle-mounted ECU, wherein the service provider is used to provide the target flasher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded; 所述第二通信模块,用于接收所述订阅请求;The second communication module is used to receive the subscription request; 所述反馈模块,用于向所述执行设备反馈与所述订阅请求相匹配的订阅确认响应;The feedback module is used to feed back a subscription confirmation response matching the subscription request to the execution device; 所述第一通信模块,还用于接收所述订阅确认响应;The first communication module is further used to receive the subscription confirmation response; 所述传输模块,用于在所述第一通信模块接收到所述订阅确认响应之后,向所述服务提供设备传输所述目标车载ECU的软件升级包;所述目标车载ECU的软件升级包携带有:用于供目标服务提供设备校验所述目标车载ECU的软件升级包是否为最新版本的软件升级包的软件版本号,以及,软件升级起始时刻,且所述软件升级起始时刻是根据所述目标车载ECU的实际工作情况确定的;The transmission module is used to transmit the software upgrade package of the target vehicle-mounted ECU to the service providing device after the first communication module receives the subscription confirmation response; the software upgrade package of the target vehicle-mounted ECU carries: a software version number for the target service providing device to verify whether the software upgrade package of the target vehicle-mounted ECU is the latest version of the software upgrade package, and a software upgrade start time, and the software upgrade start time is determined according to the actual working condition of the target vehicle-mounted ECU; 所述第二通信模块,还用于接收所述目标车载ECU的软件升级包;The second communication module is further used to receive the software upgrade package of the target vehicle-mounted ECU; 所述升级控制模块,用于根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;The upgrade control module is used to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU; 其中,当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;Among them, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU; 当所述目标刷新机功能服务为以太网刷新机功能服务时,所述服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the service provider is an in-vehicle gateway ECU. 6.根据权利要求5所述的面向服务的车载ECU软件升级系统,其特征在于,所述执行设备还包括检测模块,其中:6. The service-oriented vehicle ECU software upgrade system according to claim 5, characterized in that the execution device further comprises a detection module, wherein: 所述检测模块,用于检测是否接收到针对所述目标车载ECU的软件升级指令;当接收到针对所述目标车载ECU的软件升级指令时,触发所述第一通信模块执行所述的向所述服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作。The detection module is used to detect whether a software upgrade instruction for the target vehicle-mounted ECU is received; when a software upgrade instruction for the target vehicle-mounted ECU is received, the first communication module is triggered to execute the operation of sending a subscription request to the service provider device to request subscription to the target refresh machine function service that matches the target vehicle-mounted ECU. 7.根据权利要求5或6所述的面向服务的车载ECU软件升级系统,其特征在于,所述执行设备还包括:7. The service-oriented vehicle ECU software upgrade system according to claim 5 or 6, characterized in that the execution device further comprises: 确定模块,用于确定所需订阅的服务的目标类型;A determination module, used to determine a target type of a service to be subscribed; 选择模块,用于根据所述目标类型选择能够提供所述目标类型的服务的服务提供设备,并触发所述第一通信模块执行所述的向所述服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务的操作;A selection module, configured to select a service providing device capable of providing the service of the target type according to the target type, and trigger the first communication module to execute the operation of sending a subscription request to the service providing device to request a subscription to a target flash machine function service matching the target vehicle-mounted ECU; 其中,所述订阅请求包括所述执行设备的属性参数和/或所述执行设备所要订阅的服务类型,所述执行设备的属性参数包括所述执行设备的设备类型和/或所述执行设备的识别标识码。The subscription request includes attribute parameters of the execution device and/or the type of service to be subscribed by the execution device, and the attribute parameters of the execution device include the device type of the execution device and/or the identification code of the execution device. 8.根据权利要求7所述的面向服务的车载ECU软件升级系统,其特征在于,所述服务提供设备还包括:8. The service-oriented vehicle ECU software upgrade system according to claim 7, characterized in that the service providing device further comprises: 判断模块,用于在所述第二通信模块接收所述订阅请求之后,根据所述订阅请求所包括的内容判断所述执行设备是否为合法订阅的执行设备;当判断出所述执行设备为所述合法订阅的执行设备时,触发所述反馈模块执行所述的向所述执行设备反馈订阅确认响应的操作;a judgment module, configured to judge whether the execution device is a legally subscribed execution device according to the content included in the subscription request after the second communication module receives the subscription request; and trigger the feedback module to perform the operation of feeding back a subscription confirmation response to the execution device when it is judged that the execution device is the legally subscribed execution device; 其中,所述判断模块根据所述订阅请求所包括的内容判断所述执行设备是否为合法订阅的执行设备的具体方式为:The specific manner in which the judgment module judges whether the execution device is a legally subscribed execution device according to the content included in the subscription request is: 根据所述订阅请求所包括的内容判断所述执行设备所需的服务是否为所述服务提供设备所能提供的至少一种服务中的其中一种,当判断出所述执行设备所需的服务为所述服务提供设备所能提供的至少一种服务中的其中一种时,确定所述执行设备为合法订阅的执行设备。Determine whether the service required by the execution device is one of at least one service that the service providing device can provide based on the content included in the subscription request. When it is determined that the service required by the execution device is one of at least one service that the service providing device can provide, determine that the execution device is a legally subscribed execution device. 9.一种执行设备,其特征在于,所述执行设备为车载设备,所述执行设备包括:9. An execution device, characterized in that the execution device is a vehicle-mounted device, and the execution device comprises: 第一通信模块,用于向服务提供设备发送订阅请求,以请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;A first communication module is used to send a subscription request to a service provider to request to subscribe to a target flasher function service that matches a target vehicle-mounted ECU, wherein the service provider is used to provide the target flasher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded; 所述第一通信模块,还用于接收所述服务提供设备反馈与所述订阅请求相匹配的订阅确认响应;The first communication module is further configured to receive a subscription confirmation response fed back by the service providing device that matches the subscription request; 传输模块,用于在所述第一通信模块接收到所述订阅确认响应之后,向所述服务提供设备传输所述目标车载ECU的软件升级包,以触发所述服务提供设备根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;所述目标车载ECU的软件升级包携带有:用于供目标服务提供设备校验所述目标车载ECU的软件升级包是否为最新版本的软件升级包的软件版本号,以及,软件升级起始时刻,且所述软件升级起始时刻是根据所述目标车载ECU的实际工作情况确定的;a transmission module, configured to transmit the software upgrade package of the target vehicle-mounted ECU to the service providing device after the first communication module receives the subscription confirmation response, so as to trigger the service providing device to execute the software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU; the software upgrade package of the target vehicle-mounted ECU carries: a software version number for the target service providing device to verify whether the software upgrade package of the target vehicle-mounted ECU is the latest version of the software upgrade package, and a software upgrade start time, and the software upgrade start time is determined according to the actual working condition of the target vehicle-mounted ECU; 其中,当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;Among them, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU; 当所述目标刷新机功能服务为以太网刷新机功能服务时,所述服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the service provider is an in-vehicle gateway ECU. 10.一种服务提供设备,其特征在于,所述服务提供设备为车载设备,所述服务提供设备包括:10. A service providing device, characterized in that the service providing device is a vehicle-mounted device, and the service providing device comprises: 第二通信模块,用于接收执行设备发送的订阅请求,所述订阅请求用于请求订阅与目标车载ECU相匹配的目标刷新机功能服务,其中,所述服务提供设备用于提供所述目标刷新机功能服务,所述目标车载ECU为需要进行软件升级的任一车载ECU;A second communication module is used to receive a subscription request sent by an execution device, wherein the subscription request is used to request subscription to a target refresher function service that matches a target vehicle-mounted ECU, wherein the service providing device is used to provide the target refresher function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be software upgraded; 反馈模块,用于向所述执行设备反馈与所述订阅请求相匹配的订阅确认响应;A feedback module, configured to feed back a subscription confirmation response matching the subscription request to the execution device; 所述第二通信模块,还用于接收所述目标车载ECU的软件升级包;所述目标车载ECU的软件升级包携带有:用于供目标服务提供设备校验所述目标车载ECU的软件升级包是否为最新版本的软件升级包的软件版本号,以及,软件升级起始时刻,且所述软件升级起始时刻是根据所述目标车载ECU的实际工作情况确定的;The second communication module is further used to receive the software upgrade package of the target vehicle-mounted ECU; the software upgrade package of the target vehicle-mounted ECU carries: a software version number for the target service providing device to verify whether the software upgrade package of the target vehicle-mounted ECU is the latest version of the software upgrade package, and a software upgrade start time, and the software upgrade start time is determined according to the actual working condition of the target vehicle-mounted ECU; 升级控制模块,用于根据所述目标车载ECU的软件升级包执行针对所述目标车载ECU的软件升级流程;An upgrade control module, used to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU; 其中,所述目标车载ECU的软件升级包是由所述执行设备接收到所述订阅确认响应之后发送至所述服务提供设备的;当所述目标车载ECU的升级类型为远程升级类型时,所述执行设备为车载Tbox或任一带有无线通信模块的车载ECU;当所述目标车载ECU的升级类型为本地升级类型时,所述执行设备为车载诊断设备、车载测试设备以及车内网关ECU中的其中一种;The software upgrade package of the target vehicle-mounted ECU is sent to the service providing device by the execution device after receiving the subscription confirmation response; when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of an on-board diagnostic device, an on-board test device, and an in-vehicle gateway ECU; 当所述目标刷新机功能服务为以太网刷新机功能服务时,所述服务提供设备为车内网关ECU或车载仪表控制器;当所述目标刷新机功能服务为CAN刷新机功能服务时,所述服务提供设备为车内网关ECU。When the target refresher function service is an Ethernet refresher function service, the service provider is an in-vehicle gateway ECU or an on-board instrument controller; when the target refresher function service is a CAN refresher function service, the service provider is an in-vehicle gateway ECU.
CN202010199017.XA 2020-03-20 2020-03-20 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment Active CN113497719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010199017.XA CN113497719B (en) 2020-03-20 2020-03-20 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010199017.XA CN113497719B (en) 2020-03-20 2020-03-20 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment

Publications (2)

Publication Number Publication Date
CN113497719A CN113497719A (en) 2021-10-12
CN113497719B true CN113497719B (en) 2024-06-21

Family

ID=77993609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010199017.XA Active CN113497719B (en) 2020-03-20 2020-03-20 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment

Country Status (1)

Country Link
CN (1) CN113497719B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615049B (en) * 2022-03-08 2024-11-19 斑马网络技术有限公司 A permission checking method and system for event subscription
CN114895935A (en) * 2022-04-25 2022-08-12 深圳市元征科技股份有限公司 Method and device for flashing vehicle ECU, electronic equipment and storage medium
CN115190165B (en) * 2022-06-24 2023-06-06 重庆长安汽车股份有限公司 Vehicle OTA system and method based on subscription and release mode

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105270288A (en) * 2014-05-30 2016-01-27 福特全球技术公司 Method and Apparatus for Dynamically Updating a Vehicle Module Configuration Record

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9524156B2 (en) * 2014-01-09 2016-12-20 Ford Global Technologies, Llc Flexible feature deployment strategy
US9323546B2 (en) * 2014-03-31 2016-04-26 Ford Global Technologies, Llc Targeted vehicle remote feature updates
US10140110B2 (en) * 2014-04-02 2018-11-27 Ford Global Technologies, Llc Multiple chunk software updates
US9841965B2 (en) * 2015-06-15 2017-12-12 Lear Corporation Centralized system for software updating vehicle components
US10042635B2 (en) * 2015-06-16 2018-08-07 Lear Corporation Method for wireless remote updating vehicle software
CN105227647A (en) * 2015-09-18 2016-01-06 浪潮软件股份有限公司 Distributed software upgrading method
DE102017208532A1 (en) * 2016-06-02 2017-12-07 Denso Corporation Electronic vehicle control unit and vehicle service management system
US10140783B2 (en) * 2017-02-15 2018-11-27 Ford Global Technologies, Llc Enhanced central gateway for vehicle networking
CN109391482B (en) * 2017-08-02 2021-01-29 华为技术有限公司 Network function upgrading method and upgrading management entity
CN111279310B (en) * 2017-10-24 2023-09-12 华为国际有限公司 A method for upgrading vehicle-mounted equipment and related equipment
CN109842656B (en) * 2017-11-28 2023-07-14 厦门雅迅网络股份有限公司 Intelligent compatible multi-protocol Internet of vehicles service method and Internet of vehicles gateway system
CN208986969U (en) * 2018-09-28 2019-06-14 慧翰微电子股份有限公司 A kind of car networking terminal for supporting ECU FOTA to upgrade
CN110149370B (en) * 2019-04-23 2021-01-29 华为技术有限公司 A kind of upgrade file download method and device
CN110445869B (en) * 2019-08-13 2022-02-15 中国工商银行股份有限公司 Content publishing method, terminal and server based on distributed subscription

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105270288A (en) * 2014-05-30 2016-01-27 福特全球技术公司 Method and Apparatus for Dynamically Updating a Vehicle Module Configuration Record

Also Published As

Publication number Publication date
CN113497719A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
CN113497719B (en) Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment
CN111277477B (en) FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments
US11507365B2 (en) On-board update device, update processing program, program update method, and on-board update system
US11736577B2 (en) Server, update management method, non-transitory storage medium, software update device, and system including server and software update device
CN112416371A (en) Remote upgrading method, device and system for vehicle-mounted system and storage medium
CN110311960A (en) A software upgrade method, device, equipment and storage medium
CN113778498A (en) Vehicle data update method, OTA cloud and vehicle data update system
CN110187904B (en) Device and method for updating vehicle controller firmware
US20240086175A1 (en) Update control system, update control method, non-transitory storage medium, and in-vehicle control device
US12190100B2 (en) OTA software update based on ECU non-volatile memory type
US12153918B2 (en) Software update apparatus, update control method, non-transitory storage medium storing update control program, server, OTA master, and center
JP2025019271A (en) OTA master, system, method, program, and vehicle
JP2022187646A (en) OTA master, system, method, program and vehicle
CN113242143A (en) Vehicle remote parameter configuration method, vehicle-mounted remote processor and vehicle networking system
JP2023001993A (en) OTA master, system, method, program and vehicle
JP7596943B2 (en) OTA master, center, system, method, program, and vehicle
CN115016805A (en) Vehicle system upgrading method, device, system, equipment and medium
JP2022135372A (en) Center, update management method, and update management program
EP3746880B1 (en) Method for distributing a software to a plurality of motor vehicles, corresponding system, motor vehicle, and data storage medium
SE542382C2 (en) Method and server arrangement for producing a control unit for use in a vehicle
JP7540402B2 (en) Center, OTA master, system, method, program, and vehicle
CN116126377A (en) Vehicle upgrading method, device and processing equipment
JP2024007756A (en) OTA master
CN113553083A (en) Program upgrading method and device for air conditioning system, air conditioning system and storage medium
CN112882737A (en) Wireless upgrading method for ECU software of whole vehicle

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
GR01 Patent grant
GR01 Patent grant