Vehicle-mounted program burning method and device, equipment, storage medium and product

Through preset program burning scripts, the multiple chip domains of the vehicle SOC are automatically controlled, and the recording port switching and program burning tasks are automated, which solves the problems of low burning efficiency and error-prone problems in the existing technology, and improves intelligent driving SOC burning efficiency and accuracy.

CN119149058AActive Publication Date: 2024-12-17ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411277856.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-17
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

The existing program burning methods for intelligently driving on-vehicle SOC are inefficient and error-prone, requiring a lot of manual intervention, resulting in an increase in the risk of production accidents.

Method used

Automatically control multiple chip domains through preset program burning scripts, realize the automation of burning port switching and program burning tasks, reduce manual intervention, and improve burning efficiency and accuracy.

Benefits of technology

While ensuring the accuracy of on-board program burning, it significantly improves the burning efficiency, reduces the error rate, and simplifies the burning process of intelligent driving SOC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149058A_ABST
    Figure CN119149058A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted program burning method and device, equipment, a storage medium and a product, and relates to the technical field of intelligent driving, and the vehicle-mounted program burning method comprises the following steps: sequentially controlling a plurality of chip domains according to a preset program burning script to execute a corresponding program burning task. On the basis of the scheme of the application, the program burning script is preset to simplify the vehicle-mounted program burning process, so that manual intervention is reduced; according to the method, the chip domains are sequentially controlled to execute the corresponding program burning tasks through the program burning script, automatic switching of the chip domains can be achieved, the program burning tasks are completed, and therefore the vehicle-mounted program burning efficiency can be improved while the vehicle-mounted program burning accuracy is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a vehicle-mounted program burning method, device, equipment, storage medium and product. Background Art

[0002] With the rapid development of intelligent driving technology, existing intelligent driving hardware usually uses an on-board SOC (System on Chip) that contains both ARM (Advanced RISC Machine) chips and MCU (Micro Control Unit) chips. This type of on-board SOC architecture can meet the two requirements of large on-board computing power and fast response. However, the more complex the structure of the on-board SOC, the lower the efficiency of the corresponding on-board program burning method.

[0003] Currently, a manual burning method is usually used to burn the vehicle-mounted SOC. However, the manual burning method requires a lot of manual switching of the chip domain that needs to be burned. The process is cumbersome and prone to errors, which may lead to production accidents.

[0004] Therefore, how to improve the efficiency of vehicle program burning while ensuring the accuracy of vehicle program burning is a problem that needs to be solved urgently. Summary of the invention

[0005] The main purpose of this application is to provide a method, device, equipment, storage medium and product for burning a vehicle program, aiming to solve the technical problem of how to improve the efficiency of burning a vehicle program while ensuring the accuracy of burning a vehicle program.

[0006] To achieve the above purpose, the present application proposes a vehicle-mounted program burning method, which is applied to a vehicle-mounted system on chip (SOC). The vehicle-mounted SOC includes several chip domains. The vehicle-mounted program burning method includes:

[0007] The plurality of chip domains are controlled in sequence according to a preset program burning script to execute corresponding program burning tasks.

[0008] In one embodiment, the program burning script includes a burning port switching function, and before the step of sequentially controlling the plurality of chip domains according to the preset program burning script to execute the corresponding program burning task includes:

[0009] Get the chip domain queue to be burned;

[0010] According to the device identification corresponding to each chip domain in the chip domain queue to be burned, a burning port switching function is set, and the burning port switching function is used to switch the chip domain according to the device identification.

[0011] In one embodiment, the step of sequentially controlling the plurality of chip domains according to a preset program burning script to execute corresponding program burning tasks includes:

[0012] According to the program burning script, the burning port switching function is called to determine the current chip domain to be burned from the chip domain queue to be burned;

[0013] Calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute a corresponding target program burning task based on the single-domain burning function;

[0014] When the program burning task corresponding to the current chip domain to be burned is executed successfully, the burning port switching function is called to determine a new current chip domain to be burned, and the step of returning to call a preset single-domain burning function according to the program burning script to control the current chip domain to be burned to execute the corresponding target program burning task is performed until a preset program burning stop condition is met to obtain a program burning result.

[0015] In one embodiment, the step of calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute a corresponding program burning task based on the single-domain burning function includes:

