CN114064080A - Vehicle software upgrading method, device, equipment and storage medium - Google Patents

Vehicle software upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN114064080A
CN114064080A CN202111365242.7A CN202111365242A CN114064080A CN 114064080 A CN114064080 A CN 114064080A CN 202111365242 A CN202111365242 A CN 202111365242A CN 114064080 A CN114064080 A CN 114064080A
Authority
CN
China
Prior art keywords
software upgrading
electronic control
chip
control unit
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111365242.7A
Other languages
Chinese (zh)
Inventor
马红敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Intelligent Control Beijing Technology Co Ltd
Original Assignee
Guoqi Intelligent Control Beijing Technology 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 Guoqi Intelligent Control Beijing Technology Co Ltd filed Critical Guoqi Intelligent Control Beijing Technology Co Ltd
Priority to CN202111365242.7A priority Critical patent/CN114064080A/en
Publication of CN114064080A publication Critical patent/CN114064080A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a vehicle software upgrading method, a device, equipment and a storage medium, wherein the method comprises the following steps: when the SOC receives a flash request transmitted by a vehicle-mounted gateway, determining whether the current state of a vehicle meets a software upgrading condition; if the software upgrading condition is met, acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC in a communication mode based on IPC (inter-process communication); and determining an electronic control unit to be refreshed according to the acquired name of the software upgrading package, if the electronic control unit to be refreshed belongs to the MCU chip, transmitting the software upgrading package to a corresponding electronic control unit to be refreshed in the MCU chip through an Ethernet transmission channel between the SOC system-level chip and the MCU chip, and improving the data transmission efficiency among diagnostic services in an IPC inter-process communication mode when software upgrading is carried out on the basis of the SOC system-level chip, thereby improving the software upgrading efficiency.

Description

