CN113497719A - 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
CN113497719A
CN113497719A CN202010199017.XA CN202010199017A CN113497719A CN 113497719 A CN113497719 A CN 113497719A CN 202010199017 A CN202010199017 A CN 202010199017A CN 113497719 A CN113497719 A CN 113497719A
Authority
CN
China
Prior art keywords
vehicle
target
service
equipment
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.)
Granted
Application number
CN202010199017.XA
Other languages
Chinese (zh)
Other versions
CN113497719B (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
Priority claimed from CN202010199017.XA external-priority 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

Images

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 system and related equipment, wherein the method comprises the following steps: the execution equipment sends a subscription request to target service providing equipment to request subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), the target service providing equipment is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU needing software upgrading; the target service providing equipment receives the subscription request and feeds back a subscription confirmation response to the executing equipment; the execution equipment receives the subscription confirmation response and transmits the software upgrading package of the target vehicle-mounted ECU to the target service providing equipment; and the target service providing equipment receives the software upgrading package of the target vehicle-mounted ECU and executes the software upgrading process 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 a more flexible, safer and more configurable software upgrading mode is provided for the whole vehicle ECU software upgrading.

Description

Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment
Technical Field
The invention relates to the technical field of vehicle-mounted software upgrading, in particular to a service-oriented vehicle-mounted ECU software upgrading method and system and related equipment.
Background
With the rapid development of vehicle-mounted network communication technology, the application of vehicle-mounted ethernet in automobiles is also more and more extensive, for example: the entertainment system, the intelligent driving system and the like are gradually switched to adopt the vehicle-mounted Ethernet to transmit signals. Therefore, the demand for refreshing an ECU (Electronic Control Unit) and an ethernet of the entire vehicle is also becoming stronger.
Currently, software upgrade of the ECU of the whole vehicle can generally be performed through various paths, such as OBD (On Board Diagnostics), USB (Universal Serial Bus), OTA (Over the Air technology), and the like. However, practice shows that the current software upgrading strategy of the entire vehicle ECU is single, and it is very important to provide a more flexible software upgrading strategy for performing software upgrading on the entire vehicle ECU.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a service-oriented vehicle-mounted ECU software upgrading method, a service-oriented vehicle-mounted ECU software upgrading system and related equipment, so that the software upgrading of the vehicle-mounted ECU can be realized more flexibly.
In order to solve the technical problem, a first aspect of the present invention discloses a service-oriented vehicle-mounted ECU software upgrading method, which is applied to a software upgrading system including an execution device and at least one service providing device, wherein the execution device and the service providing device are both vehicle-mounted devices, and the method includes:
the execution equipment sends a subscription request to target service providing equipment to request subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), wherein the target service providing equipment is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
the target service providing equipment receives the subscription request and feeds back a subscription confirmation response matched with the subscription request to the executing equipment;
the execution equipment receives the subscription confirmation response and transmits a software upgrading package of the target vehicle-mounted ECU to the target service providing equipment;
the target service providing equipment receives the software upgrading package of the target vehicle-mounted ECU and executes a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is the Ethernet refreshing machine function service, the target service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the target service providing equipment is an in-vehicle gateway ECU.
The invention discloses a service-oriented vehicle-mounted ECU software upgrading system, which at least comprises an execution device and at least one service providing device capable of providing services required by the execution device, wherein the execution device and the service providing device are vehicle-mounted devices;
the execution device comprises a first communication module and a transmission module, the service providing device comprises a second communication module, a feedback module and an upgrade control module, wherein:
the first communication module is used for sending a subscription request to the service providing equipment to request for subscribing a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), wherein the service providing equipment is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU needing software upgrading;
the second communication module is used for receiving the subscription request;
the feedback module is used for feeding back a subscription confirmation response matched with the subscription request to the execution equipment;
the first communication module is further configured to receive the subscription confirmation response;
the transmission module is used for transmitting the software upgrading package of the target vehicle-mounted ECU to the service providing equipment after the first communication module receives the subscription confirmation response;
the second communication module is also used for receiving a software upgrading package of the target vehicle-mounted ECU;
the upgrading control module is used for executing a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is an Ethernet refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
A third aspect of the present invention is an execution device, which is an in-vehicle device, and includes:
the system comprises a first communication module, a second communication module and a service providing device, wherein the first communication module is used for sending a subscription request to the service providing device to request to subscribe a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), the service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
the first communication module is further configured to receive a subscription confirmation response that the service providing device feeds back a subscription confirmation response that matches the subscription request;
the transmission module is used for transmitting the software upgrading package of the target vehicle-mounted ECU to the service providing equipment after the first communication module receives the subscription confirmation response so as to trigger the service providing equipment to execute a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is an Ethernet refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
A fourth aspect of the present invention discloses another execution device, which is an in-vehicle device, and includes:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps executed by the execution equipment in the service-oriented vehicle-mounted ECU software upgrading method according to the first aspect of the invention.
In a fifth aspect, the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute part or all of the steps executed by the execution device in the service-oriented vehicle-mounted ECU software upgrading method according to any one of the first aspects of the present invention.
A sixth aspect of the present invention discloses a service providing apparatus, which is a vehicle-mounted apparatus, and includes:
the second communication module is used for receiving a subscription request sent by an execution device, wherein the subscription request is used for requesting to subscribe a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), the service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
a feedback module, configured to feed back, to the execution device, a subscription confirmation response matching the subscription request;
the second communication module is also used for receiving a software upgrading package of the target vehicle-mounted ECU;
the upgrading control module is used for executing a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
wherein the software upgrade package of the target in-vehicle ECU is transmitted to the service providing apparatus after the execution apparatus receives the subscription confirmation response; when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is an Ethernet refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
A seventh aspect of the present invention discloses another service providing apparatus, including:
a memory storing executable program code;
a processor coupled with the memory;
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-mounted ECU software upgrading method according to the first aspect of the invention.
An eighth aspect of the present invention discloses a computer storage medium, where the computer storage medium stores computer instructions, and the computer instructions, when called, are used to execute part or all of the steps executed by the target service providing device in the service-oriented vehicle-mounted ECU software upgrading method according to any one of the first aspects of the present invention.
Compared with the prior art, the invention has the beneficial effects that:
the implementation of the invention can subscribe the refreshing function service and acquire the software upgrading package through the execution equipment (also can be understood as an upgrading end), the service providing equipment (such as ECU with the refreshing function) providing the refreshing function service issues the service to the execution equipment, and after the software upgrading is confirmed, the execution equipment sends the acquired software upgrading package to the service providing equipment providing the refreshing function service for software upgrading.
Drawings
FIG. 1 is a schematic flow chart of a service-oriented vehicle-mounted ECU software upgrading method disclosed by the embodiment of the invention;
FIG. 2 is a schematic flow chart illustrating another service-oriented vehicle-mounted ECU software upgrading method disclosed in the embodiment of the invention;
FIG. 3 is a schematic structural diagram of a service-oriented vehicle-mounted ECU software upgrading system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another service-oriented in-vehicle ECU software upgrading system disclosed by the embodiment of the invention;
FIG. 5 is a schematic structural diagram of an execution device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service providing device according to an embodiment of the present invention.
Detailed Description
For better understanding and implementation, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a service-oriented vehicle-mounted ECU software upgrading method, a service-oriented vehicle-mounted ECU software upgrading system and related equipment, which can subscribe refreshing function service and acquire a software upgrading package through executing equipment (also understood as an upgrading end), service providing equipment (such as an ECU with the refreshing function) providing the refreshing function service issues service to the executing equipment, and after the software upgrading is confirmed, the executing equipment sends the acquired software upgrading package to the service providing equipment providing the refreshing function service for software upgrading. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a service-oriented vehicle-mounted ECU software upgrading method according to an embodiment of the present invention. The method described in fig. 1 may be applied to a software upgrading system including an execution device and at least one service providing device, and both the execution device and the service providing device may be vehicle-mounted devices, which is not limited in the embodiment of the present invention. As shown in fig. 1, the service-oriented in-vehicle ECU software upgrade method may include the operations of:
101. the execution device sends a subscription request to the target service providing device to request subscription of the target refresher function service matched with the target vehicle-mounted ECU.
In the embodiment of the invention, the target service providing device is used for providing the target refreshing machine functional service, the target vehicle-mounted ECU is any vehicle-mounted ECU (such as an air conditioner controller or a panoramic controller) needing software upgrading, and one or more service providing devices for providing the target refreshing machine functional service can be provided. When one service providing device for providing the target refreshing machine function service is provided, the service providing device is the target service providing device; when there are a plurality of service providing devices providing the target refresh machine function service, the execution device may select one of the plurality of service providing devices as the target service providing device according to the determined device selection manner. The determined device selection mode may be pre-selected and set in the execution device, and may be one or a combination of multiple of a high priority selection mode, an idle selection mode, and a high service success rate selection mode, where the high priority selection mode indicates that the execution device needs to select, as the target service providing device, a service providing device with a highest priority or a priority higher than a preset priority from multiple service providing devices, the idle selection mode indicates that the execution device needs to select, as the target service providing device, a service providing device that is currently idle from the multiple service providing devices, and the high service success rate selection mode indicates that the execution device needs to select, as the target service providing device, a service providing device with a highest success rate or a success rate higher than a preset success rate for establishing a service providing function from the multiple service providing devices. Further, when there are multiple device selection modes, each selection mode has a corresponding priority, and the execution device may gradually select the target service providing device according to the mode that the priority corresponding to the device selection mode is from low to high.
102. The target service providing device receives the subscription request and feeds back a subscription confirmation response matched with the subscription request to the executing device.
In this embodiment of the present invention, the subscription confirmation response is used to indicate that the target service providing device provides or publishes the target refresh machine function service to the executing device. Further, after the target service providing device receives the subscription request, the subscription request may be confirmed first, and after the subscription request is confirmed, the above operation of feeding back a subscription confirmation response matching the subscription request to the executing device is performed. Still further, the confirming of the subscription request by the target service providing device may include: the method and the apparatus for determining the service requested by the subscription request may further include one or more combinations of determining whether the subscription request meets requirements, determining whether an execution device sending the subscription request meets requirements, and determining the service requested by the subscription request. Therefore, the accuracy and the reliability of establishing the service providing function by the target service providing equipment and the executing equipment can be improved, and the accuracy of software upgrading is further improved.
103. The execution device receives the subscription confirmation response and transmits the software upgrade package of the target in-vehicle ECU to the target service providing device.
The software upgrade package of the target vehicle-mounted ECU is acquired by the execution device, and may be acquired locally or remotely, which is not limited in the embodiment of the present invention.
104. And the target service providing equipment receives the software upgrading package of the target vehicle-mounted ECU and executes a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
In the embodiment of the present invention, the software upgrade package of the target vehicle-mounted ECU may carry a software version number, so that the target service providing device checks whether the software upgrade package of the target vehicle-mounted ECU is the software upgrade package of the latest version according to the software version number. Further, the software upgrade package of the target vehicle-mounted ECU may also carry a software upgrade start time, so that the target 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 when the current time reaches the software upgrade start time. The software upgrading starting time is determined according to the actual working condition of the target vehicle-mounted ECU, and the embodiment of the invention is not limited. It should be noted that, when receiving the software upgrade package of the target vehicle-mounted ECU, the target service providing device may store the software upgrade package first, and when the target vehicle-mounted ECU needs to be upgraded or reaches the upgrade time, execute the software upgrade process for the target vehicle-mounted ECU according to the stored software upgrade package of the target vehicle-mounted 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 vehicle-mounted diagnosis devices, vehicle-mounted test devices and a vehicle-mounted gateway ECU.
Optionally, when the target refresher function service is the ethernet refresher function service, the target service providing device is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; when the target refreshing machine function service is the CAN refreshing machine function service, the target service providing equipment is an in-vehicle gateway ECU.
It can be seen that, in the service-oriented vehicle-mounted ECU software upgrading method described in the embodiment of the present invention, the executing device (also understood as an upgrading end) can subscribe the refreshing function service and obtain the software upgrading package, the service providing device (such as an ECU having the refreshing function) providing the refreshing function service issues the service to the executing device, and after the software upgrading is confirmed, the executing device sends the obtained software upgrading package to the service providing device providing the refreshing function service to perform the software upgrading, that is: the service-oriented software upgrading strategy is provided, the subscription and release operation of the refreshing machine function service is added before software upgrading, and a more flexible, safer and more configurable software upgrading mode is provided for the whole ECU software upgrading.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another service-oriented vehicle-mounted ECU software upgrading method according to an embodiment of the present invention. The method described in fig. 2 may be applied to a software upgrading system including an execution device and at least one service providing device, and both the execution device and the service providing device may be vehicle-mounted devices, which is not limited in the embodiment of the present invention. As shown in fig. 2, the service-oriented in-vehicle ECU software upgrade method may include the operations of:
201. and the service providing device issues a corresponding refresh machine function service to the executing device.
In the embodiment of the invention, before the service providing function is established between the service providing equipment and the executing equipment, part or all of the service providing equipment can periodically or irregularly issue the corresponding refreshing machine function service to the executing equipment, so that the executing equipment can confirm the refreshing machine function service provided by different service providing equipment in advance, and the executing equipment is favorable for quickly and accurately selecting proper service providing equipment to subscribe the refreshing machine function service when determining that a certain vehicle-mounted ECU needs to be upgraded.
202. The execution equipment detects whether a software upgrading instruction aiming at the target vehicle-mounted ECU is received, and when the detection result is negative, the process can be ended, and the step 202 can be continuously triggered and executed; when the detection result is yes, the execution of step 203 may be triggered.
In the embodiment of the invention, the software upgrading instruction is used for instructing the target vehicle-mounted ECU to be subjected to software upgrading, namely the target vehicle-mounted ECU is any vehicle-mounted ECU needing software upgrading, such as an air conditioner controller or a panoramic controller.
203. The execution device sends a subscription request to the target service providing device to request subscription of the target refresher function service matched with the target vehicle-mounted ECU.
The target service providing device is one of the service providing devices and is configured to provide a target refresher function service, and the type of the subscription request may be a packet type, that is, the subscription request may be a subscription packet.
204. The target service providing device receives the subscription request.
In this embodiment of the present invention, after receiving the subscription request, the target service providing device may first confirm the subscription request, and then trigger to execute step 205 after confirming the subscription request. It should be noted that, if the subscription request cannot be confirmed, the target service providing device may not make any response, and may also feed back a subscription invalid response or a subscription refusal response, so as to facilitate the executing device to send a subscription request meeting the requirements in time or select another suitable service providing device to subscribe to the target refresher function service.
205. The target service providing device feeds back a subscription confirmation response matching the subscription request to the executing 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 refresh machine 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. The executing device receives the subscription confirmation response.
207. The execution device transmits the software upgrade package of the target in-vehicle ECU to the target service providing device.
208. And the target service providing equipment receives the software upgrading package of the target vehicle-mounted ECU and executes a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
In the embodiment of the present invention, the software upgrading process is a software upgrading process updated based on a Universal Diagnostic Services (UDS), and mainly includes the processes of reading various version numbers of the target vehicle-mounted ECU, setting a digital Diagnostic Code (DTC), setting communication, entering a programming mode, transmitting data, erasing instructions, checking integrity, and the like.
It should be noted that, for other detailed descriptions of the execution device and the target service providing device and other detailed descriptions of the steps executed by the execution device and the target service providing device, reference may be made to the related description in the first embodiment, and no further description is given in the embodiments of the present invention.
In an alternative embodiment, after completing step 203, the executing apparatus may further perform the following operations:
the executing device detects whether a subscription confirmation response fed back by the target service providing device is received within a certain time period from the time of sending the subscription request, and if the subscription confirmation response is not received, it confirms that the subscription is failed, and may continue to trigger execution of step 203. Wherein the duration of the certain time period is preset.
In this optional embodiment, further optionally, after the executing device fails to confirm the subscription, and before re-triggering executing step 203, the executing device may further perform the following operations:
the executing device judges whether the accumulated times of the subscription failure reaches or exceeds the preset times, and when the judgment result is no, the executing device continues to trigger the step 203; if yes, the process may be ended, or another service providing device capable of providing the target refresh machine function service may be selected as a new target service providing device, and step 203 is triggered and executed again.
As can be seen, in this alternative embodiment, whether to continue to execute step 203 can be determined according to the cumulative number of times of subscription failures after the subscription failures, so that subscription control on the execution device is achieved, and when the cumulative number of times of subscription failures is large, the execution device can automatically select other service providing devices to subscribe, thereby reducing the problems of low subscription success rate and low subscription efficiency caused by the fact that the subscription fails and subscription requests are continuously sent to the same service providing device.
In another alternative embodiment, before completing step 203, the method may further comprise the following operations:
the execution equipment determines the target type of the service to be subscribed;
the execution device selects a service providing device capable of providing the service of the target type as a target service providing device according to the target type, and triggers and executes the operation of sending a subscription request to the target service providing device to request subscription of the functional service of the target refreshing machine matched with the target vehicle-mounted ECU.
Therefore, according to the optional embodiment, before the subscription request is sent, the appropriate service providing equipment can be selected according to the type of the required subscription service to send the subscription request, so that the subscription success rate is improved, and the refresh machine function service provided or released by the service providing equipment after the subscription is successful can meet the software upgrading requirement of the vehicle-mounted ECU which needs software upgrading.
Optionally, the target refresher service may be one of a CAN refresher function service, an ethernet refresher function service, and a CAN-ethernet hybrid refresher function service, that is, the refresher function service that one service providing device may provide may include at least one of the CAN refresher function service, the ethernet refresher function service, and the CAN-ethernet hybrid refresher function service, which is not limited in the embodiment of the present invention. It should be noted that the refresh machine function service provided by the service providing device may be designed and allocated according to the actual situation of the entire vehicle.
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 in a vehicle.
Optionally, when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device may be one of a vehicle-mounted diagnosis device, a vehicle-mounted test device, and an in-vehicle gateway ECU. Thus, the execution equipment for subscription can be adaptively selected according to the upgrading type of the vehicle-mounted ECU to be upgraded.
In yet another optional embodiment, the subscription request may include an attribute parameter of the execution device and/or a service type to which the execution device is subscribed, where the attribute parameter of the execution device may include at least one of a device type of the execution device and an identification code of the execution device, which is not limited in the embodiment of the present invention.
In this optional embodiment, further optionally, after the target service providing device receives the subscription request, the following operations may be further performed:
and the target service providing equipment judges whether the execution equipment is legally subscribed execution equipment according to the content included in the subscription request, and triggers and executes the operation of feeding back a subscription confirmation response to the execution equipment when the judgment result is yes.
Still further optionally, when it is determined that the execution device is not an execution device subscribed legally, the target service providing device may further feed back a subscription rejection response to indicate that the subscription request of the execution device is rejected, where the subscription rejection response may include a target identifier that the execution device can parse, where the target identifier is used to indicate that the execution device is not an execution device subscribed legally or that a service requested to be subscribed by the execution device is not a functional service provided by the target service providing device.
Still further optionally, the target service providing device determining, according to content included in the subscription request, whether the executing device is an executing device for legal subscription, including:
and when the service required by the execution device is judged to be one of the at least one service provided by the target service providing device, the execution device is determined to be the legally subscribed execution device.
Therefore, the optional embodiment can also check the subscription validity 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.
For example, an example of software upgrade performed on an air conditioner controller (CAN refresh) and a panoramic controller (ethernet refresh) through an OTA is described, where a Tbox is an executor (i.e., an execution device) performing a subscription service and a refresh allocation function, a gateway provides a CAN refresh function service and an ethernet refresh function service, and an instrument controller provides an ethernet refresh function service, and a specific flow is described below.
The software upgrading of the air conditioner controller (CAN refresh) by OTA mainly comprises the following procedures:
step S01: the gateway periodically sends a message for providing the function service of the CAN refreshing machine;
step S02: the Tbox receives a software upgrading instruction for upgrading the air conditioner controller;
step S03: the Tbox subscribes the functional service of the gateway CAN refreshing machine, namely the Tbox sends a subscription message to the gateway;
step S04: the gateway receives the subscription message and performs subscription confirmation, after the subscription confirmation, the gateway sends a subscription confirmation message to the Tbox, and the Tbox receives the subscription confirmation message to complete the subscription process; if the Tbox does not receive the subscription confirmation message of the gateway within the specified time, the subscription fails, and the process returns to step S03, where the process is cycled for N times (N is a configurable number of times, such as 3), and if the subscription still fails after N times, the Tbox selects to subscribe to another controller capable of providing the CAN refresh function to restart the subscription;
step S05: the Tbox transmits an air conditioner controller upgrading software package to the gateway;
step S06: receiving and storing by the gateway;
step S07: the gateway is used as a CAN refreshing machine to carry out software upgrading process on the air conditioner controller, the process is mainly a software upgrading process based on UDS updating and mainly comprises the processes of reading various version numbers, DTC setting, communication setting, entering a programming mode, data transmission, erasing instructions, integrity checking and the like of the air conditioner controller;
step S08: and finishing the upgrading of the air conditioner controller software.
And the software upgrading of the panoramic controller (Ethernet refresh) by OTA comprises the following procedures:
step S11: the gateway and the instrument controller periodically send messages for providing the function service of the Ethernet refresher;
step S12: the Tbox receives a software upgrading instruction for upgrading the panorama system;
step S13: the Tbox selects one of the gateway or the instrument controller to subscribe the Ethernet refresher function service according to the own strategy, and sends a subscription message to the gateway by taking the selection of the gateway to subscribe the Ethernet refresher function service as an example;
step S14: the gateway receives the subscription message and performs subscription confirmation, after the subscription confirmation, the gateway sends a subscription confirmation message to the Tbox, and the Tbox receives the subscription confirmation message to complete the subscription process; if the Tbox does not receive the subscription confirmation message of the gateway within the specified time, the subscription fails, and the process needs to return to step 03, the process is cycled for N times (N is a configurable number of times, such as 3), and if the subscription still fails after N times, the Tbox selects to subscribe other controllers (such as instrument controllers) capable of providing the ethernet refreshing function to restart the subscription;
step S15: the Tbox transmits the upgrading software package of the panoramic controller to the gateway;
step S16: receiving and storing by the gateway;
step S17: the gateway is used as an Ethernet refresher to carry out a software upgrading process on the panoramic controller, the process is mainly based on the UDS updated software upgrading process and mainly comprises the processes of reading various version numbers, DTC setting, communication setting, entering a programming mode, data transmission, erasing instructions, integrity checking and the like of the panoramic controller;
step S18: and finishing the software upgrading of the panoramic controller.
It can be seen that, in the service-oriented vehicle-mounted ECU software upgrading method described in the embodiment of the present invention, the executing device (also understood as an upgrading end) can subscribe the refreshing function service and obtain the software upgrading package, the service providing device (such as an ECU having the refreshing function) providing the refreshing function service issues the service to the executing device, and after the software upgrading is confirmed, the executing device sends the obtained software upgrading package to the service providing device providing the refreshing function service to perform the software upgrading, that is: the service-oriented software upgrading strategy is provided, the subscription and release operation of the refreshing machine function service is added before software upgrading, and a more flexible, safer and more configurable software upgrading mode is provided for the whole ECU software upgrading. In addition, the execution equipment can confirm the refreshing machine function services provided by different service providing equipment in advance, and the execution equipment can quickly and accurately select proper service providing equipment to subscribe the refreshing machine function services when determining that a certain vehicle-mounted ECU needs to be upgraded. In addition, the subscription control of the execution equipment can be realized, and when the number of times of the subscription failure is large, the execution equipment can automatically select other service providing equipment for subscription, so that the problems of low subscription success rate and low subscription efficiency caused by the fact that the subscription fails and the subscription request is continuously sent to the same service providing equipment are solved. In addition, before the subscription request is sent, the appropriate service providing equipment can be selected according to the type of the required subscription service to send the subscription request, so that the subscription success rate is improved, and the refresh machine function service provided or released by the service providing equipment after the subscription is successful can meet the software upgrading requirement of the vehicle-mounted ECU which needs software upgrading. In addition, the execution equipment for subscription can be adaptively selected according to the upgrading type of the vehicle-mounted ECU to be upgraded, and the subscription legality of the execution equipment sending the subscription request can be verified according to the content included in the subscription request after the service providing equipment receives the subscription request, so that the accuracy of the service providing function established by the service providing equipment and the execution equipment is improved.
EXAMPLE III
The embodiment of the invention discloses another service-oriented vehicle-mounted ECU software upgrading method, which can be applied to an execution device, wherein the execution device is a vehicle-mounted device, and the method can comprise the following operations:
the execution equipment sends a subscription request to the target service providing equipment to request subscription of the target refreshing machine function service matched with the target vehicle-mounted ECU;
and the execution equipment receives the subscription confirmation response and transmits the software upgrading package of the target vehicle-mounted ECU to the target service providing equipment so as to trigger the target service providing equipment to receive the software upgrading package of the target vehicle-mounted ECU and execute the software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
Optionally, before executing the above-mentioned sending of the subscription request to the target service providing device to request subscription of the target refresher function service matched with the target vehicle-mounted ECU, the method may further include the following operations:
the execution equipment detects whether a software upgrading instruction aiming at a certain vehicle-mounted ECU is received or not;
when a software upgrading instruction aiming at a certain vehicle-mounted ECU is received, the execution equipment executes the operation of sending a subscription request to the target service providing equipment so as to request for subscribing the functional service of the target refreshing machine matched with the target vehicle-mounted ECU;
wherein the target vehicle-mounted ECU is the certain vehicle-mounted ECU.
Optionally, before the executing device sends a subscription request to the target service providing device to request subscription of the target refresher function service matched with the target vehicle-mounted ECU, the method further includes:
the execution equipment determines the target type of the service to be subscribed;
the execution device selects a service providing device capable of providing the service of the target type as a target service providing device according to the target type, and triggers and executes the operation of sending a subscription request to the target service providing device to request subscription of the functional service of the target refreshing machine matched with the target vehicle-mounted ECU.
Optionally, the target refresher function service is one of a CAN refresher function service, an ethernet refresher function service, and a CAN-ethernet hybrid refresher function service.
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 upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU.
Optionally, the subscription request includes an attribute parameter of the execution device and/or a service type to which the execution device is subscribed, and the attribute parameter of the execution device includes a device type of the execution device and/or an identification code of the execution device. Further optionally, the executing device sends a subscription request to the target service providing device to trigger the target service subscribing device to perform the following operations:
judging whether the executing equipment is legally subscribed executing equipment or not by the target service providing equipment according to the content included in the subscription request;
and when the execution device is judged to be the legally subscribed execution device, the target service providing device executes the operation of feeding back a subscription confirmation response to the execution device.
Further, the determining, by the target service providing device, whether the executing device is an executing device that is legally subscribed according to the content included in the subscription request may include:
and the target service providing equipment judges whether the service required by the executing equipment is one of the at least one service provided by the target service providing equipment according to the content included in the subscription request, and when the service required by the executing equipment is judged to be one of the at least one service provided by the target service providing equipment, the executing equipment is determined to be legally subscribed executing equipment.
It should be noted that, for other descriptions related to the execution device and the service providing device in the embodiment of the present invention, reference may be made to corresponding descriptions in the first embodiment and the second embodiment, and details of the embodiment of the present invention are not described again.
It can be seen that, in the embodiment of the present invention, the executing device (also understood as an upgrade end) can subscribe the refreshing function service and obtain the software upgrade package, the service providing device (such as an ECU having the refreshing function) providing the refreshing function service issues the service to the executing device, and after the software upgrade is confirmed, the executing device sends the obtained software upgrade package to the service providing device providing the refreshing function service to perform the software upgrade, that is: the service-oriented software upgrading strategy is provided, the subscription and release operation of the refreshing machine function service is added before software upgrading, and a more flexible, safer and more configurable software upgrading mode is provided for the whole ECU software upgrading.
Example four
The embodiment of the invention discloses another service-oriented vehicle-mounted ECU software upgrading method, which can be applied to service providing equipment, wherein the service providing equipment is vehicle-mounted equipment, and the method can comprise the following operations:
the service providing equipment receives a subscription request sent by the execution equipment, wherein the subscription request is used for requesting the subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), the service providing equipment is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
the service providing equipment feeds back a subscription confirmation response matched with the subscription request to the executing equipment;
the service providing equipment receives a software upgrading package of a target vehicle-mounted ECU;
and the service providing equipment executes a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
Wherein the software upgrade package of the target in-vehicle ECU is transmitted to the service providing apparatus after the subscription confirmation response is received by the execution apparatus.
Optionally, the target refresher function service is one of a CAN refresher function service, an ethernet refresher function service, and a CAN-ethernet hybrid refresher function service.
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 upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU.
Optionally, the subscription request includes an attribute parameter of the execution device and/or a service type to which the execution device is subscribed, and the attribute parameter of the execution device includes a device type of the execution device and/or an identification code of the execution device. Further optionally, after the service providing device receives the subscription request, the following steps may be executed:
judging whether the execution equipment is legally subscribed execution equipment or not according to the content included in the subscription request;
and when the executing equipment is judged to be the legally subscribed executing equipment, the operation of feeding back a subscription confirmation response to the executing equipment is executed.
Further, the determining, by the service providing device, whether the executing device is an executing device that is legally subscribed according to the content included in the subscription request may include:
and when the service required by the execution device is judged to be one of the at least one service provided by the target service providing device, the execution device is determined to be a legally subscribed execution device.
It should be noted that, for other descriptions related to the execution device and the service providing device in the embodiment of the present invention, reference may be made to corresponding descriptions in the first embodiment and the second embodiment, and details of the embodiment of the present invention are not described again.
It can be seen that, in the embodiment of the present invention, the executing device (also understood as an upgrade end) can subscribe the refreshing function service and obtain the software upgrade package, the service providing device (such as an ECU having the refreshing function) providing the refreshing function service issues the service to the executing device, and after the software upgrade is confirmed, the executing device sends the obtained software upgrade package to the service providing device providing the refreshing function service to perform the software upgrade, that is: the service-oriented software upgrading strategy is provided, the subscription and release operation of the refreshing machine function service is added before software upgrading, and a more flexible, safer and more configurable software upgrading mode is provided for the whole ECU software upgrading.
EXAMPLE five
Referring to fig. 3, fig. 3 is a schematic structural diagram of a service-oriented vehicle-mounted ECU software upgrading system according to an embodiment of the present invention. As shown in fig. 3, the service-oriented in-vehicle ECU software upgrade system may include an execution device and at least one service providing device capable of providing a service required by the execution device, where the execution device and the service providing device are both in-vehicle devices and the execution device may include a first communication module 301 and a transmission module 302, and the service providing device may include a second communication module 401, a feedback module 402, and an upgrade control module 403, where:
the first communication module 301 is configured to send a subscription request to a service providing device to request subscription of a target refresh machine functional service matched with a target vehicle-mounted ECU, where the service providing device is configured to provide the target refresh machine functional service, and the target vehicle-mounted ECU is any vehicle-mounted ECU requiring software upgrade.
The second communication module 401 is configured to receive a subscription request.
A feedback module 402, configured to feed back a subscription confirmation response matching the subscription request to the executing device.
The first communication module 301 is further configured to receive a subscription confirmation response.
A transmission module 302, configured to transmit the software upgrade package of the target in-vehicle ECU to the service providing device after the first communication module 301 receives the subscription confirmation response.
The second communication module 401 is further configured to receive a software upgrade package of the target vehicle-mounted ECU.
And the upgrade control module 403 is configured to execute a software upgrade process for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU.
The target refreshing machine function service is one of a CAN refreshing machine function service, an Ethernet refreshing machine function service and a CAN-Ethernet hybrid refreshing machine function service.
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 vehicle-mounted diagnosis devices, vehicle-mounted test devices and a vehicle-mounted gateway ECU.
Optionally, when the target refresher function service is the ethernet refresher function service, the service providing device is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
In an alternative embodiment, as shown in fig. 4, the execution device may further include a detection module 303, where:
the detection module 303 is configured to detect whether a software upgrade instruction for the target vehicle-mounted ECU is received; when receiving a software upgrade instruction for a target in-vehicle ECU, the first communication module 301 is triggered to perform the above-described operation of sending a subscription request to the service providing device to request subscription to a target refresher function service matching the target in-vehicle ECU.
In yet another alternative embodiment, as shown in fig. 4, the execution apparatus may further include:
a determining module 304, configured to determine a target type of a service to be subscribed.
A selection module 305, configured to select, according to the target type, a service providing device capable of providing the service of the target type, and trigger the first communication module 301 to perform the above-described operation of sending a subscription request to the service providing device to request subscription to the target refresher function service matching the target in-vehicle ECU.
In yet another alternative embodiment, the subscription request may include an attribute parameter of the execution device and/or a service type to which the execution device is subscribed, and the attribute parameter of the execution device may include a device type of the execution device and/or an identification code of the execution device. Optionally, as shown in fig. 4, the service providing device may further include:
a determining module 404, configured to determine, after the second communication module 401 receives the subscription request, whether the execution device is an execution device that is legally subscribed according to content included in the subscription request; when the execution device is judged to be 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.
Still further optionally, the specific manner of determining, by the determining module 404, whether the execution device is a legally subscribed execution device according to the content included in the subscription request may be:
and when the service required by the execution device is judged to be one of the at least one service provided by the target service providing device, the execution device is determined to be a legally subscribed execution device.
It can be seen that, in the embodiment of the present invention, the executing device (also understood as an upgrade end) can subscribe the refreshing function service and obtain the software upgrade package, the service providing device (such as an ECU having the refreshing function) providing the refreshing function service issues the service to the executing device, and after the software upgrade is confirmed, the executing device sends the obtained software upgrade package to the service providing device providing the refreshing function service to perform the software upgrade, that is: the service-oriented software upgrading strategy is provided, the subscription and release operation of the refreshing machine function service is added before software upgrading, and a more flexible, safer and more configurable software upgrading mode is provided for the whole ECU software upgrading.
EXAMPLE six
The embodiment of the invention discloses an execution device, which can be the execution device in a service-oriented vehicle-mounted ECU software upgrading system described in FIG. 3 or FIG. 4, or can be the execution device shown in FIG. 5. As shown in fig. 5, the execution device is an in-vehicle device and may include:
a memory 501 in which executable program code is stored;
a processor 502 coupled to a memory 501;
the processor 502 calls the executable program code stored in the memory 501 for executing part or all of the steps executed by the execution device in the service-oriented in-vehicle ECU software upgrading method described in the first embodiment or the second embodiment.
EXAMPLE seven
The embodiment of the invention discloses a service providing device, and the execution device can be the service providing device in a service-oriented vehicle-mounted ECU software upgrading system described in figure 3 or figure 4, and can also be the service providing device shown in figure 6. As shown in fig. 6, the service providing device is an in-vehicle device and may include:
a memory 601 in which executable program code is stored;
a processor 602 coupled to a memory 601;
the processor 602 calls the executable program code stored in the memory 601 for executing part or all of the steps executed by the target service providing device in the service-oriented in-vehicle ECU software upgrading method described in the first embodiment or the second embodiment.
Example eight
The embodiment of the invention discloses a computer-readable storage medium which 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 upgrading method in the first embodiment or the second embodiment.
Example nine
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, wherein the computer program is operable to make a computer execute part or all of the steps executed by an execution device in the service-oriented vehicle-mounted ECU software upgrading method described in the first embodiment or the second embodiment.
Example ten
The embodiment of the invention discloses a computer-readable storage medium which 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 a target service providing device in the service-oriented vehicle-mounted ECU software upgrading method in the first embodiment or the second embodiment.
EXAMPLE eleven
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 is operable to cause a computer to execute part or all of the steps performed by a target service providing device in the service-oriented in-vehicle ECU software upgrading method described in the first or second embodiment.
The above-described embodiments are only illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where 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 Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
Finally, it should be noted that: the service-oriented vehicle-mounted ECU software upgrading method, system and related equipment disclosed in the embodiment of the invention are only preferred embodiments of the invention, and are only used for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A service-oriented vehicle-mounted ECU software upgrading method is applied to a software upgrading system comprising an execution device and at least one service providing device, wherein the execution device and the service providing device are both vehicle-mounted devices, and the method comprises the following steps:
the execution equipment sends a subscription request to target service providing equipment to request subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), wherein the target service providing equipment is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
the target service providing equipment receives the subscription request and feeds back a subscription confirmation response matched with the subscription request to the executing equipment;
the execution equipment receives the subscription confirmation response and transmits a software upgrading package of the target vehicle-mounted ECU to the target service providing equipment;
the target service providing equipment receives the software upgrading package of the target vehicle-mounted ECU and executes a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is the Ethernet refreshing machine function service, the target service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the target service providing equipment is an in-vehicle gateway ECU.
2. The service-oriented in-vehicle ECU software upgrade method according to claim 1, further comprising:
the execution equipment detects whether a software upgrading instruction aiming at a certain vehicle-mounted ECU is received or not;
when a software upgrading instruction aiming at a certain vehicle-mounted ECU is received, the execution equipment executes the operation of sending a subscription request to the target service providing equipment so as to request the subscription of the target refreshing machine function service matched with the target vehicle-mounted ECU;
wherein the target vehicle-mounted ECU is the certain vehicle-mounted ECU.
3. The service-oriented in-vehicle ECU software upgrading method according to claim 1 or 2, characterized in that before the execution device sends a subscription request to the target service providing device to request subscription to the target refresher function service matching the target in-vehicle ECU, the method further comprises:
the execution equipment determines the target type of the service to be subscribed;
the execution equipment selects service providing equipment capable of providing the service of the target type as target service providing equipment according to the target type, and triggers and executes the operation of sending a subscription request to the target service providing equipment to request for subscribing the functional service of the target refreshing machine matched with the target vehicle-mounted ECU;
the subscription request comprises attribute parameters of the execution device and/or a service type to which the execution device is subscribed, and the attribute parameters of the execution device comprise a device type of the execution device and/or an identification code of the execution device.
4. The service-oriented in-vehicle ECU software upgrade method according to claim 3, wherein after the target service providing device receives the subscription request, the method further comprises:
the target service providing equipment judges whether the executing equipment is legally subscribed executing equipment according to the content included in the subscription request;
when the execution device is judged to be the legally subscribed execution device, the target service providing device executes the operation of feeding back a subscription confirmation response to the execution device;
wherein, the target service providing device judges whether the executing device is a legally subscribed executing device according to the content included in the subscription request, including:
and the target service providing equipment judges whether the service required by the execution equipment is one of at least one service which can be provided by the target service providing equipment or not according to the content included in the subscription request, and when the service required by the execution equipment is judged to be one of the at least one service which can be provided by the target service providing equipment, the execution equipment is determined to be legally subscribed execution equipment.
5. A service-oriented vehicle-mounted ECU software upgrading system is characterized by at least comprising an execution device and at least one service providing device capable of providing services required by the execution device, wherein the execution device and the service providing device are vehicle-mounted devices;
the execution device comprises a first communication module and a transmission module, the service providing device comprises a second communication module, a feedback module and an upgrade control module, wherein:
the first communication module is used for sending a subscription request to the service providing equipment to request for subscribing a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), wherein the service providing equipment is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU needing software upgrading;
the second communication module is used for receiving the subscription request;
the feedback module is used for feeding back a subscription confirmation response matched with the subscription request to the execution equipment;
the first communication module is further configured to receive the subscription confirmation response;
the transmission module is used for transmitting the software upgrading package of the target vehicle-mounted ECU to the service providing equipment after the first communication module receives the subscription confirmation response;
the second communication module is also used for receiving a software upgrading package of the target vehicle-mounted ECU;
the upgrading control module is used for executing a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is an Ethernet refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
6. The service-oriented in-vehicle ECU software upgrade system according to claim 5, wherein the execution device further comprises a detection module, wherein:
the detection module is used for detecting whether a software upgrading instruction aiming at the target vehicle-mounted ECU is received or not; when a software upgrading instruction aiming at 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 providing equipment so as to request the subscription of the target refreshing machine function service matched with the target vehicle-mounted ECU.
7. The service-oriented in-vehicle ECU software upgrade system according to claim 5 or 6, characterized in that the execution apparatus further comprises:
the determining module is used for determining the target type of the service required to be subscribed;
the selection module is used for selecting service providing equipment capable of providing the service of the target type according to the target type and triggering the first communication module to execute the operation of sending a subscription request to the service providing equipment so as to request for subscribing the functional service of the target refreshing machine matched with the target vehicle-mounted ECU;
the subscription request comprises attribute parameters of the execution device and/or a service type to which the execution device is subscribed, and the attribute parameters of the execution device comprise a device type of the execution device and/or an identification code of the execution device.
8. The service-oriented in-vehicle ECU software upgrade system according to claim 7, characterized in that the service providing apparatus further comprises:
the judging module is used for judging whether the execution equipment is legally subscribed execution equipment or not according to the content included in the subscription request after the second communication module receives the subscription request; when the execution device is judged to be the legally subscribed execution device, triggering the feedback module to execute the operation of feeding back a subscription confirmation response to the execution device;
the specific way that the judging module judges whether the execution device is a legally subscribed execution device according to the content included in the subscription request is as follows:
and judging whether the service required by the execution equipment is one of at least one service which can be provided by the service providing equipment or not according to the content included in the subscription request, and when the service required by the execution equipment is judged to be one of the at least one service which can be provided by the service providing equipment, determining that the execution equipment is legally subscribed execution equipment.
9. An execution device, characterized in that the execution device is an in-vehicle device, and the execution device includes:
the system comprises a first communication module, a second communication module and a service providing device, wherein the first communication module is used for sending a subscription request to the service providing device to request to subscribe a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), the service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
the first communication module is further configured to receive a subscription confirmation response that the service providing device feeds back a subscription confirmation response that matches the subscription request;
the transmission module is used for transmitting the software upgrading package of the target vehicle-mounted ECU to the service providing equipment after the first communication module receives the subscription confirmation response so as to trigger the service providing equipment to execute a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is an Ethernet refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
10. A service providing apparatus characterized in that the service providing apparatus is an in-vehicle apparatus, the service providing apparatus comprising:
the second communication module is used for receiving a subscription request sent by an execution device, wherein the subscription request is used for requesting to subscribe a target refreshing machine function service matched with a target vehicle-mounted ECU (electronic control unit), the service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU (electronic control unit) needing software upgrading;
a feedback module, configured to feed back, to the execution device, a subscription confirmation response matching the subscription request;
the second communication module is also used for receiving a software upgrading package of the target vehicle-mounted ECU;
the upgrading control module is used for executing a software upgrading process aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
wherein the software upgrade package of the target in-vehicle ECU is transmitted to the service providing apparatus after the execution apparatus receives the subscription confirmation response; when the upgrading type of the target vehicle-mounted ECU is a remote upgrading type, the execution equipment is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; when the upgrading type of the target vehicle-mounted ECU is a local upgrading type, the execution equipment is one of vehicle-mounted diagnosis equipment, vehicle-mounted test equipment and a vehicle-mounted gateway ECU;
when the target refreshing machine function service is an Ethernet refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU or a vehicle-mounted instrument controller; and when the target refreshing machine function service is the CAN refreshing machine function service, the service providing equipment is an in-vehicle gateway ECU.
CN202010199017.XA 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 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 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment

