CN111638894A - Software upgrading method and device and computer storage medium - Google Patents

Software upgrading method and device and computer storage medium Download PDF

Info

Publication number
CN111638894A
CN111638894A CN202010396917.3A CN202010396917A CN111638894A CN 111638894 A CN111638894 A CN 111638894A CN 202010396917 A CN202010396917 A CN 202010396917A CN 111638894 A CN111638894 A CN 111638894A
Authority
CN
China
Prior art keywords
software
vehicle
upgraded
version
communication connection
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
CN202010396917.3A
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.)
Pateo Connect Nanjing Co Ltd
Original Assignee
Pateo Connect Nanjing 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 Pateo Connect Nanjing Co Ltd filed Critical Pateo Connect Nanjing Co Ltd
Priority to CN202010396917.3A priority Critical patent/CN111638894A/en
Publication of CN111638894A publication Critical patent/CN111638894A/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
    • 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/46Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for vehicle-to-vehicle communication [V2V]

Landscapes

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

Abstract

The invention discloses a software upgrading method, a device and a computer storage medium, wherein the method comprises the following steps: when the first vehicle determines that the software is to be updated, sending a software detection request message to the second vehicle through the V2V communication connection; the software detection request message carries the version information to be upgraded of the software to be updated; the first vehicle receives a software detection response message returned by the second vehicle through V2V communication connection, and sends a software downloading request message carrying information of the version to be upgraded of the software to be upgraded to the second vehicle when the second vehicle is determined to have a software upgrading package corresponding to the version to be upgraded of the software to be upgraded according to the software detection response message; and the first vehicle receives a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection. The software upgrading method, the software upgrading device and the computer storage medium are convenient to operate and low in cost.

Description

