CN117289975A - Vehicle-mounted information updating method and device and storage medium - Google Patents

Vehicle-mounted information updating method and device and storage medium Download PDF

Info

Publication number
CN117289975A
CN117289975A CN202311249045.8A CN202311249045A CN117289975A CN 117289975 A CN117289975 A CN 117289975A CN 202311249045 A CN202311249045 A CN 202311249045A CN 117289975 A CN117289975 A CN 117289975A
Authority
CN
China
Prior art keywords
vehicle
information
updated
application program
target application
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
CN202311249045.8A
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.)
Deep Blue Automotive Technology Co ltd
Original Assignee
Deep Blue Automotive Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Deep Blue Automotive Technology Co ltd filed Critical Deep Blue Automotive Technology Co ltd
Priority to CN202311249045.8A priority Critical patent/CN117289975A/en
Publication of CN117289975A publication Critical patent/CN117289975A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)

Abstract

The application discloses a vehicle-mounted information updating method, device and storage medium, which relate to the technical field of communication and are used for improving the efficiency of vehicle-mounted information updating. The method comprises the following steps: determining first vehicle-mounted information to be updated of a target application program; receiving a secret key from an upper computer; decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance based on the secret key to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; and calling a second Flash erasing function, and updating information in the target application program based on the first vehicle-mounted information to be updated. The method and the device are applied to vehicle-mounted information updating.

Description

