CN113596755A - Vehicle-mounted system upgrading method, vehicle and readable storage medium - Google Patents

Vehicle-mounted system upgrading method, vehicle and readable storage medium Download PDF

Info

Publication number
CN113596755A
CN113596755A CN202110839948.6A CN202110839948A CN113596755A CN 113596755 A CN113596755 A CN 113596755A CN 202110839948 A CN202110839948 A CN 202110839948A CN 113596755 A CN113596755 A CN 113596755A
Authority
CN
China
Prior art keywords
vehicle
upgrading
controlling
upgrade
module
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
CN202110839948.6A
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.)
SAIC GM Wuling Automobile Co Ltd
Original Assignee
SAIC GM Wuling Automobile 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 SAIC GM Wuling Automobile Co Ltd filed Critical SAIC GM Wuling Automobile Co Ltd
Priority to CN202110839948.6A priority Critical patent/CN113596755A/en
Publication of CN113596755A publication Critical patent/CN113596755A/en
Priority to PCT/CN2022/096938 priority patent/WO2023000841A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • 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/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a vehicle-mounted system upgrading method, which comprises the following steps: controlling the vehicle-mounted terminal to receive the upgrade short message with the MQTT message; controlling a communication module of the vehicle-mounted terminal to be started according to the upgrading short message, and controlling the communication module to be in communication connection with an upgrading flow server corresponding to the communication module; controlling the vehicle-mounted terminal to receive the upgrade package link sent by the upgrade process server; controlling the vehicle-mounted terminal to download the upgrade package from a content distribution server corresponding to the upgrade package link; and upgrading the firmware according to the downloaded upgrade package. The invention also discloses a vehicle and a readable storage medium. By applying the vehicle-mounted system upgrading method to the vehicle, the vehicle-mounted system upgrading efficiency of the vehicle can be greatly improved, the time required by vehicle-mounted system upgrading is shortened, and the energy loss is reduced.

Description