Vehicle software upgrading method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of vehicles, in particular to a vehicle software upgrading method, device, equipment and storage medium.
Background
With the improvement of living standard of people, vehicles become essential transportation tools, the vehicles comprise various hardware devices, such as control devices, navigation devices and the like, software programs are arranged in the hardware devices, and in order to ensure the normal running of the vehicles, the software of the hardware devices of the vehicles needs to be upgraded.
At present, in order to implement an automatic driving function of a vehicle, a multi-chip-based intelligent driving computing platform is often used in the vehicle, wherein a dual chip refers to a System On Chip (SOC) chip and a Micro Controller Unit (MCU) chip. Whether remote diagnosis or local diagnosis is based on OTA (Over-the-Air Technology ), software flashing is mostly carried out through an MCU (microprogrammed control unit) chip, when the MCU chip is adopted for software flashing, data transmission is carried out among all diagnosis services in a CAN (controller area network) communication mode, the baud rate of data transmission is low when the data transmission is carried out in the CAN communication mode, the memory of the MCU is small, and the acquired software upgrading package needs to be stored by depending on an SOC (system on a chip).
Because the MCU chip needs to transmit data in a CAN communication mode and the memory of the MCU is small, the problem of low software upgrading efficiency exists when software is refreshed.
Disclosure of Invention
The invention provides a vehicle software upgrading method, a vehicle software upgrading device, vehicle software upgrading equipment and a vehicle software upgrading storage medium, which are used for solving the problem of low software upgrading efficiency when software is flashed through an MCU chip in the prior art.
In a first aspect, the present invention provides a vehicle software upgrading method, which is applied to an SOC system on chip in an intelligent driving computing platform, and the method includes:
when a flash request transmitted by a vehicle-mounted gateway is received, determining whether the current state of a vehicle meets a software upgrading condition; the flashing request is generated and sent by a remote diagnosis server or a local diagnosis instrument;
if the current state of the vehicle meets the software upgrading condition, acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication;
and determining an electronic control unit to be flashed according to the acquired name of the software upgrading packet, and if the electronic control unit to be flashed belongs to the MCU chip, transmitting the software upgrading packet to a corresponding electronic control unit to be flashed in the MCU chip through an Ethernet transmission channel between the SOC chip and the MCU chip.
Optionally, the plurality of diagnostic services includes a first diagnostic service, a second diagnostic service, and a third diagnostic service; acquiring a software upgrade package by a plurality of diagnostic services arranged on the SOC based on IPC inter-process communication, comprising:
the third diagnosis service sends first request information to the second diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package is completely transmitted, and sends second request information to the first diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package corresponding to all the electronic control units to be rewritten is completely transmitted; wherein the second diagnostic service is to perform transmission of a software upgrade package; and the first diagnosis service is used for sending a downloading request of the software upgrading packages corresponding to all electronic control units to be refreshed to the remote diagnosis server or the local diagnosis instrument.
Optionally, the method further includes:
when the current state of the vehicle meets the software upgrading condition, calling a fourth diagnostic service to send a DTC fault diagnosis code closing request to a fault diagnosis process based on an IPC inter-process communication mode;
and receiving information that DTC fault diagnosis codes fed back by the fault diagnosis process are closed based on an IPC inter-process communication mode, and executing a step of acquiring a software upgrade package based on the IPC inter-process communication mode through a plurality of diagnosis services arranged on the SOC chip after receiving the information that the DTC fault diagnosis codes are closed.
Optionally, the method further includes:
checking the communication state between the SOC chip and the vehicle-mounted gateway, and sending a control instruction to the MCU chip when communication abnormity exists so that the MCU chip obtains a software upgrading package through a plurality of diagnosis services arranged on the MCU chip based on CAN communication after receiving the control instruction;
and determining the electronic control unit to be refreshed according to the name of the software upgrading packet, and if the electronic control unit to be refreshed is positioned on the SOC, sending the software upgrading packet to the corresponding electronic control unit to be refreshed in the SOC through an Ethernet transmission channel between the MCU chip and the SOC.
Optionally, after determining the electronic control unit to be flashed according to the obtained name of the software upgrade package, the method further includes:
determining a chip to which the electronic control unit to be flashed belongs by inquiring a preset corresponding relation table; the chip to which the electronic control unit to be flashed belongs is an MCU chip or an SOC (system on chip); the preset corresponding relation table stores the corresponding relation between each electronic control unit and the chip to which the electronic control unit belongs.
Optionally, the determining whether the current state of the vehicle meets the software upgrading condition includes:
acquiring gear information, current electric quantity information and current position information of a vehicle;
and if the gear information of the vehicle is a parking gear, the current electric quantity information is larger than the preset electric quantity, and the current position information of the vehicle is on a non-expressway, determining that the current state of the vehicle meets the software upgrading condition.
Optionally, the method further includes:
and acquiring the brushing progress fed back by the electronic control unit to be brushed, and sending the brushing progress to the remote diagnosis server or the local diagnosis instrument through the vehicle-mounted gateway, so that the remote diagnosis server or the local diagnosis instrument acquires the brushing progress of the current electronic control unit to be brushed.
In a second aspect, an embodiment of the present invention provides a vehicle software upgrading apparatus, where the apparatus is applied to an SOC system on chip in an intelligent driving computing platform, and the apparatus includes:
the determining module is used for determining whether the current state of the vehicle meets the software upgrading condition or not when receiving the flashing request transmitted by the vehicle-mounted gateway; the flashing request is generated and sent by a remote diagnosis server or a local diagnosis instrument;
the acquisition module is used for acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication if the current state of the vehicle meets a software upgrading condition;
and the flash module is used for determining an electronic control unit to be flashed according to the acquired name of the software upgrade package, and if the electronic control unit to be flashed belongs to the MCU chip, sending the software upgrade package to the corresponding electronic control unit to be flashed in the MCU chip through an Ethernet transmission channel between the SOC chip and the MCU chip.
In a third aspect, the present invention provides an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the vehicle software upgrade method of any one of the first aspects.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the vehicle software upgrade method according to any one of the first aspect.
The invention provides a vehicle software upgrading method, a device, equipment and a storage medium, wherein a flash request transmitted by a vehicle-mounted gateway is received through an SOC system-level chip, and whether the current state of a vehicle meets a software upgrading condition is determined; if the current state of the vehicle meets the software upgrading condition, acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication; and determining an electronic control unit to be refreshed according to the acquired name of the software upgrading package, if the electronic control unit to be refreshed belongs to the MCU chip, transmitting the software upgrading package to a corresponding electronic control unit to be refreshed in the MCU chip through an Ethernet transmission channel between the SOC system level chip and the MCU chip, and improving the data transmission efficiency among diagnostic services in an IPC inter-process communication mode when software upgrading is carried out on the basis of the SOC system level chip, thereby improving the software upgrading efficiency.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is an application scenario diagram of a vehicle software upgrading method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a vehicle software upgrading method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating another vehicle software upgrading method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a vehicle software upgrading device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention.
Fig. 1 is an application scenario diagram of a vehicle software upgrading method according to an embodiment of the present invention, as shown in fig. 1, a plurality of chips, such as an SOC system-on-chip and an MCU chip, are generally disposed in an intelligent driving computing platform of a vehicle, where different electronic control units are disposed in the SOC system-on-chip and the MCU chip, respectively, and based on the electronic control unit in the SOC system-on-chip, interaction with a multimedia device can be implemented, and based on the electronic control unit in the MCU chip, interaction with each controller in the vehicle can be implemented.
In order to ensure the safe operation of each electronic control unit in the SOC system-level chip and the MCU chip, software upgrade needs to be performed on the electronic control units in the SOC system-level chip and the MCU chip, and the current upgrade method is: the plurality of diagnostic services are arranged in the MCU chip, the software upgrading is realized based on the plurality of diagnostic services, when the software upgrading is carried out based on the plurality of diagnostic services, data transmission needs to be carried out among the diagnostic services, and the data transmission needs to be realized by adopting a CAN communication mode, however, the Baud rate of the data transmission in the CAN communication mode is low, and the transmission is slow. In addition, the MCU chip has a small memory, cannot store the acquired software upgrading packet, needs to be stored by depending on the SOC, and needs to transmit the software upgrading packet once in the actual flashing process, so that the software upgrading efficiency is low.
Based on the above problems, the present invention improves the existing vehicle software upgrading method, uses SOC chip as the control end of software upgrading, sets a plurality of diagnosis services in the SOC chip, performs data transmission among the diagnosis services to complete the software upgrading preprocessing process or the process of obtaining the software upgrading package, and after obtaining the software upgrading package, sends the software upgrading package to the corresponding electronic control unit to be rewritten to realize the software upgrading of the electronic control unit, when performing software upgrading based on the SOC chip, each diagnosis service can be used as a process, when performing data transmission among the processes, can be realized based on IPC inter-process communication, can accelerate the data transmission among the diagnosis services and the obtaining of the software upgrading package, thereby accelerating the software upgrading speed, and the software upgrading efficiency is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a vehicle software upgrading method according to an embodiment of the present invention, where the method of this embodiment may be executed by an SOC system on chip, as shown in fig. 2, the method of this embodiment may include:
step S201, when a brushing request transmitted by an on-board gateway is received, determining whether the current state of a vehicle meets a software upgrading condition; the flash request is generated and sent by a remote diagnostic server or a local diagnostic.
In this step, when a refresh request transmitted by the vehicle-mounted gateway is received, it is first determined whether the current state of the vehicle meets a software upgrade condition. Wherein the software upgrade can be performed only when the current state of the vehicle satisfies the software upgrade condition.
The flashing request can be from a local diagnostic apparatus, and a worker can trigger the local diagnostic apparatus to send the flashing request through related operations; the flashing request can also be from a remote diagnosis server, a background manager or a background system can acquire version information of software packages in each electronic control unit in the vehicle, the acquired version information is compared with version information of the software packages corresponding to the electronic control unit and stored in a local diagnostic apparatus or the remote diagnosis server, if the version information is not consistent with the version information, the flashing request can be generated, and a software upgrading package to be flashed is determined; if the electronic control unit is consistent with the electronic control unit, the software package of the electronic control unit in the electronic control unit is the latest version, and software upgrading is not needed.
Before receiving the flash request, the remote diagnosis server or the local diagnosis instrument sending the flash request needs to be checked for safety access, specifically, the remote diagnosis server or the local diagnosis instrument can send a safety access instruction first, and the SOC system-level chip verifies whether the safety access instruction is legal or not through a preset access safety algorithm after receiving the safety access instruction, so that handshake check between the remote diagnosis server or the local diagnosis instrument and the SOC system-level chip is realized.
Step S202, if the current state of the vehicle meets the software upgrading condition, a software upgrading package is obtained through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication.
When the current state of the vehicle meets the software upgrading condition, the software upgrading package can be obtained through the set diagnosis service, wherein the diagnosis service is a Universal Diagnostic Service (UDS), and each step of software upgrading can be realized by setting a plurality of diagnosis Services. Wherein the diagnostic service includes a plurality of diagnostic services that obtain the software upgrade package. When the software upgrade package is acquired, communication is needed among the diagnostic services to determine whether the transmission of the software upgrade package is completed, and the like, and data can be transmitted based on an IPC inter-process communication mode during communication. The IPC interprocess communication modes comprise various modes such as a message queue, a semaphore, a shared memory, a network Socket and the like, and the data transmission rate of the various interprocess communication modes is far greater than the data transmission baud rate of CAN communication, so that the communication efficiency among various diagnostic services is greatly improved.
After the software upgrading package is obtained, the software upgrading package can be verified, such as security verification, consistency verification, validity verification and the like, so that the security of software upgrading is ensured.
Step S203, determining an electronic control unit to be flashed according to the acquired name of the software upgrading packet, and if the electronic control unit to be flashed belongs to the MCU chip, transmitting the software upgrading packet to a corresponding electronic control unit to be flashed in the MCU chip through an Ethernet transmission channel between the SOC chip and the MCU chip.
Because the electronic control unit to be flashed may belong to an MCU chip or an SOC system-level chip, after the software upgrade package is obtained, the electronic control unit to be flashed corresponding to the software upgrade package needs to be determined first, and then the chip to which the electronic control unit belongs is determined. When the electronic control unit to be refreshed corresponding to the software upgrade package is determined, the name of the software upgrade package may be determined based on the name of the software upgrade package, and the name of the software upgrade package may be previously corresponding to the electronic control unit to be refreshed.
When the electronic control unit to be flashed is determined to belong to the MCU chip, the software upgrading package can be transmitted through the Ethernet transmission channel between the SOC chip and the MCU chip, so that the software upgrading of the electronic control unit in the MCU chip is controlled by the SOC chip.
The above process may be implemented by matching with a doip (diagnostic communication over Internet protocol) protocol, where the protocol is a communication protocol based on ethernet to transmit data of each diagnostic service, and a rule for transmitting data is defined to implement introducing the ethernet into a vehicle-mounted network.
When a system-on-chip receives a flash request transmitted by a vehicle-mounted gateway, determining whether the current state of a vehicle meets a software upgrading condition; the flashing request is generated and sent by a remote diagnosis server or a local diagnosis instrument; if the current state of the vehicle meets the software upgrading condition, acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication; determining an electronic control unit to be flashed according to the acquired name of the software upgrading package, if the electronic control unit to be flashed belongs to an MCU chip, sending the software upgrading package to a corresponding electronic control unit to be flashed in the MCU chip through an Ethernet transmission channel between the SOC system-level chip and the MCU chip, and using the SOC system-level chip as a control end of software upgrading and communicating among various diagnostic services based on IPC inter-process communication, so that the improvement of communication efficiency and the rapid downloading of the software upgrading package can be realized, and the efficiency of software upgrading is further improved.
The following describes in detail the data transmission between diagnostic services by means of IPC inter-process communication.
Optionally, the plurality of diagnostic services includes a first diagnostic service, a second diagnostic service, and a third diagnostic service; acquiring a software upgrade package by a plurality of diagnostic services arranged on the SOC based on IPC inter-process communication, comprising:
the third diagnosis service sends first request information to the second diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package is completely transmitted, and sends second request information to the first diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package corresponding to all the electronic control units to be rewritten is completely transmitted; wherein the second diagnostic service is to perform transmission of a software upgrade package; and the first diagnosis service is used for sending a downloading request of the software upgrading packages corresponding to all electronic control units to be refreshed to the remote diagnosis server or the local diagnosis instrument.
Wherein, when the software upgrade package is obtained, the software upgrade package can be realized through three diagnostic services. Fig. 3 is a schematic flowchart of a software upgrade package obtaining method according to an embodiment of the present invention, and as shown in fig. 3, the software upgrade package obtaining method includes: step S301, sending request downloading information of a software upgrading package to a remote diagnosis server or a local diagnosis instrument; step S302, transmitting a software upgrading package; step S303, judging whether the transmission of the software upgrading package is finished; s304, finishing the transmission of the software upgrading package; s305, judging whether the transmission of the software upgrading packages corresponding to all the electronic control units to be rewritten is finished; and step S306, performing software flashing. Wherein, the above steps can be realized based on different diagnosis services. For example, the first diagnostic service is used to implement step S301, that is, sending a download request of all software upgrade packages corresponding to the electronic control units to be flashed; the second diagnostic service is used for implementing step S302, that is, implementing transmission of the software upgrade package; the third diagnostic service is used to implement step S303, step S304 and step S305, i.e. to implement the judgment whether the software upgrade package is completely transmitted.
When the third diagnostic service judges whether the current software upgrade package is transmitted, the third diagnostic service needs to communicate with the second diagnostic service, for example, first request information is sent, and the second diagnostic service sends first feedback information to the third diagnostic service according to the first request information. And sending information for continuing transmission to the first diagnostic service when the transmission is determined not to be completed. Wherein, the transmission of the first request information and the first feedback information can be realized based on IPC inter-process communication. When the third diagnostic service judges whether the transmission of all the software upgrade packages corresponding to the electronic control units to be flashed is completed, the third diagnostic service needs to communicate with the first diagnostic service, for example, second request information is sent, and the first diagnostic service sends second feedback information to the third diagnostic service according to the second request information. And upon determining that the transmission is not complete, sending information for continuing the transmission to a second diagnostic service. Wherein, the transmission of the second request information and the second feedback information can be realized based on IPC inter-process communication.
The data transmission of the request information and the feedback information is carried out in an IPC inter-process communication mode, so that the data can be quickly transmitted when the data transmission needs to be carried out for multiple times, the data transmission efficiency is improved, and the downloading speed of the software upgrading package is increased.
Optionally, the method further includes:
when the current state of the vehicle meets the software upgrading condition, calling a fourth diagnostic service to send a DTC fault diagnosis code closing request to a fault diagnosis process based on an IPC inter-process communication mode;
and receiving information that DTC fault diagnosis codes fed back by the fault diagnosis process are closed based on an IPC inter-process communication mode, and executing a step of acquiring a software upgrade package based on the IPC inter-process communication mode through a plurality of diagnosis services arranged on the SOC chip after receiving the information that the DTC fault diagnosis codes are closed.
When software is upgraded, an operation of closing a DTC (Diagnostic Trouble Code) is also required, wherein the DTC is used for outputting a fault diagnosis Code when a vehicle has a fault so that a user can confirm the fault type. When a software upgrade is performed, the DTC needs to be turned off to prevent a new fault from being reported during the flush, thereby interrupting the operation of the software upgrade.
The fourth diagnostic service can be used for sending a DTC fault diagnosis code closing request, and the specific operation of closing the DTC needs to be realized through a fault diagnosis process, so that the fourth diagnostic service can send the DTC fault diagnosis code closing request to the fault diagnosis process, and meanwhile, after the fault diagnosis process executes the closing of the DTC fault diagnosis code, the fault diagnosis process can send the information that the DTC fault diagnosis code is closed to the SOC system-on-chip. The information transmission process can be realized by IPC inter-process communication. Based on the IPC inter-process communication mode, the DTC can be efficiently closed.
Optionally, the method further includes:
checking the communication state between the SOC chip and the vehicle-mounted gateway, and sending a control instruction to the MCU chip when communication abnormity exists so that the MCU chip obtains a software upgrading package through a plurality of diagnosis services arranged on the MCU chip based on CAN communication after receiving the control instruction;
and determining the electronic control unit to be refreshed according to the name of the software upgrading packet, and if the electronic control unit to be refreshed is positioned on the SOC, sending the software upgrading packet to the corresponding electronic control unit to be refreshed in the SOC through an Ethernet transmission channel between the MCU chip and the SOC.
In this embodiment, in order to ensure the stability of software upgrade, a redundant diagnostic communication mode is adopted. The redundancy diagnosis refers to that the MCU chip is used as a standby software upgrading control end, and meanwhile, a plurality of diagnosis services are arranged in the MCU chip. Specifically, when the communication state between the SOC chip and the vehicle gateway is abnormal, for example, when the communication information is not received within a preset time period, the SOC chip may determine that the communication state between the SOC chip and the vehicle gateway is abnormal, and at this time, the SOC chip may send a control instruction to the MCU chip. Correspondingly, when the MCU chip receives the control instruction, the communication abnormity between the SOC system-level chip and the vehicle-mounted gateway can be determined. At this time, the software upgrade package CAN be acquired through a plurality of diagnostic services on the MCU chip in a CAN communication-based manner.
When the software is refreshed, the software upgrading packet can be sent to the corresponding electronic control unit to be refreshed. Such as an electronic control unit to be flashed arranged on the MCU chip and an electronic control unit to be flashed arranged on the SOC system-on-chip. When the electronic control unit to be flashed belongs to the SOC, the corresponding software upgrade package may be sent to the corresponding electronic control unit in the SOC.
By setting a redundancy diagnosis communication mode, the realization of software upgrading can be ensured when the SOC system level chip is abnormal.
Optionally, the method further includes: after determining the electronic control unit to be refreshed according to the acquired name of the software upgrade package, the method further comprises the following steps: determining a chip to which the electronic control unit to be flashed belongs by inquiring a preset corresponding relation table; the chip to which the electronic control unit to be flashed belongs is an MCU chip or an SOC (system on chip); the preset corresponding relation table stores the corresponding relation between each electronic control unit and the chip to which the electronic control unit belongs.
After the electronic control unit to be flashed is determined according to the acquired name of the software upgrade package, a chip to which the electronic control unit belongs needs to be determined. Specifically, the determination may be performed by querying a preset correspondence table. For example, a preset correspondence table is set in each of the SOC system-level chip and the MCU chip, and the preset correspondence table stores a correspondence between the electronic control unit to be flashed and the corresponding chip. For example, there is an electronic control unit 1 to be flashed and belongs to an SOC system on chip; the electronic control unit to be flashed 2 exists and belongs to an SOC (system on chip), the electronic control unit to be flashed 3 exists and belongs to an MCU (micro control unit) chip, and therefore the chip to which the electronic control unit to be flashed belongs can be determined by inquiring a preset corresponding relation table.
By setting the preset corresponding relation table, the chip to which the electronic control unit to be flashed belongs can be simply and quickly determined.
Optionally, the determining whether the current state of the vehicle meets the software upgrading condition includes:
acquiring gear information, current electric quantity information and current position information of a vehicle; and if the gear information of the vehicle is a parking gear, the current electric quantity information is larger than the preset electric quantity, and the current position information of the vehicle is on a non-expressway, determining that the current state of the vehicle meets the software upgrading condition.
When determining whether the current state of the vehicle meets the software upgrading condition, the vehicle state information can be acquired first, the specific vehicle state information comprises gear information of the vehicle, current electric quantity information and current position information of the vehicle, software upgrading can be performed only when the gear information of the vehicle is a parking gear, and if the vehicle is in a non-parking gear, the control on the vehicle can be influenced by a software upgrading result. In addition, when software upgrading is performed, current electric quantity information of the vehicle needs to be determined, and software upgrading can be performed only when the current electric quantity information of the vehicle is larger than a preset electric quantity. The preset electric quantity can be the electric quantity required by software upgrading, can be a fixed value, and can also be the required electric quantity determined according to the size of the software upgrading package. And if the current position information of the vehicle is on a non-expressway, performing software flashing, and if the parking position of the vehicle is on an expressway, performing software flashing can cause certain danger. Therefore, when the vehicle gear information is a parking gear, the current electric quantity information is larger than the preset electric quantity, and the vehicle is positioned on a non-expressway, software upgrading can be carried out.
By judging the current state of the vehicle, the software upgrading of the vehicle can be smoothly completed under the condition that the use of the vehicle by a user is not influenced.
Optionally, the method further includes: and acquiring the brushing progress fed back by the electronic control unit to be brushed, and sending the brushing progress to the remote diagnosis server or the local diagnosis instrument through the vehicle-mounted gateway, so that the remote diagnosis server or the local diagnosis instrument acquires the brushing progress of the current electronic control unit to be brushed.
Furthermore, in the software upgrading process, the brushing progress query information can be sent to the electronic control unit to be brushed, the electronic control unit to be brushed obtains the brushing progress after receiving the brushing progress query information, the brushing progress is fed back to the SOC, and then the brushing progress is fed back to the remote diagnosis server or the local diagnosis instrument through the vehicle-mounted gateway, so that relevant workers can check the brushing progress.
Fig. 4 is a schematic structural diagram of a vehicle software upgrading apparatus 40 according to an embodiment of the present invention, and as shown in fig. 4, the apparatus 40 is applied to an SOC system on chip in an intelligent driving computing platform, where the apparatus 40 includes:
the determining module 401 is configured to determine whether a current state of the vehicle meets a software upgrading condition when a flash request transmitted by the vehicle-mounted gateway is received; the flashing request is generated and sent by a remote diagnosis server or a local diagnosis instrument;
an obtaining module 402, configured to obtain a software upgrade package through multiple diagnostic services set on the SOC system-on-chip in an IPC inter-process communication manner if the current state of the vehicle meets a software upgrade condition;
and a flash module 403, configured to determine an electronic control unit to be flashed according to an obtained name of the software upgrade package, and if the electronic control unit to be flashed belongs to the MCU chip, send the software upgrade package to a corresponding electronic control unit to be flashed in the MCU chip through an ethernet transmission channel between the SOC system-level chip and the MCU chip.
Optionally, when the obtaining module 402 obtains the software upgrade package through a plurality of diagnostic services arranged on the SOC system-on-chip in an IPC inter-process communication manner, the obtaining module is specifically configured to:
the third diagnosis service sends first request information to the second diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package is completely transmitted, and sends second request information to the first diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package corresponding to all the electronic control units to be rewritten is completely transmitted; wherein the second diagnostic service is to perform transmission of a software upgrade package; and the first diagnosis service is used for sending a downloading request of the software upgrading packages corresponding to all electronic control units to be refreshed to the remote diagnosis server or the local diagnosis instrument.
Optionally, the apparatus further includes a DTC fault diagnosis code shutdown module, specifically configured to:
when the current state of the vehicle meets the software upgrading condition, calling a fourth diagnostic service to send a DTC fault diagnosis code closing request to a fault diagnosis process based on an IPC inter-process communication mode;
and receiving information that DTC fault diagnosis codes fed back by the fault diagnosis process are closed based on an IPC inter-process communication mode, and executing a step of acquiring a software upgrade package based on the IPC inter-process communication mode through a plurality of diagnosis services arranged on the SOC chip after receiving the information that the DTC fault diagnosis codes are closed.
Optionally, the apparatus further includes an exception handling module; the method is specifically used for:
checking the communication state between the SOC and the vehicle-mounted gateway, when communication abnormity exists, sending a control instruction to the MCU chip so that the MCU chip obtains a software upgrading package through a plurality of diagnosis services arranged on the MCU chip based on a CAN communication mode after receiving the control instruction, determining an electronic control unit to be flashed according to the name of the software upgrading package by the MCU chip, and if the electronic control unit to be flashed is positioned on the SOC, sending the software upgrading package to a corresponding electronic control unit to be flashed in the SOC through an Ethernet transmission channel between the MCU chip and the SOC.
Optionally, the apparatus further comprises: the query module is specifically configured to:
determining a chip to which the electronic control unit to be flashed belongs by inquiring a preset corresponding relation table; the chip to which the electronic control unit to be flashed belongs is an MCU chip or an SOC (system on chip); the preset corresponding relation table stores the corresponding relation between each electronic control unit and the chip to which the electronic control unit belongs.
Optionally, when determining whether the current state of the vehicle meets the software upgrading condition, the determining module 401 is specifically configured to:
acquiring gear information, current electric quantity information and current position information of a vehicle; and if the gear information of the vehicle is a parking gear, the current electric quantity information is larger than the preset electric quantity, and the current position information of the vehicle is on a non-expressway, determining that the current state of the vehicle meets the software upgrading condition.
Optionally, the obtaining module 402 is further configured to: and acquiring the brushing progress fed back by the electronic control unit to be brushed, and sending the brushing progress to the remote diagnosis server or the local diagnosis instrument through the vehicle-mounted gateway, so that the remote diagnosis server or the local diagnosis instrument acquires the brushing progress of the current electronic control unit to be brushed.
The vehicle software upgrading device provided by the embodiment of the invention can realize the vehicle software upgrading method of the embodiment shown in fig. 2 and 3, and the realization principle and the technical effect are similar, and are not repeated herein.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device provided in this embodiment includes: at least one processor 501 and memory 502. The processor 1001 and the memory 502 are connected by a bus 503.
In a specific implementation, the at least one processor 501 executes the computer-executable instructions stored by the memory 502, so that the at least one processor 501 executes the vehicle software upgrading method in the above-described method embodiment.
For a specific implementation process of the processor 501, reference may be made to the above method embodiments, which implement the similar principle and technical effect, and this embodiment is not described herein again.
In the embodiment shown in fig. 5, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the vehicle software upgrading method of the embodiment of the method is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A vehicle software upgrading method is applied to an SOC (system on chip) in an intelligent driving computing platform and comprises the following steps:
when a flash request transmitted by a vehicle-mounted gateway is received, determining whether the current state of a vehicle meets a software upgrading condition; the flashing request is generated and sent by a remote diagnosis server or a local diagnosis instrument;
if the current state of the vehicle meets the software upgrading condition, acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication;
and determining an electronic control unit to be flashed according to the acquired name of the software upgrading packet, and if the electronic control unit to be flashed belongs to the MCU chip, transmitting the software upgrading packet to a corresponding electronic control unit to be flashed in the MCU chip through an Ethernet transmission channel between the SOC chip and the MCU chip.
2. The method of claim 1, wherein the plurality of diagnostic services includes a first diagnostic service, a second diagnostic service, and a third diagnostic service; acquiring a software upgrade package by a plurality of diagnostic services arranged on the SOC based on IPC inter-process communication, comprising:
the third diagnosis service sends first request information to the second diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package is completely transmitted, and sends second request information to the first diagnosis service in an IPC inter-process communication mode to judge whether the software upgrade package corresponding to all the electronic control units to be rewritten is completely transmitted; wherein the second diagnostic service is to perform transmission of a software upgrade package; and the first diagnosis service is used for sending a downloading request of the software upgrading packages corresponding to all electronic control units to be refreshed to the remote diagnosis server or the local diagnosis instrument.
3. The method of claim 1, further comprising:
when the current state of the vehicle meets the software upgrading condition, calling a fourth diagnostic service to send a DTC fault diagnosis code closing request to a fault diagnosis process based on an IPC inter-process communication mode;
and receiving information that DTC fault diagnosis codes fed back by the fault diagnosis process are closed based on an IPC inter-process communication mode, and executing a step of acquiring a software upgrade package based on the IPC inter-process communication mode through a plurality of diagnosis services arranged on the SOC chip after receiving the information that the DTC fault diagnosis codes are closed.
4. The method according to any one of claims 1-3, further comprising:
checking the communication state between the SOC and the vehicle-mounted gateway, when communication abnormity exists, sending a control instruction to the MCU chip so that the MCU chip obtains a software upgrading package through a plurality of diagnosis services arranged on the MCU chip based on a CAN communication mode after receiving the control instruction, determining an electronic control unit to be flashed according to the name of the software upgrading package by the MCU chip, and if the electronic control unit to be flashed is positioned on the SOC, sending the software upgrading package to a corresponding electronic control unit to be flashed in the SOC through an Ethernet transmission channel between the MCU chip and the SOC.
5. The method according to any one of claims 1 to 3, wherein after determining the electronic control unit to be flashed according to the obtained name of the software upgrade package, the method further comprises:
determining a chip to which the electronic control unit to be flashed belongs by inquiring a preset corresponding relation table; the chip to which the electronic control unit to be flashed belongs is an MCU chip or an SOC (system on chip); the preset corresponding relation table stores the corresponding relation between each electronic control unit and the chip to which the electronic control unit belongs.
6. The method according to any one of claims 1-3, wherein the determining whether the current state of the vehicle satisfies the software upgrade condition comprises:
acquiring gear information, current electric quantity information and current position information of a vehicle;
and if the gear information of the vehicle is a parking gear, the current electric quantity information is larger than the preset electric quantity, and the current position information of the vehicle is on a non-expressway, determining that the current state of the vehicle meets the software upgrading condition.
7. The method according to any one of claims 1-3, further comprising:
and acquiring the brushing progress fed back by the electronic control unit to be brushed, and sending the brushing progress to the remote diagnosis server or the local diagnosis instrument through the vehicle-mounted gateway, so that the remote diagnosis server or the local diagnosis instrument acquires the brushing progress of the current electronic control unit to be brushed.
8. A vehicle software upgrading device is applied to an SOC (system on chip) in an intelligent driving computing platform, and comprises the following components:
the determining module is used for determining whether the current state of the vehicle meets the software upgrading condition or not when receiving the flashing request transmitted by the vehicle-mounted gateway; the flashing request is generated and sent by a remote diagnosis server or a local diagnosis instrument;
the acquisition module is used for acquiring a software upgrading package through a plurality of diagnostic services arranged on the SOC chip based on IPC inter-process communication if the current state of the vehicle meets a software upgrading condition;
and the flash module is used for determining an electronic control unit to be flashed according to the acquired name of the software upgrade package, and if the electronic control unit to be flashed belongs to the MCU chip, sending the software upgrade package to the corresponding electronic control unit to be flashed in the MCU chip through an Ethernet transmission channel between the SOC chip and the MCU chip.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the vehicle software upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored therein which, when executed by a processor, implement a vehicle software upgrade method according to any one of claims 1 to 7.
CN202111365242.7A 2021-11-17 2021-11-17 Vehicle software upgrading method, device, equipment and storage medium Pending CN114064080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111365242.7A CN114064080A (en) 2021-11-17 2021-11-17 Vehicle software upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111365242.7A CN114064080A (en) 2021-11-17 2021-11-17 Vehicle software upgrading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114064080A true CN114064080A (en) 2022-02-18