Publications (2)

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

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615049A (en) * 2022-03-08 2022-06-10 斑马网络技术有限公司 Authority checking method and system for event subscription
CN115190165A (en) * 2022-06-24 2022-10-14 重庆长安汽车股份有限公司 Vehicle OTA system and method based on subscription and publishing mode

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104777771A (en) * 2014-01-09 2015-07-15 福特全球技术公司 Vehicle and system for updating configuration of module to support different function
US20150277942A1 (en) * 2014-03-31 2015-10-01 Ford Global Technologies, Llc Targeted vehicle remote feature updates
US20150286475A1 (en) * 2014-04-02 2015-10-08 Ford Global Technologies, Llc Multiple chunk software updates
CN105227647A (en) * 2015-09-18 2016-01-06 浪潮软件股份有限公司 A kind of distributed software upgrade method
CN105270288A (en) * 2014-05-30 2016-01-27 福特全球技术公司 Method and Apparatus for Dynamically Updating a Vehicle Module Configuration Record
CN106250169A (en) * 2015-06-15 2016-12-21 李尔公司 Central system for software upgrading vehicle assembly
CN106257416A (en) * 2015-06-16 2016-12-28 李尔公司 The method updating vehicle software for wireless remote
US20170352198A1 (en) * 2016-06-02 2017-12-07 Denso Corporation Vehicular electronic control unit and vehicular service management system
CN108540361A (en) * 2017-02-15 2018-09-14 福特全球技术公司 Central gateway for vehicle networked enhancing
CN109391482A (en) * 2017-08-02 2019-02-26 华为技术有限公司 The upgrade method and updating and management entity of network function
WO2019083440A2 (en) * 2017-10-24 2019-05-02 华为国际有限公司 Vehicle-mounted device upgrading method and related device
CN109842656A (en) * 2017-11-28 2019-06-04 厦门雅迅网络股份有限公司 Car networking method of servicing, the car networking gateway system of the compatible multi-protocols of intelligence
CN208986969U (en) * 2018-09-28 2019-06-14 慧翰微电子股份有限公司 A kind of car networking terminal for supporting ECU FOTA to upgrade
CN110149370A (en) * 2019-04-23 2019-08-20 华为技术有限公司 A kind of upgrade file method for down loading and device
CN110445869A (en) * 2019-08-13 2019-11-12 中国工商银行股份有限公司 A kind of content delivery method, terminal and server subscribed to based on distribution

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104777771A (en) * 2014-01-09 2015-07-15 福特全球技术公司 Vehicle and system for updating configuration of module to support different function
US20150277942A1 (en) * 2014-03-31 2015-10-01 Ford Global Technologies, Llc Targeted vehicle remote feature updates
US20150286475A1 (en) * 2014-04-02 2015-10-08 Ford Global Technologies, Llc Multiple chunk software updates
CN105270288A (en) * 2014-05-30 2016-01-27 福特全球技术公司 Method and Apparatus for Dynamically Updating a Vehicle Module Configuration Record
CN106250169A (en) * 2015-06-15 2016-12-21 李尔公司 Central system for software upgrading vehicle assembly
CN106257416A (en) * 2015-06-16 2016-12-28 李尔公司 The method updating vehicle software for wireless remote
CN105227647A (en) * 2015-09-18 2016-01-06 浪潮软件股份有限公司 A kind of distributed software upgrade method
US20170352198A1 (en) * 2016-06-02 2017-12-07 Denso Corporation Vehicular electronic control unit and vehicular service management system
CN108540361A (en) * 2017-02-15 2018-09-14 福特全球技术公司 Central gateway for vehicle networked enhancing
CN109391482A (en) * 2017-08-02 2019-02-26 华为技术有限公司 The upgrade method and updating and management entity of network function
WO2019083440A2 (en) * 2017-10-24 2019-05-02 华为国际有限公司 Vehicle-mounted device upgrading method and related device
CN109842656A (en) * 2017-11-28 2019-06-04 厦门雅迅网络股份有限公司 Car networking method of servicing, the car networking gateway system of the compatible multi-protocols of intelligence
CN208986969U (en) * 2018-09-28 2019-06-14 慧翰微电子股份有限公司 A kind of car networking terminal for supporting ECU FOTA to upgrade
CN110149370A (en) * 2019-04-23 2019-08-20 华为技术有限公司 A kind of upgrade file method for down loading and device
CN110445869A (en) * 2019-08-13 2019-11-12 中国工商银行股份有限公司 A kind of content delivery method, terminal and server subscribed to based on distribution

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YUTAKA ONUMA等: "Compression method for ECU software updates", 2017 TENTH INTERNATIONAL CONFERENCE ON MOBILE COMPUTING AND UBIQUITOUS NETWORK (ICMU) *
张东伟;王文扬;杜明星;魏克新;: "基于车联网的车辆远程控制系统设计", 制造业自动化, no. 09 *
汪春华;白稳峰;刘胤博;张玉稳;: "基于CAN总线UDS服务BootLoader应用开发", 电子测量技术, no. 02 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615049A (en) * 2022-03-08 2022-06-10 斑马网络技术有限公司 Authority checking method and system for event subscription
CN115190165A (en) * 2022-06-24 2022-10-14 重庆长安汽车股份有限公司 Vehicle OTA system and method based on subscription and publishing mode
CN115190165B (en) * 2022-06-24 2023-06-06 重庆长安汽车股份有限公司 Vehicle OTA system and method based on subscription and release mode