Vehicle-mounted system upgrading method, vehicle and readable storage medium
Technical Field
The invention relates to the field of vehicles, in particular to a vehicle-mounted system upgrading method, a vehicle and a readable storage medium.
Background
In recent years, the rapid development of the internet of things technology promotes the reform of the traditional vehicle industry, so that the vehicle is more intelligent and multifunctional, the function upgrading of the vehicle is more convenient and efficient, a user does not need to specially upgrade the vehicle-mounted system to a vehicle after-sale center, the vehicle of the user only needs to be accessed into the internet at present, and the upgrading package is downloaded from a cloud server to realize the remote updating of the vehicle-mounted system. However, in order to realize the timely upgrade of the vehicle-mounted system, the vehicle is always in a network connection state in the existing technical scheme, and the energy consumption is overlarge due to the whole upgrade process under the influence of the download speed and the transmission speed inside the vehicle.
Disclosure of Invention
The invention provides an upgrading method of a vehicle-mounted system, a vehicle and a readable storage medium, and aims to solve the technical problem of overlarge energy consumption in the remote upgrading process of the vehicle-mounted system of the vehicle.
In order to achieve the above object, the present invention provides a vehicle-mounted system upgrading method, which comprises the following steps:
controlling the vehicle-mounted terminal to receive the upgrade short message with the MQTT message;
controlling a communication module of the vehicle-mounted terminal to be started according to the upgrading short message, and controlling the communication module to be in communication connection with an upgrading flow server corresponding to the communication module;
controlling the vehicle-mounted terminal to receive the upgrade package link sent by the upgrade process server;
controlling the vehicle-mounted terminal to download the upgrade package from a content distribution server corresponding to the upgrade package link;
and upgrading the firmware according to the downloaded upgrade package.
Optionally, the step of controlling the vehicle-mounted terminal communication module to be started according to the upgrade short message and controlling the communication module to be in communication connection with the upgrade flow server includes:
controlling the vehicle-mounted terminal to analyze the MQTT message and verify the authenticity of the MQTT message according to the upgrading short message;
when the MQTT message content is verified to be real, controlling the vehicle-mounted terminal to send a verification request according to a network address carried by the MQTT message;
receiving a verification certificate sent by the upgrading process server corresponding to the network address according to the verification request;
judging whether a preset root certificate is matched with the verification certificate or not;
and if so, controlling the vehicle-mounted terminal to establish encrypted communication with the upgrading process server.
Optionally, the upgrade package comprises at least one module upgrade package corresponding to an electronic control unit of the vehicle; the step of upgrading the firmware according to the downloaded upgrade package comprises the following steps:
controlling the vehicle-mounted terminal to send each module upgrading package to the corresponding electronic control unit according to the downloaded upgrading package;
and controlling each electronic control unit to carry out firmware upgrading according to the received module upgrading packet.
Optionally, the step of controlling, according to the downloaded upgrade package, the vehicle-mounted terminal to send each module-making upgrade package to each corresponding electronic control unit includes:
according to the downloaded upgrade package, the vehicle-mounted terminal is controlled to send a wake-up instruction to each electronic control unit through a CAN bus interface so as to wake up the whole vehicle;
and under the condition that the whole vehicle is awakened, controlling the vehicle-mounted terminal to send the module upgrading packets to the corresponding electronic control units through the Ethernet interface according to a preset protocol.
Optionally, the step of controlling each electronic control unit to perform firmware upgrade according to the received module upgrade package includes:
controlling each electronic control unit to check the integrity of the received module upgrading packet so as to generate an integrity result record;
judging whether each module upgrading packet is complete or not according to the integrity result record;
the step of controlling each electronic control unit to carry out firmware upgrade according to the received module upgrade package comprises the following steps:
and if the module upgrading packages are complete, controlling the electronic control units to upgrade the firmware according to the received module upgrading packages.
Optionally, if each of the module upgrade packages is complete, the step of controlling each of the electronic control units to upgrade the firmware according to the received module upgrade package includes:
if the module upgrading packages are complete, controlling the electronic control units to carry out consistency check on the module upgrading packages so as to generate consistency result records;
judging whether each electronic control unit is consistent with the corresponding module upgrading package according to the consistency result record;
and if the electronic control units are consistent with the corresponding module upgrading packages, controlling the electronic control units to upgrade the firmware according to the received module upgrading packages.
Optionally, the step of controlling the vehicle-mounted terminal to download the upgrade package from the content distribution server corresponding to the upgrade package link includes;
acquiring the average transmission rate of downloading in a preset period;
judging whether the average transmission rate is 0 or not according to the average transmission rate;
if the average transmission rate is 0, judging whether the upgrade package is complete;
and if so, executing the step of upgrading the firmware according to the downloaded upgrade package.
Optionally, after the step of determining whether the upgrade package is complete if the average transmission rate is 0, the method further includes:
if not, generating a log of download failure and entering a sleep mode;
reading the log of the download failure when receiving a user trigger or a wake-up instruction sent by the upgrade process server;
acquiring a final node of an undelivered complete upgrade package according to the log of the download failure;
and sending a continuous transmission request generated according to the final node to the upgrading process server so that the upgrading process server continuously transmits the upgrading packet to the vehicle-mounted terminal according to the continuous transmission request.
In addition, to achieve the above object, the present invention also provides a vehicle including a memory, a processor, and an in-vehicle system upgrade program stored on the memory and operable on the processor, wherein: the vehicle-mounted system upgrading program realizes the steps of the vehicle-mounted system upgrading method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a readable storage medium, on which an in-vehicle system upgrade program is stored, and the in-vehicle system upgrade program implements the steps of the in-vehicle system upgrade method as described above when executed by a processor.
The vehicle-mounted system upgrading method comprises the steps of firstly controlling a vehicle-mounted terminal to receive an upgrading short message with an MQTT message, then controlling a communication module of the vehicle-mounted terminal to be started according to the upgrading short message, and controlling the communication module to be in communication connection with an upgrading flow server corresponding to the communication module, so that a vehicle can receive an upgradable message without accessing the Internet in a low-power-consumption dormant state, and then starting the communication module to access the Internet after receiving the upgrading short message, thereby avoiding vehicle feeding caused by long-time communication connection between the vehicle-mounted terminal and the upgrading flow server, and reducing energy loss; and controlling the vehicle-mounted terminal to receive the upgrade package link sent by the upgrade flow server, controlling the vehicle-mounted terminal to download the upgrade package from the content distribution server corresponding to the upgrade package link, and upgrading the firmware according to the downloaded upgrade package. Because the content distribution server adopts the content distribution technology, the network congestion can be avoided and the downloading speed is improved by downloading the upgrade package from the content distribution server, thereby saving the time for upgrading the vehicle-mounted system and reducing the energy loss.
Drawings
FIG. 1 is a schematic terminal structure diagram of a hardware operating environment of a vehicle according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a vehicle-mounted system upgrading method according to the present invention;
FIG. 3 is a partial schematic flow chart of a second embodiment of the vehicle-mounted system upgrading method according to the present invention;
FIG. 4 is a partial schematic flow chart of a fifth embodiment of an upgrade method for a vehicle-mounted system according to the present invention;
FIG. 5 is a flowchart illustrating a sixth embodiment of an upgrade method for a vehicle-mounted system according to the present invention;
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment of a vehicle according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display (Display), an input unit such as a control panel, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a 5G interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. An in-vehicle system upgrade program may be included in the memory 1005 as a kind of computer storage medium.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 2, fig. 2 is a schematic flow chart of a first embodiment of an upgrade method for a vehicle-mounted system according to the present invention, in this embodiment, the method includes:
step S10, controlling the vehicle-mounted terminal to receive the upgrade short message with the MQTT message;
the upgrade short message received by the vehicle-mounted terminal can be a 2G short message, the 2G short message uses a Short Message Service (SMS), the vehicle-mounted terminal is in communication connection with a short message center (SMSC), so that the vehicle-mounted terminal is in a low-power-consumption communication state, the 2G short message comprises an MQTT message, and an MQTT protocol used by the MQTT message can provide real-time and reliable message service for connecting remote equipment with few codes and limited bandwidth.
Step S20, controlling a communication module of the vehicle-mounted terminal to be started according to the upgrading short message, and controlling the communication module to be in communication connection with an upgrading process server corresponding to the communication module;
the vehicle-mounted terminal starts the communication module of the vehicle-mounted terminal after receiving the upgrade short message, namely, the communication module can be kept closed under the condition that the vehicle-mounted system is not upgraded, so that the power consumption is reduced. The communication module can be a 4G module, a 5G module or a WiFi module, and is not limited herein, after the communication module is started, the communication module is controlled to be in communication connection with an upgrading process server, the upgrading process server is used for being matched with a vehicle to complete upgrading of the vehicle-mounted system, a software development engineer packs and transmits files required by upgrading of the vehicle-mounted system to the upgrading process server for storage, the upgrading process server can send push messages to a user mobile terminal after receiving upgrading packages to inform a user that the vehicle-mounted system is updated, and the upgrading process server can send upgrading short messages to the vehicle-mounted terminal through a short message center after receiving an agreement instruction of the user so as to achieve upgrading processes of S10, S20 and the like.
Step S30, controlling the vehicle-mounted terminal to receive the upgrade package link sent by the upgrade flow server;
after the communication connection between the communication module of the vehicle-mounted terminal and the upgrading process server is realized, the upgrading process server can generate an upgrading packet link according to the stored packaged files required for upgrading and send the upgrading packet link to the vehicle-mounted terminal.
Step S40, controlling the vehicle-mounted terminal to download the upgrade package from the content distribution server corresponding to the upgrade package link;
the upgrade package sent by the upgrade flow server is linked with the content distribution server, and the content distribution technology adopted by the content distribution server is based on the principles of intelligent scheduling, cache function service and global load balancing, so that bottlenecks and links which possibly influence the data transmission speed and stability on the internet can be avoided, and the method has the advantages of higher speed and higher stability of content transmission. Therefore, the upgrading package is forwarded to the content distribution server through the upgrading process server, the content distribution server creates an upgrading package link according to the upgrading package forwarded by the upgrading process server, the upgrading package link is sent to the upgrading process server, the vehicle-mounted terminal accesses the content distribution server according to the upgrading package link, and the upgrading package is downloaded from the content distribution server, so that the downloading speed can be increased, and the time required by downloading can be shortened.
And step S50, upgrading the firmware according to the upgrade package after downloading.
And after the upgrade package is downloaded, the upgrade package is installed, so that the vehicle-mounted system finishes updating and upgrading the firmware.
The vehicle-mounted system upgrading method comprises the steps of firstly controlling a vehicle-mounted terminal to receive an upgrading short message with an MQTT message, then controlling a communication module of the vehicle-mounted terminal to be started according to the upgrading short message, and controlling the communication module to be in communication connection with an upgrading flow server corresponding to the communication module, so that a vehicle can receive an upgradable message without accessing the Internet in a low-power-consumption dormant state, and then starting the communication module to access the Internet after receiving the upgrading short message, thereby avoiding vehicle feeding caused by long-time communication connection between the vehicle-mounted terminal and the upgrading flow server, and reducing energy loss; and controlling the vehicle-mounted terminal to receive the upgrade package link sent by the upgrade flow server, controlling the vehicle-mounted terminal to download the upgrade package from the content distribution server corresponding to the upgrade package link, and upgrading the firmware according to the downloaded upgrade package. Because the content distribution server adopts the content distribution technology, the network congestion can be avoided and the downloading speed is improved by downloading the upgrade package from the content distribution server, thereby saving the time for upgrading the vehicle-mounted system and reducing the energy loss.
As shown in fig. 3, a second embodiment of the vehicle-mounted system upgrading method according to the present invention is further proposed based on the first embodiment of the vehicle-mounted system upgrading method according to the present invention, and in this embodiment, the step S10 includes:
step S11, controlling the vehicle-mounted terminal to analyze the MQTT message and verify the authenticity of the MQTT message according to the upgrading short message;
step S12, when the MQTT message content is verified to be true, the vehicle-mounted terminal is controlled to send a verification request according to the network address carried by the MQTT message;
step S13, receiving a verification certificate sent by the upgrade process server corresponding to the network address according to the verification request;
step S14, judging whether a preset root certificate is matched with the verification certificate;
if yes, go to step S15: and controlling the vehicle-mounted terminal to establish encrypted communication with the upgrading process server.
For example: the vehicle-mounted terminal receives the upgrading short message, then opens the 4G network communication module, wakes up the vehicle-mounted SDK and simultaneously transmits MQTT wake-up information to the SDK, wherein the SDK refers to a software development kit, and the vehicle-mounted terminal can download the upgrading package, analyze the content of the information and send the upgrading result to the upgrading process server by using the vehicle-mounted SDK. After the vehicle-mounted SDK is awakened and started, the vehicle-mounted SDK firstly analyzes the MQTT message content and checks the authenticity of the MQTT message content according to the CRC16 algorithm. After the verification is passed, the vehicle-mounted SDK logs in an upgrading process server according to the network address of the MQTT awakening message, waits for the upgrading process server to issue a command, and after the vehicle-mounted terminal logs in the upgrading process server, the upgrading process server issues a three-level SSL verification certificate to the terminal. SSL is a secure socket protocol, a security protocol that provides security and data integrity for network communications. After the vehicle-mounted terminal receives the three-level SSL verification certificate, standard one-way SSL authentication is carried out on the three-level SSL verification certificate by using the built-in CA root certificate, and after the three-level SSL verification certificate is verified to be credible, SSL encryption communication with the upgrading process server is established by the vehicle-mounted terminal.
Further, a third embodiment of the vehicle-mounted system upgrade method is provided based on the first embodiment of the vehicle-mounted system upgrade method, and in this embodiment, the upgrade package includes at least one module upgrade package corresponding to an electronic control unit of a vehicle; step S50 includes:
step a, controlling the vehicle-mounted terminal to send each module upgrading packet to the corresponding electronic control unit according to the downloaded upgrading packet;
the module upgrading packages in the upgrading packages can have respective names or numbers, after the upgrading packages are downloaded, the vehicle-mounted terminal can identify the electronic control units corresponding to the module upgrading packages through the names or numbers of the module upgrading packages in the upgrading packages, and then sends the module upgrading packages to the corresponding electronic control units. For example: the name of a module upgrading package is 'engine management system upgrading package' or 'EMS Update', and the vehicle-mounted terminal identifies that the module upgrading package belongs to the engine management system and sends the module upgrading package to the electronic control unit of the engine management system. For another example, each electronic control unit of the vehicle has a respective number, and the respective number information is preset in the vehicle-mounted terminal, and if the number of a module upgrade package is 2, and the number 2 preset in the vehicle-mounted terminal corresponds to a Transmission Control Unit (TCU), the vehicle-mounted terminal can identify that the module upgrade package belongs to the transmission control unit, and then send the module upgrade package to the transmission control unit.
And b, controlling each electronic control unit to carry out firmware upgrading according to the received module upgrading package.
After each electronic control unit receives the corresponding module upgrading packet sent by the vehicle-mounted terminal, each electronic control unit is installed according to the corresponding module upgrading packet to realize upgrading, and the electronic control units needing upgrading respectively execute installation of the corresponding module upgrading packets, so that the time of the whole installation and upgrading process is saved.
Further, a fourth embodiment of the vehicle-mounted system upgrading method according to the present invention is provided based on the foregoing embodiment of the vehicle-mounted system upgrading method according to the present invention, and in this embodiment, the step of controlling the vehicle-mounted terminal to send each of the module upgrading packages to the corresponding electronic control units according to the downloaded upgrading package includes:
step c, controlling the vehicle-mounted terminal to send a wake-up instruction to each electronic control unit through a CAN bus interface according to the downloaded upgrade package to wake up the whole vehicle;
in this embodiment, after the upgrade package is downloaded, the vehicle-mounted terminal sends a wake-up instruction to each electronic control unit through the CAN bus interface to wake up the vehicle-mounted system of the entire vehicle, so that the entire vehicle-mounted system operates to cooperatively upgrade the vehicle-mounted system.
And d, controlling the vehicle-mounted terminal to send the module upgrading packets to the corresponding electronic control units through an Ethernet interface according to a preset protocol under the condition that the whole vehicle is awakened.
In this embodiment, for example: after the whole vehicle-mounted system is awakened, the vehicle-mounted terminal performs DOIP protocol command interaction with each electronic control unit through the 100M Ethernet interface, and the command can be in a preset request code form. The vehicle-mounted terminal sequentially transmits request codes SID of 0x10 and 0x03 to each electronic control unit to enter an expansion mode according to the name or the serial number of the module upgrading packet, SID is a service identifier, the following codes represent service types, the vehicle-mounted terminal transmits the request codes SID of 0x85 to each electronic control unit to close a fault code module of each electronic control unit, the vehicle-mounted terminal transmits the request codes SID of 0x28 to each electronic control unit to close a communication module of each electronic control unit, the vehicle-mounted terminal transmits the request codes SID of 0x10 and 0x02 to each electronic control unit to request each electronic control unit to enter a programming mode, the vehicle-mounted terminal transmits the request codes SID of 0x27 to each electronic control unit to request each electronic control unit to perform safe access, and the vehicle-mounted terminal sequentially transmits the module upgrading packet to each electronic control unit according to the offset. In the process of the transmission module upgrading packet, the Ethernet interface is used for replacing a traditional 0.5M CAN bus, so that the problems that the transmission time in a vehicle is long and the vehicle feeding is easily caused due to the fact that the transmission speed cannot meet the transmission requirement of the upgrading packet with large capacity due to the limitation of distance CAN be avoided. The vehicle-mounted terminal and each electronic control unit directly transmit the upgrade package through a 100M Ethernet interface, the transmission rate is improved by at least 200 times, and the time required by upgrade is greatly shortened.
As shown in fig. 4, a fifth embodiment of the vehicle-mounted system upgrading method according to the present invention is further proposed based on the first embodiment of the vehicle-mounted system upgrading method according to the present invention, and in this embodiment, the step of controlling each electronic control unit to perform firmware upgrading according to the received module upgrading package includes:
step S100, controlling each electronic control unit to check the integrity of the received module upgrading packet so as to generate an integrity result record;
step S200, judging whether each module upgrading packet is complete according to the completeness result record;
in an embodiment, the step of controlling each electronic control unit to perform firmware upgrade according to the received module upgrade package includes:
and if the module upgrading packages are complete, controlling the electronic control units to upgrade the firmware according to the received module upgrading packages.
In this embodiment, for example: the vehicle-mounted terminal transmits the module upgrading packet to each electronic control unit, simultaneously transmits CRC 32 to each electronic control unit through an integrity checking command to check the integrity of the module upgrading packet received by each electronic control unit, generates an integrity result record and feeds the integrity result record back to the vehicle-mounted terminal, the vehicle-mounted terminal judges whether the module upgrading packet is complete or not according to the integrity result record generated by each electronic control unit, and when the module upgrading packet is complete, the vehicle-mounted terminal judges that the module upgrading packet is completely transmitted to each electronic control unit.
In another embodiment, the step of controlling each electronic control unit to perform firmware upgrade according to the received module upgrade package if each module upgrade package is complete includes:
if the module upgrade package is complete, step S300 is executed: controlling each electronic control unit to carry out consistency check on the module upgrading packet so as to generate a consistency result record;
step S400, judging whether each electronic control unit is consistent with the corresponding module upgrading packet according to the consistency result record;
if each electronic control unit is consistent with the corresponding module upgrade package, executing step S500: and controlling each electronic control unit to carry out firmware upgrading according to the received module upgrading packet.
In this embodiment, for example: when the transmission of the module upgrading packet is judged to be finished, the vehicle-mounted terminal sends a request code SID of 0x31 and 0xFF01 to each electronic control unit to request each electronic control unit to carry out consistency check, the command is an asynchronous command, each electronic control unit can immediately carry out consistency check on the received module upgrading packet after receiving the command and generate a consistency result record, and the consistency result record is fed back to the vehicle-mounted terminal. And under the condition that the vehicle-mounted terminal judges that each electronic control unit is consistent with the corresponding module upgrading package according to the consistency result, each electronic control unit starts to install the received module upgrading package, and the vehicle-mounted terminal can continuously inquire the installation progress result of each electronic control unit through inquiring an upgrading result request code SID (0 x 31) and 0xFF02 in the whole installation upgrading process. And after the installation and the upgrade are finished, the vehicle-mounted terminal reports the upgrade result of the vehicle-mounted system to the upgrade process server.
As shown in fig. 5, a sixth embodiment of the vehicle-mounted system upgrading method according to the present invention is further proposed based on the first embodiment of the vehicle-mounted system upgrading method according to the present invention, and in this embodiment, step S40 includes:
step S41, acquiring the average transmission rate of download in a preset period;
step S42, determining whether the average transmission rate is 0 according to the average transmission rate;
if the average transmission rate is 0, go to step S43: judging whether the upgrade patch is complete;
if yes, go to step 50.
In this embodiment, the preset period may be 10S, 30S, or 60S, and may be set according to actual needs, which is not limited herein. For example: the vehicle-mounted terminal downloads the upgrade package from the content distribution server and simultaneously monitors the download rate in real time according to the link of the upgrade package, calculates and acquires the download average transmission rate in a 30S period every 30S period, judges whether the average transmission rate is 0, if 0, the average transmission rate is possibly caused by network faults, vehicle faults or other reasons, and possibly the upgrade package is downloaded completely, then judges whether the upgrade package is complete by the vehicle-mounted terminal, and carries out firmware upgrade according to the downloaded upgrade package under the complete condition.
In another embodiment, after the step of determining whether the upgrade package is complete if the average transmission rate is 0, the method further includes:
if not, go to step S60: generating a log of download failure and entering a sleep mode;
step S70, when receiving a user trigger or a wake-up command sent by the upgrade process server, reading the log of the download failure;
step S80, according to the log of download failure, obtaining the final node of the undelivered complete upgrade package;
step S90, sending a retransmission request generated according to the final node to the upgrade flow server, so that the upgrade flow server retransmits the upgrade package to the vehicle-mounted terminal according to the retransmission request.
For example: due to the fact that the upgrading packet is unsuccessfully downloaded due to abnormal interruption of the network, the vehicle-mounted terminal generates and stores the log of the failed downloading, and enters the sleep mode to enable the awakened whole vehicle to enter the original state before the upgrading short message is received so as to guarantee energy conservation of the vehicle. When a user unlocks and starts a vehicle or the vehicle-mounted terminal of the upgrading process server sends a wake-up instruction, the vehicle-mounted terminal reads a log of download failure, the download can be automatically continued according to the setting, or a message of download failure is prompted to the user through a display module of the vehicle-mounted terminal, or the upgrading process server pushes the message of download failure to a mobile terminal of the user, the user can select to continue downloading or select to process later, after the automatic download or the user selects to continue downloading, a final node of an undelivered complete upgrading package is obtained, then the 4G module is tried to be opened, a continuous transmission request generated according to the final node is sent to the upgrading process server, the upgrading process server can forward the continuous transmission request to the content distribution server after receiving the continuous transmission request, and then a continuous transmission instruction is fed back to the vehicle-mounted terminal, so that the vehicle-mounted terminal can continue the last downloading task from the content distribution server according to the original upgrading package, without the need for a re-download.
In addition, the present invention also provides a vehicle, which includes a memory, a processor and an on-board system upgrading program stored in the memory and operable on the processor, wherein the processor implements the steps of the on-board system upgrading method according to the above embodiment when executing the on-board system upgrading program.
The specific implementation manner of the vehicle of the invention is basically the same as that of each embodiment of the vehicle-mounted system upgrading method, and is not described herein again.
In addition, the present invention also provides a readable storage medium, which is characterized in that the readable storage medium includes a vehicle-mounted system upgrading program, and the vehicle-mounted system upgrading program implements the steps of the vehicle-mounted system upgrading method according to the above embodiment when executed by a processor.
The specific implementation manner of the readable storage medium of the present invention is substantially the same as that of each embodiment of the vehicle-mounted system upgrading method, and is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A vehicle-mounted system upgrading method is characterized by comprising the following steps:
controlling the vehicle-mounted terminal to receive the upgrade short message with the MQTT message;
controlling a communication module of the vehicle-mounted terminal to be started according to the upgrading short message, and controlling the communication module to be in communication connection with an upgrading flow server corresponding to the communication module;
controlling the vehicle-mounted terminal to receive the upgrade package link sent by the upgrade process server;
controlling the vehicle-mounted terminal to download the upgrade package from a content distribution server corresponding to the upgrade package link;
and upgrading the firmware according to the downloaded upgrade package.
2. The vehicle-mounted system upgrading method according to claim 1, wherein the step of controlling a vehicle-mounted terminal communication module to be started according to the upgrading short message and controlling the communication module to be in communication connection with an upgrading process server comprises the following steps:
controlling the vehicle-mounted terminal to analyze the MQTT message and verify the authenticity of the MQTT message according to the upgrading short message;
when the MQTT message content is verified to be real, controlling the vehicle-mounted terminal to send a verification request according to a network address carried by the MQTT message;
receiving a verification certificate sent by the upgrading process server corresponding to the network address according to the verification request;
judging whether a preset root certificate is matched with the verification certificate or not;
and if so, controlling the vehicle-mounted terminal to establish encrypted communication with the upgrading process server.
3. The in-vehicle system upgrade method according to claim 1, wherein the upgrade package includes at least one module upgrade package corresponding to an electronic control unit of a vehicle; the step of upgrading the firmware according to the downloaded upgrade package comprises the following steps:
controlling the vehicle-mounted terminal to send each module upgrading package to the corresponding electronic control unit according to the downloaded upgrading package;
and controlling each electronic control unit to carry out firmware upgrading according to the received module upgrading packet.
4. The vehicle-mounted system upgrading method according to claim 3, wherein the step of controlling the vehicle-mounted terminal to send each module upgrading package to each corresponding electronic control unit according to the downloaded upgrading package comprises the following steps:
according to the downloaded upgrade package, the vehicle-mounted terminal is controlled to send a wake-up instruction to each electronic control unit through a CAN bus interface so as to wake up the whole vehicle;
and under the condition that the whole vehicle is awakened, controlling the vehicle-mounted terminal to send the module upgrading packets to the corresponding electronic control units through the Ethernet interface according to a preset protocol.
5. The vehicle-mounted system upgrading method according to claim 3, wherein the step of controlling each electronic control unit to perform firmware upgrading according to the received module upgrading package comprises the steps of:
controlling each electronic control unit to check the integrity of the received module upgrading packet so as to generate an integrity result record;
judging whether each module upgrading packet is complete or not according to the integrity result record;
the step of controlling each electronic control unit to carry out firmware upgrade according to the received module upgrade package comprises the following steps:
and if the module upgrading packages are complete, controlling the electronic control units to upgrade the firmware according to the received module upgrading packages.
6. The vehicle-mounted system upgrading method according to claim 5, wherein if each module upgrading packet is complete, the step of controlling each electronic control unit to perform firmware upgrading according to the received module upgrading packet comprises:
if the module upgrading packages are complete, controlling the electronic control units to carry out consistency check on the module upgrading packages so as to generate consistency result records;
judging whether each electronic control unit is consistent with the corresponding module upgrading package according to the consistency result record;
and if the electronic control units are consistent with the corresponding module upgrading packages, controlling the electronic control units to upgrade the firmware according to the received module upgrading packages.
7. The in-vehicle system upgrade method according to claim 1, wherein the controlling the in-vehicle terminal to download the upgrade package from the content distribution server corresponding to the upgrade package link comprises:
acquiring the average transmission rate of downloading in a preset period;
judging whether the average transmission rate is 0 or not according to the average transmission rate;
if the average transmission rate is 0, judging whether the upgrade package is complete;
and if so, executing the step of upgrading the firmware according to the downloaded upgrade package.
8. The vehicle-mounted system upgrading method according to claim 7, wherein after the step of determining whether the upgrade package is complete if the average transmission rate is 0, the method further comprises:
if not, generating a log of download failure and entering a sleep mode;
reading the log of the download failure when receiving a user trigger or a wake-up instruction sent by the upgrade process server;
acquiring a final node of an undelivered complete upgrade package according to the log of the download failure;
and sending a continuous transmission request generated according to the final node to the upgrading process server so that the upgrading process server continuously transmits the upgrading packet to the vehicle-mounted terminal according to the continuous transmission request.
9. A vehicle, characterized in that the vehicle comprises: the system comprises a memory, a processor and an on-board system upgrading program which is stored on the memory and can run on the processor, wherein the on-board upgrading program realizes the on-board system upgrading method according to any one of claims 1-8 when being executed by the processor.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a vehicle-mounted system upgrade program, which when executed by a processor implements the steps of the vehicle-mounted system upgrade method according to any one of claims 1 to 8.
CN202110839948.6A 2021-07-22 2021-07-22 Vehicle-mounted system upgrading method, vehicle and readable storage medium Pending CN113596755A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110839948.6A CN113596755A (en) 2021-07-22 2021-07-22 Vehicle-mounted system upgrading method, vehicle and readable storage medium
PCT/CN2022/096938 WO2023000841A1 (en) 2021-07-22 2022-06-02 In-vehicle system upgrade method, vehicle, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839948.6A CN113596755A (en) 2021-07-22 2021-07-22 Vehicle-mounted system upgrading method, vehicle and readable storage medium