Software upgrading method and device and computer storage medium
Technical Field
The present invention relates to the field of vehicles, and in particular, to a software upgrading method and apparatus, and a computer storage medium.
Background
With the rapid development of the economic society, the popularity of vehicles is also rapidly improved, so that the life of people is more and more convenient. With the continuous improvement of vehicle intelligence, the requirements of people on the functions and performances of each system of a vehicle are also continuously improved, so that vehicle developers need to continuously research and develop corresponding upgrading programs to upgrade the vehicle systems, the electronic control units and the like. Currently, vehicle software update is mainly implemented by Over-the-Air Technology (OTA), however, since software upgrade packages are generally large, if a plurality of vehicles download the software upgrade packages from the cloud server at the same time for upgrade, a great burden is imposed on the cloud server, and whether the vehicles can successfully download the software upgrade packages is still limited by current network conditions, vehicle residual traffic, and the like. Therefore, the software upgrading method has the problems of low reliability and high cost.
Disclosure of Invention
The invention aims to provide a software upgrading method, a software upgrading device and a computer storage medium, which are convenient to operate, high in reliability and low in cost.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a software upgrading method, where the method includes:
when the first vehicle determines that the software is to be updated, sending a software detection request message to the second vehicle through the V2V communication connection; the software detection request message carries the version information to be upgraded of the software to be updated;
the first vehicle receives a software detection response message returned by the second vehicle through V2V communication connection, and sends a software downloading request message carrying information of the version to be upgraded of the software to be upgraded to the second vehicle when the second vehicle is determined to have a software upgrading package corresponding to the version to be upgraded of the software to be upgraded according to the software detection response message;
and the first vehicle receives a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection.
As one of the implementation modes, the method further comprises the following steps:
and the first vehicle carries out MD5 verification on the software upgrading package, and if the verification is passed, the software to be updated is upgraded by using the software upgrading package.
As one embodiment, before sending the software detection request message to the second vehicle through the V2V communication connection when the first vehicle determines that the software is to be updated, the method further includes:
receiving a software upgrading message sent by a cloud server, and determining software to be updated and version information to be upgraded of the software to be updated according to the software upgrading message.
As one embodiment, before sending the software detection request message to the second vehicle through the V2V communication connection when the first vehicle determines that the software is to be updated, the method further includes:
the first vehicle sends a software version inquiry request message to the second vehicle through a V2V communication connection; the software version query request message carries information of software to be queried;
the first vehicle receives a software version query response message returned by the second vehicle through the V2V communication connection, and determines the software to be queried as the software to be updated when the version of the software to be queried of the second vehicle is higher than the version of the software to be queried of the first vehicle according to the software version query response message.
As one implementation manner, the receiving, by the first vehicle, a software upgrade package corresponding to the to-be-upgraded version of the to-be-updated software sent by the second vehicle through the V2V communication connection includes:
and the first vehicle displays the receiving progress of the software upgrading package corresponding to the version to be upgraded of the software to be upgraded in real time.
In a second aspect, an embodiment of the present invention provides a software upgrading method, where the method includes:
a second vehicle receives a software detection request message sent by a first vehicle through V2V communication connection, wherein the software detection request message carries information of a to-be-upgraded version of the to-be-upgraded software;
when the second vehicle determines that the software upgrading package corresponding to the version to be upgraded of the software to be updated exists, sending a software detection response message to the first vehicle through V2V communication connection;
and the second vehicle receives a software downloading request message which is sent by the first vehicle and carries information of the to-be-upgraded version of the to-be-upgraded software, and sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through V2V communication connection.
As one implementation manner, the sending, by the second vehicle, the software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through the V2V communication connection includes:
and the second vehicle sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle in a breakpoint continuous transmission mode through V2V communication connection.
As one embodiment, before the second vehicle receives the software detection request message sent by the first vehicle through the V2V communication connection, the method further includes:
the second vehicle receives a software version inquiry request message sent by the first vehicle through a V2V communication connection; the software version query request message carries information of software to be queried;
and the second vehicle responds to the software version inquiry request message and sends a software version inquiry response message to the first vehicle through the V2V communication connection, wherein the software version inquiry response message carries the version information of the software to be inquired.
In a third aspect, an embodiment of the present invention provides a software upgrading apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the software upgrading method according to the first aspect and/or the second aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the software upgrading method according to the first aspect and/or the second aspect.
The embodiment of the invention provides a software upgrading method, a device and a computer storage medium, wherein the method comprises the following steps: when the first vehicle determines that the software is to be updated, sending a software detection request message to the second vehicle through the V2V communication connection; the software detection request message carries the version information to be upgraded of the software to be updated; the first vehicle receives a software detection response message returned by the second vehicle through V2V communication connection, and sends a software downloading request message carrying information of the version to be upgraded of the software to be upgraded to the second vehicle when the second vehicle is determined to have a software upgrading package corresponding to the version to be upgraded of the software to be upgraded according to the software detection response message; and the first vehicle receives a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection. Therefore, the software to be updated of the vehicle is upgraded through the V2V communication connection between the vehicle and the vehicle, the software to be updated does not need to be downloaded from the cloud server, the burden of the cloud server is reduced, the network condition, the vehicle flow and the like are not limited, the operation is convenient and fast, the reliability is high, and the cost is low.
Drawings
Fig. 1 is a schematic flowchart of a software upgrading method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another software upgrading method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a software upgrading method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a software upgrading apparatus according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a software upgrading method provided for the embodiment of the present invention may be executed by a software upgrading apparatus provided in the embodiment of the present invention, where the software upgrading apparatus may be implemented in a software and/or hardware manner, and the software upgrading method includes the following steps:
step S101: when the first vehicle determines that the software is to be updated, sending a software detection request message to the second vehicle through the V2V communication connection; the software detection request message carries the version information to be upgraded of the software to be updated;
here, the first vehicle determines that the software needs to be updated, may receive a software upgrade message sent by the cloud server to the vehicle, may send a software version query request to the cloud server to know that the software needs to be updated, and may send a software version query request to the second vehicle through the V2V communication connection to detect whether the software needs to be updated. The first vehicle and the cloud server can communicate based on 3G, 4G, 5G, WiFi and other wireless modes.
As can be appreciated, the Internet of vehicles enables real-time information interaction between vehicles by utilizing wireless cellular communication technology. With the development of wireless multimedia services, cellular networks centered on base stations have obvious limitations in terms of high data rate and support of proximity services, and in order to meet the index requirements of low delay and high reliability required by communication between vehicles in Vehicle networking communication, V2V (Vehicle to Vehicle) communication can be realized by the current Vehicle networking communication mode. In particular, V2V communication generally employs the prior art D2D (Device-to-Device) communication technique, and the use of V2V communication may reduce the latency of transmission compared to the transmission of communication information by a vehicle through a network Device. In the V2V communication method, each vehicle is used as an independent individual, and two-to-two communication is actually performed between the vehicles. The V2V communication connection includes, but is not limited to, a wireless local area network connection, a bluetooth connection, and the like.
Here, the sending of the software detection request message from the first vehicle to the second vehicle through the V2V communication connection may be sending of a software detection request message carrying information of a to-be-upgraded version of the to-be-upgraded software to the second vehicle when the first vehicle is in V2V communication connection with the second vehicle through a wireless lan connection, a bluetooth connection, or the like. The information of the version to be upgraded of the software to be updated is higher than the existing version information of the software to be updated of the first vehicle, and the software detection request message is used for requesting to detect whether the second vehicle has a software upgrade package corresponding to the version to be upgraded of the software to be updated.
In an embodiment, when the first vehicle determines that the software is to be updated, before sending the software detection request message to the second vehicle through the V2V communication connection, the method may further include: receiving a software upgrading message sent by a cloud server, and determining software to be updated and version information to be upgraded of the software to be updated according to the software upgrading message.
Specifically, when vehicle-mounted software such as a vehicle-mounted application or a vehicle-mounted control system with a latest version is updated, the cloud server may send a software upgrading message to the first vehicle, where the software upgrading message at least includes information of software to be updated, information of a version to be upgraded of the software to be updated, information of an applicable vehicle type, and an MD5 check value of a software upgrading package corresponding to the version to be upgraded of the software to be updated. And in combination with the software information which needs to be updated, the first vehicle can determine the software to be updated and the version information to be updated of the software to be updated according to the software updating message.
It can be understood that due to the needs of technical updating or repairing bugs existing in the software, the software needs to be updated in time to ensure the normal work of the vehicle, and therefore, the cloud server can send software upgrading messages to the vehicle at regular time or irregular time. It should be noted that, the software to be updated is updated, which may also be referred to as updating the software of the vehicle or upgrading the vehicle.
In an embodiment, when the first vehicle determines that the software is to be updated, before sending the software detection request message to the second vehicle through the V2V communication connection, the method may further include: the first vehicle sends a software version inquiry request message to the second vehicle through a V2V communication connection; the software version query request message carries information of software to be queried; the first vehicle receives a software version query response message returned by the second vehicle through the V2V communication connection, and determines the software to be queried as the software to be updated when the version of the software to be queried of the second vehicle is higher than the version of the software to be queried of the first vehicle according to the software version query response message.
Specifically, the first vehicle sends a software version query request message to the second vehicle through a V2V communication connection, so that the second vehicle queries the version of the software to be queried installed on the second vehicle according to the software information to be queried carried in the software version query request message, thereby obtaining the version of the software to be queried of the second vehicle. The determining, by the first vehicle, that the version of the software to be queried of the second vehicle is higher than the version of the software to be queried of the first vehicle may mean that the version of the software to be queried of the second vehicle is newer than the version of the software to be queried of the first vehicle, for example, if the version of the software to be queried of the first vehicle is V5.0, and the version of the software to be queried of the second vehicle is V6.0, then the version of the software to be queried of the second vehicle is higher than the version of the software to be queried of the first vehicle. And when the first vehicle determines that the version of the software to be queried of the second vehicle is higher than that of the software to be queried of the first vehicle according to the software version query response message, determining the software to be queried as the software to be updated, namely, updating the software to be queried. In this way, the first vehicle queries the software version of the second vehicle through the V2V communication connection, and determines the software to be queried as the software to be updated when it is determined that the version of the software to be queried of the second vehicle is higher than the version of the software to be queried of the first vehicle, which is simple and intelligent to operate.
Here, the V2V communication connection includes, but is not limited to, a wireless local area network connection, a bluetooth connection, and the like. Since the bluetooth connection is a one-to-one connection, i.e., the vehicle can only establish one bluetooth connection at the same time. Therefore, when a first vehicle establishes a V2V communication connection with a second vehicle through a bluetooth connection, before the bluetooth connection is established with the second vehicle, if the first vehicle detects that the bluetooth connection is established with a mobile terminal, the bluetooth connection with the mobile terminal is disconnected to ensure that the bluetooth connection can be established with the second vehicle. It should be noted that, as long as the first vehicle detects that the bluetooth connection has been established with the terminal other than the second vehicle, the established bluetooth connection needs to be disconnected. In this way, the first vehicle can ensure that the bluetooth connection can be established with the second vehicle by disconnecting the established bluetooth connection in time, so as to ensure that the V2V communication connection is established with the second vehicle in time.
Step S102: the first vehicle receives a software detection response message returned by the second vehicle through V2V communication connection, and sends a software downloading request message carrying information of the version to be upgraded of the software to be upgraded to the second vehicle when the second vehicle is determined to have a software upgrading package corresponding to the version to be upgraded of the software to be upgraded according to the software detection response message;
specifically, when the first vehicle determines that the second vehicle has a software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software according to a software detection response message returned by the second vehicle through the V2V communication connection, the first vehicle sends a software download request message carrying information of the to-be-upgraded version of the to-be-upgraded software to the second vehicle.
Here, the receiving, by the first vehicle, the software detection response message returned by the second vehicle through the V2V communication connection may refer to that after receiving the software detection request message, which is sent by the first vehicle and carries information of the to-be-upgraded version of the to-be-upgraded software, the second vehicle analyzes the software detection request message, then detects whether the second vehicle has a software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software according to the to-be-upgraded version of the to-be-upgraded software carried by the software detection request message, generates the software detection response message according to a detection result, and sends the software detection response message to the first vehicle through the V2V communication connection, where the first vehicle receives the software detection response message returned by the second vehicle through the V2V communication connection. The software detection response message is used for representing whether the second vehicle has a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software of the first vehicle. When the first vehicle determines that the second vehicle has the software upgrading package corresponding to the version to be upgraded of the software to be upgraded according to the software detection response message, sending a software downloading request message carrying information of the version to be upgraded of the software to be updated to the second vehicle, may refer to that when the first vehicle determines that the second vehicle has the software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software according to the received software detection response message returned by the second vehicle through the V2V communication connection, sending a software downloading request message carrying information of the version to be upgraded of the software to be updated to the second vehicle, the software downloading request message is used for requesting the second vehicle to allow the first vehicle to download the software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software through the V2V communication connection.
Step S103: and the first vehicle receives a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection.
Specifically, the first vehicle receives a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection, so as to perform software upgrading according to the software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software.
In summary, in the software upgrading method provided in the above embodiment, when a first vehicle determines that software is to be updated, a software detection request message is sent to a second vehicle through a V2V communication connection, where the software detection request message carries information of a version to be upgraded of the software to be updated, then a software detection response message returned by the second vehicle through the V2V communication connection is received, and when it is determined that the second vehicle has a software upgrading package corresponding to the version to be upgraded of the software to be updated according to the software detection response message, a software downloading request message carrying the information of the version to be upgraded of the software to be updated is sent to the second vehicle, and the software upgrading package corresponding to the version to be upgraded of the software to be updated and sent by the second vehicle through the V2V communication connection is received. Therefore, the software to be updated of the vehicle is upgraded through the V2V communication connection between the vehicle and the vehicle, the software to be updated does not need to be downloaded from the cloud server, the burden of the cloud server is reduced, the network condition, the vehicle flow and the like are not limited, the operation is convenient and fast, the reliability is high, and the cost is low.
In one embodiment, the software upgrading method further includes: and the first vehicle carries out MD5 verification on the software upgrading package, and if the verification is passed, the software to be updated is upgraded by using the software upgrading package.
It should be noted that, the fifth version of the Message Digest Algorithm (MD5, Message Digest Algorithm5) is a Message Digest Algorithm, which can generate a special string from a string or a file according to a certain rule, and the MD5 value corresponding to a file is fixed, and when the content of the file changes, the MD5 value may also be different. Therefore, MD5 values are often used in practical applications to verify that a piece of data has been tampered with. For example, a sender of data generates an MD5 value according to original data, then transmits the original data together with an MD5 value thereof to a receiver, after receiving the original data, the receiver first generates an MD5 value by using an MD5 algorithm on the original data, then compares the MD5 value with an MD5 value sent by the sender, and if the MD5 value is consistent with the MD5 value, the original data is considered to be unmodified, otherwise, the original data is modified.
Here, after the first vehicle receives a software upgrade package corresponding to the version to be upgraded of the software to be updated, which is sent by the second vehicle through the V2V communication connection, MD5 verification is performed on the software upgrade package, and if the verification passes, the software to be updated is upgraded by using the software upgrade package. It should be noted that, when the second vehicle sends the software upgrade package corresponding to the version to be upgraded of the software to be updated to the first vehicle, the MD5 check value corresponding to the software upgrade package corresponding to the version to be upgraded of the software to be updated may be sent to the first vehicle, so that the first vehicle performs MD5 check on the software upgrade package according to the MD5 value. In addition, the MD5 value may also be sent by the cloud server to the first vehicle via a software upgrade message. Therefore, the software to be updated is updated by using the software upgrading package after the received software upgrading package is verified by the MD5, the software upgrading package is ensured not to be modified, and the safety of the vehicle is improved.
In an embodiment, the receiving, by the first vehicle, a software upgrade package corresponding to the to-be-upgraded version of the to-be-updated software sent by the second vehicle through a V2V communication connection includes: and the first vehicle displays the receiving progress of the software upgrading package corresponding to the version to be upgraded of the software to be upgraded in real time.
Here, when the first vehicle receives the software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection, the receiving progress of the software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software is displayed in real time, for example, the receiving progress of the software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software is displayed in real time on a vehicle-mounted device screen, or a prompt sound is sent out through a vehicle-mounted sound device or the like when the receiving is completed. Therefore, the receiving progress of the software upgrading package corresponding to the version to be upgraded of the software to be upgraded is displayed in real time, so that a user can know the receiving condition of the software upgrading package in time and know the downloading progress of the software upgrading package, and the use experience of the user is improved.
Referring to fig. 2, a software upgrading method provided for the embodiment of the present invention may be executed by a software upgrading apparatus provided in the embodiment of the present invention, where the software upgrading apparatus may be implemented in a software and/or hardware manner, and the software upgrading method includes the following steps:
step S201: a second vehicle receives a software detection request message sent by a first vehicle through V2V communication connection, wherein the software detection request message carries information of a to-be-upgraded version of the to-be-upgraded software;
here, when the second vehicle and the first vehicle are in V2V communication connection, the second vehicle receives a software detection request message sent by the first vehicle to inquire whether the second vehicle has a software upgrade package corresponding to a to-be-upgraded version of software to be updated. Specifically, after receiving the software detection request message sent by the first vehicle, the second vehicle analyzes the software detection request message, and detects whether a software upgrade package corresponding to the version to be upgraded of the software to be upgraded is stored in the vehicle according to the version to be upgraded of the software to be upgraded carried in the software detection request message.
Here, the receiving of the software detection request message by the second vehicle, which is sent by the first vehicle through a V2V communication connection, may be receiving a software detection request message, which is sent by the first vehicle and carries information of a to-be-upgraded version of the to-be-upgraded software, after the second vehicle establishes a V2V communication connection with the first vehicle through a wireless local area network connection, a bluetooth connection, or the like, where the software detection request message is used to request to detect whether the second vehicle has a software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software.
In an embodiment, before the second vehicle receives the software detection request message sent by the first vehicle through the V2V communication connection, the method further includes: the second vehicle receives a software version inquiry request message sent by the first vehicle through a V2V communication connection; the software version query request message carries information of software to be queried; and the second vehicle responds to the software version inquiry request message and sends a software version inquiry response message to the first vehicle through the V2V communication connection, wherein the software version inquiry response message carries the version information of the software to be inquired.
Specifically, after receiving a software version query request message which is sent by the first vehicle and carries software information to be queried, the second vehicle analyzes the software version query request message, queries the version of the software to be queried of the second vehicle according to the software information to be queried carried by the software version query request message, generates a software version query response message according to the version information of the queried software, and sends the software version query response message to the first vehicle through V2V communication connection. Therefore, the second vehicle receives the software version query request message sent by the first vehicle through the V2V communication connection, and sends the software version query response message to the first vehicle, so that the first vehicle can quickly know whether software upgrading is needed, and the operation is simple, convenient and intelligent.
Step S202: when the second vehicle determines that the software upgrading package corresponding to the version to be upgraded of the software to be updated exists, sending a software detection response message to the first vehicle through V2V communication connection;
specifically, when the second vehicle determines that the second vehicle has the software upgrade package corresponding to the version to be upgraded of the software to be updated according to the software detection request message, the second vehicle sends a software detection response message to the first vehicle through the V2V communication connection.
Here, when the second vehicle determines that the software upgrade package corresponding to the to-be-upgraded version of the software to be updated exists, the software detection response message is sent to the first vehicle through the V2V communication connection, where the software detection response message may be analyzed after the second vehicle receives a software detection request message, which is sent by the first vehicle through the V2V communication connection and carries information of the to-be-upgraded version of the software to be updated, and then, whether the second vehicle has the software upgrade package corresponding to the to-be-upgraded version of the software to be updated is detected according to the information of the to-be-upgraded version of the software to be updated carried in the software detection request message, and when the software upgrade package corresponding to the to-be-upgraded version of the software to be updated is determined, the software detection response message is generated and sent to the first vehicle through the V2V communication connection, and is used for representing that the second vehicle has the software upgrade package corresponding to the to-be-upgraded version of the software to be updated The corresponding software upgrading package.
Step S203: and the second vehicle receives a software downloading request message which is sent by the first vehicle and carries information of the to-be-upgraded version of the to-be-upgraded software, and sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through V2V communication connection.
Specifically, after receiving a software downloading request message carrying information of the to-be-upgraded version of the to-be-upgraded software sent by the first vehicle, the second vehicle sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through V2V communication connection according to the software downloading request message.
In summary, in the software upgrading method provided in the above embodiment, the second vehicle receives the software detection request message, which is sent by the first vehicle through the V2V communication connection and carries the information of the to-be-upgraded version of the to-be-upgraded software, and when it is determined that there is a software upgrading packet corresponding to the to-be-upgraded version of the to-be-upgraded software, sends the software upgrading packet corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through the V2V communication connection. Therefore, the software to be updated of the vehicle is upgraded through the V2V communication connection between the vehicle and the vehicle, the software to be updated does not need to be downloaded from the cloud server, the burden of the cloud server is reduced, the network condition, the vehicle flow and the like are not limited, the operation is convenient and fast, the reliability is high, and the cost is low.
In an embodiment, the sending, by the second vehicle, the software upgrade package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through the V2V communication connection includes: and the second vehicle sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle in a breakpoint continuous transmission mode through V2V communication connection.
Specifically, after receiving a software downloading request message carrying information of the to-be-updated version of the to-be-updated software sent by the first vehicle, the second vehicle sends a software upgrading package corresponding to the to-be-updated version of the to-be-updated software to the first vehicle in a breakpoint continuous transmission manner through the V2V communication connection.
It should be noted that the breakpoint resuming refers to that, during downloading or uploading, a downloading or uploading task (a file or a compressed package) is artificially divided into several parts, each part is uploaded or downloaded by using a thread, and if a network failure occurs, the uncompleted part can be uploaded or downloaded from the uploaded or downloaded part without uploading or downloading from the beginning. Sometimes, the time for uploading and downloading files by a user is several hours, in case of line interruption, a server or downloading software without breakpoint continuous transmission can only retransmit from the beginning, and a better server or downloading software has breakpoint continuous transmission capability and allows the user to continue transmitting from the place where the downloading and uploading are disconnected. Therefore, the user can save time, the transmission speed is increased, the user experience is greatly improved, and the reliability is further improved.
Based on the same inventive concept of the foregoing embodiments, the present embodiment describes technical solutions of the foregoing embodiments in detail through specific examples. Fig. 3 is a schematic specific flowchart of a software upgrading method according to an embodiment of the present invention, including the following steps:
step S301: when detecting a software upgrading package corresponding to a to-be-upgraded version of software to be updated of a peripheral vehicle, requesting to download the software upgrading package corresponding to the to-be-upgraded version of the software to be updated from the peripheral vehicle;
here, when the vehicle determines that the software is to be updated, a software detection request message is sent to the nearby vehicle through the V2V communication connection during driving to detect whether the nearby vehicle has a software upgrade package corresponding to the version to be upgraded of the software to be updated, and when detecting that the software upgrade package corresponding to the version to be upgraded of the software to be updated of the nearby vehicle, a software upgrade package corresponding to the version to be upgraded of the software to be updated is requested to be downloaded from the nearby vehicle.
Step S302: receiving a software upgrading package corresponding to the version to be upgraded of the software to be upgraded and sent by the peripheral vehicle;
here, the peripheral vehicle transmits the software upgrade package corresponding to the version to be upgraded of the software to be updated to the vehicle in a breakpoint continuous transmission manner through the V2V communication connection.
Step S303: after the software upgrading package is received, performing MD5 verification on the software upgrading package;
here, after the vehicle receives the software upgrade package corresponding to the version to be upgraded of the software to be updated, which is sent by the peripheral vehicle through the V2V communication connection, the MD5 verification is performed on the software upgrade package.
Step S304: and if the verification is passed, upgrading the software to be updated by using the software upgrading package.
Here, after the software upgrade package received by the vehicle is verified by MD5, the software to be updated is upgraded by using the software upgrade package, so as to ensure that the software upgrade package is not modified.
In conclusion, the software to be updated of the vehicle is upgraded through the V2V communication connection between the vehicle and the vehicle, the software to be updated does not need to be downloaded from the cloud server, the burden of the cloud server is reduced, the network condition, the vehicle flow and the like are not limited, the operation is convenient and fast, the reliability is high, and the cost is low.
Based on the same inventive concept of the foregoing embodiments, an embodiment of the present invention provides a software upgrading apparatus, as shown in fig. 4, the software upgrading apparatus includes: a processor 110 and a memory 111 for storing computer programs capable of running on the processor 110; the processor 110 illustrated in fig. 4 is not used to refer to the number of the processors 110 as one, but is only used to refer to the position relationship of the processor 110 relative to other devices, and in practical applications, the number of the processors 110 may be one or more; similarly, the memory 111 illustrated in fig. 4 is also used in the same sense, that is, it is only used to refer to the position relationship of the memory 111 relative to other devices, and in practical applications, the number of the memory 111 may be one or more. The processor 110 is configured to implement the software upgrading method applied to the software upgrading apparatus when the computer program is run.
The software upgrading apparatus may further include: at least one network interface 112. The various components of the software upgrade apparatus are coupled together by a bus system 113. It will be appreciated that the bus system 113 is used to enable communications among the components. The bus system 113 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 113 in FIG. 4.
The memory 111 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 111 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 111 in the embodiment of the present invention is used to store various types of data to support the operation of the software upgrading apparatus. Examples of such data include: any computer program for operating on the software upgrading device, such as an operating system and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept of the foregoing embodiments, this embodiment further provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM), and the like; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. When the computer program stored in the computer storage medium is run by a processor, the software upgrading method is realized. Please refer to the description of the embodiment shown in fig. 1 and/or fig. 2 for a specific step flow realized when the computer program is executed by the processor, which is not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method of upgrading software, the method comprising:
when the first vehicle determines that the software is to be updated, sending a software detection request message to the second vehicle through the V2V communication connection; the software detection request message carries the version information to be upgraded of the software to be updated;
the first vehicle receives a software detection response message returned by the second vehicle through V2V communication connection, and sends a software downloading request message carrying information of the version to be upgraded of the software to be upgraded to the second vehicle when the second vehicle is determined to have a software upgrading package corresponding to the version to be upgraded of the software to be upgraded according to the software detection response message;
and the first vehicle receives a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through the V2V communication connection.
2. The software upgrading method according to claim 1, further comprising:
and the first vehicle carries out MD5 verification on the software upgrading package, and if the verification is passed, the software to be updated is upgraded by using the software upgrading package.
3. The software upgrading method according to claim 1, wherein before the first vehicle sends the software detection request message to the second vehicle through the V2V communication connection when the first vehicle determines that the software is to be updated, the method further comprises:
receiving a software upgrading message sent by a cloud server, and determining software to be updated and version information to be upgraded of the software to be updated according to the software upgrading message.
4. The software upgrading method according to claim 1, wherein before the first vehicle sends the software detection request message to the second vehicle through the V2V communication connection when the first vehicle determines that the software is to be updated, the method further comprises:
the first vehicle sends a software version inquiry request message to the second vehicle through a V2V communication connection; the software version query request message carries information of software to be queried;
the first vehicle receives a software version query response message returned by the second vehicle through the V2V communication connection, and determines the software to be queried as the software to be updated when the version of the software to be queried of the second vehicle is higher than the version of the software to be queried of the first vehicle according to the software version query response message.
5. The software upgrading method according to claim 1, wherein the receiving, by the first vehicle, the software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software sent by the second vehicle through a V2V communication connection includes:
and the first vehicle displays the receiving progress of the software upgrading package corresponding to the version to be upgraded of the software to be upgraded in real time.
6. A method of upgrading software, the method comprising:
a second vehicle receives a software detection request message sent by a first vehicle through V2V communication connection, wherein the software detection request message carries information of a to-be-upgraded version of the to-be-upgraded software;
when the second vehicle determines that the software upgrading package corresponding to the version to be upgraded of the software to be updated exists, sending a software detection response message to the first vehicle through V2V communication connection;
and the second vehicle receives a software downloading request message which is sent by the first vehicle and carries information of the to-be-upgraded version of the to-be-upgraded software, and sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through V2V communication connection.
7. The software upgrading method according to claim 6, wherein the second vehicle sends the software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle through a V2V communication connection, and the method comprises the following steps:
and the second vehicle sends a software upgrading package corresponding to the to-be-upgraded version of the to-be-upgraded software to the first vehicle in a breakpoint continuous transmission mode through V2V communication connection.
8. The software upgrading method of claim 6, wherein before the second vehicle receives the software detection request message sent by the first vehicle via the V2V communication connection, the method further comprises:
the second vehicle receives a software version inquiry request message sent by the first vehicle through a V2V communication connection; the software version query request message carries information of software to be queried;
and the second vehicle responds to the software version inquiry request message and sends a software version inquiry response message to the first vehicle through the V2V communication connection, wherein the software version inquiry response message carries the version information of the software to be inquired.
9. A software upgrading device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the software upgrading method according to any of claims 1 to 8 when executing the computer program.
10. A computer storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the software upgrade method according to any one of claims 1 to 8.
CN202010396917.3A 2020-05-12 2020-05-12 Software upgrading method and device and computer storage medium Pending CN111638894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010396917.3A CN111638894A (en) 2020-05-12 2020-05-12 Software upgrading method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010396917.3A CN111638894A (en) 2020-05-12 2020-05-12 Software upgrading method and device and computer storage medium