Vehicle-mounted information updating method and device and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for updating vehicle-mounted information, and a storage medium.
Background
With the rapid development of automobiles toward multifunction, in automobile development, testing, production and after-sales, it is often necessary to update on-board information to meet the diversity demands of users. However, in the process of updating the vehicle-mounted information, when the vehicle-mounted controller fails, the instruction pointer may accidentally jump to the entry of the flash erasing function in the controller, so that normal software data is erased, and the application of the vehicle-mounted application program is affected.
In the related art, in the process of updating the vehicle-mounted information, an upper computer issues a flash erasing function of a stored flash driver binary file to a processor. The processor loads the flash erasing function into a random access memory (random access memory, RAM) to realize the refreshing and updating of the vehicle-mounted information. Because the controller needs to download the Flash driver again when the vehicle-mounted information is updated each time, the vehicle-mounted information is updated in a complex way, and the waste of transmission flow is caused. Therefore, how to improve the efficiency of the vehicle information update is a technical problem that remains to be solved.
Disclosure of Invention
The application provides a vehicle-mounted information updating method, device and storage medium, which are used for improving the efficiency of vehicle-mounted information updating. The technical scheme of the application is as follows:
according to a first aspect of the present application, there is provided a vehicle-mounted information updating method, including: the vehicle-mounted controller determines first vehicle-mounted information to be updated of a target application program; the vehicle-mounted controller receives a secret key from the upper computer; the vehicle-mounted controller decrypts a first Flash erasing function stored in the vehicle-mounted controller in advance based on the secret key to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; and the vehicle-mounted controller calls a second Flash erasing function and updates information in the target application program based on the first vehicle-mounted information to be updated.
According to the technical means, the upper computer sends first vehicle-mounted information to be updated to the vehicle-mounted controller and sends the secret key to the vehicle-mounted controller. The first Flash erasing function stored in the vehicle-mounted controller in advance is decrypted based on the secret key, so that a second Flash erasing function is obtained; the first Flash erase function is an encrypted function. In this way, the vehicle-mounted controller decrypts the second Flash erasing function which can be directly called to run based on the first Flash erasing function and the secret key which can not be directly called to run. That is, before the in-vehicle controller receives the key, the first Flash erasing function stored in advance in the in-vehicle controller is data that cannot be directly called for operation. Thus, even if the instruction pointer accidentally jumps to the entry of the first flash erase function, the first flash erase function cannot erase the data in the application program. After the vehicle-mounted controller receives the secret key, a second Flash erasing function in the vehicle-mounted controller is data which can be directly called to run. The vehicle-mounted controller can call a second Flash erasing function, and update information in a target application program based on the first vehicle-mounted information to be updated; and feeding back the update result of the application program to the upper computer. Compared with the prior art, in the process of updating the vehicle-mounted information each time, the vehicle-mounted controller does not need to receive the Flash erasing function of the Flash driver binary file sent by the upper computer, and can start the first Flash erasing function stored by the vehicle-mounted controller only according to the secret key from the upper computer. Because the resources occupied by the key are far smaller than the resources occupied by the Flash erasing function of the Flash driver binary file, the vehicle-mounted information updating method and device can improve the vehicle-mounted information updating efficiency.
In one possible implementation manner, at least one second vehicle-mounted information to be updated from the upper computer is received; and merging at least one piece of second vehicle-mounted information to be updated to generate first vehicle-mounted information to be updated.
According to the technical means, before the upper computer sends the first vehicle-mounted information to be updated, the first vehicle-mounted information to be updated is split into at least one second vehicle-mounted information to be updated. Because the second vehicle-mounted information to be updated is obtained by splitting the first vehicle-mounted information to be updated, the data size of the second vehicle-mounted information to be updated is smaller than that of the first vehicle-mounted information to be updated. The upper computer sends at least one second vehicle-mounted information to be updated to the vehicle-mounted controller, so that the information transmission efficiency can be improved.
In one possible implementation, the first on-board information to be updated is verified; under the condition that the first vehicle-mounted information to be updated passes verification, first indication information is sent to an upper computer; the first indication information is used for indicating that the first vehicle-mounted information to be updated passes the verification of the vehicle-mounted controller; receiving a key from a host computer, comprising: and receiving a secret key sent by the upper computer in response to the first indication information.
According to the technical means, after receiving the first vehicle-mounted information to be updated, the vehicle-mounted controller verifies the first vehicle-mounted information to be updated. And under the condition that the first vehicle-mounted information to be updated passes the verification, the first indication information is sent to the upper computer, so that the vehicle-mounted controller receives the secret key sent by the upper computer in response to the first indication information, and the accuracy of the first vehicle-mounted information to be updated is improved.
In one possible implementation, it is checked whether the information in the target application is complete; under the condition that the information in the target application program is updated, the updating completion information is sent to the upper computer; and under the condition that the information in the target application program is not updated, ending the updating flow of the target application program, starting a first application program on the vehicle-mounted controller, and closing the application program when the first program updates the information in the target application program for the vehicle-mounted controller.
According to the technical means, the vehicle-mounted controller checks the update condition of the target application program, so that the time for ending the operation of the vehicle-mounted controller is determined according to the update condition of the target application program. After the target application completes updating, the functions of the vehicle-mounted controller are enriched by starting the first application.
According to a second aspect of the application, there is provided a vehicle-mounted information updating method, wherein an upper computer sends first vehicle-mounted information to be updated of a target application program to a vehicle-mounted controller, and sends a secret key to the vehicle-mounted controller; the secret key is used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance so as to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; and the second Flash erasing function is used for updating the vehicle-mounted information in the target application program according to the vehicle-mounted information to be updated.
According to the technical means, the upper computer sends first vehicle-mounted information to be updated to the vehicle-mounted controller and sends the secret key to the vehicle-mounted controller. The first Flash erasing function stored in the vehicle-mounted controller in advance is decrypted based on the secret key, so that a second Flash erasing function is obtained; the first Flash erase function is an encrypted function. In this way, the vehicle-mounted controller decrypts the second Flash erasing function which can be directly called to run based on the first Flash erasing function and the secret key which can not be directly called to run. That is, before the in-vehicle controller receives the key, the first Flash erasing function stored in advance in the in-vehicle controller is data that cannot be directly called for operation. Thus, even if the instruction pointer accidentally jumps to the entry of the first flash erase function, the first flash erase function cannot erase the data in the application program. After the vehicle-mounted controller receives the secret key, a second Flash erasing function in the vehicle-mounted controller is data which can be directly called to run. The vehicle-mounted controller can call a second Flash erasing function, and update information in a target application program based on the first vehicle-mounted information to be updated; and feeding back the update result of the application program to the upper computer. Compared with the prior art, in the process of updating the vehicle-mounted information each time, the vehicle-mounted controller does not need to receive the Flash erasing function of the Flash driver binary file sent by the upper computer, and can start the first Flash erasing function stored by the vehicle-mounted controller only according to the secret key from the upper computer. Because the resources occupied by the key are far smaller than the resources occupied by the Flash erasing function of the Flash driver binary file, the vehicle-mounted information updating method and device can improve the vehicle-mounted information updating efficiency.
In one possible embodiment, the first vehicle information to be updated is split into at least one second vehicle information to be updated; the method for sending the first vehicle-mounted information to be updated to the vehicle-mounted controller comprises the following steps: and sending at least one piece of second vehicle-mounted information to be updated to the vehicle-mounted controller.
According to the technical means, before the upper computer sends the first vehicle-mounted information to be updated, the first vehicle-mounted information to be updated is split into at least one second vehicle-mounted information to be updated. Because the second vehicle-mounted information to be updated is obtained by splitting the first vehicle-mounted information to be updated, the data size of the second vehicle-mounted information to be updated is smaller than that of the first vehicle-mounted information to be updated. The upper computer sends at least one second vehicle-mounted information to be updated to the vehicle-mounted controller, so that the information transmission efficiency can be improved.
According to a third aspect provided by the present application, there is provided an in-vehicle information updating apparatus, including: communication unit and processing unit: the processing unit is used for determining first vehicle-mounted information to be updated of the target application program;
the communication unit is used for receiving the secret key from the upper computer;
the processing unit is also used for decrypting the first Flash erasing function stored in the vehicle-mounted controller in advance based on the secret key to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function;
And the processing unit is also used for calling a second Flash erasing function and updating the information in the target application program based on the first vehicle-mounted information to be updated.
In a possible implementation manner, the communication unit is further configured to receive at least one second vehicle-mounted information to be updated from the upper computer; the processing unit is further used for combining at least one second vehicle-mounted information to be updated to generate first vehicle-mounted information to be updated.
The processing unit is also used for verifying the first vehicle-mounted information to be updated; the processing unit is also used for indicating the communication unit to send first indication information to the upper computer under the condition that the first vehicle-mounted information to be updated passes verification; the first indication information is used for indicating that the first vehicle-mounted information to be updated passes the verification of the vehicle-mounted controller; and the communication unit is also used for receiving the secret key sent by the upper computer in response to the first indication information.
In a possible implementation manner, the processing unit is further configured to check whether the information in the target application program is updated; the processing unit is also used for indicating the communication unit to send the update completion information to the upper computer under the condition that the information in the target application program is updated; and the processing unit is also used for ending the updating flow of the target application program under the condition that the information in the target application program is not updated.
According to a fourth aspect provided herein, there is provided an in-vehicle information updating apparatus including: the communication unit, the processing unit, is used for sending the first vehicle-mounted information to be updated of the goal application program to the vehicle-mounted controller, and send the secret key to the vehicle-mounted controller; the secret key is used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance so as to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; and the second Flash erasing function is used for updating the vehicle-mounted information in the target application program according to the vehicle-mounted information to be updated.
In one possible implementation manner, the vehicle-mounted information updating device further comprises a processing unit, and the processing unit is used for splitting the third vehicle-mounted information to be updated into at least one second vehicle-mounted information to be updated; and the communication unit is also used for sending at least one second vehicle-mounted information to be updated to the vehicle-mounted controller.
According to a fifth aspect provided by the present application, there is provided an in-vehicle information updating apparatus including: a processor and a memory; wherein the memory is configured to store computer-executable instructions that, when the in-vehicle information updating apparatus is operated, the processor executes the computer-executable instructions stored by the memory to cause the in-vehicle information updating apparatus to perform the in-vehicle information updating method as described in any one of the possible implementations of the first aspect and the first aspect.
According to a sixth aspect provided by the present application, there is provided an in-vehicle information updating apparatus including: a processor and a memory; wherein the memory is configured to store computer-executable instructions that, when the in-vehicle information updating apparatus is operated, the processor executes the computer-executable instructions stored by the memory to cause the in-vehicle information updating apparatus to perform the in-vehicle information updating method as described in any one of the possible implementations of the second aspect and the second aspect.
According to a seventh aspect provided by the present application, there is provided a computer readable storage medium having instructions stored therein, which when executed by a processor of an in-vehicle information updating apparatus, enable the in-vehicle information updating apparatus to perform the in-vehicle information updating method as described in any one of the possible implementations of the first aspect and the first aspect.
According to an eighth aspect provided by the present application, there is provided a computer readable storage medium having instructions stored therein, which when executed by a processor of an in-vehicle information updating apparatus, enable the in-vehicle information updating apparatus to perform the in-vehicle information updating method as described in any one of the possible implementations of the second aspect and the second aspect.
According to a ninth aspect provided by the present application, there is provided a chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to execute a computer program or instructions to implement the method for updating vehicle information described in any one of the possible implementations of the first aspect and the first aspect.
According to a tenth aspect provided by the present application, there is provided a chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to execute a computer program or instructions to implement the method for updating vehicle information described in any one of the possible implementations of the second aspect and the second aspect.
According to an eleventh aspect of the present application, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the in-vehicle information updating method described in any one of the possible implementations of the first aspect and the first aspect described above
According to a twelfth aspect of the present application, there is provided a computer program product comprising instructions which, when run on a computer, enable the computer to perform the in-vehicle information updating method described in any one of the possible implementations of the second and second aspects described above.
Therefore, the technical characteristics of the application have the following beneficial effects:
(1) According to the method and the device, the flash erasing function stored by the host computer can be started only according to the secret key from the host computer in the process of updating the vehicle-mounted information each time.
(2) According to the method and the device, before the upper computer sends the first vehicle-mounted information to be updated, the first vehicle-mounted information to be updated is split into at least one second vehicle-mounted information to be updated. Because the second vehicle-mounted information to be updated is obtained by splitting the first vehicle-mounted information to be updated, the data size of the second vehicle-mounted information to be updated is smaller than that of the first vehicle-mounted information to be updated. The upper computer sends at least one second vehicle-mounted information to be updated to the vehicle-mounted controller, so that the information transmission efficiency can be improved.
(3) The method and the device can verify the first vehicle-mounted information to be updated based on the fact that the vehicle-mounted controller receives the first vehicle-mounted information to be updated. And under the condition that the first vehicle-mounted information to be updated passes the verification, the first indication information is sent to the upper computer, so that the vehicle-mounted controller receives the secret key sent by the upper computer in response to the first indication information, and the accuracy of the first vehicle-mounted information to be updated is improved.
(4) According to the method and the device, the updating condition of the target application program can be checked through the vehicle-mounted controller, so that the time for the vehicle-mounted controller to finish running is determined according to the updating condition of the target application program, and the cache resource is released in time after the target application program finishes updating, so that the normal running of other applications is ensured.
(5) According to the method and the device, the first erasing function in the inactive state can be quickly converted into the second erasing function which can be directly called by the vehicle-mounted controller through the secret key sent by the upper computer, and the updating of the vehicle-mounted data is improved.
(6) The method and the device can release the cache in time after the update is completed, delete the second erasing function in time and avoid the second function from actively deleting the information in the program.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application and do not constitute an undue limitation on the application.
FIG. 1 is a flowchart illustrating a method for updating vehicle information, according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of updating vehicle information, according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a method of updating vehicle information, according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of updating vehicle information, according to an exemplary embodiment;
fig. 5 is a schematic structural view of an in-vehicle information updating apparatus according to an exemplary embodiment;
fig. 6 is a schematic structural view of an in-vehicle information updating apparatus according to an exemplary embodiment;
FIG. 7 is a block diagram of an electronic device, shown in accordance with an exemplary embodiment;
fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
With the rapid development of automobiles toward multifunction, in automobile development, testing, production and after-sales, it is often necessary to update on-board information to meet the diversity demands of users. However, in the process of updating the vehicle-mounted information, when the vehicle-mounted controller fails, the instruction pointer may accidentally jump to the entry of the flash erasing function in the controller, so that normal software data is erased, and the application of the vehicle-mounted application program is affected.
In the related art, in the process of updating the vehicle-mounted information, the upper computer issues a flash erasing function of the stored flash driver binary file to the processor. And the processor loads the flash erasing function into the RAM to realize the refreshing and updating of the vehicle-mounted information. Because the controller needs to download the Flash driver again when the vehicle-mounted information is updated each time, the vehicle-mounted information is updated in a complex way, and the waste of transmission flow is caused. Therefore, how to improve the efficiency of the vehicle information update is a technical problem that remains to be solved.
In view of the above problems, the present application proposes a vehicle-mounted information updating method, in which an upper computer sends first vehicle-mounted information to be updated to a vehicle-mounted controller, and sends a key to the vehicle-mounted controller. The first Flash erasing function stored in the vehicle-mounted controller in advance is decrypted based on the secret key, so that a second Flash erasing function is obtained; the first Flash erase function is an encrypted function. In this way, the vehicle-mounted controller decrypts the second Flash erasing function which can be directly called to run based on the first Flash erasing function and the secret key which can not be directly called to run. That is, before the in-vehicle controller receives the key, the first Flash erasing function stored in advance in the in-vehicle controller is data that cannot be directly called for operation. Thus, even if the instruction pointer accidentally jumps to the entry of the first flash erase function, the first flash erase function cannot erase the data in the application program. After the vehicle-mounted controller receives the secret key, a second Flash erasing function in the vehicle-mounted controller is data which can be directly called to run. The vehicle-mounted controller can call a second Flash erasing function, and update information in a target application program based on the first vehicle-mounted information to be updated; and feeding back the update result of the application program to the upper computer. Compared with the prior art, in the process of updating the vehicle-mounted information each time, the vehicle-mounted controller does not need to receive the Flash erasing function of the Flash driver binary file sent by the upper computer, and can start the first Flash erasing function stored by the vehicle-mounted controller only according to the secret key from the upper computer. Because the resources occupied by the key are far smaller than the resources occupied by the flash erasing function of the flash driver binary file, the vehicle-mounted information updating method and device can improve the vehicle-mounted information updating efficiency.
For easy understanding, the method for updating the vehicle-mounted information provided in the application is specifically described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for updating on-vehicle information according to an exemplary embodiment, and as shown in fig. 1, the method for updating on-vehicle information includes the steps of: S101-S105.
S101, the upper computer is connected to the vehicle-mounted controller to send first vehicle-mounted information to be updated of the target application program.
In a possible implementation manner, the upper computer receives the updated vehicle-mounted information indication information, determines the first vehicle-mounted information to be updated of the target application program according to the updated vehicle-mounted information indication information, and sends the first vehicle-mounted information to be updated of the target application program to the vehicle-mounted controller.
Optionally, the upper computer receives updated vehicle-mounted information indication information from the server, and determines the first vehicle-mounted information to be updated of the target application program according to the updated vehicle-mounted information indication information.
Optionally, the first to-be-updated in-vehicle information includes application data.
It should be explained that, before the host computer connects to the vehicle-mounted controller to send the first vehicle-mounted information to be updated, on one hand, after the vehicle-mounted controller receives the power-on starting instruction, the bootstrap program BootLoader is operated. On the other hand, the upper computer is in communication connection with the vehicle-mounted controller, and sends an update activation instruction to the vehicle-mounted controller. If the update activation instruction is received within the preset time period, the vehicle-mounted controller continues to operate the bootstrap BootLoader and sends a first response message to the upper computer, wherein the first response message is used for indicating that the vehicle-mounted controller can execute the vehicle-mounted information update flow. If the update activation instruction is not received within the preset time period, stopping running the bootstrap program BootLoader, running the Application program Application and sending a second response message to the upper computer, wherein the second response message is used for indicating that the vehicle-mounted controller cannot execute the vehicle-mounted information update flow.
Optionally, the upper computer is an application for upgrading. The upper computer is installed in intelligent hardware with a CPU and a memory. The intelligent hardware can be a personal computer (personal computer, PC), a mobile phone, a tablet, a System on Chip (SoC) and a singlechip.
Optionally, the vehicle-mounted controller includes: application program Application, bootstrap program BootLoader and first Flash erasing and writing module.
It should be explained that, before the upper computer sends the first vehicle-mounted information to be updated to the vehicle-mounted controller, the vehicle-mounted controller negotiates with the upper computer to determine the secret key.
S102, the vehicle-mounted controller determines first vehicle-mounted information to be updated of the target application program.
Optionally, the first to-be-updated on-vehicle information includes identification information of the target application program.
It should be explained that, since the first on-vehicle information to be updated includes the identification information of the target application program, the on-vehicle controller may determine the target application program to be updated based on the first on-vehicle information to be updated.
Optionally, the identification information of the target application program includes: address information corresponding to the target application.
S103, the upper computer sends the secret key to the vehicle-mounted controller.
Optionally, the key is used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance to obtain a second Flash erasing function; the Flash erasing function is used for updating the information of the application program.
In one possible implementation, the host computer sends the key to the vehicle-mounted controller via the target data channel. Correspondingly, the vehicle-mounted controller receives the vehicle-mounted information to be updated and the secret key from the upper computer through the target data channel. The target data channel includes any one of the following: automotive controller area network (controller area network, CAN) data channels, variable rate CAN (CAN with flexibledata-rate, CANFD) data channels, local interconnect network (Local Interconnect Network, LIN) data channels, on-board ethernet data channels.
S104, the vehicle-mounted controller decrypts the first Flash erasing function stored in the vehicle-mounted controller in advance based on the secret key to obtain a second Flash erasing function.
The first Flash erasing function is an encrypted function.
Optionally, the first Flash erasing function is ciphertext data which cannot be directly called to run, and the second Flash erasing function is plaintext data which can be directly called to run.
In one possible implementation manner, the vehicle-mounted controller obtains a first Flash erasing function stored locally, and determines a target algorithm corresponding to the key based on the key. The vehicle-mounted controller decrypts the first Flash erasing function based on the secret key and the target algorithm, and decrypts the first Flash erasing function to obtain a second Flash erasing function.
Optionally, the target algorithm includes any one of the following: RSA2048 algorithm, guoman SM2 algorithm, AES128-CMAC algorithm, guoman SM4 algorithm.
S105, the vehicle-mounted controller calls a second Flash erasing function, and updates information in the target application program based on the first vehicle-mounted information to be updated.
In one possible implementation manner, the vehicle-mounted controller calls the second Flash erasing function into the cache, deletes the information in the target application program, and updates the first vehicle-mounted information to be updated into the target application program.
Optionally, the target application is an application program.
In some embodiments, in order to perform a packaging process on the first to-be-updated vehicle-mounted information, before the upper computer sends the first to-be-updated vehicle-mounted information to the vehicle-mounted controller, as shown in fig. 2, the vehicle-mounted information updating method provided in the embodiment of the application further includes: s201-203.
S201, splitting the first vehicle-mounted information to be updated into at least one second vehicle-mounted information to be updated by the upper computer.
In one possible implementation manner, the upper computer splits the first vehicle-mounted information to be updated into at least one second vehicle-mounted information to be updated according to the size of the first vehicle-mounted information to be updated and the bearing capacity of the data packet.
It should be explained that, since the data amount of the first on-vehicle information to be updated is large, the on-vehicle information to be updated requires a data packet having a capacity to transmit the information. When the data packet to be transmitted is larger, the required network bandwidth is larger, and the transmission of the vehicle-mounted information to be updated is not utilized. According to the method and the device, the upper computer packages the first vehicle-mounted information to be updated into at least one data packet, each data packet carries the second vehicle-mounted information to be updated, the first vehicle-mounted information to be updated is transmitted through the at least one data packet, and the transmission efficiency of the first vehicle-mounted information to be updated can be improved.
Optionally, the upper computer calculates a hash value of the vehicle-mounted information to be updated based on a preset algorithm to obtain a first hash value.
S202, the upper computer sends at least one piece of second vehicle-mounted information to be updated to the vehicle-mounted controller.
In one possible implementation manner, the upper computer sends at least one second vehicle-mounted information to be updated to the vehicle-mounted controller through at least one data packet.
Optionally, each data packet carries a second on-board information to be updated.
It should be explained that each data in at least one data packet has a unique number, and the upper computer sequentially writes at least one second vehicle-mounted information to be updated into the data packets according to the splitting sequence.
It should be explained that the data size of the second to-be-updated on-vehicle information carried by each data packet in at least one data packet may be the same or different, which is not limited to this.
Optionally, the upper computer sends at least one sub-vehicle information to be updated and the first hash value to the vehicle-mounted controller.
Optionally, before the upper computer sends at least one second vehicle-mounted information to be updated to the vehicle-mounted controller, the upper computer sends a vehicle-mounted information update preparation instruction to the vehicle-mounted controller, where the vehicle-mounted information update preparation instruction is used for indicating the vehicle-mounted controller to complete preparation work before the vehicle-mounted information update. And closing unnecessary application programs in the vehicle-mounted controller according to the vehicle-mounted information updating preparation instruction by the vehicle-mounted controller, so that the running efficiency of the vehicle-mounted controller is improved, and the vehicle-mounted controller can be configured with more resources to realize the process of updating the vehicle-mounted information.
S203, the vehicle-mounted controller combines at least one second vehicle-mounted information to be updated to generate first vehicle-mounted information to be updated.
In one possible implementation manner, the vehicle-mounted controller sequentially analyzes the data packets according to the received identifications of the data packets containing the second vehicle-mounted information to be updated; and merging at least one piece of second vehicle-mounted information to be updated.
Optionally, the identification of the data packet includes: the ID of the vehicle-mounted information to be updated corresponding to the data packet and the number of the data packet.
For example, if the identifier of the data packet is 11-2, the ID of the vehicle-mounted information to be updated corresponding to the data packet is 11, and the number of the data packet is 2; and the ID of the vehicle-mounted information to be updated corresponding to the data packet is 11-28, and the number of the data packet is 28.
In a possible implementation manner, the vehicle-mounted controller receives at least one data packet from the upper computer, and determines a target data packet related to the second vehicle-mounted information to be updated in the at least one data packet based on the ID of the vehicle-mounted information to be updated corresponding to the data packet in the at least one data packet. And the vehicle-mounted controller merges the vehicle-mounted information which is obtained by analyzing each data packet in the target data packet and is updated to the second based on the sequence of the numbers of the target data packets, and generates first vehicle-mounted information to be updated.
In some embodiments, in order to verify the first vehicle-mounted information to be updated, before the upper computer sends the key to the vehicle-mounted controller, as shown in fig. 3, the vehicle-mounted information updating method provided in the embodiment of the application further includes: s301-303.
S301, the vehicle-mounted controller verifies the first vehicle-mounted information to be updated.
In one possible implementation, the in-vehicle controller verifies the integrity of the first in-vehicle information to be updated.
Optionally, the target data packet carrying the second vehicle-mounted information to be updated received by the vehicle-mounted controller determines whether the first vehicle-mounted information to be updated passes the integrity verification according to the number of the data packet in the target data packet. If the numbers of the data packets in the target data packets are continuous, the vehicle-mounted controller determines that the first vehicle-mounted information to be updated passes the integrity verification; if the numbers of the data packets in the target data packets are discontinuous, the vehicle-mounted controller determines that the first vehicle-mounted information to be updated fails to pass the integrity verification.
In another possible implementation manner, after the first on-vehicle information to be updated passes the integrity verification, the on-vehicle controller verifies the authenticity of the first on-vehicle information to be updated.
Optionally, the vehicle-mounted controller receives a first hash value sent by the upper computer. And the vehicle-mounted controller calculates a hash value of the vehicle-mounted information to be updated based on a preset algorithm to obtain a second hash value. And the vehicle-mounted controller verifies the authenticity of the vehicle-mounted information to be updated based on the first hash value and the second hash value.
Optionally, under the condition that the first hash value is the same as the second hash value, the vehicle-mounted controller determines that the first vehicle-mounted information to be updated passes the authenticity verification; and under the condition that the first hash value is different from the second hash value, the vehicle-mounted controller determines that the first vehicle-mounted information to be updated passes the authenticity verification.
Optionally, under the condition that the difference value between the first hash value and the second hash value is smaller than a preset threshold value, the vehicle-mounted controller determines that the first vehicle-mounted information to be updated passes the authenticity verification; and under the condition that the difference value between the first hash value and the second hash value is larger than or equal to a preset threshold value, the vehicle-mounted controller determines that the first vehicle-mounted information to be updated does not pass the authenticity verification.
S302, under the condition that verification of the first vehicle-mounted information to be updated is passed, the vehicle-mounted controller sends first indication information to the upper computer.
The first indication information is used for indicating that the first vehicle-mounted information to be updated passes verification of the vehicle-mounted controller.
In a possible implementation manner, the vehicle-mounted controller sends the first indication information to the upper computer under the condition that the first vehicle-mounted information to be updated passes the verification of the integrity and/or the authenticity.
Optionally, if the first hash value is the same as the second hash value, the vehicle-mounted controller sends first indication information to the upper computer; and if the difference value between the first hash value and the second hash value is the same, the vehicle-mounted controller sends first indication information to the upper computer.
S303, the upper computer sends the secret key to the vehicle-mounted controller. Correspondingly, the vehicle-mounted controller receives a secret key sent by the upper computer in response to the first indication information.
It is to be explained that after the upper computer receives the first indication information from the vehicle-mounted controller, it is determined that the vehicle-mounted controller receives complete and real vehicle-mounted information to be updated, so that a secret key is sent to the vehicle-mounted controller, and updating of the vehicle-mounted information is further achieved.
In some embodiments, in order to verify the update status of the target application program, the vehicle-mounted controller invokes the second Flash erasing function, and after updating the information in the target application program based on the first vehicle-mounted information to be updated, as shown in fig. 4, the vehicle-mounted information updating method provided in the embodiment of the present application further includes: s401-403.
S401, the vehicle-mounted controller checks whether the information in the target application program is updated.
In a possible implementation manner, the vehicle-mounted controller acquires information in the target application program, and if the information in the target application program is the same as the first vehicle-mounted information, the information in the target application program of the vehicle-mounted controller is updated; if the information in the target application program is different from the first vehicle-mounted information, the information in the vehicle-mounted controller target application program is not updated.
And S402, under the condition that the information in the target application program is updated, the vehicle-mounted controller sends the update completion information to the upper computer.
Optionally, the update completion information is used to indicate that the information in the target application program is complete.
It should be explained that, the upper computer receives the update completion information, determines that the information in the target application program is complete to update, and sends a parameter adjustment instruction to the vehicle-mounted controller. And the vehicle-mounted controller receives the parameter adjustment instruction and starts the application which is closed before by configuring the related parameters. And restarting the vehicle-mounted controller after the vehicle-mounted controller completes configuration of the related parameters, and releasing the second Flash erasing function and the first vehicle-mounted information in the cache.
S403, ending the updating flow of the target application program and starting the first application program on the vehicle-mounted controller under the condition that the information in the target application program is not updated.
The first program is an application program closed when the vehicle-mounted controller updates information in the target application program.
In one possible implementation, the in-vehicle controller jumps to run in the application program in the event that the information in the target application program is not updated.
Optionally, the first application is independent of the updating of the in-vehicle information.
It should be explained that the first application is not a necessary application for starting the vehicle-mounted controller, and the first application is irrelevant to updating of the vehicle-mounted information. Thus, when the vehicle-mounted controller starts the flow of updating the vehicle-mounted information, more resources are released by closing the first application program, so that the updating of the vehicle-mounted information is ensured; when the vehicle-mounted controller closes the flow of updating the vehicle-mounted information, the functions of the vehicle-mounted controller are enriched by opening the first application program.
The foregoing description of the solution provided in the embodiments of the present application has been mainly presented in terms of a method. In order to implement the above functions, the vehicle-mounted terminal or the user terminal includes a hardware structure and/or a software module for executing the respective functions.
Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, according to the above method, the vehicle-mounted terminal or the user terminal may be exemplarily divided into function modules, for example, the vehicle-mounted terminal or the user terminal may include each function module corresponding to each function division, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 5 is a block diagram illustrating an in-vehicle information updating apparatus according to an exemplary embodiment. Referring to fig. 5, the in-vehicle information updating apparatus includes: a communication unit 501, a processing unit 502.
A processing unit 502, configured to determine first to-be-updated on-vehicle information of the target application program; a communication unit 501 for receiving a key from an upper computer; the processing unit 502 is further configured to decrypt a first Flash erasing function stored in advance in the vehicle-mounted controller based on the key to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; the processing unit 502 is further configured to call a second Flash erasing function, and update information in the target application program based on the first vehicle-mounted information to be updated.
In a possible implementation manner, the communication unit 501 is further configured to receive at least one second vehicle information to be updated from the host computer; the processing unit 502 is further configured to combine at least one second vehicle-mounted information to be updated, and generate first vehicle-mounted information to be updated.
In a possible implementation manner, the method is further used for verifying the first vehicle-mounted information to be updated; the processing unit 502 is further configured to instruct the communication unit 501 to send first instruction information to the upper computer if the first vehicle-mounted information to be updated passes verification; the first indication information is used for indicating that the first vehicle-mounted information to be updated passes the verification of the vehicle-mounted controller; the communication unit 501 is further configured to receive a key sent by the upper computer in response to the first indication information.
In a possible implementation manner, the processing unit 502 is further configured to check whether the information in the target application program is updated; the processing unit 502 is further configured to instruct the communication unit 501 to send update completion information to the upper computer when the information in the target application program is updated; the processing unit 502 is further configured to end an update procedure of the target application program when the information in the target application program is not updated, start a first application program on the vehicle-mounted controller, and close the application program when the first program updates the information in the target application program for the vehicle-mounted controller.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating an in-vehicle information updating apparatus according to an exemplary embodiment. Referring to fig. 6, the in-vehicle information updating apparatus includes: a communication unit 601 and a processing unit 602.
A communication unit 601, configured to send first vehicle-mounted information to be updated of a target application program to a vehicle-mounted controller, and send a key to the vehicle-mounted controller; the secret key is used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance so as to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; and the second Flash erasing function is used for updating the vehicle-mounted information in the target application program according to the vehicle-mounted information to be updated.
In a possible implementation manner, the above-mentioned vehicle information updating device further includes a processing unit 602, where the processing unit 602 is configured to split the third vehicle information to be updated into at least one second vehicle information to be updated; the communication unit 601 is further configured to send at least one second vehicle information to be updated to the vehicle-mounted controller.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment. As shown in fig. 7, the electronic device includes, but is not limited to: a processor 701 and a memory 702.
The memory 702 is configured to store executable instructions of the processor 701. It will be appreciated that the processor 701 is configured to execute instructions to implement the method for updating vehicle information in the above-described embodiment.
It should be noted that the electronic device structure shown in fig. 7 is not limited to the electronic device, and the electronic device may include more or less components than those shown in fig. 7, or may combine some components, or may have different arrangements of components, as will be appreciated by those skilled in the art.
The processor 701 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 702, and calling data stored in the memory 702, thereby performing overall monitoring of the electronic device. The processor 701 may include one or more processing units. Alternatively, the processor 701 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701.
The memory 702 may be used to store software programs as well as various data. The memory 702 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs (such as a determination unit, a processing unit, etc.) required for at least one functional module, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
In an exemplary embodiment, a computer readable storage medium is also provided, e.g. a memory 702, comprising instructions executable by the processor 701 of the electronic device to implement the method in the above embodiments.
In actual implementation, the functions of the communication unit 501 and the processing unit 502 in fig. 5 may be implemented by the processor 701 in fig. 7 calling a computer program stored in the memory 702. For its specific implementation reference is made to the description of the method section in the above embodiment. And will not be described in detail here.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment. As shown in fig. 8, the electronic device includes, but is not limited to: a processor 801 and a memory 802.
The memory 802 is used for storing executable instructions of the processor 801. It will be appreciated that the processor 801 is configured to execute instructions to implement the vehicle information updating method in the above-described embodiment.
It should be noted that the electronic device structure shown in fig. 8 is not limited to the electronic device, and the electronic device may include more or less components than those shown in fig. 8, or may combine some components, or may have different arrangements of components, as will be appreciated by those skilled in the art.
The processor 801 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 802, and calling data stored in the memory 802, thereby performing overall monitoring of the electronic device. The processor 801 may include one or more processing units. Alternatively, the processor 801 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 801.
Memory 802 may be used to store software programs as well as various data. The memory 802 may mainly include a storage program area that may store an operating system, application programs (such as a determination unit, a processing unit, etc.) required for at least one functional module, and a storage data area. In addition, memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
In an exemplary embodiment, a computer readable storage medium is also provided, e.g., a memory 802, comprising instructions executable by the processor 801 of the electronic device to implement the methods of the embodiments described above.
In actual implementation, the functions of the communication unit 601 and the processing unit 602 in fig. 6 may be implemented by the processor 801 in fig. 8 calling a computer program stored in the memory 802. For its specific implementation reference is made to the description of the method section in the above embodiment. And will not be described in detail here.
Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the present application also provides a computer program product comprising one or more instructions executable by the processor 701, 801 of an electronic device to perform the method of the above-described embodiment.
It should be noted that, when the instructions in the computer readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the processes of the foregoing method embodiments are implemented, and the technical effects similar to those of the foregoing method can be achieved, so that repetition is avoided, and no further description is provided herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules, so as to perform all the classification parts or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. The purpose of the embodiment scheme can be achieved by selecting part or all of the classification part units according to actual needs.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or partly contributing to the prior art or the whole classification part or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform the whole classification part or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A vehicle-mounted information updating method, which is applied to a vehicle-mounted controller, the method comprising:
determining first vehicle-mounted information to be updated of a target application program;
receiving a secret key from an upper computer;
decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance based on the secret key to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function;
and calling the second Flash erasing function, and updating the information in the target application program based on the first vehicle-mounted information to be updated.
2. The method of claim 1, wherein determining the first to-be-updated in-vehicle information for the target application comprises:
receiving at least one second vehicle-mounted information to be updated from the upper computer;
and merging the at least one second vehicle-mounted information to be updated to generate the first vehicle-mounted information to be updated.
3. The method according to claim 1 or 2, wherein prior to said receiving a key from said host computer, the method further comprises:
verifying the first vehicle-mounted information to be updated;
transmitting first indication information to the upper computer under the condition that the first vehicle-mounted information to be updated passes verification; the first indication information is used for indicating that the first vehicle-mounted information to be updated passes the verification of the vehicle-mounted controller;
the receiving the key from the upper computer comprises the following steps:
and receiving the secret key sent by the upper computer in response to the first indication information.
4. The method according to claim 1 or 2, characterized in that after said updating of information in said target application based on said first on-board information to be updated, the method further comprises:
checking whether the information in the target application program is updated;
under the condition that the information in the target application program is updated, sending updating completion information to the upper computer;
and ending the updating flow of the target application program under the condition that the information in the target application program is not updated, starting a first application program on the vehicle-mounted controller, and closing the application program when the first program updates the information in the target application program for the vehicle-mounted controller.
5. The vehicle-mounted information updating method is characterized by being applied to an upper computer, and comprises the following steps:
the method comprises the steps of sending first vehicle-mounted information to be updated of a target application program to a vehicle-mounted controller, and sending a secret key to the vehicle-mounted controller; the secret key is used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance so as to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; the second Flash erasing function is used for updating the vehicle-mounted information in the target application program according to the vehicle-mounted information to be updated.
6. The method of claim 5, wherein prior to sending the first to-be-updated in-vehicle information of the target application to the in-vehicle controller, the method further comprises:
splitting the first vehicle-mounted information to be updated into at least one second vehicle-mounted information to be updated;
the sending the first vehicle-mounted information to be updated to the vehicle-mounted controller comprises the following steps:
and sending the at least one second vehicle-mounted information to be updated to the vehicle-mounted controller.
7. An in-vehicle information updating apparatus, characterized in that the apparatus includes a communication unit and a processing unit:
the processing unit is used for determining first vehicle-mounted information to be updated of the target application program;
The communication unit is used for receiving the secret key from the upper computer;
the processing unit is further used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance based on the secret key to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function;
the processing unit is further configured to invoke the second Flash erasing function, and update information in the target application program based on the first vehicle-mounted information to be updated.
8. An in-vehicle information updating apparatus, characterized in that the apparatus includes a processing unit:
the processing unit is used for sending first vehicle-mounted information to be updated of the target application program to the vehicle-mounted controller and sending a secret key to the vehicle-mounted controller; the secret key is used for decrypting a first Flash erasing function stored in the vehicle-mounted controller in advance so as to obtain a second Flash erasing function; the first Flash erasing function is an encrypted function; the second Flash erasing function is used for updating the vehicle-mounted information in the target application program according to the vehicle-mounted information to be updated.
9. An in-vehicle information updating apparatus, comprising: a processor and a memory; wherein the memory is configured to store computer-executable instructions that, when executed by the vehicle-mounted information updating apparatus, cause the vehicle-mounted information updating apparatus to perform the vehicle-mounted information updating method of any one of claims 1 to 4 and 5 to 6.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises instructions which, when executed by an in-vehicle information updating apparatus, cause the computer to perform the in-vehicle information updating method according to any of claims 1-4, 5-6.
CN202311249045.8A 2023-09-25 2023-09-25 Vehicle-mounted information updating method and device and storage medium Pending CN117289975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311249045.8A CN117289975A (en) 2023-09-25 2023-09-25 Vehicle-mounted information updating method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311249045.8A CN117289975A (en) 2023-09-25 2023-09-25 Vehicle-mounted information updating method and device and storage medium