Similar Documents

Publication Publication Date Title
CN109831338B (en) Vehicle machine system upgrading method, cloud server and mobile terminal
JP7035635B2 (en) Software consistency check method in vehicle control system and vehicle control system
CN110785737A (en) Method and central data processing device for updating software in a plurality of vehicles
KR20140100562A (en) System for providing telematic services and corresponding method
CN112673609B (en) Data transmission system, data transmission method, intelligent vehicle and device
CN111930403A (en) Vehicle electronic control unit calibration system and method
CN113472884A (en) OTA (over the air) upgrading method and device
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
CN112181449A (en) Vehicle-mounted software upgrading method, device, system and storage medium
CN115016805A (en) Vehicle system upgrading method, device, system, equipment and medium
US11269617B2 (en) System for transmitting at least one upgrade package for at least one control device of a motor vehicle and method
CN113497719A (en) Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment
CN113497719B (en) Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment
CN113568640A (en) Upgrading method of main program of air conditioner external unit, operation control device and air conditioner
CN110704076A (en) Data processing method and device, vehicle-mounted controller and computer-readable storage medium
US11736577B2 (en) Server, update management method, non-transitory storage medium, software update device, and system including server and software update device
CN115202323A (en) Service request management method and device for vehicle, vehicle and medium
CN111970136B (en) Firmware upgrading method, loRa gateway, loRa system and computer readable storage medium
CN113885923A (en) Vehicle ECU upgrading system and method
CN113821231A (en) Software flashing system, method and device
CN115315377A (en) Vehicle-mounted information processing device, information processing method, and server program
KR102064519B1 (en) Method for updating software of electronic control unit of vehicle, apparatus and system thereof
CN112346441A (en) Automobile online diagnosis method and system and automobile diagnosis equipment
CN112767722A (en) Control method and device for traffic signal machine, computer equipment and storage medium
CN117234563B (en) Method and client for upgrading firmware of ECU (electronic control Unit) based on UDS (Universal description service) protocol

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