Publications (1)

Publication Number Publication Date
CN111638894A true CN111638894A (en) 2020-09-08

Family

ID=72329966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010396917.3A Pending CN111638894A (en) 2020-05-12 2020-05-12 Software upgrading method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN111638894A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306538A (en) * 2020-10-16 2021-02-02 上海钧正网络科技有限公司 Vehicle upgrading method and device, computer equipment and storage medium
CN113296813A (en) * 2021-06-09 2021-08-24 宝能(广州)汽车研究院有限公司 Software upgrading method and device and computer readable storage medium
CN113727461A (en) * 2021-07-27 2021-11-30 上海艾拉比智能科技有限公司 Ad-hoc network flashing method of automobile assembly production line
CN113872971A (en) * 2021-09-28 2021-12-31 芜湖雄狮汽车科技有限公司 New energy Internet of vehicles communication protocol upgrading method and device and cloud platform
CN114827108A (en) * 2022-06-22 2022-07-29 小米汽车科技有限公司 Vehicle upgrading method and device, storage medium, chip and vehicle
WO2024082191A1 (en) * 2022-10-19 2024-04-25 京东方科技集团股份有限公司 Software updating method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150220321A1 (en) * 2014-02-06 2015-08-06 Hyundai Motor Company Method of updating software for vehicle
US20170288886A1 (en) * 2016-04-02 2017-10-05 Ofinno Technologies, Llc Bearer modification for V2X Communications
CN107409148A (en) * 2015-03-11 2017-11-28 罗伯特·博世有限公司 Method for runtime server
WO2018077168A1 (en) * 2016-10-24 2018-05-03 中兴通讯股份有限公司 Method and apparatus for upgrading vehicle-mounted application system
US20190029002A1 (en) * 2017-07-18 2019-01-24 GM Global Technology Operations LLC Intelligent vehicle-based communication mangement
CN110149370A (en) * 2019-04-23 2019-08-20 华为技术有限公司 A kind of upgrade file method for down loading and device
US20200092789A1 (en) * 2018-09-18 2020-03-19 Hyundai Motor Company Vehicle-to-vehicle communication apparatus of vehicle and method for controlling the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150220321A1 (en) * 2014-02-06 2015-08-06 Hyundai Motor Company Method of updating software for vehicle
CN107409148A (en) * 2015-03-11 2017-11-28 罗伯特·博世有限公司 Method for runtime server
US20170288886A1 (en) * 2016-04-02 2017-10-05 Ofinno Technologies, Llc Bearer modification for V2X Communications
WO2018077168A1 (en) * 2016-10-24 2018-05-03 中兴通讯股份有限公司 Method and apparatus for upgrading vehicle-mounted application system
US20190029002A1 (en) * 2017-07-18 2019-01-24 GM Global Technology Operations LLC Intelligent vehicle-based communication mangement
US20200092789A1 (en) * 2018-09-18 2020-03-19 Hyundai Motor Company Vehicle-to-vehicle communication apparatus of vehicle and method for controlling the same
CN110149370A (en) * 2019-04-23 2019-08-20 华为技术有限公司 A kind of upgrade file method for down loading and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306538A (en) * 2020-10-16 2021-02-02 上海钧正网络科技有限公司 Vehicle upgrading method and device, computer equipment and storage medium
CN113296813A (en) * 2021-06-09 2021-08-24 宝能(广州)汽车研究院有限公司 Software upgrading method and device and computer readable storage medium
CN113727461A (en) * 2021-07-27 2021-11-30 上海艾拉比智能科技有限公司 Ad-hoc network flashing method of automobile assembly production line
CN113872971A (en) * 2021-09-28 2021-12-31 芜湖雄狮汽车科技有限公司 New energy Internet of vehicles communication protocol upgrading method and device and cloud platform
CN114827108A (en) * 2022-06-22 2022-07-29 小米汽车科技有限公司 Vehicle upgrading method and device, storage medium, chip and vehicle
CN114827108B (en) * 2022-06-22 2022-11-04 小米汽车科技有限公司 Vehicle upgrading method and device, storage medium, chip and vehicle
WO2024082191A1 (en) * 2022-10-19 2024-04-25 京东方科技集团股份有限公司 Software updating method and apparatus