[0016] Calling a preset single-domain burning function according to the program burning script, and sending a recovery instruction to the microcontroller unit MCU chip corresponding to the current chip domain to be burned based on the single-domain burning function, so as to control the advanced instruction set reduced computing ARM chip corresponding to the current chip domain to be burned to enter a recovery mode;

[0017] Execute the recovery mode confirmation command to obtain the USB device information of the serial port interface bus;

[0018] According to the USB device information, determine whether the current chip domain to be burned enters the recovery mode;

[0019] If yes, the location of the burning program file is determined according to the single-domain burning function, and the program file at the location of the burning program file is burned into the ARM chip corresponding to the current chip domain to be burned.

[0020] In one embodiment, the step of calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute the corresponding target program burning task based on the single-domain burning function includes:

[0021] After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

[0022] In one embodiment, the preset program burning script includes a command transmission function, and the command transmission function is used to perform serial port read and write operations on the MFU chip and the ARM chip of each of the plurality of chip domains.

[0023] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted program burning device, the vehicle-mounted program burning device comprising:

[0024] The script execution module is used to control the plurality of chip domains in sequence according to a preset program burning script to execute corresponding program burning tasks.

[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted program burning device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle-mounted program burning method described above.

[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle program burning method described above are implemented.

[0027] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the vehicle program burning method described above.

[0028] The present application provides a vehicle-mounted program burning method, which is applied to a vehicle-mounted SOC, wherein the vehicle-mounted SOC includes several chip domains. The present application controls the several chip domains in sequence according to a preset program burning script to execute the corresponding program burning task. Based on the scheme of the present application, the vehicle-mounted program burning process is simplified by presetting the program burning script, thereby reducing manual intervention; the program burning script controls several chip domains in sequence to execute the corresponding program burning task, and can realize automatic switching of each chip domain to complete the program burning task, thereby ensuring the accuracy of the vehicle-mounted program burning while improving the efficiency of the vehicle-mounted program burning. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0031] Figure 1 A flowchart of the first embodiment of the vehicle program burning method of the present application is provided;

[0032] Figure 2 A schematic diagram of the manual burning process of the vehicle-mounted program provided in the first embodiment of the present application;

[0033] Figure 3 A schematic diagram of a simplified process for burning a program based on a burning script provided in the first embodiment of the present application;

[0034] Figure 4 A flow chart of the second embodiment of the vehicle program burning method of the present application;

[0035] Figure 5 This is a schematic diagram of the module structure of the vehicle-mounted program burning device according to an embodiment of the present application;

[0036] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle program burning method of the embodiment of the present application.

[0037] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0039] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0040] The main solution of the embodiment of the present application is: controlling the plurality of chip domains to execute corresponding program burning tasks in sequence according to a preset program burning script.

[0041] Currently, a manual burning method is usually used to burn the vehicle-mounted SOC. However, the manual burning method requires a lot of manual switching of the chip domain that needs to be burned. The process is cumbersome and prone to errors, which may lead to production accidents.

[0042] Based on the present application scheme, the vehicle-mounted program burning process is simplified by pre-setting the program burning script, thereby reducing manual intervention; through the program burning script, several chip domains are controlled in turn to execute corresponding program burning tasks, and each chip domain can be automatically switched to complete the program burning task, thereby ensuring the accuracy of vehicle-mounted program burning while improving the efficiency of vehicle-mounted program burning.

[0043] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle-mounted program burning system, etc. The following takes the vehicle-mounted program burning system as an example to illustrate this embodiment and the following embodiments.

[0044] Based on this, the embodiment of the present application provides a method for burning a vehicle program, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle program burning method of the present application.

[0045] In this embodiment, the vehicle-mounted program burning method is applied to the vehicle-mounted SOC, and the vehicle-mounted SOC establishes a communication connection with the vehicle-mounted program burning system. The vehicle-mounted program burning method includes step S100:

[0046] Step S100, controlling the plurality of chip domains in sequence according to a preset program burning script to execute corresponding program burning tasks.

[0047] It should be noted that the vehicle-mounted program burning method proposed in this application is used in the scenario of program burning on the vehicle-mounted SOC in intelligent driving. Existing intelligent driving hardware usually uses a SOC that contains both an ARM chip and an MCU chip, wherein the ARM chip may include a GPU (Graphic Processing Unit) and is used to process high-computing power scenarios, such as image acquisition and processing; the MCU chip uses a real-time operating system or no operating system to process functions that require rapid response, such as vehicle regulations and safety. In order to increase the computing power of the SOC, the currently commonly used intelligent driving SOCs all contain dual-chip domains.