Publications (1)

Publication Number Publication Date
CN117289975A true CN117289975A (en) 2023-12-26

Family

ID=89238465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311249045.8A Pending CN117289975A (en) 2023-09-25 2023-09-25 Vehicle-mounted information updating method and device and storage medium

Country Status (1)

Country Link
CN (1) CN117289975A (en)

Similar Documents

Publication Publication Date Title
US11916924B2 (en) Secure communication between in-vehicle electronic control units
US10664413B2 (en) Hardware security for an electronic control unit
AU2011243007B2 (en) Booting and configuring a subsystem securely from non-local storage
US20170180330A1 (en) Method and electronic device for vehicle remote control and a non-transitory computer readable storage medium
US20220276855A1 (en) Method and apparatus for processing upgrade package of vehicle
CN110621014B (en) Vehicle-mounted equipment, program upgrading method thereof and server
CN107193593B (en) Upgrading method of upgradable file, set top box and storage medium
CN111722861B (en) Application program upgrading method, device, equipment and storage medium
CN113094062A (en) Upgrading method and device
WO2024007987A1 (en) Vehicle-end firmware upgrading method and apparatus for digital key system, and device and medium
US20190026478A1 (en) Vehicle secure communication method and apparatus, vehicle multimedia system, and vehicle
CN115242634B (en) Software upgrading method, device and storage medium
CN112882750A (en) OTA upgrade package processing method and device and electronic equipment
CN109257426A (en) Service line resource loading method, device, computer equipment and storage medium
CN117289975A (en) Vehicle-mounted information updating method and device and storage medium
CN113453223B (en) Key updating method, system, device, storage medium and terminal
CN112753015B (en) Method, device, storage medium and chip system for obtaining license information
KR102658765B1 (en) Secure communication between in-vehicle electronic control units
WO2023276531A1 (en) In-vehicle communication system, data structure of reprogramming policy metadata, and data structure of download metadata
CN116382723A (en) Software upgrading method and device and electronic equipment
CN114475486A (en) Vehicle mode setting method and device
CN116795400A (en) OTA upgrading method, device, equipment and storage medium
CN114879980A (en) Vehicle-mounted application installation method and device, computer equipment and storage medium
CN113590160A (en) Software online upgrading method and multi-core ECU
CN116340960A (en) Method, device and storage medium for processing vehicle key

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