Similar Documents

Publication Publication Date Title
CN111638894A (en) Software upgrading method and device and computer storage medium
US7401065B2 (en) System for downloading contents, and client terminal for downloading contents from contents server
KR101089353B1 (en) Apparatus and methods for client-driven server-side installation
US9792623B2 (en) Advertisement processing method and apparatus
EP1869924B1 (en) Method for providing contents for mobile communication terminal
CN110704077A (en) Firmware remote upgrading method and device, terminal, mobile device and storage medium
JP2007528064A (en) Running unverified programs in a wireless device operating environment
KR102249222B1 (en) Apparatus and system and method for software update of vehicle
KR20120109800A (en) Data update method based on a firmware on the air and portable device supporting the same
WO2022237122A1 (en) In-vehicle welcome animation updating method and apparatus, vehicle-mounted terminal, and storage medium
EP2621142A1 (en) Apparatus and Method for Determining Duplication of Content in Portable Terminal
CN113535207A (en) Vehicle, vehicle-mounted software updating method thereof and mobile terminal
CN112134908B (en) Application adaptation method, server, medium and vehicle-mounted multimedia system
CN112181467B (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN112328413A (en) Application service calling method, device and system
JP4180953B2 (en) Communication apparatus and program
CN113452776B (en) PaaS platform service scheduling method and device and PaaS platform
CN114327548A (en) Software upgrading method and related device
CN111988459B (en) Address book management method and device and computer storage medium
CN104111846A (en) Page data loading method and device
CN111629367B (en) Data transmission method of terminal equipment and earphone, terminal equipment and storage medium
CN110825406A (en) Software upgrading method and related equipment
CN113050936A (en) Front-end data processing method and device based on integrated development environment
CN112035127A (en) Method and device for installing application, vehicle, storage medium and electronic equipment

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200908