[0048] The vehicle-mounted SOC with the above architecture can meet the two requirements of large vehicle-mounted computing power and fast response, but it will also make the burning of SOC program more complicated. Figure 2 , Figure 2 This is a schematic diagram of the manual burning process of the vehicle program; Figure 2As shown, the method commonly used in the industry for burning this type of vehicle-mounted SOC is to first send instructions to the control port (serial port) of the MCU chip to control the ARM chip to enter the recovery mode (such as recovery mode), and then burn the ARM side after manual confirmation of success. If the vehicle-mounted SOC system contains a structure of multiple sets of ARM chips and MCU chips (a combination of a set of ARM chips and MCU chips is usually called a chip domain), it is necessary to take the above steps for each domain separately, and it is necessary to manually switch to the burning interface of another chip domain after completing the burning of one chip domain, because the existing burning program cannot identify which chip domain the multiple burning interfaces belong to. However, the more complex the structure of the intelligent driving SOC, the less efficient the current burning method will be, because it involves a lot of manual switching work, so the chance of error will be higher.

[0049] Based on the above considerations, the present application proposes a method for burning a smart driving vehicle SOC through a preset program burning script. Figure 3 , Figure 3 A simplified flowchart of a program burning script according to an embodiment of the present application; Figure 3 As shown, the solution proposed in this application can realize one-click execution of program burning, and there is no need to manually switch the hardware interface during the burning process, nor is there any need to operate the ARM and MCU of each chip domain in the vehicle SOC separately, which simplifies the burning process of the intelligent driving SOC, improves the burning efficiency, and reduces the error rate.

[0050] In addition, it should be noted that before the on-board program burning system burns the on-board SOC, it is necessary to determine that the on-board SOC meets the preset hardware burning conditions. The hardware burning conditions are as follows: it is necessary to prepare an on-board SOC for burning, which includes a chip domain composed of an MCU chip and an ARM chip; it is necessary to ensure that the computer carried by the on-board program burning system is powered on, and at the same time ensure that the on-board SOC is powered on; the version of the computer carried by the on-board program burning system can choose the operating system Linux5.0 or above. Among them, this embodiment does not specifically limit the computer version model, but it is necessary to support the operation of the program burning script during the actual implementation process; it is also necessary to prepare a sufficient number of connection cables, the connection cables include MCU communication cables and ARM communication cables, and each additional chip domain in the on-board SOC requires the number of connection cables to be doubled. In addition, before the program burning script is executed, the MCU communication cable and the ARM communication cable need to be connected to the on-board SOC and the computer.

[0051] Furthermore, the preset program burning script includes a command transmission function, and the command transmission function is used to perform serial port read and write operations on the MFU chip and ARM chip of each of the several chip domains.

[0052] It should be noted that the command transmission function can be constructed by a command line environment based on the Bash command, wherein Bash is a shell (command line environment) of the Linux system. The bash command is directly used to implement serial port reading and writing, and no additional library files need to be installed. The system requirements are low and the compatibility is relatively good. Among them, the serial port reading and writing operations can include operations such as sending sleep, waking up, and reading SOC status.

[0053] Based on this, the program burning script can process the serial port communication function and the recovery result identification function through a Bash-based script, wherein the function of processing serial port communication can include stably sending recovery commands to the MCU, and recovery is used to identify whether the ARM chip enters recovery mode, so that the program burning script starts executing the program burning task only when the ARM chip enters recovery mode.

[0054] In this embodiment, the plurality of chip domains are controlled in sequence according to a preset program burning script to execute the corresponding program burning task. The vehicle program burning process is simplified by presetting the program burning script, thereby reducing manual intervention; the program burning script controls the plurality of chip domains in sequence to execute the corresponding program burning task, and can realize automatic switching of each chip domain to complete the program burning task, thereby ensuring the accuracy of vehicle program burning while improving the efficiency of vehicle program burning.

[0055] In a feasible implementation manner, before the step of sequentially controlling the plurality of chip domains according to a preset program burning script to execute corresponding program burning tasks, steps S10 to S20 may be included:

[0056] Step S10, obtaining a chip domain queue to be burned;