Publications (1)

Publication Number Publication Date
CN113596755A true CN113596755A (en) 2021-11-02

Family

ID=78249382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839948.6A Pending CN113596755A (en) 2021-07-22 2021-07-22 Vehicle-mounted system upgrading method, vehicle and readable storage medium

Country Status (2)

Country Link
CN (1) CN113596755A (en)
WO (1) WO2023000841A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242276A (en) * 2021-04-13 2021-08-10 东风汽车集团股份有限公司 On-line upgrading method, device, equipment and storage medium for vehicle-mounted system
WO2023000841A1 (en) * 2021-07-22 2023-01-26 上汽通用五菱汽车股份有限公司 In-vehicle system upgrade method, vehicle, and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594660A (en) * 2023-05-25 2023-08-15 成都赛力斯科技有限公司 ECU (electronic control Unit) non-inductive upgrade refreshing method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080082194A (en) * 2007-03-07 2008-09-11 (주) 마젠타시스템 Car navigation system, upgrade terminal, upgrade system and a control method thereof
CN102158544A (en) * 2011-02-25 2011-08-17 深圳市元征软件开发有限公司 Method and device for remote upgrading of vehicle-mounted electronic device
CN102469130A (en) * 2010-11-16 2012-05-23 晨讯科技(沈阳)有限公司 Method for upgrading taximeter in wireless mode and taximeter used thereby
CN102510409A (en) * 2011-12-19 2012-06-20 厦门雅迅网络股份有限公司 Method and system for quickly and remotely updating program of mobile terminal by using wireless network
US20160179482A1 (en) * 2013-08-14 2016-06-23 Bitreactive As Improved state space analysis using partial descriptions
CN107113903A (en) * 2015-05-05 2017-08-29 大众汽车有限公司 Vehicle, device, method and computer program for controlling data exchange and data transfer to vehicle part
CN108923933A (en) * 2018-07-12 2018-11-30 北京航空航天大学 The working method of server, the upgrade method of car-mounted terminal and system
CN110650446A (en) * 2018-06-07 2020-01-03 福特全球技术公司 Optimized TCU transmit power
WO2020032199A1 (en) * 2018-08-10 2020-02-13 株式会社デンソー Vehicle information communication system
CN111591236A (en) * 2019-02-21 2020-08-28 广州汽车集团股份有限公司 Personalized configuration system for vehicle

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383847A (en) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 Firmware upgrading method and device for wireless data terminal
CN101720133A (en) * 2009-12-03 2010-06-02 深圳市中兴移动通信有限公司 Remote update method and system of embedded system software
CN102158814A (en) * 2010-02-11 2011-08-17 希姆通信息技术(上海)有限公司 Server processing method realizing remote update and management of module side
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
JP7346956B2 (en) * 2018-08-10 2023-09-20 株式会社デンソー Vehicle program rewriting system, vehicle master device, progress state synchronous control method, and progress state synchronous control program
CN111726776B (en) * 2020-06-30 2021-08-27 湖北亿咖通科技有限公司 Automatic network dialing parameter identification method of Internet of vehicles equipment
CN112099829B (en) * 2020-09-21 2021-11-09 华人运通(上海)云计算科技有限公司 Vehicle upgrade control method and system, OTA background and vehicle
CN113596755A (en) * 2021-07-22 2021-11-02 上汽通用五菱汽车股份有限公司 Vehicle-mounted system upgrading method, vehicle and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080082194A (en) * 2007-03-07 2008-09-11 (주) 마젠타시스템 Car navigation system, upgrade terminal, upgrade system and a control method thereof
CN102469130A (en) * 2010-11-16 2012-05-23 晨讯科技(沈阳)有限公司 Method for upgrading taximeter in wireless mode and taximeter used thereby
CN102158544A (en) * 2011-02-25 2011-08-17 深圳市元征软件开发有限公司 Method and device for remote upgrading of vehicle-mounted electronic device
CN102510409A (en) * 2011-12-19 2012-06-20 厦门雅迅网络股份有限公司 Method and system for quickly and remotely updating program of mobile terminal by using wireless network
US20160179482A1 (en) * 2013-08-14 2016-06-23 Bitreactive As Improved state space analysis using partial descriptions
CN107113903A (en) * 2015-05-05 2017-08-29 大众汽车有限公司 Vehicle, device, method and computer program for controlling data exchange and data transfer to vehicle part
CN110650446A (en) * 2018-06-07 2020-01-03 福特全球技术公司 Optimized TCU transmit power
CN108923933A (en) * 2018-07-12 2018-11-30 北京航空航天大学 The working method of server, the upgrade method of car-mounted terminal and system
WO2020032199A1 (en) * 2018-08-10 2020-02-13 株式会社デンソー Vehicle information communication system
CN111591236A (en) * 2019-02-21 2020-08-28 广州汽车集团股份有限公司 Personalized configuration system for vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242276A (en) * 2021-04-13 2021-08-10 东风汽车集团股份有限公司 On-line upgrading method, device, equipment and storage medium for vehicle-mounted system
WO2023000841A1 (en) * 2021-07-22 2023-01-26 上汽通用五菱汽车股份有限公司 In-vehicle system upgrade method, vehicle, and readable storage medium

