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

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

Info

Publication number
CN113497719B
CN113497719B CN202010199017.XA CN202010199017A CN113497719B CN 113497719 B CN113497719 B CN 113497719B CN 202010199017 A CN202010199017 A CN 202010199017A CN 113497719 B CN113497719 B CN 113497719B
Authority
CN
China
Prior art keywords
vehicle
target
service
ecu
service providing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010199017.XA
Other languages
Chinese (zh)
Other versions
CN113497719A (en
Inventor
黄盛立
张雁英
刘光达
胡灿东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202010199017.XA priority Critical patent/CN113497719B/en
Publication of CN113497719A publication Critical patent/CN113497719A/en
Application granted granted Critical
Publication of CN113497719B publication Critical patent/CN113497719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

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

Description

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, a service-oriented vehicle-mounted ECU software upgrading system and related equipment.
Background
With the rapid development of the vehicle-mounted network communication technology, the application of the vehicle-mounted ethernet on the vehicle is also becoming wider and wider, for example: entertainment systems, intelligent driving systems and the like are gradually switched to adopting a vehicle-mounted Ethernet for signal transmission. Thus, the need for refreshing the whole vehicle ECU (Electronic Control Unit ) and ethernet is also increasing.
Currently, software upgrades to the whole vehicle ECU may generally be through various paths, such as OBD (On Board Diagnostics, on-board automatic diagnostic system), USB (Universal Serial Bus ), OTA (Over the Air technology), and so on. However, the practice finds that the current software upgrading strategy of the whole vehicle ECU is single, and the provision of a more flexible software upgrading strategy is particularly important for the whole vehicle ECU to upgrade the software.
Disclosure of Invention
The invention aims to solve the technical problem of providing a service-oriented vehicle-mounted ECU software upgrading method, a service-oriented vehicle-mounted ECU software upgrading system and related equipment, and the service-oriented vehicle-mounted ECU software upgrading system and the related equipment can realize the vehicle-mounted ECU software upgrading 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, where the method is applied to a software upgrading system including an execution device and at least one service providing device, where the execution device and the service providing device are both vehicle-mounted devices, and the method includes:
The execution device sends a subscription request to target service providing device to request subscription of target refreshing machine function service matched with target vehicle-mounted ECU, wherein the target service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU needing software upgrading;
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;
The execution device receives the subscription confirmation response and transmits a software upgrade package of the target vehicle-mounted ECU to the target service providing device;
the target service providing equipment receives a software upgrading packet of the target vehicle-mounted ECU and executes a software upgrading flow aiming at the target vehicle-mounted ECU according to the software upgrading packet of the target vehicle-mounted ECU;
When the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network 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 CAN refreshing machine function service, the target service providing equipment is in-vehicle network 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, and 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 subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU, 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 a software upgrade 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 further used for receiving a software upgrade package of the target vehicle-mounted ECU;
The upgrade control module is used for executing a software upgrade flow aiming at the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;
When the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network ECU;
when the target refreshing machine function service is the 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
An execution device according to a third aspect of the present invention is an in-vehicle device, including:
the system comprises a first communication module, a service providing device and a second communication module, wherein the first communication module is used for sending a subscription request to the service providing device to request subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU, 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 needing software upgrading;
the first communication module is further used for receiving a subscription confirmation response matched with the subscription request and fed back by the service providing device;
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 flow for the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU;
When the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network ECU;
when the target refreshing machine function service is the 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
The fourth aspect of the present invention discloses another execution device, which is a vehicle-mounted device, and the execution device includes:
a memory storing executable program code;
a processor coupled to the memory;
The processor invokes the executable program code stored in the memory 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 aspect of the present invention.
The fifth aspect of the present invention discloses a computer storage medium, where the computer storage medium stores computer instructions, where the computer instructions are used to execute part or all of the steps executed by the execution device in any one of the service-oriented vehicle-mounted ECU software upgrading methods according to the first aspect of the present invention.
A sixth aspect of the present invention discloses a service providing apparatus, which is an in-vehicle apparatus, comprising:
The second communication module is used for receiving a subscription request sent by the execution equipment, wherein the subscription request is used for requesting subscription to target refreshing machine function service matched with a target vehicle-mounted ECU, 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 feedback module is used for feeding back a subscription confirmation response matched with the subscription request to the execution equipment;
the second communication module is further used for receiving a software upgrade package of the target vehicle-mounted ECU;
The upgrade control module is used for executing a software upgrade flow aiming at the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;
The target vehicle-mounted ECU receives the subscription confirmation response from the execution device and then sends the subscription confirmation response to the service providing device; when the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network ECU;
when the target refreshing machine function service is the 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
A seventh aspect of the present invention discloses another service providing apparatus, including:
a memory storing executable program code;
a processor coupled to the memory;
The processor invokes 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 vehicular ECU software upgrading method according to any one of the first aspect of the present invention.
An eighth aspect of the present invention discloses a computer storage medium storing computer instructions for executing part or all of the steps executed by the target service providing device in any one of the service-oriented vehicular ECU software upgrading methods of the first aspect of the present invention when the computer instructions are invoked.
Compared with the prior art, the invention has the beneficial effects that:
The invention can be implemented by subscribing the refreshing machine function service and acquiring the software upgrading package through the execution equipment (also can be understood as an upgrading end), the service providing equipment (such as an ECU with the refreshing machine function) for providing the refreshing machine function service issues the service to the execution equipment, after the software upgrading is confirmed, the execution equipment sends the acquired software upgrading package to the service providing equipment for providing the refreshing machine function service for carrying out the software upgrading, therefore, the invention provides a service-oriented software upgrading strategy, and the subscribing and issuing operation of the refreshing machine function service is added before the software upgrading, thereby providing a more flexible, safer and configurable software upgrading mode for the whole ECU 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 of 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 upgrade system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another service-oriented vehicle-mounted ECU software upgrade system according to an embodiment of the present 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 apparatus according to an embodiment of the present invention.
Detailed Description
For a better understanding and implementation, the technical solutions of 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 apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "comprises," "comprising," and "having," and any variations 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 that are 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, subscription of refreshing machine function service and acquisition of a software upgrading package can be carried out through execution equipment (also can be understood as an upgrading end), service is issued to the execution equipment by service providing equipment (such as an ECU with the refreshing machine function) for providing the refreshing machine function service, after the software upgrading is confirmed, the execution equipment sends the acquired software upgrading package to the service providing equipment for providing the refreshing machine function service for carrying out the software upgrading, and therefore, the service-oriented software upgrading strategy is provided, subscription and issuing operation of the refreshing machine function service are added before the software upgrading, and a more flexible, safer and configurable software upgrading mode is provided for the whole vehicle ECU software upgrading. The following will describe in detail.
Example 1
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 upgrade system including an execution device and at least one service providing device, where the execution device and the service providing device may be vehicle-mounted devices, and the embodiment of the present invention is not limited. As shown in fig. 1, the service-oriented vehicle-mounted ECU software upgrade method may include the following operations:
101. The execution device sends a subscription request to the target service providing device to request subscription to the target refresh 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 function service, the target vehicle-mounted ECU is any vehicle-mounted ECU (such as an air conditioner controller or a panorama controller) which needs to be subjected to software upgrading, and one or more service providing devices for providing the target refreshing machine function 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 function service, the execution device may select one of the service providing devices from 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 preset in the executing device, and may be one or a combination of multiple high priority selection modes, idle selection modes, and high service success rate selection modes, where the high priority selection modes indicate that the executing device needs to select a service providing device with a highest priority or a higher priority than a preset priority from multiple service providing devices as a target service providing device, the idle selection modes indicate that the executing device needs to select a currently idle service providing device from multiple service providing devices as a target service providing device, and the high service success rate selection modes indicate that the executing device needs to select a service providing device with a highest success rate of establishing a service providing function or a service providing device with a higher priority than a preset success rate from multiple service providing devices as a target service providing device. Further, when there are a plurality of device selection modes, each selection mode has a corresponding priority, and the executing device may gradually select the target service providing device from the low to high mode according to the priority corresponding to the device selection mode.
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 the embodiment of the invention, the subscription confirmation response is used for indicating that the target service providing device provides or distributes the target refreshing machine function service to the execution device. Further, after receiving the subscription request, the target service providing device may first confirm the subscription request, and after confirming, perform the above operation of feeding back the subscription confirmation response matched with the subscription request to the executing device. Still further, the target service providing device may confirm the subscription request, including: the embodiment of the invention is not limited by the combination of one or more of confirming whether the subscription request meets the requirements, confirming whether the execution device sending the subscription request meets the requirements, and confirming the service requested by the subscription request. Thus, the accuracy and reliability of the service providing function established by the target service providing device and the executing device can be improved, and the accuracy of the software upgrading can be improved.
103. The execution device receives the subscription confirmation response and transmits a software upgrade package of the target vehicle-mounted ECU to the target service providing device.
The software upgrade package of the target vehicle-mounted ECU is acquired by the execution equipment, can be acquired locally or remotely, and the embodiment of the invention is not limited.
104. The target service providing device receives the software upgrading package of the target vehicle-mounted ECU and executes the software upgrading flow aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
In the embodiment of the invention, the software upgrade package of the target vehicle-mounted ECU can carry the software version number, so that the target service providing equipment can check whether the software upgrade package of the target vehicle-mounted ECU is the latest version of the software upgrade package according to the software version number. Further, the software upgrade package of the target vehicle-mounted ECU may further carry a software upgrade start time, so that when the current time reaches the software upgrade start time, the target service providing device executes a software upgrade procedure for the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU. The starting moment of the software upgrading 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 the software upgrade package of the target vehicle-mounted ECU is received, the target service providing device may store the software upgrade package first, and execute the software upgrade procedure for the target vehicle-mounted ECU according to the stored software upgrade package of the target vehicle-mounted ECU when the target vehicle-mounted ECU needs to be upgraded or reaches the upgrade time.
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 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 vehicle-mounted network ECU.
Optionally, when the target refresh function service is an ethernet refresh 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 CAN refreshing machine function service, the target service providing equipment is in-vehicle network ECU.
It can be seen that, by implementing the service-oriented vehicle-mounted ECU software upgrading method described in the embodiments of the present invention, subscription of the service providing the refresh function and acquisition of the software upgrading package can be performed by the execution device (also may be understood as an upgrading end), and the service providing device (such as the ECU with the refresh function) providing the service providing the refresh function issues the service to the execution device, after confirming the software upgrading, the execution device sends the acquired software upgrading package to the service providing device providing the service providing the refresh function to perform the software upgrading, that is: the service-oriented software upgrading strategy is provided, subscription and release operations of refreshing machine function services are added before software upgrading, and a more flexible, safer and configurable software upgrading mode is provided for whole vehicle ECU software upgrading.
Example two
Referring to fig. 2, fig. 2 is a flow chart of another service-oriented vehicle-mounted ECU software upgrading method according to the embodiment of the present invention. The method described in fig. 2 may be applied to a software upgrade system including an execution device and at least one service providing device, where the execution device and the service providing device may be vehicle-mounted devices, and the embodiment of the present invention is not limited. As shown in fig. 2, the service-oriented vehicle-mounted ECU software upgrade method may include the following operations:
201. The service providing device issues the corresponding refreshing machine function service to the executing device.
In the embodiment of the invention, before the service providing equipment and the executing equipment establish the service providing function, 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 can quickly and accurately select the 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 device detects whether a software upgrading instruction aiming at the target vehicle-mounted ECU is received, and when the detection result is negative, the flow can be ended, and the execution step 202 can be triggered continuously; when the detection result is yes, execution of step 203 may be triggered.
In the embodiment of the invention, the software upgrading instruction is used for indicating the target vehicle-mounted ECU to carry out software upgrading, namely the target vehicle-mounted ECU is any vehicle-mounted ECU which needs to carry out 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 to the target refresh function service matched with the target vehicle-mounted ECU.
Wherein the target service providing device is one of a plurality of service providing devices and is used for providing the target refresh function service, the type of the subscription request may be a message type, that is, the subscription request may be a subscription message.
204. The target service providing device receives the subscription request.
In the embodiment of the present invention, after receiving the subscription request, the target service providing device may first confirm the subscription request, and after confirming the subscription request, trigger to execute step 205. If the subscription request cannot be confirmed, the target service providing device may not respond, or may feedback a subscription invalid response or a subscription rejection response, so that the executing device may send a subscription request meeting the requirements in time or select other suitable service providing devices to subscribe to the target refresh machine function service.
205. The target service providing device feeds back a subscription confirmation response matched with the subscription request to the executing device.
In the embodiment of the invention, the subscription confirmation response is used for indicating that the target service providing device allows the executing device to subscribe to the target refreshing machine function service, namely, after the target service providing device feeds back the subscription confirmation response or the executing device receives the subscription confirmation response fed back by the target service providing device, the target service providing device and the executing device establish the 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 vehicle-mounted ECU to the target service providing device.
208. The target service providing device receives the software upgrading package of the target vehicle-mounted ECU and executes the software upgrading flow aiming at the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
In the embodiment of the invention, the software upgrading process is mainly a software upgrading process based on UDS (Unified Diagnostic Services, unified diagnostic service) updating, and mainly comprises processes of reading various version numbers of the target vehicle-mounted ECU, setting of DTCs (Diagnostic Trouble Code, diagnostic fault codes), communication setting, entering a programming mode, data transmission, erasing instructions, integrity verification and the like.
It should be noted that, for other detailed descriptions of the execution device and the target service providing device, and for other detailed descriptions of the steps executed by the execution device and the target service providing device, reference may be made to the related descriptions in the first embodiment, which is not repeated in the embodiments of the present invention.
In an alternative embodiment, after performing the finishing step 203, the execution device 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 period of time from the time when the subscription request is sent, if the subscription confirmation response is not received, the subscription is confirmed to be failed, and the executing device may continue to trigger the executing step 203. Wherein the duration of the certain time period is preset.
In this alternative embodiment, further optionally, after the execution device confirms the subscription failure, and before the execution step 203 is re-triggered, the execution device may further perform the following operations:
the execution device judges whether the accumulated number of subscription failures reaches or exceeds the preset number, and when the judgment result is negative, the execution device continues to trigger the execution step 203; when the determination result is yes, the current flow may be ended, or another service providing device capable of providing the target refresh function service may be selected as a new target service providing device, and the execution of step 203 may be retried.
It can be seen that, in this alternative embodiment, whether to continue to execute step 203 can be determined according to the accumulated number of subscription failures after the subscription failure, so as to implement subscription control on the executing device, and when the accumulated number of subscription failures is greater, the executing device may automatically select other service providing devices to subscribe, so as to reduce the problems of low subscription success rate and low subscription efficiency caused by the subscription failure and continuous transmission of the subscription request to the same service providing device.
In another alternative embodiment, the method may further comprise the following operations, before the completing step 203 is performed:
the execution device determines the target type of the service to be subscribed to;
The execution device selects a service providing device capable of providing the service of the target type as the target service providing device according to the target type, and triggers the execution of the above-mentioned operation of sending a subscription request to the target service providing device to request subscription to the target refresh function service matched with the target vehicle-mounted ECU.
Therefore, before the subscription request is sent, the optional embodiment can select an appropriate service providing device to send the subscription request according to the type of the required subscription service, which is beneficial to improving the subscription success rate and the refresh function service provided or released by the service providing device after the subscription success rate to meet the software upgrading requirement of the vehicle-mounted ECU needing to carry out the software upgrading.
Optionally, the target refresh machine service may be one of a CAN refresh machine function service, an ethernet refresh machine function service, and a CAN-ethernet hybrid refresh machine function service, that is, a refresh machine function service that may be provided by a service providing device may include at least one of a CAN refresh machine function service, an ethernet refresh machine function service, and a CAN-ethernet hybrid refresh machine function service, which is not limited in the embodiment of the present invention. It should be noted that, the refreshing machine function service provided by the service providing device can be designed and allocated according to the actual situation of the whole vehicle.
Alternatively, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device may be a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module on a vehicle.
Alternatively, 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 network ECU. In this way, the execution device subscribed to can be adaptively selected according to the upgrade type of the vehicle-mounted ECU to be upgraded.
In still 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, 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, and embodiments of the present invention are not limited.
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 device judges whether the executing device is a legal subscribing executing device according to the content included in the subscribing request, and when the judging result is yes, the target service providing device triggers the executing of the operation of feeding back the subscribing confirmation response to the executing device.
Still further optionally, when it is determined that the execution device is not a legal subscribed execution device, 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 may be parsed by the execution device, where the target identifier is used to indicate that the execution device is not a legal subscribed execution device or that the service subscribed by the execution device is not a functional service provided by the target service providing device.
Still further alternatively, the target service providing device determines, according to the content included in the subscription request, whether the executing device is a legal subscribed executing device, including:
The target service providing device judges whether the service required by the executing device is one of at least one service which can be provided by the target service providing device according to the content included in the subscription request, and when judging that the service required by the executing device is one of at least one service which can be provided by the target service providing device, the executing device is determined to be the executing device which is legally subscribed.
It can be seen that the optional embodiment can also perform verification of subscription legitimacy on 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 accuracy of service providing functions established by the service providing device and the execution device.
For example, the example of upgrading software by OTA to an air conditioner controller (CAN refresh) and a panorama controller (ethernet refresh) is described, wherein Tbox is an executor (i.e. executing device) for subscription service and refresh allocation function, the gateway provides CAN refresh function service and ethernet refresh function service, and the meter controller provides ethernet refresh function service, and the specific flow is as follows.
The software upgrade of the air conditioner controller (CAN refresh) through OTA mainly comprises the following procedures:
Step S01: the gateway periodically sends a message for providing CAN refreshing machine function service;
step S02: tbox receives a software upgrading instruction for upgrading the air conditioner controller;
Step S03: tbox subscribes to the gateway CAN refreshing machine function service, namely Tbox sends a subscription message to the gateway;
Step S04: the gateway receives the subscription message and confirms the subscription, and after confirmation, sends the subscription confirmation message to Tbox, tbox and completes the subscription process after receiving the subscription confirmation message; if Tbox does not receive the subscription confirmation message of the gateway within the designated time, the subscription fails, and the process is returned to step S03, and is circulated for N times (N is a configurable number of times, such as 3), if the subscription fails after N times, tbox selects to subscribe other controllers capable of providing CAN refreshing machine functions to restart subscription;
step S05: tbox transmitting an air conditioner controller upgrade software package to the gateway;
Step S06: the gateway receives and stores;
Step S07: the gateway is used as a CAN refreshing machine to carry out a software upgrading process on the air conditioner controller, the process is mainly a software upgrading process based on UDS updating, and mainly comprises 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 the upgrading of the air conditioner controller software is completed.
And, upgrading software of the panoramic controller (ethernet refresh) through the OTA includes the following procedures:
Step S11: the gateway and the instrument controller periodically send messages for providing the Ethernet refreshing machine function service;
Step S12: tbox receives a software upgrading instruction for upgrading the panorama controller;
Step S13: tbox selecting one of the gateway or the instrument controller to subscribe to the Ethernet refreshing machine function service according to the self strategy, taking selecting the gateway to subscribe to the Ethernet refreshing machine function service as an example, tbox sending a subscription message to the gateway;
step S14: the gateway receives the subscription message and confirms the subscription, and after confirmation, sends the subscription confirmation message to Tbox, and Tbox receives the subscription confirmation message to complete the subscription process; if Tbox does not receive the subscription confirmation message of the gateway within the designated time, the subscription fails, and the process needs to return to step 03, and the process is circulated N times (N is a configurable number of times, for example, 3), if the subscription fails after N times, tbox selects to subscribe to other controllers (such as an instrument controller) capable of providing the ethernet refresh function, and the subscription is restarted;
Step S15: tbox transmitting the panoramic controller upgrade software package to the gateway;
Step S16: the gateway receives and stores;
step S17: the gateway is used as an Ethernet refreshing machine to carry out a software upgrading process on the panoramic controller, and the process is mainly based on a software upgrading process updated by UDS and mainly comprises processes of reading various version numbers, DTC settings, communication settings, entering a programming mode, data transmission, erasing instructions, integrity verification and the like of the panoramic controller;
Step S18: and finishing the software upgrading of the panoramic controller.
It can be seen that, by implementing the service-oriented vehicle-mounted ECU software upgrading method described in the embodiments of the present invention, subscription of the service providing the refresh function and acquisition of the software upgrading package can be performed by the execution device (also may be understood as an upgrading end), and the service providing device (such as the ECU with the refresh function) providing the service providing the refresh function issues the service to the execution device, after confirming the software upgrading, the execution device sends the acquired software upgrading package to the service providing device providing the service providing the refresh function to perform the software upgrading, that is: the service-oriented software upgrading strategy is provided, subscription and release operations of refreshing machine function services are added before software upgrading, and a more flexible, safer and configurable software upgrading mode is provided for whole vehicle ECU software upgrading. In addition, the execution device can confirm the refreshing function service provided by different service providing devices in advance, so that the execution device can quickly and accurately select the proper service providing device to subscribe the refreshing function service when determining that a certain vehicle-mounted ECU needs to be upgraded. In addition, the subscription control of the execution device can be realized, and when the cumulative number of subscription failures is large, the execution device can automatically select other service providing devices to subscribe, so that the problems of low subscription success rate and low subscription efficiency caused by the subscription failure and continuously sending the subscription request to the same service providing device 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 refreshing machine function service provided or released by the service providing equipment after the subscription success rate meets the software upgrading requirement of the vehicle-mounted ECU which needs to carry out software upgrading. In addition, the execution device for subscribing can be adaptively selected according to the upgrading type of the vehicle-mounted ECU to be upgraded, and after the service providing device receives the subscription request, the subscription legitimacy of the execution device for sending the subscription request can be checked according to the content included in the subscription request, so that the accuracy of the service providing function established by the service providing device and the execution device is improved.
Example III
The embodiment of the invention discloses a service-oriented vehicle-mounted ECU software upgrading method which can be applied to execution equipment, wherein the execution equipment is vehicle-mounted equipment, and the method can comprise the following operations:
The execution device sends a subscription request to the target service providing device to request subscription to target refreshing machine function service matched with the target vehicle-mounted ECU;
The execution device receives the subscription confirmation response and transmits a software upgrading packet of the target vehicle-mounted ECU to the target service providing device so as to trigger the target service providing device to receive the software upgrading packet of the target vehicle-mounted ECU and execute a software upgrading flow aiming at the target vehicle-mounted ECU according to the software upgrading packet of the target vehicle-mounted ECU.
Optionally, before the above-mentioned sending a subscription request to the target service providing device to request to subscribe to the target refresh machine function service matched with the target vehicle-mounted ECU, the method may further include the following operations:
the execution device detects whether a software upgrading instruction for a certain vehicle-mounted ECU is received or not;
when a software upgrading instruction for a certain vehicle-mounted ECU is received, the execution device executes the operation of sending a subscription request to the target service providing device to request subscription to a target refreshing machine function service 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 to subscribe to the target refresh machine function service matched with the target vehicle-mounted ECU, the method further includes:
the execution device determines the target type of the service to be subscribed to;
The execution device selects a service providing device capable of providing the service of the target type as the target service providing device according to the target type, and triggers the execution of the above-mentioned operation of sending a subscription request to the target service providing device to request subscription to the target refresh function service matched with the target vehicle-mounted ECU.
Optionally, the target refresh machine function service is one of a CAN refresh machine function service, an ethernet refresh machine function service and a CAN-ethernet hybrid refresh machine function service.
Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; and/or when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of vehicle-mounted diagnosis device, vehicle-mounted test device and vehicle-mounted network 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, so as to trigger the target service subscription device to execute the following operations:
Judging whether the execution device is a legal subscribed execution device or not by the target service providing device according to the content included in the subscription request;
and when the execution device is judged to be the legal subscribed execution device, the target service providing device performs 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 a legally subscribed executing device according to the content included in the subscription request may include:
And judging whether the service required by the execution device is one of at least one service which can be provided by the target service providing device or not by the target service providing device according to the content included in the subscription request, and determining that the execution device is the execution device which is legally subscribed when judging that the service required by the execution device is one of the at least one service which can be provided by the target service providing device.
It should be noted that, for other descriptions of 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 the embodiments of the present invention are not repeated.
It can be seen that, when the embodiment of the present invention is implemented, subscription of the service of the refresh function and acquisition of the software upgrade package can be performed by the execution device (also understood as the upgrade end), and the service providing device (such as the ECU with the refresh function) that provides the service of the refresh function issues the service to the execution device, and after the software upgrade is confirmed, the execution device sends the acquired software upgrade package to the service providing device that provides the service of the refresh function to perform the software upgrade, that is: the service-oriented software upgrading strategy is provided, subscription and release operations of refreshing machine function services are added before software upgrading, and a more flexible, safer and configurable software upgrading mode is provided for whole vehicle ECU software upgrading.
Example IV
The embodiment of the invention discloses a 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 executing equipment, wherein the subscription request is used for requesting subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU, 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 which needs to be subjected to software upgrading;
the service providing device feeds back a subscription confirmation response matched with the subscription request to the executing device;
The service providing equipment receives a software upgrade package of the target vehicle-mounted ECU;
The service providing device executes a software upgrading procedure for the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU.
The target vehicle-mounted ECU software upgrade package is sent to the service providing equipment after the executing equipment receives the subscription confirmation response.
Optionally, the target refresh machine function service is one of a CAN refresh machine function service, an ethernet refresh machine function service, and a CAN-ethernet hybrid refresh machine function service.
Optionally, when the upgrade type of the target vehicle-mounted ECU is a remote upgrade type, the execution device is a vehicle-mounted Tbox or any vehicle-mounted ECU with a wireless communication module; and/or when the upgrade type of the target vehicle-mounted ECU is a local upgrade type, the execution device is one of vehicle-mounted diagnosis device, vehicle-mounted test device and vehicle-mounted network 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 alternatively, after receiving the subscription request, the service providing device may perform the following:
judging whether the execution device is a legal subscription execution device or not according to the content included in the subscription request;
and when the execution device is judged to be the legal subscription execution device, executing the operation of feeding back the subscription confirmation response to the execution device.
Further, the service providing device determines, according to the content included in the subscription request, whether the executing device is a legal subscribed executing device, and may include:
Judging whether the service required by the execution device is one of at least one service which can be provided by the target service providing device according to the content included in the subscription request, and determining that the execution device is the legal subscribed execution device when judging that the service required by the execution device is one of the at least one service which can be provided by the target service providing device.
It should be noted that, for other descriptions of 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 the embodiments of the present invention are not repeated.
It can be seen that, when the embodiment of the present invention is implemented, subscription of the service of the refresh function and acquisition of the software upgrade package can be performed by the execution device (also understood as the upgrade end), and the service providing device (such as the ECU with the refresh function) that provides the service of the refresh function issues the service to the execution device, and after the software upgrade is confirmed, the execution device sends the acquired software upgrade package to the service providing device that provides the service of the refresh function to perform the software upgrade, that is: the service-oriented software upgrading strategy is provided, subscription and release operations of refreshing machine function services are added before software upgrading, and a more flexible, safer and configurable software upgrading mode is provided for whole vehicle ECU software upgrading.
Example five
Referring to fig. 3, fig. 3 is a schematic structural diagram of a service-oriented vehicle-mounted ECU software upgrade system according to an embodiment of the present invention. As shown in fig. 3, the service-oriented vehicle-mounted 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 vehicle-mounted 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 to a target refresh function service that matches a target vehicle-mounted ECU, where the service providing device is configured to provide the target refresh function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU that needs to be upgraded.
A second communication module 401, configured to receive a subscription request.
A feedback module 402, configured to feed back a subscription confirmation response matched with the subscription request to the executing device.
The first communication module 301 is further configured to receive a subscription confirmation response.
And a transmission module 302, configured to transmit the software upgrade package of the target vehicle-mounted ECU to the service providing device after the first communication module 301 receives the subscription confirmation response.
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 procedure 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 CAN refreshing machine function service, ethernet refreshing machine function service and 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 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 vehicle-mounted network ECU.
Optionally, when the target refresh function service is an ethernet refresh 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
In an alternative embodiment, as shown in fig. 4, the execution device may further comprise a detection module 303, wherein:
a detection module 303, configured to detect whether a software upgrade instruction for the target vehicle-mounted ECU is received; when receiving the software upgrade instruction for the target vehicle-mounted 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 the target refresh function service that matches the target vehicle-mounted ECU.
In yet another alternative embodiment, as shown in fig. 4, the execution device may further include:
a determining module 304, configured to determine a target type of the service to be subscribed to.
The selecting module 305 is 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-mentioned operation of sending a subscription request to the service providing device to request subscription to the target refresh function service matched with the target vehicle-mounted 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 apparatus may further include:
a judging module 404, configured to judge whether the executing device is a legal subscribing executing device according to the content included in the subscription request after the second communication module 401 receives the subscription request; when the execution device is judged to be the legal subscription execution device, the feedback module 402 is triggered to execute the above operation of feeding back the subscription confirmation response to the execution device.
Still further optionally, the specific manner of determining, by the determining module 404, whether the executing device is a legal subscribed executing device according to the content included in the subscription request may be:
Judging whether the service required by the execution device is one of at least one service which can be provided by the target service providing device according to the content included in the subscription request, and determining that the execution device is the legal subscribed execution device when judging that the service required by the execution device is one of the at least one service which can be provided by the target service providing device.
It can be seen that, when the embodiment of the present invention is implemented, subscription of the service of the refresh function and acquisition of the software upgrade package can be performed by the execution device (also understood as the upgrade end), and the service providing device (such as the ECU with the refresh function) that provides the service of the refresh function issues the service to the execution device, and after the software upgrade is confirmed, the execution device sends the acquired software upgrade package to the service providing device that provides the service of the refresh function to perform the software upgrade, that is: the service-oriented software upgrading strategy is provided, subscription and release operations of refreshing machine function services are added before software upgrading, and a more flexible, safer and configurable software upgrading mode is provided for whole vehicle ECU software upgrading.
Example six
The embodiment of the invention discloses an execution device, which can be used as the execution device in the service-oriented vehicle-mounted ECU software upgrading system described in fig. 3 or 4 or shown in fig. 5. As shown in fig. 5, the executing device is a vehicle-mounted device and may include:
a memory 501 in which executable program codes are stored;
a processor 502 coupled to the memory 501;
The processor 502 invokes executable program code stored in the memory 501 for performing part or all of the steps performed by the execution device in the service-oriented in-vehicle ECU software upgrade method described in the first or second embodiment.
Example seven
The embodiment of the invention discloses service providing equipment, and the execution equipment can be the service providing equipment in the service-oriented vehicle-mounted ECU software upgrading system described in fig. 3 or 4 or can be shown in fig. 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 codes are stored;
A processor 602 coupled to the memory 601;
The processor 602 invokes executable program codes stored in the memory 601 for performing part or all of the steps performed by the target service providing apparatus in the service-oriented in-vehicle ECU software upgrade method described in the first or second embodiment.
Example eight
The embodiment of the invention discloses a computer readable storage medium storing 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 a vehicle-mounted ECU software upgrading method facing to services in the first embodiment or the second embodiment.
Example nine
An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps executed by an execution device in the service-oriented vehicular ECU software upgrade method described in the first or second embodiment.
Examples ten
The embodiment of the invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute part or all of the steps executed by a target service providing device in a service-oriented vehicle-mounted ECU software upgrading method in the first or 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 some or all of the steps executed by a target service providing apparatus in the service-oriented vehicular ECU software upgrading method described in the first or second embodiment.
The embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over 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 this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a service-oriented vehicle-mounted ECU software upgrading method and system, and related equipment, which are disclosed by the embodiment of the invention, are only the 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 invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. The service-oriented vehicle-mounted ECU software upgrading method is characterized by being 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 vehicle-mounted devices, and the method comprises the following steps:
The execution device sends a subscription request to target service providing device to request subscription of target refreshing machine function service matched with target vehicle-mounted ECU, wherein the target service providing device is used for providing the target refreshing machine function service, and the target vehicle-mounted ECU is any vehicle-mounted ECU needing software upgrading;
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;
The execution device receives the subscription confirmation response and transmits a software upgrade package of the target vehicle-mounted ECU to the target service providing device;
the target service providing equipment receives a software upgrading packet of the target vehicle-mounted ECU and executes a software upgrading flow aiming at the target vehicle-mounted ECU according to the software upgrading packet of the target vehicle-mounted ECU; the software upgrade package of the target vehicle-mounted ECU carries: the system comprises a target service providing device, a target vehicle-mounted ECU, a software upgrading package and a software upgrading starting moment, wherein the target service providing device is used for checking whether the software upgrading package of the target vehicle-mounted ECU is the software version number of the latest version of the software upgrading package or not, and the software upgrading starting moment is determined according to the actual working condition of the target vehicle-mounted ECU;
When the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network 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 CAN refreshing machine function service, the target service providing equipment is in-vehicle network ECU.
2. The service-oriented vehicle-mounted ECU software upgrade method according to claim 1, characterized in that the method further comprises:
the execution device detects whether a software upgrading instruction for a certain vehicle-mounted ECU is received or not;
When receiving a software upgrading instruction for a certain vehicle-mounted ECU, the execution device executes the operation of sending a subscription request to the target service providing device to request subscription to a 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 upgrade method according to claim 1 or 2, wherein before the execution device sends a subscription request to the target service providing device to request subscription to the target refresh function service that matches the target in-vehicle ECU, the method further comprises:
the execution device determines the target type of the service to be subscribed to;
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 execution of the operation of sending a subscription request to the target service providing device to request subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU;
The subscription request comprises attribute parameters of the execution device and/or service types to be subscribed by the execution device, and the attribute parameters of the execution device comprise device types of the execution device and/or identification codes of the execution device.
4. A 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 device judges whether the executing device is a legal subscribing executing device according to the content included in the subscribing request;
when the execution device is judged to be the legal subscription execution device, the target service providing device executes the operation of feeding back a subscription confirmation response to the execution device;
the target service providing device judges whether the executing device is a legal subscribing executing device according to the content included in the subscribing request, and the target service providing device comprises:
and the target service providing device judges whether the service required by the executing device is one of at least one service which can be provided by the target service providing device according to the content included in the subscription request, and when judging that the service required by the executing device is one of at least one service which can be provided by the target service providing device, the executing device is determined to be the executing device which is legally subscribed.
5. The 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, and 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 subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU, 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 a software upgrade package of the target vehicle-mounted ECU to the service providing equipment after the first communication module receives the subscription confirmation response; the software upgrade package of the target vehicle-mounted ECU carries: the system comprises a target vehicle-mounted ECU, a software upgrading package and a software upgrading starting moment, wherein the target vehicle-mounted ECU is used for providing a target service providing device to check whether the software upgrading package of the target vehicle-mounted ECU is the software version number of the latest version of the software upgrading package or not, and the software upgrading starting moment is determined according to the actual working condition of the target vehicle-mounted ECU;
the second communication module is further used for receiving a software upgrade package of the target vehicle-mounted ECU;
The upgrade control module is used for executing a software upgrade flow aiming at the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;
When the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network ECU;
when the target refreshing machine function service is the 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
6. The service-oriented onboard ECU software upgrade system of 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; and when a software upgrading instruction aiming at the target vehicle-mounted ECU is received, triggering the first communication module to execute the operation of sending a subscription request to the service providing equipment so as to request subscription to 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, wherein the execution device further comprises:
a determining module, configured to determine a target type of a service to be subscribed to;
The selecting 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 subscription of the target refreshing machine function service matched with the target vehicle-mounted ECU;
The subscription request comprises attribute parameters of the execution device and/or service types to be subscribed by the execution device, and the attribute parameters of the execution device comprise device types of the execution device and/or identification codes of the execution device.
8. The service-oriented in-vehicle ECU software upgrade system according to claim 7, wherein the service providing device further comprises:
The judging module is used for judging whether the executing equipment is legal subscribing executing equipment or not according to the content included in the subscribing request after the second communication module receives the subscribing request; when the execution device is judged to be the legal subscription execution device, triggering the feedback module to execute the operation of feeding back a subscription confirmation response to the execution device;
The specific mode of judging whether the execution device is the legal subscribed execution device according to the content included in the subscription request by the judging module is as follows:
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 according to the content included in the subscription request, and determining that the execution equipment is the legal subscription execution equipment when judging that the service required by the execution equipment is one of at least one service which can be provided by the service providing equipment.
9. An execution device, characterized in that the execution device is a vehicle-mounted device, the execution device comprising:
the system comprises a first communication module, a service providing device and a second communication module, wherein the first communication module is used for sending a subscription request to the service providing device to request subscription of a target refreshing machine function service matched with a target vehicle-mounted ECU, 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 needing software upgrading;
the first communication module is further used for receiving a subscription confirmation response matched with the subscription request and fed back by the service providing device;
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 flow for the target vehicle-mounted ECU according to the software upgrading package of the target vehicle-mounted ECU; the software upgrade package of the target vehicle-mounted ECU carries: the system comprises a target vehicle-mounted ECU, a software upgrading package and a software upgrading starting moment, wherein the target vehicle-mounted ECU is used for providing a target service providing device to check whether the software upgrading package of the target vehicle-mounted ECU is the software version number of the latest version of the software upgrading package or not, and the software upgrading starting moment is determined according to the actual working condition of the target vehicle-mounted ECU;
When the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network ECU;
when the target refreshing machine function service is the 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
10. A service providing apparatus, characterized in that the service providing apparatus is an in-vehicle apparatus, comprising:
The second communication module is used for receiving a subscription request sent by the execution equipment, wherein the subscription request is used for requesting subscription to target refreshing machine function service matched with a target vehicle-mounted ECU, 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 feedback module is used for feeding back a subscription confirmation response matched with the subscription request to the execution equipment;
The second communication module is further used for receiving a software upgrade package of the target vehicle-mounted ECU; the software upgrade package of the target vehicle-mounted ECU carries: the system comprises a target vehicle-mounted ECU, a software upgrading package and a software upgrading starting moment, wherein the target vehicle-mounted ECU is used for providing a target service providing device to check whether the software upgrading package of the target vehicle-mounted ECU is the software version number of the latest version of the software upgrading package or not, and the software upgrading starting moment is determined according to the actual working condition of the target vehicle-mounted ECU;
The upgrade control module is used for executing a software upgrade flow aiming at the target vehicle-mounted ECU according to the software upgrade package of the target vehicle-mounted ECU;
The target vehicle-mounted ECU receives the subscription confirmation response from the execution device and then sends the subscription confirmation response to the service providing device; when the upgrade type of the target vehicle-mounted ECU is a remote upgrade 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 vehicle-mounted network ECU;
when the target refreshing machine function service is the 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 CAN refreshing machine function service, the service providing equipment is in-vehicle network ECU.
CN202010199017.XA 2020-03-20 2020-03-20 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment Active CN113497719B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=77993609

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113497719B (en)

Families Citing this family (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
CN115190165B (en) * 2022-06-24 2023-06-06 重庆长安汽车股份有限公司 Vehicle OTA system and method based on subscription and release mode

Citations (1)

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

Family Cites Families (14)

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

Patent Citations (1)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
US10599418B2 (en) Software update system and server
CN113497719B (en) Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment
US7502353B2 (en) Device for accessing a vehicle control system via a wireless link
US6842762B2 (en) Method for documentation of data for a vehicle
US7500151B2 (en) Data logging in a motor vehicle
US11507365B2 (en) On-board update device, update processing program, program update method, and on-board update system
US7493198B2 (en) Method and device for a vehicle-related telematics service
US8561054B2 (en) Method for updating software components
CN111277477B (en) FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments
US11144304B2 (en) Method and central data processing device for updating software in a plurality of vehicles
CN112328294A (en) OTA (over the air) upgrading method and system for vehicle ECU (electronic control Unit)
CN112134940A (en) OTA upgrade task life cycle strategy management method
JP2007099145A (en) Diagnosis system for on-vehicle network, and on-vehicle control device
CN111930403A (en) Vehicle electronic control unit calibration system and method
CN115016805A (en) Vehicle system upgrading method, device, system, equipment and medium
CN115344281A (en) Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment
US11736577B2 (en) Server, update management method, non-transitory storage medium, software update device, and system including server and software update device
CN112131554B (en) Vehicle-mounted terminal installation identification method and device and vehicle-mounted terminal
CN111722856B (en) Method and device for upgrading firmware in vehicle-mounted microcontroller
KR102110581B1 (en) Apparatus and Method Diagnosing Controller for Vehicle
CN115202323A (en) Service request management method and device for vehicle, vehicle and medium
EP2458564A2 (en) Remote diagnosis of vehicles
JP7167579B2 (en) electronic controller
CN113553083A (en) Program upgrading method and device for air conditioning system, air conditioning system and storage medium
JP2014015142A (en) In-vehicle control system

Legal Events

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