[0057] It should be noted that, first, a data structure needs to be defined to store the chip domain information to be burned. In this embodiment, the data structure storing the chip domain to be burned can be a queue, and each element in the queue represents a chip domain and contains relevant information of the chip domain.

[0058] Step S20, setting a burning port switching function according to the device identification corresponding to each chip domain in the chip domain queue to be burned, wherein the burning port switching function is used to switch the chip domain according to the device identification.

[0059] Specifically, the queue of chip domains to be burned is traversed, and for each chip domain, the corresponding device identifier is parsed. The device identifier is usually used to uniquely identify a device or an interface on a device. More specifically, the device identifier can be set according to the serial port name.

[0060] In this implementation, a chip domain queue to be burned is obtained; according to the device identification corresponding to each chip domain in the chip domain queue to be burned, a burning port switching function is set, and the burning port switching function is used to switch the chip domain according to the device identification. This embodiment realizes automatic switching of the burning port by setting the burning port switching function. When multiple chip domains need to be burned, manual intervention can be effectively avoided, and the burning efficiency of the vehicle program is improved while ensuring the accuracy of the vehicle program burning.

[0061] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , Figure 4 This is a flow chart of the second embodiment of the vehicle program burning method of the present application; Figure 4 As shown, the plurality of chip domains are sequentially controlled according to a preset program burning script to execute corresponding program burning tasks. Step S100 may include steps S1001 to S1004:

[0062] Step S1001, calling the burning port switching function according to the program burning script to determine the current chip domain to be burned from the chip domain queue to be burned;

[0063] After setting the program burning script, it is necessary to read the instructions and configuration parameters that need to be executed currently from the program burning script; according to the program burning script, call the previously set burning port switching function, the burning port switching function first checks the chip domain queue to be burned, and determines the current chip domain to be burned from the chip domain queue to be burned according to the device identification.

[0064] Step S1002, calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute a corresponding target program burning task based on the single-domain burning function;

[0065] This embodiment uses the current chip domain to be burned determined in step S1001 to call the preset single domain burning function. The single domain burning function controls the hardware device to perform the burning task of the target program on the current chip domain to be burned according to the preset burning parameters and steps. It should be noted that during the burning process, it is necessary to monitor the progress and status of the burning to ensure that the burning process proceeds normally.

[0066] Step S1003, when the program burning task corresponding to the current chip domain to be burned is executed successfully, the burning port switching function is called to determine a new current chip domain to be burned, and the step of calling a preset single domain burning function according to the program burning script to control the current chip domain to be burned to execute the corresponding target program burning task is returned to the step of controlling the current chip domain to be burned to execute the corresponding target program burning task until the preset program burning stop condition is met;

[0067] After the burning task of the current chip domain to be burned is completed, check whether the burning result is successful. More specifically, it can be determined by reading the status of the device or returning information. If the current burning task is successful, call the burning port switching function again to determine the next chip domain to be burned. At the same time, return to step S1002, call the single domain burning function and execute the corresponding burning task according to the new information of the current chip domain to be burned. Repeat steps S1002 and S1003 until the preset program burning stop condition is met.

[0068] It should be noted that the program burning stop conditions may include that all chip domains have been burned, the maximum burning time limit has been reached, an error has occurred, etc.

[0069] Step S1004, obtaining the program burning result.

[0070] It should be noted that the program burning result may be the domain name of all chip domains that have completed program burning or the time consumed to complete program burning, so as to serve as a basis for judging the efficiency of program burning.

[0071] In a feasible implementation manner, the preset single-domain burning function is called according to the program burning script, and based on the single-domain burning function, the current chip domain to be burned is controlled to perform the corresponding program burning task, and step S1002 may include steps S10021 to S10024:

[0072] Step S10021, calling a preset single-domain burning function according to the program burning script, and sending a recovery instruction to the microcontroller unit MCU chip corresponding to the current chip domain to be burned based on the single-domain burning function, so as to control the advanced instruction set reduced computing ARM chip corresponding to the current chip domain to be burned to enter a recovery mode;

[0073] Exemplarily, the program burning system sends a recovery command (such as a recovery command) to the serial port of the MCU chip to enter the recovery mode, assuming that the serial port identifier of the MCU chip is / ttyACM1 and / ttyACM3 by default, and assuming that the chip domains that need to be burned are domain A and domain B. When burning domain A, send a recovery command to / ttyACM1; when burning domain B, send a recovery command to / ttyACM3. It should be noted that in order to prevent the default port from being occupied, other serial port devices cannot be installed on the burning computer.

