Vehicle machine flashing method, device, equipment, medium and product
By switching the working state after the failure of the car machine to write and write the debug version of the software, the problem of low writing efficiency of the car machine is solved, and the automatic writing and efficiency improvement of the car machine is achieved.
Patent Information
- Application Number
- CN202311295764.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2043-10-08
AI Technical Summary
The existing vehicle machine brushing method has equipment stability problems during the brushing process, resulting in failure of brushing, resulting in waste of human resources and low flashing efficiency.
After the flashing of the official version of the car machine fails, the working state of the car machine is switched to the flashing mode by calling the mode switching command, and in this mode, the debug version of the software is flashed into the vehicle machine, and then the official version of the software is flashed.
It realizes automatic writing of the car machine, reduces manual operation and isolation steps, improves the efficiency of the brushing, and avoids waste of human resources.
Smart Images

Figure CN119781806A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle computer technology, and in particular to a vehicle computer flashing method, device, equipment, medium and product. Background Art
[0002] Car computer refers to the abbreviation of the in-vehicle infotainment product installed in the car. The car computer can functionally realize information communication between people and cars, and between cars and the outside world (cars and cars).
[0003] After the vehicle computer arrives at the factory, it needs to be flashed to the current official version on the flashing station before being installed on the vehicle. However, during the flashing process, the flashing of the vehicle computer often fails due to equipment stability issues. If the flashing of the vehicle computer fails, the vehicle computer that failed to be flashed needs to be removed from the flashing station and isolated, and then the R&D personnel will re-flash the debugging version software, and then re-flash the official version on the flashing station. Therefore, the existing flashing method of the vehicle computer will cause a waste of human resources and lead to low flashing efficiency. Summary of the invention
[0004] The present application provides a vehicle computer flashing method, device, equipment, medium and product, which can solve the problem of low flashing efficiency of vehicle computers.
[0005] In a first aspect, an embodiment of the present application provides a vehicle computer flashing method, the method comprising:
[0006] When the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, the working state of the vehicle computer is switched to the flashing mode by calling the first mode switching instruction;
[0007] In the flashing mode, the debugging version software is flashed into the vehicle computer;
[0008] When the debugging version software is successfully flashed, the official version software is flashed into the vehicle computer.
[0009] In a second aspect, an embodiment of the present application provides a vehicle computer flashing device, the device comprising:
[0010] A switching module, used for switching the working state of the vehicle computer to the flashing mode by calling a first mode switching instruction when the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority;
[0011] A first flashing module, used for flashing the debugging version software into the vehicle computer in the flashing mode;
[0012] The second flashing module is used to flash the official version software into the vehicle computer when the debugging version software is successfully flashed.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0014] When the processor executes the computer program instructions, the vehicle computer flashing method in any one of the embodiments of the first aspect is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, a vehicle computer flashing method as in any one of the embodiments in the third aspect is implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a vehicle computer flashing method as in any one of the embodiments in the third aspect above.
[0017] The vehicle computer flashing method, device, equipment, medium and product provided in the embodiments of the present application, wherein, when the vehicle computer fails to flash the official version software and the vehicle computer has debugging authority, the working state of the vehicle computer can be automatically switched to the flashing mode, and in the flashing mode, the debug version software can be flashed into the vehicle computer to prepare for flashing the official software version of the vehicle computer again. After the flashing of the vehicle computer fails, the second flashing can be started immediately, which can avoid the need for manual operation of the vehicle computer that has failed to flash and the problem of isolating the vehicle computer. At the same time, it can realize automatic flashing of the vehicle computer, reduce the waste of human resources caused by manual flashing, and improve the flashing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 It is a flowchart of a vehicle computer flashing method provided by an embodiment of the present application;
[0020] Figure 2 This is a schematic diagram of the overall process of a vehicle computer flashing method provided by an embodiment of the present application;
[0021] Figure 3 It is a structural schematic diagram of a vehicle computer flash writing device provided by an embodiment of the present application;
[0022] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0025] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0026] In order to solve the problems of the prior art, the embodiments of the present application provide a vehicle computer flashing method, device, equipment, medium and product.
[0027] The following is an introduction to the vehicle computer flashing method provided in the embodiment of the present application.
[0028] Figure 1 FIG. 1 is a flow chart of a vehicle computer flashing method provided by an embodiment of the present application. Figure 1 As shown, the method may specifically include the following steps:
[0029] Step 101, when the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, the working state of the vehicle computer is switched to the flashing mode by calling a first mode switching instruction;
[0030] Step 102, in the flashing mode, flashing the debugging version software into the vehicle computer;
[0031] Step 103, when the debugging version software is successfully flashed, the official version software is flashed into the vehicle computer.
[0032] In step 101, when the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, the working state of the vehicle computer is switched to the flashing mode by calling a first mode switching instruction;
[0033] In this embodiment, the execution subject is a flashing platform, and the flashing process is performed on the flashing platform. The flashing platform includes a host computer, and the host computer controls the vehicle computer to complete the flashing by sending control instructions.
[0034] Since after the official version of the vehicle computer has been flashed, if the official version is to be re-flashed, it is necessary to flash the debug software version before re-flashing, and then the official software version can be flashed again. Therefore, in this embodiment, the working state of the vehicle computer is switched to the flashing mode, and the debug version software is flashed in this flashing mode.
[0035] The above-mentioned flashing mode can be fastboot mode, which is a flashing mode of an Android device, mainly used to flash the debug version software to the vehicle computer through a USB data cable on the host computer. The above-mentioned debugging permission can be Android Debug Bridge (ADB) permission, which is used to obtain the flashing permission for the vehicle computer. The above-mentioned mode switching instruction can be adb reboot bootloader, which is an instruction corresponding to the debugging permission and is used to switch the working state of the vehicle computer to fastboot mode.
[0036] It should be noted that before calling the mode switching command, it is also necessary to run the command ADB reboot through the CMD command line on the flashing test bench to control the vehicle computer to power on and off, and then call the mode switching command. CMD is the Windows command prompt, which is a command line operation tool of the Windows system. Users can complete the power on and off of the vehicle computer by entering ADB reboot.
[0037] In step 102, in the flashing mode, the debugging version software is flashed into the vehicle computer;
[0038] It should be noted that the car computer includes three modules, namely the control module, the network module and the operation module. The operation module can be a system on chip (SOC), and the SOC can be an Android system, which is the operating system for the car computer to interact directly with the user and carries the upper-level system applications and multimedia applications. The control module can be a microcontroller unit (MCU): responsible for the basic computing and control work of the SOC. The network module can be a 5G module, which is responsible for the 5G networking module of the whole vehicle, mainly providing traffic Internet access and other services for the car computer.
[0039] The above-mentioned debugging version software includes the operating software package corresponding to the SOC and the network software package corresponding to the 5G module. During the flashing process of the debugging version software, the operating software package needs to be flashed into the operating module, and the network software package needs to be flashed into the network module.
[0040] In step 103, when the debugging version software is successfully flashed, the official version software is flashed into the vehicle computer.
[0041] In this embodiment, the steps for determining whether the debugging version software is successfully flashed include:
[0042] First, the test bench obtains the network connection status of the control module, network module and operation module through the ping command in the CMD command line; secondly, the test bench reads the software package version in the control module, network module and operation module through adb; when the network connection status of the control module, network module and operation module are all connected, and the software package version in the network module and the operation module is the same as the debug version software, the debug version software is flashed successfully.
[0043] In one example, if the IP address of the control module is 172.31.2.53, the IP address of the network module is 172.31.2.54, and the IP address of the operation module is 172.31.2.51, and firstly, ping172.31.2.51, ping172.31.2.53, and ping172.31.2.54 can all get replies, then the network connection status is considered to be connected. Secondly, the test bench can read the corresponding SOC, MCU, and 5G software versions through adb, which means that the flashing is successful.
[0044] After the debugging version software is successfully flashed, the flashing bench reads the official version software stored in the host computer and flashes the official version software to the vehicle computer.
[0045] In this embodiment, when the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, the working state of the vehicle computer can be automatically switched to the flashing mode, and in the flashing mode, the debug version software can be flashed into the vehicle computer to prepare for flashing the official software version of the vehicle computer again. After the flashing of the vehicle computer fails, the second flashing can be started immediately, which can avoid the need for manual operation of the vehicle computer that has failed to flash and the problem of isolating the vehicle computer. At the same time, it can realize automatic flashing of the vehicle computer, reduce the waste of human resources caused by manual flashing, and improve the efficiency of flashing.
[0046] In one embodiment of the present application, flashing the debugging version software into the vehicle computer includes:
[0047] Controlling the vehicle computer to run a flashing script corresponding to the operating software package in the debugging version software, so that the operating software package is flashed into the vehicle computer;
[0048] When the flashing of the operating software package is completed, the flashing instruction corresponding to the debugging authority is called to flash the network software package into the vehicle computer.
[0049] In this embodiment, when flashing the debug version software, the operating software package and the network software package need to be flashed into the vehicle computer; therefore, when flashing the operating software package, a flashing script corresponding to the operating software package can be set in the debug software version, and after running the script, the operating software package can be directly flashed into the operating module in the vehicle computer. Specifically, the script can be the fastboot_all_and_erase_all.bat script.
[0050] After the flashing of the operating software package is completed, the flashing of the network software package is performed. The network software package can be flashed by calling a flashing instruction, wherein the flashing instruction includes an import instruction, a permission instruction, a write instruction, and an exit instruction.
[0051] In one embodiment, calling the flashing instruction corresponding to the debugging authority to flash the network software package to the vehicle computer includes:
[0052] Calling the opening instruction to control the vehicle computer to open the root authority;
[0053] Calling the import instruction to import the network software package into the network module in the vehicle computer;
[0054] Calling the permission instruction to enable the network module to enter an open permission mode;
[0055] Calling the write instruction to flash the network software package into the network module;
[0056] The exit instruction is called to cause the network module to exit the open authority mode.
[0057] In this embodiment, the start instruction, import instruction, permission instruction, write instruction and exit instruction are all instructions corresponding to the debugging permission, that is, the above instructions can be executed only under the debugging permission.
[0058] In one example, the enable command may be adb root, which is to enable the root authority of the vehicle computer. Under the root authority, the flashing station can have the highest authority of the vehicle computer. At this time, the flashing station can perform all operations of adding, deleting, modifying, and checking any file in the vehicle computer (including system files). Only under the root authority can the subsequent steps be performed.
[0059] The import command can be adb push 5G software package / data / modefm / 5G, which is to import the 5G software package to the 5G module.
[0060] The permission instruction can be adb shell vehicle_tool-s SOC_MCU_5GEDL_SET:69, which is to switch the 5G module of the vehicle computer to edl mode, and lsusb to check whether the vehicle computer enters 9008 mode. The edl mode of the 5G module corresponds to the 9008 mode of the vehicle computer, and both are used to make the network module enter the open permission mode. The open permission module is the network module that opens its own control authority to the flashing platform, so that the flashing platform can flash the network software package to the network module.
[0061] The write command may be QFirehose-f / data / modemfw / 5G-n, which is used to write the 5G software package into the network module.
[0062] The exit command can be vehicle_tool-s SOC_MCU_5GEDL_SET:67, which is used to control the 5G module to exit the EDL mode, that is, the open permission mode, after the 5G software package is flashed.
[0063] In this embodiment, the debugging version software is flashed into the vehicle computer by calling the flashing instruction through the flashing station, thereby realizing automatic flashing of the flashing station without manual operation, reducing labor costs and improving flashing efficiency.
[0064] In one embodiment of the present application, when the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, the working state of the vehicle computer is switched to the flashing mode by calling a first mode switching instruction, including:
[0065] If the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, calling a first restart instruction corresponding to the debugging authority to control the vehicle computer to restart;
[0066] When the vehicle computer completes the restart, the working state of the vehicle computer is switched to the flashing mode by calling the first mode switching instruction.
[0067] In this embodiment, the first reboot instruction may be adb reboot. When the vehicle computer has debugging authority, in order to ensure that the debugging version software can be flashed smoothly and to ensure the success rate of flashing, the vehicle computer needs to be controlled to restart and the flashing mode of the vehicle computer is turned on.
[0068] In one embodiment of the present application, in the flashing mode, before flashing the debug version software to the vehicle computer, the method further includes:
[0069] In the case where flashing the official version software of the vehicle computer fails and the vehicle computer does not have debugging authority, in response to the received connection instruction, a preset flashing tool is connected to the vehicle computer so that the vehicle computer opens the debugging authority through the flashing tool;
[0070] The second mode switching instruction is called to switch the working state of the vehicle computer to the flashing mode.
[0071] In this embodiment, the connection instruction can be sent manually or automatically triggered by the flashing platform when it detects that the vehicle computer does not have the debugging permission. After the flashing tool is connected to the vehicle computer, the vehicle computer has the ADB permission, so that the debugging version software can be flashed.
[0072] The second mode switching instruction may be mdb-fastboot_hu_f, so that the vehicle computer enters the fastboot mode. Subsequently, the flashing station executes step 102 to flash the debugging version software into the vehicle computer.
[0073] In this embodiment, when the vehicle computer does not have debugging authority, the vehicle computer is connected to the flashing tool so that the vehicle computer has debugging authority, thereby completing the flashing of the debugging version software of the vehicle computer. This can improve the success rate of flashing the debugging version software of the vehicle computer, thereby improving the success rate of flashing the formal version software.
[0074] In one embodiment of the present application, when the debugging version software is successfully flashed, after the official version software is flashed into the vehicle computer, the method further includes:
[0075] Sending a first detection instruction to a control module, a network module and an operation module in the vehicle computer respectively, wherein the control module is used to flash the control software package in the official version software, the network module is used to flash the network software package in the official version software, and the operation module is used to flash the operation software package in the official version software;
[0076] Obtaining a version of the control software package to be tested in the control module, a version of the network software package to be tested in the network module, and a version of the operation software package to be tested in the operation module;
[0077] When the first preset condition is met, it is determined that the official version software is successfully flashed:
[0078] The first preset condition includes:
[0079] receiving information fed back by the control module, the network module, and the operation module based on the first detection instruction;
[0080] The control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested are the same as the official version software.
[0081] In this embodiment, after the official version software is flashed into the car computer, the flashing result needs to be judged to determine whether it needs to be re-flashed. Therefore, it is possible to determine whether the official version software has been successfully flashed by obtaining the network connection status of each module in the car computer and the existing test version software in the car computer.
[0082] Specifically, the first detection instruction is a ping instruction, which obtains the network connection status of each module in the vehicle computer by pinging the IP address of each module in the vehicle computer. Whether the network connection status is connected is used as one of the conditions for whether the vehicle computer is successfully flashed. The software version to be tested includes the control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested. The comparison of the versions of the software packages in the tested version and the official version software is used as one of the conditions for determining whether the flashing is successful.
[0083] When pinging the IP addresses of each module in the vehicle computer, if each module in the vehicle computer responds, it is considered that the network connections of each module are normal; when the network connections of each module are normal, if the version of the control software package to be tested is the same as the version of the software package in the flashed official version software, the version of the network software package to be tested is the same as the version of the network software package in the official version software, and the version of the operation software package to be tested is the same as the version of the operation software package in the official version software, it is considered that the flashing of the official version software is successful.
[0084] It should be noted that when judging the flashing result of the official version of the software, it is necessary to obtain the network connection status and the version of the software package of the control module, network module and operation module at the same time, while when judging the flashing result of the debug version of the software, it is only necessary to obtain the network connection status and the version of the software package of the network module and operation module.
[0085] In this embodiment, after the vehicle computer is re-flashed with the official version software, the connection status of each module in the vehicle computer and the version of the software package are obtained to determine whether the official version software is successfully flashed, which can ensure the success of the vehicle computer flashing, reduce misjudgment, and improve the work efficiency of the flashing.
[0086] In one embodiment of the present application, when the debugging version software is successfully flashed, flashing the official version software to the vehicle computer includes:
[0087] Invoking a second restart instruction corresponding to the debugging authority to control the vehicle computer to restart;
[0088] When the vehicle computer completes the restart, the official version software is flashed into the vehicle computer.
[0089] In this embodiment, the second restart instruction may be adb reboot. After the vehicle computer completes flashing the debugging version software, in order to ensure that the official version software can be flashed smoothly and to ensure the success rate of the flashing, the vehicle computer needs to be controlled to restart.
[0090] After the vehicle computer is restarted, the network software package of the official version software is flashed into the network module of the vehicle computer, the operation software package of the official version software is flashed into the operation module of the vehicle computer, and the control software package of the official version software is flashed into the control module of the vehicle computer.
[0091] Here, it should be noted that, unlike flashing the debug version software, when flashing the debug version software when the official version software fails, you only need to flash the operating software package and the network software package to the vehicle computer, and there is no need to flash the control software package.
[0092] In this embodiment, during the process of flashing the official version of the software, by controlling the vehicle computer to restart and flashing the software package in each module in the vehicle computer, the flashing success rate of the vehicle computer can be improved and the flashing can be ensured to be completed normally.
[0093] In one embodiment of the present application, the debugging version software is successfully flashed by the following steps:
[0094] Sending a second detection instruction to a control module, a network module and an operation module in the vehicle computer respectively, the control module is used to flash the control software package in the debug version software, the network module is used to flash the network software package in the debug version software, and the operation module is used to flash the operation software package in the debug version software;
[0095] Obtaining a version of the control software package to be tested in the control module, a version of the network software package to be tested in the network module, and a version of the operation software package to be tested in the operation module;
[0096] If the second preset condition is met, determining that the debugging version software is successfully flashed;
[0097] The second preset condition includes:
[0098] receiving information fed back by the control module, the network module, and the operation module based on the second detection instruction;
[0099] The control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested are the same as the debugging version software.
[0100] In this embodiment, the second detection instruction mentioned above may refer to the first detection instruction, and the conditions for determining whether the debugging version software is successfully flashed are the same as the conditions for determining whether the official version software is successfully flashed, which will not be described in detail in this embodiment.
[0101] Figure 2 The figure shows the overall process diagram of the vehicle computer flashing method in one embodiment of the present application.
[0102] like Figure 2 As shown, step 201, inserting the vehicle computer, is to connect the flashing station and the vehicle computer;
[0103] Step 202, the vehicle computer starts checking the status, that is, obtaining the network connection status of the operation module, network module and control module in the vehicle computer through a ping command;
[0104] Step 203, start flashing, that is, flashing the official version of the software;
[0105] Step 204, whether the flashing is successful, is to determine whether the official version software is successfully flashed;
[0106] Step 205, the label machine prints a label, that is, after the official version of the software is successfully flashed, the label machine prints a label to indicate that the vehicle computer has been successfully flashed;
[0107] Step 206, flashing is completed;
[0108] Step 207, the host computer restarts the vehicle computer, that is, after the flashing of the official version of the software fails, the host computer in the flashing test bench controls the vehicle computer to restart;
[0109] Step 208, loading the test version software with the same software number, that is, re-flashing the debug version software after restarting.
[0110] Figure 3 A schematic diagram of the structure of a vehicle computer flashing device provided by an embodiment of the present application is shown. For the sake of ease of explanation, only the parts related to the embodiment of the present application are shown.
[0111] Reference Figure 3 The vehicle flash writing device 300 may include:
[0112] The switching module 301 is used to switch the working state of the vehicle computer to the flashing mode by calling the first mode switching instruction when the flashing of the official version software of the vehicle computer fails and the vehicle computer has the debugging authority;
[0113] A first flashing module 302 is used to flash the debugging version software into the vehicle computer in the flashing mode;
[0114] The second flashing module 303 is used to flash the official version software into the vehicle computer if the debugging version software is successfully flashed.
[0115] Optionally, the first flashing module 302 includes:
[0116] A first control submodule is used to control the vehicle computer to run a flashing script corresponding to the operating software package in the debugging version software, so that the operating software package is flashed into the vehicle computer;
[0117] The first calling submodule is used to call the flashing instruction corresponding to the debugging authority to flash the network software package into the vehicle computer when the flashing of the operating software package is completed.
[0118] Optionally, the first calling submodule includes:
[0119] A first calling unit, used to call the opening instruction to control the vehicle computer to open the root authority;
[0120] A second calling unit, used for calling the import instruction to import the network software package into the network module in the vehicle computer;
[0121] A third calling unit, used for calling the permission instruction to make the network module enter an open permission mode;
[0122] A fourth calling unit, used for calling the write instruction to flash the network software package into the network module;
[0123] The fifth calling unit is used to call the exit instruction to make the network module exit the open permission mode.
[0124] Optionally, the switching module 301 further includes:
[0125] A first calling submodule is used to call a first restart instruction corresponding to the debugging permission to control the vehicle computer to restart when the flashing of the official version software of the vehicle computer fails and the vehicle computer has the debugging permission;
[0126] The switching submodule is used to switch the working state of the vehicle computer to the flashing mode by calling the first mode switching instruction when the vehicle computer completes the restart.
[0127] Optionally, the vehicle computer flash writing device 300 further includes:
[0128] a response module, for, when the flashing of the official version software of the vehicle computer fails and the vehicle computer does not have the debugging authority, responding to the received connection instruction, connecting a preset flashing tool with the vehicle computer so that the vehicle computer opens the debugging authority through the flashing tool;
[0129] The calling module is used to call the second mode switching instruction to switch the working state of the vehicle computer to the flashing mode.
[0130] Optionally, the vehicle computer flash writing device 300 further includes:
[0131] A first sending module, used for sending a first detection instruction to a control module, a network module and an operation module in the vehicle computer respectively, wherein the control module is used for flashing a control software package in the official version of the software, the network module is used for flashing a network software package in the official version of the software, and the operation module is used for flashing an operation software package in the official version of the software;
[0132] A first acquisition module, used to acquire the version of the control software package to be tested in the control module, the version of the network software package to be tested in the network module, and the version of the operation software package to be tested in the operation module;
[0133] The first determination module is used to determine that the official version software is successfully flashed when a first preset condition is met:
[0134] The first preset condition includes:
[0135] receiving information fed back by the control module, the network module, and the operation module based on the first detection instruction;
[0136] The control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested are the same as the official version software.
[0137] Optionally, the second flashing module 303 includes:
[0138] A control submodule, used for calling a second restart instruction corresponding to the debugging authority to control the vehicle computer to restart;
[0139] The flashing submodule is used to flash the official version software into the vehicle computer when the vehicle computer completes the restart.
[0140] Optionally, the vehicle computer flash writing device 300 further includes:
[0141] A second sending module is used to send a second detection instruction to a control module, a network module and an operation module in the vehicle computer respectively, wherein the control module is used to flash the control software package in the debug version software, the network module is used to flash the network software package in the debug version software, and the operation module is used to flash the operation software package in the debug version software;
[0142] A second acquisition module is used to acquire the version of the control software package to be tested in the control module, the version of the network software package to be tested in the network module, and the version of the operation software package to be tested in the operation module;
[0143] If the second preset condition is met, determining that the debugging version software is successfully flashed;
[0144] The second preset condition includes:
[0145] receiving information fed back by the control module, the network module, and the operation module based on the second detection instruction;
[0146] The control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested are the same as the debugging version software.
[0147] The vehicle-computer flash writing device 300 provided in the embodiment of the present application can implement each process implemented in the aforementioned method embodiment, and will not be described again here to avoid repetition.
[0148] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0149] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0150] The device may include a processor 401 and a memory 402 storing program instructions.
[0151] When the processor 401 executes the program, the steps in any of the above method embodiments are implemented.
[0152] Exemplarily, the program may be divided into one or more modules / units, one or more modules / units are stored in the memory 402, and executed by the processor 401 to complete the present application. One or more modules / units may be a series of program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the program in the device.
[0153] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0154] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.
[0155] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0156] The processor 401 implements any one of the methods in the above embodiments by reading and executing program instructions stored in the memory 402 .
[0157] In one example, the electronic device may further include a communication interface 403 and a bus 310. The processor 401, the memory 402, and the communication interface 403 are connected via the bus 310 and communicate with each other.
[0158] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0159] Bus 410 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0160] In addition, in combination with the method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores program instructions; when the program instructions are executed by a processor, any one of the methods in the above embodiment is implemented.
[0161] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0162] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0163] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0164] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0165] The functional modules shown in the above block diagram can be implemented as hardware, software, firmware or their combination. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer grids such as the Internet, intranets, etc.
[0166] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0167] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0168] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A vehicle computer flashing method, characterized in that: The method comprises: When the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, the working state of the vehicle computer is switched to the flashing mode by calling the first mode switching instruction; In the flashing mode, the debugging version software is flashed into the vehicle computer; When the debugging version software is successfully flashed, the official version software is flashed into the vehicle computer.
2. The vehicle computer flashing method according to claim 1, characterized in that: The debugging version software includes an operating software package and a network software package, wherein the operating software package is used to provide an operating system for the vehicle computer, and the network software package is used to provide a network connection for the vehicle computer; Flashing the debugging version software into the vehicle computer includes: Controlling the vehicle computer to run a flashing script corresponding to the operating software package in the debugging version software, so that the operating software package is flashed into the vehicle computer; When the flashing of the operating software package is completed, the flashing instruction corresponding to the debugging authority is called to flash the network software package into the vehicle computer.
3. The vehicle computer flashing method as claimed in claim 2, characterized in that: The flashing instructions include an opening instruction, an import instruction, a permission instruction, a write instruction, and an exit instruction; The calling of the flashing instruction corresponding to the debugging authority to flash the network software package into the vehicle computer includes: Calling the opening instruction to control the vehicle computer to open the root authority; Calling the import instruction to import the network software package into the network module in the vehicle computer; Calling the permission instruction to enable the network module to enter an open permission mode; Calling the write instruction to flash the network software package into the network module; The exit instruction is called to cause the network module to exit the open authority mode.
4. The vehicle computer flashing method as claimed in claim 2, characterized in that: When the flashing of the official version software of the vehicle computer fails and the vehicle computer has the debugging authority, the working state of the vehicle computer is switched to the flashing mode by calling the first mode switching instruction, including: If the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority, calling a first restart instruction corresponding to the debugging authority to control the vehicle computer to restart; When the vehicle computer completes the restart, the working state of the vehicle computer is switched to the flashing mode by calling the first mode switching instruction.
5. The vehicle computer flashing method according to claim 1, characterized in that: In the flashing mode, before flashing the debugging version software into the vehicle computer, the method further includes: In the case where flashing the official version software of the vehicle computer fails and the vehicle computer does not have debugging authority, in response to the received connection instruction, a preset flashing tool is connected to the vehicle computer so that the vehicle computer opens the debugging authority through the flashing tool; The second mode switching instruction is called to switch the working state of the vehicle computer to the flashing mode.
6. The vehicle computer flashing method according to claim 1, characterized in that: In the case where the debugging version software is successfully flashed, after the official version software is flashed into the vehicle computer, the method further includes: Sending a first detection instruction to a control module, a network module and an operation module in the vehicle computer respectively, wherein the control module is used to flash the control software package in the official version software, the network module is used to flash the network software package in the official version software, and the operation module is used to flash the operation software package in the official version software; Obtaining a version of the control software package to be tested in the control module, a version of the network software package to be tested in the network module, and a version of the operation software package to be tested in the operation module; When the first preset condition is met, it is determined that the official version software is successfully flashed: The first preset condition includes: receiving information fed back by the control module, the network module, and the operation module based on the first detection instruction; The control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested are the same as the official version software.
7. The vehicle computer flashing method as claimed in claim 6, characterized in that: When the debugging version software is successfully flashed, flashing the official version software to the vehicle computer includes: Invoking a second restart instruction corresponding to the debugging authority to control the vehicle computer to restart; When the vehicle computer completes the restart, the official version software is flashed into the vehicle computer.
8. The vehicle computer flashing method as claimed in claim 1, characterized in that: The debugging version software is successfully flashed through the following steps: Sending a second detection instruction to a control module, a network module and an operation module in the vehicle computer respectively, the control module is used to flash the control software package in the debug version software, the network module is used to flash the network software package in the debug version software, and the operation module is used to flash the operation software package in the debug version software; Obtaining a version of the control software package to be tested in the control module, a version of the network software package to be tested in the network module, and a version of the operation software package to be tested in the operation module; If the second preset condition is met, determining that the debugging version software is successfully flashed; The second preset condition includes: receiving information fed back by the control module, the network module, and the operation module based on the second detection instruction; The control software package version to be tested, the network software package version to be tested, and the operation software package version to be tested are the same as the debugging version software.
9. A vehicle computer flashing device, characterized in that: The device comprises: A switching module, used for switching the working state of the vehicle computer to the flashing mode by calling a first mode switching instruction when the flashing of the official version software of the vehicle computer fails and the vehicle computer has debugging authority; A first flashing module, used for flashing the debugging version software into the vehicle computer in the flashing mode; The second flashing module is used to flash the official version software into the vehicle computer when the debugging version software is successfully flashed.
10. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the vehicle computer flashing method as described in any one of claims 1-8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the vehicle computer flashing method as described in any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the vehicle computer flashing method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Automobile controller software flashing method, system and equipment and storage medium
CN113127014A
Virtualization-based web system upgrade test method and server
CN113190248A
OTA flashing method and system, readable storage medium and vehicle
CN113448604A