Family

ID=80277614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111365242.7A Pending CN114064080A (en) 2021-11-17 2021-11-17 Vehicle software upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114064080A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114793196A (en) * 2022-06-21 2022-07-26 国汽智控(北京)科技有限公司 Firmware upgrading method, device, equipment and storage medium
CN116737475A (en) * 2023-05-29 2023-09-12 中国第一汽车股份有限公司 Chip diagnosis method, device, equipment and storage medium
WO2024026593A1 (en) * 2022-07-30 2024-02-08 华为技术有限公司 Vehicle cooperative control method and related device
CN118034750A (en) * 2024-04-12 2024-05-14 成都赛力斯科技有限公司 Upgrade control instruction response method and device, mobile terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130109323A1 (en) * 2011-10-31 2013-05-02 Nokia Corporation Wirelessly Transferring Data To A Packaged Electronic Device
CN111930407A (en) * 2020-10-19 2020-11-13 广州汽车集团股份有限公司 Vehicle ECU software upgrading method and system, vehicle TBOX microcontroller and SOC terminal
CN112052017A (en) * 2020-08-21 2020-12-08 东风汽车集团有限公司 OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller
WO2021017919A1 (en) * 2019-07-31 2021-02-04 中兴通讯股份有限公司 Ota update diagnostic method and apparatus, wireless routing device, and terminal device
CN113377384A (en) * 2021-06-04 2021-09-10 东软睿驰汽车技术(沈阳)有限公司 Program burning method and device, vehicle-mounted terminal and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130109323A1 (en) * 2011-10-31 2013-05-02 Nokia Corporation Wirelessly Transferring Data To A Packaged Electronic Device
WO2021017919A1 (en) * 2019-07-31 2021-02-04 中兴通讯股份有限公司 Ota update diagnostic method and apparatus, wireless routing device, and terminal device
CN112052017A (en) * 2020-08-21 2020-12-08 东风汽车集团有限公司 OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller
CN111930407A (en) * 2020-10-19 2020-11-13 广州汽车集团股份有限公司 Vehicle ECU software upgrading method and system, vehicle TBOX microcontroller and SOC terminal
CN113377384A (en) * 2021-06-04 2021-09-10 东软睿驰汽车技术(沈阳)有限公司 Program burning method and device, vehicle-mounted terminal and medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114793196A (en) * 2022-06-21 2022-07-26 国汽智控(北京)科技有限公司 Firmware upgrading method, device, equipment and storage medium
CN114793196B (en) * 2022-06-21 2022-09-13 国汽智控(北京)科技有限公司 Firmware upgrading method, device, equipment and storage medium
WO2024026593A1 (en) * 2022-07-30 2024-02-08 华为技术有限公司 Vehicle cooperative control method and related device
CN116737475A (en) * 2023-05-29 2023-09-12 中国第一汽车股份有限公司 Chip diagnosis method, device, equipment and storage medium
CN118034750A (en) * 2024-04-12 2024-05-14 成都赛力斯科技有限公司 Upgrade control instruction response method and device, mobile terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN114064080A (en) Vehicle software upgrading method, device, equipment and storage medium
CN111459518B (en) Vehicle ECU upgrading method and system
CN111930407B (en) Vehicle ECU software upgrading method and system, vehicle TBOX microcontroller and SOC terminal
CN111399884A (en) Vehicle component upgrading method and device and electronic equipment
CN110120970B (en) Data processing method and device based on Internet of vehicles and gateway system
KR20170120029A (en) Method and device for preventing manipulation of a data transmission
CN114050982A (en) Software upgrading method and device, electronic equipment and storage medium
CN111930406A (en) Vehicle-mounted terminal micro control unit software upgrading method, electronic equipment and storage medium
CN112181449A (en) Vehicle-mounted software upgrading method, device, system and storage medium
CN113050960B (en) OTA upgrading method and device, vehicle-mounted terminal and storage medium
CN115357434A (en) Complete machine testing method, device to be tested, computer device and storage medium
CN112698857A (en) Data flashing method and device
CN114567552A (en) Vehicle-mounted V2X equipment upgrading method and device, computer equipment and storage medium
CN112764818B (en) Device management method, device, electronic device and readable storage medium
CN113867314B (en) Access control method and device for fault code library, electronic equipment and storage medium
CN112925546B (en) Multistage verification method and system for preventing vehicle-mounted ECU from refreshing errors
CN115080092A (en) Software upgrading method and device and electronic equipment
CN113824620A (en) Partition switching method, device, vehicle and storage medium
CN112346441A (en) Automobile online diagnosis method and system and automobile diagnosis equipment
CN115220989A (en) Payment software monitoring method, device and system
CN116243941A (en) Downloading method and device of OTA upgrade package, vehicle and storage medium
CN112203264B (en) Equipment pairing method applied to equipment group and equipment in equipment group
CN116039707B (en) Train controller resource inheritance method and device based on train communication
CN113434163B (en) Online calibration method, system, device and medium suitable for electronic control unit
CN116708410A (en) BootLoader upgrading method and device, vehicle-mounted navigator and medium

Legal Events

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