[0074] Step S10022, executing the recovery mode confirmation instruction to obtain the serial port interface bus USB device information;

[0075] After sending the recovery command to the serial port of the MCU chip, it is necessary to identify whether the ARM chip in the same chip domain has entered the recovery mode. It should be noted that the program burning script can only be executed on devices that have entered the recovery mode. After sending the recovery command, the corresponding chip domain will enter the recovery mode, but there is also a certain probability that the recovery mode will fail, so before burning the current chip domain to be burned, it is necessary to confirm whether the corresponding domain is in recovery mode. Execute the "lsusb" command on the vehicle program burning system. This command is used to display USB-related information and obtain the USB device information of all USB devices. Among them, USB devices refer to all external devices connected to the vehicle program burning system through the serial interface bus. In the scenario of burning the vehicle SOC system, the USB device is generally a controller device that carries the vehicle SOC system (including the chip domain composed of the MCU chip and the ARM chip), such as the power domain controller, chassis domain controller, etc.

[0076] In addition, in the present embodiment, the maximum number threshold value of sending the recovery instruction to the serial port of the MCU chip can be set. When the number of times the recovery instruction is sent to the serial port of the MCU chip is less than the maximum number threshold value, as long as the ARM chip successfully enters the recovery mode after the recovery instruction is sent once, the next step is immediately entered, that is, step S10022 is entered; if the number of times the recovery instruction is sent to the serial port of the MCU chip is greater than or equal to the maximum number threshold value, but the ARM chip fails to enter the recovery mode, it is determined that the sending fails, and the automatic burning process is terminated (i.e., the preset program burning stop condition is met). In this way, the situation where the recovery mode fails to enter due to accidental factors can be avoided, and it is ensured that the ARM chip stably enters the recovery mode.

[0077] Step S10023, judging whether the current chip domain to be burned enters the recovery mode according to the USB device information;

[0078] According to the manufacturer ID (identity mark) and device ID in the USB device information, it can be determined whether the ARM chip in the same chip domain is in recovery mode.

[0079] For example, a USB device may be an ADCU (Autonomous Driving Control Unit) device, and the manufacturer ID and device ID of the ADCU are 9307 and 7305. Execute the "lsusb" command on the program burning system, and search for information containing 9307 or 7305 from the USB device information returned to the vehicle program burning system. Based on this, it can be identified whether the ADCU device is included in all USB devices. If included, it means that the ADCU has entered the recovery mode.

[0080] Step S10024: If yes, determine the location of the burning program file according to the single-domain burning function, and burn the program file at the location of the burning program file into the ARM chip corresponding to the current chip domain to be burned.

[0081] It should be noted that the location of the burning program file can be the path used to search for the corresponding program file. For example, the statement in the single-domain burning function can be written as ". / flash.sh path / to / burn_file a", where "flash.sh" is the single-domain burning function that needs to be called in the above steps, and the single-domain burning function is set with parameters indicating the location of the burning program file; "path / to / burn" is used to specify the program file path, and "a" indicates the chip domain identifier corresponding to the ARM that needs to be burned; for example, there are two chip domains marked as "a" and "b" that need to be burned, which means that the current chip domain to be burned is the "a" domain, and the program file at the location of the burning program file needs to be burned in the ARM chip corresponding to the "a" domain.

[0082] In another feasible implementation, the step of calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute the corresponding target program burning task based on the single-domain burning function, after step S1002, may include:

[0083] After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

[0084] It should be noted that the exit recovery instruction is set by the chip supplier of the vehicle-mounted SOC system, such as the "pmstateset" instruction. After exiting the recovery mode, the current chip domain to be burned will enter the working state, and the vehicle-mounted program burning system will enter the working state. At this time, the "lsusb" instruction is executed again by the vehicle-mounted program burning system to obtain new USB device information. In the new USB device information, if the manufacturer ID and device ID of the USB device corresponding to the current chip domain to be burned cannot be detected, it means that the ARM chip in the current chip domain to be burned has successfully exited the recovery mode, that is, the current chip domain to be burned has successfully exited the recovery mode.