Also Published As

Publication number Publication date
WO2023000841A1 (en) 2023-01-26

Similar Documents

Publication Publication Date Title
CN113596755A (en) Vehicle-mounted system upgrading method, vehicle and readable storage medium
CN108279919B (en) Remote program upgrading method for new energy electric vehicle
CN111061499B (en) ECU updating method and system based on file system
CN110032382A (en) A kind of vehicle electronic control unit upgrade method, system and terminal device
CN112804661B (en) Map data transmission method, system, edge server and storage medium
US20230289174A1 (en) Vehicle upgrade method and apparatus
CN111163179A (en) System and method for remotely upgrading automobile terminal electronic control module software
CN113176902B (en) OTA upgrading method of vehicle ECU, electronic equipment, vehicle and readable storage medium
CN111817874A (en) Remote maintenance system and method for electric power internet of things terminal equipment
CN105491084A (en) IOV (Internet of vehicles) system based on OTA protocol, and control method therefor
CN111277477B (en) FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments
CN102510409A (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN111158718A (en) Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN111886576A (en) Method and apparatus for updating remote network device
CN102291424A (en) Vehicle-mounted GPRS (general packet radio service) communication system with FTP (file transfer protocol) remote wireless upgrading function and method thereof
CN112910679B (en) Multi-level remote upgrading method for power Internet of things
CN113746892B (en) Remote upgrading method and wireless terminal equipment
CN110262820A (en) Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
CN112187744A (en) OTA (over the air) upgrading method for vehicle-mounted domain architecture CAN (controller area network) bus DoS (DoS) attack
CN115220762A (en) Vehicle-end firmware upgrading method, device, equipment and medium of digital key system
CN103257869A (en) Method for intelligently downloading ECU (electronic control unit) programs
CN114374679A (en) Method for upgrading vehicle-mounted equipment by using DOIP (data over Internet protocol) through TBOX (tunnel boring machine)
CN112256310A (en) Vehicle instrument OTA upgrading system and method
CN111682965A (en) FOTA controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211102

RJ01 Rejection of invention patent application after publication