[0085] In this embodiment, according to the program burning script, the burning port switching function is called to determine the current chip domain to be burned from the chip domain queue to be burned; according to the program burning script, the preset single domain burning function is called, and based on the single domain burning function, the current chip domain to be burned is controlled to execute the corresponding target program burning task; when the program burning task corresponding to the current chip domain to be burned is successfully executed, the burning port switching function is called to determine the new current chip domain to be burned, and the step of calling the preset single domain burning function according to the program burning script to control the current chip domain to be burned to execute the corresponding target program burning task is returned until the preset program burning stop condition is met. The scheme proposed in this embodiment is provided with automatic switching of the chip domain that needs to be burned, which can completely avoid the intervention of artificial switching of the hardware interface, and does not require artificial intervention of the ARM chip and MCU chip in the vehicle-mounted SOC system, which simplifies the process of vehicle-mounted program burning, and can improve the efficiency of vehicle-mounted program burning while ensuring the accuracy of vehicle-mounted program burning.

[0086] It should be noted that the above embodiments can be reasonably combined and implemented according to actual conditions, and this embodiment will not be described in detail.

[0087] This application also provides a vehicle-mounted program burning device, please refer to Figure 5 , the vehicle-mounted program burning device comprises:

[0088] The script execution module 10 is used to control the plurality of chip domains in sequence according to the preset program burning script to execute the corresponding program burning task.

[0089] Optionally, the script execution module 10 is further used for:

[0090] Get the chip domain queue to be burned;

[0091] According to the device identification corresponding to each chip domain in the chip domain queue to be burned, a burning port switching function is set, and the burning port switching function is used to switch the chip domain according to the device identification.

[0092] Optionally, the script execution module 10 is further used for:

[0093] According to the program burning script, the burning port switching function is called to determine the current chip domain to be burned from the chip domain queue to be burned;

[0094] Calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute a corresponding target program burning task based on the single-domain burning function;

[0095] When the program burning task corresponding to the current chip domain to be burned is executed successfully, the burning port switching function is called to determine a new current chip domain to be burned, and the step of returning to call a preset single-domain burning function according to the program burning script to control the current chip domain to be burned to execute the corresponding target program burning task is performed until a preset program burning stop condition is met to obtain a program burning result.

[0096] Optionally, the script execution module 10 is further used for:

[0097] Calling a preset single-domain burning function according to the program burning script, and sending a recovery instruction to the microcontroller unit MCU chip corresponding to the current chip domain to be burned based on the single-domain burning function, so as to control the advanced instruction set reduced computing ARM chip corresponding to the current chip domain to be burned to enter a recovery mode;

[0098] Execute the recovery mode confirmation command to obtain the USB device information of the serial port interface bus;

[0099] According to the USB device information, determine whether the current chip domain to be burned enters the recovery mode;

[0100] If yes, the location of the burning program file is determined according to the single-domain burning function, and the program file at the location of the burning program file is burned into the ARM chip corresponding to the current chip domain to be burned.

[0101] Optionally, the script execution module 10 is further used for:

[0102] After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

[0103] Optionally, the preset program burning script includes a command transmission function, and the command transmission function is used to perform serial port read and write operations on the MFU chip and the ARM chip of each of the several chip domains.

[0104] The vehicle-mounted program burning device provided by the present application adopts the vehicle-mounted program burning method in the above embodiment, which can solve the technical problem of how to improve the efficiency of vehicle-mounted program burning while ensuring the accuracy of vehicle-mounted program burning. Compared with the prior art, the beneficial effects of the vehicle-mounted program burning device provided by the present application are the same as the beneficial effects of the vehicle-mounted program burning method provided by the above embodiment, and other technical features in the vehicle-mounted program burning device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0105] The present application provides a vehicle-mounted program burning device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle-mounted program burning method in the above-mentioned embodiment 1.

[0106] Reference below Figure 6 , which shows a schematic diagram of the structure of a vehicle-mounted program burning device suitable for implementing the embodiment of the present application. The vehicle-mounted program burning device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The vehicle-mounted program burning device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0107] like Figure 6As shown, the vehicle-mounted program burning device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle-mounted program burning device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the vehicle-mounted program burning device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a vehicle-mounted program burning device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0108] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0109] The vehicle-mounted program burning device provided by the present application adopts the vehicle-mounted program burning method in the above embodiment, which can solve the technical problem of how to improve the vehicle-mounted program burning efficiency while ensuring the accuracy of vehicle-mounted program burning. Compared with the prior art, the beneficial effects of the vehicle-mounted program burning device provided by the present application are the same as the beneficial effects of the vehicle-mounted program burning method provided by the above embodiment, and other technical features in the vehicle-mounted program burning device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0110] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0111] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0112] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle-mounted program burning method in the above-mentioned embodiment.

[0113] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0114] The computer-readable storage medium may be included in the vehicle-mounted program burning device; or may exist independently without being assembled into the vehicle-mounted program burning device.

[0115] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the vehicle-mounted program burning device, the vehicle-mounted program burning device controls the several chip domains in sequence according to a preset program burning script to execute the corresponding program burning task.

[0116] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0119] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle-mounted program burning method, and can solve the technical problem of how to improve the efficiency of vehicle-mounted program burning while ensuring the accuracy of vehicle-mounted program burning. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle-mounted program burning method provided by the above-mentioned embodiment, and will not be repeated here.

[0120] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle program burning method when executed by a processor.

[0121] The computer program product provided by the present application can solve the technical problem of how to improve the efficiency of vehicle program burning while ensuring the accuracy of vehicle program burning. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle program burning method provided by the above embodiment, and will not be repeated here.

[0122] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for burning vehicle programs. It is characterized in that Applied to a vehicle-mounted system on chip (SOC), the vehicle-mounted SOC includes several chip domains, and the method includes: The plurality of chip domains are controlled in sequence according to a preset program burning script to execute corresponding program burning tasks.

2. The method according to claim 1, It is characterized in that The program burning script includes a burning port switching function, and the step of sequentially controlling the plurality of chip domains according to the preset program burning script to execute the corresponding program burning task includes: Get the chip domain queue to be burned; According to the device identification corresponding to each chip domain in the chip domain queue to be burned, a burning port switching function is set, and the burning port switching function is used to switch the chip domain according to the device identification.

3. The method according to claim 2, It is characterized in that The step of sequentially controlling the plurality of chip domains according to a preset program burning script to execute corresponding program burning tasks includes: According to the program burning script, the burning port switching function is called to determine the current chip domain to be burned from the chip domain queue to be burned; Calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute a corresponding target program burning task based on the single-domain burning function; When the program burning task corresponding to the current chip domain to be burned is executed successfully, the burning port switching function is called to determine a new current chip domain to be burned, and the step of returning to call a preset single-domain burning function according to the program burning script to control the current chip domain to be burned to execute the corresponding target program burning task is performed until a preset program burning stop condition is met to obtain a program burning result.

4. The method according to claim 3, It is characterized in that The step of calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute a corresponding program burning task based on the single-domain burning function comprises: Calling a preset single-domain burning function according to the program burning script, and sending a recovery instruction to the microcontroller unit MCU chip corresponding to the current chip domain to be burned based on the single-domain burning function, so as to control the advanced instruction set reduced computing ARM chip corresponding to the current chip domain to be burned to enter a recovery mode; Execute the recovery mode confirmation command to obtain the USB device information of the serial port interface bus; According to the USB device information, determine whether the current chip domain to be burned enters the recovery mode; If yes, the location of the burning program file is determined according to the single-domain burning function, and the program file at the location of the burning program file is burned into the ARM chip corresponding to the current chip domain to be burned.

5. The method according to claim 3, It is characterized in that The step of calling a preset single-domain burning function according to the program burning script, and controlling the current chip domain to be burned to execute the corresponding target program burning task based on the single-domain burning function includes: After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

6. The method according to any one of claims 1 to 5, It is characterized in that The preset program burning script includes a command transmission function, and the command transmission function is used to perform serial port read and write operations on the MFU chip and the ARM chip of each of the several chip domains.

7. A vehicle-mounted program burning device, It is characterized in that The vehicle-mounted program burning device comprises: The script execution module is used to control the plurality of chip domains in sequence according to a preset program burning script to execute corresponding program burning tasks.

8. A vehicle-mounted program burning device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle-mounted program burning method according to any one of claims 1 to 6.

9. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle-mounted program burning method according to any one of claims 1 to 6 are implemented.

10. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the vehicle-mounted program burning method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Multi-chip firmware burning method, system and device and storage medium

    CN110704075A

  • Continuous integration method and device of vehicle software, electronic equipment and storage medium

    CN116301987A

  • Multi-chip programming system

    CN214670565U

  • Parallel burunig system and method

    US20090089469A1

  • Security control method and computer system

    WO2019072158A1