Vehicle machine flashing method, device, equipment, medium and product

By switching to flashing mode after a failure to flash the vehicle's infotainment system and flashing the debug version first, followed by the official version, the problem of manual intervention required in existing technologies for flashing failures is solved, thus achieving automation and efficiency improvement in vehicle infotainment system flashing.

CN119781806BActive Publication Date: 2026-03-27BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-08
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing vehicle infotainment system flashing methods require manual intervention when flashing fails, resulting in wasted human resources and low flashing efficiency.

Method used

After the official version of the vehicle's infotainment system fails to be flashed, the system is switched to flashing mode by calling a mode switching command. In this mode, the debug version of the software is flashed first, followed by the official version of the software. Automated flashing is achieved by utilizing debug privileges.

Benefits of technology

It automates the vehicle infotainment system flashing process, avoids manual operation, reduces waste of human resources, and improves flashing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781806B_ABST
    Figure CN119781806B_ABST
Patent Text Reader

Abstract

The application provides a car machine flashing method, device, equipment, medium and product, wherein the method comprises the following steps: in the case that the official version software flashing of a car machine fails and the car machine has debugging permission, the working state of the car machine is switched to a flashing mode by calling a first mode switching instruction; in the flashing mode, debugging version software is flashed into the car machine; in the case that the flashing of the debugging version software succeeds, the official version software is flashed into the car machine. Through the above steps, the application can improve the flashing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of car machine, and in particular to a car machine flashing method, device, equipment, medium and product. BACKGROUND

[0002] Car machine refers to the abbreviation of the car-mounted information entertainment product installed in the car. The car machine can realize information communication between people and the car, and the car and the outside world (car and car) in function.

[0003] After the car machine reaches the factory, the version software of the car machine needs to be flashed to the current official version on the flashing platform before being installed in the car. However, during the flashing process, the car machine flashing often fails due to device stability. If the car machine flashing fails, the car machine with flashing failure needs to be taken off from the flashing platform for isolation, and then the official version software is re-flashed by the R&D personnel after the debugging version software is re-flashed, and then the car machine is re-flashed on the flashing platform. Therefore, the existing car machine flashing method causes waste of human resources and low efficiency of flashing. SUMMARY

[0004] The car machine flashing method, device, equipment, medium and product provided by the present application can solve the problem of low efficiency of car machine flashing.

[0005] In a first aspect, the present application provides a car machine flashing method, which comprises:

[0006] In the case that the official version software of the car machine fails to be flashed and the car machine has debugging permission, a first mode switching instruction is called to switch the working state of the car machine to a flashing mode;

[0007] In the flashing mode, the debugging version software is flashed into the car machine;

[0008] In the case that the flashing of the debugging version software is successful, the official version software is flashed into the car machine.

[0009] In a second aspect, the present application provides a car machine flashing device, which comprises:

[0010] A switching module is configured to, in the case that the official version software of the car machine fails to be flashed and the car machine has debugging permission, call a first mode switching instruction to switch the working state of the car machine to a flashing mode;

[0011] A first flashing module is configured to, in the flashing mode, flash the debugging version software into the car machine;

[0012] A second flashing module is configured to, in the case that the flashing of the debugging version software is successful, flash the official version software into the car machine.

[0013] In a third aspect, an electronic device is provided, and the electronic device comprises a processor and a memory storing computer program instructions.

[0014] The processor executes the computer program instructions to implement the vehicle machine flashing method in any one of the embodiments of the first aspect.

[0015] In a fourth aspect, a computer storage medium is provided, and the computer storage medium stores computer program instructions, and the computer program instructions are executed by a processor to implement the vehicle machine flashing method in any one of the embodiments of the third aspect.

[0016] In a fifth aspect, a computer program product is provided, and instructions in the computer program product are executed by a processor of an electronic device to cause the electronic device to perform the vehicle machine flashing method in any one of the embodiments of the third aspect.

[0017] In the vehicle machine flashing method, device, equipment, medium and product provided in the embodiments of the present application, in the case that the vehicle machine fails to flash the formal version software and the vehicle machine has debugging permission, the working state of the vehicle machine can be automatically switched to a flashing mode, and the debugging version software is flashed into the vehicle machine in the flashing mode, so as to prepare for flashing the formal version software of the vehicle machine again, and the second flashing can be entered immediately after the vehicle machine fails to flash, so that the problem of manual operation on the vehicle machine that fails to flash and isolation of the vehicle machine can be avoided, and the automatic flashing of the vehicle machine can be realized, the problem of waste of human resources caused by manual flashing can be reduced, and the flashing efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments of the present application. For those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0019] Figure 1 is a flowchart of a vehicle machine flashing method provided by an embodiment of the present application;

[0020] Figure 2 is a whole flowchart of a vehicle machine flashing method provided by an embodiment of the present application;

[0021] Figure 3 is a structural diagram of a vehicle machine flashing device provided by an embodiment of the present application;

[0022] Figure 4 is a structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable a more clearer understanding of the above-mentioned objects, features and advantages of the present disclosure, the schemes 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, a large number of specific details are set forth in order to facilitate a thorough understanding of the present disclosure, but the present disclosure can also be implemented in other manners different from those described herein; obviously, the embodiments described in the specification are only a part of the embodiments of the present disclosure, and not all the embodiments.

[0025] It should be noted that, in this document, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action, without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", "includes", "including" or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not include only those elements recited, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, an element defined by the statement "comprising a... " does not exclude the existence of additional identical elements in the process, method, article or apparatus that includes the element.

[0026] To solve the problems in the prior art, the present application provides a vehicle machine flashing method, device, equipment, medium and product.

[0027] The vehicle machine flashing method provided by the embodiments of the present application is introduced below.

[0028] Figure 1 The flowchart of the vehicle machine flashing method provided by an embodiment of the present application is shown. As shown in the figure, Figure 1 The method can specifically include the following steps:

[0029] Step 101, in the case that the official version software flashing of the vehicle machine fails and the vehicle machine has debugging permission, the working state of the vehicle machine is switched to a flashing mode by calling a first mode switching instruction;

[0030] Step 102, in the flashing mode, the debugging version software is flashed into the vehicle machine;

[0031] Step 103, in the case that the flashing of the debugging version software succeeds, the official version software is flashed into the vehicle machine.

[0032] In step 101, in the case that the official version software of the car machine fails to be written and the car machine has a debugging permission, the working state of the car machine is switched to a writing mode by calling a first mode switching instruction.

[0033] In the embodiment, the execution subject is a writing bench, and the writing processes are all performed on the writing bench. The writing bench comprises an upper computer. The upper computer controls the car machine to complete the writing by sending a control instruction.

[0034] Since after the official version of the car machine fails to be written, if the official version of the car machine is to be written again, the debugging software version needs to be written before the official version is written again, so that the official software version can be written again. Therefore, in the embodiment, the working state of the car machine is switched to the writing mode, and the debugging version software is written in the writing mode.

[0035] The writing mode can be a fastboot mode. The fastboot mode is a flashing mode of an Android device, and is mainly used for writing the debugging version software into the car machine through the USB data line on the upper computer. The debugging permission can be an Android debugging bridge (ADB) permission, which is used to obtain the flashing permission of the car machine. The mode switching instruction can be adb reboot bootloader. The mode switching instruction is an instruction corresponding to the debugging permission, and is used to switch the working state of the car machine to the fastboot mode.

[0036] It should be noted that before the mode switching instruction is called, the ADB reboot control instruction is run on the writing bench through the CMD command line to control the car machine to be powered on and powered off again, and then the mode switching instruction is called. The CMD is a Windows command prompt. The CMD is a command line operation tool of the Windows system. The user can complete the power-on and power-off of the car machine by inputting ADB reboot.

[0037] In step 102, the debugging version software is written into the car machine in the writing mode.

[0038] It should be noted that the car machine includes three modules, which are a control module, a network module and an operation module, wherein the operation module can be a system on chip (SOC), the SOC can be an Android system, which is an operating system directly interacting with users for the car machine, and carries system applications and multimedia applications of the upper layer. The control module can be a microcontroller unit (MCU): used to be responsible for the basic calculation and control of the SOC. The network module can be a 5G module, used to be responsible for the 5G networking module of the whole vehicle, mainly providing traffic online services and the like for the car machine.

[0039] The above-mentioned debugging version software includes an operation software package corresponding to the SOC, and a network software package corresponding to the 5G module. In the process of flashing the debugging version software, the operation software package needs to be flashed into the operation module, and the network software package needs to be flashed into the network module.

[0040] In step 103, in the case that the debugging version software is successfully flashed, the formal version software is flashed into the car machine.

[0041] In the embodiment, the judgment step that the debugging version software is successfully flashed includes:

[0042] Firstly, the bench obtains the network connection states of the control module, the network module and the operation module through the ping command in the CMD command line; secondly, the bench reads the software package versions in the control module, the network module and the operation module through adb; in the case that the network connection states of the control module, the network module and the operation module are all connected, and the software package versions in the network module and the operation module are the same as the debugging version software, the debugging version software is successfully flashed.

[0043] In an 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, firstly, ping 172.31.2.51, ping 172.31.2.53, and ping 172.31.2.54 can all get a reply, so the network connection state is considered to be connected. Secondly, the bench can read the software versions of the corresponding SOC, MCU and 5G through adb, that is, it is judged to be successfully flashed.

[0044] After the debugging version software is successfully flashed, the flashing bench reads the formal version software stored in the host computer and flashes the formal version software into the car machine.

[0045] In the embodiment, in the case that the vehicle machine fails to write the formal version software and has the debugging permission, the working state of the vehicle machine can be automatically switched to the writing mode, and the debugging version software is written into the vehicle machine in the writing mode, so as to prepare for writing the formal version software of the vehicle machine again, and the second writing can be performed immediately after the vehicle machine fails to write, so that the problem of manually operating the vehicle machine and isolating the vehicle machine can be avoided, the automatic writing of the vehicle machine can be realized, the problem of wasting human resources caused by manual writing can be reduced, and the writing efficiency is improved.

[0046] In an embodiment of the present application, the writing of the debugging version software into the vehicle machine comprises:

[0047] controlling the vehicle machine to run the writing script corresponding to the operation software package in the debugging version software, so as to write the operation software package into the vehicle machine;

[0048] in the case that the operation software package is completed, calling the writing instruction corresponding to the debugging permission to write the network software package into the vehicle machine.

[0049] In the embodiment, when the debugging version software is written, the operation software package and the network software package need to be written into the vehicle machine, so that in the case that the operation software package is written, the writing script corresponding to the operation software package can be set in the debugging version software, and after the script is run, the operation software package can be directly written into the operation module in the vehicle machine. Specifically, the script can be a fastboot_all_and_erase_all.bat script.

[0050] After the writing of the operation software package is completed, the writing of the network software package is performed, and the network software package can be written by calling the writing instruction, wherein the writing instruction comprises an import instruction, a permission instruction, a writing instruction and an exit instruction.

[0051] In an embodiment, the calling of the writing instruction corresponding to the debugging permission to write the network software package into the vehicle machine comprises:

[0052] the calling of the opening instruction controls the vehicle machine to open the root permission;

[0053] the calling of the import instruction imports the network software package into the network module in the vehicle machine;

[0054] the calling of the permission instruction enables the network module to enter the open permission mode;

[0055] the calling of the writing instruction writes the network software package into the network module;

[0056] The exit instruction is called to make the network module exit the open permission mode.

[0057] In the embodiment, the start instruction, the import instruction, the permission instruction, the write instruction and the exit instruction are all instructions corresponding to the debugging permission, that is, only under the debugging permission, the above instructions can be run.

[0058] In an example, the start instruction can be adb root, that is, to start the root permission of the vehicle machine, wherein under the root permission, the writing bench can have the highest permission of the vehicle machine, at this time, the writing bench can perform all operations of adding, deleting, modifying and inquiring any file (including system file) in the vehicle machine. Under the root permission, the subsequent steps can be performed.

[0059] The import instruction can be adb push 5G software package / data / modefm / 5G, that 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, that is, to switch the 5G module of the vehicle machine to the edl mode, and lsusb is used to check whether the vehicle machine enters the 9008 mode, wherein the edl mode of the 5G module corresponds to the 9008 mode of the vehicle machine, and both are used to make the network module enter the open permission mode, wherein the open permission module is that the network module opens the control permission of itself to the writing bench, so that the writing bench can write the network software package to the network module.

[0061] The write instruction can be QFirehose-f / data / modemfw / 5G-n, which is used to write the 5G software package to the network module.

[0062] The exit instruction 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 written.

[0063] In the embodiment, the writing bench is used to call the writing instruction to write the debugging version software to the vehicle machine, so that the automatic writing of the writing bench is realized, manual operation is not needed, the labor cost is reduced, and the writing efficiency is improved.

[0064] In an embodiment of the present application, when the writing of the formal version software of the vehicle machine fails and the vehicle machine has a debugging permission, a first mode switching instruction is called to switch the working state of the vehicle machine to a writing mode, which includes:

[0065] In a case where the official version software of the car machine fails to be written, and the car machine has a debugging permission, a first restart instruction corresponding to the debugging permission is called to control the car machine to restart;

[0066] In a case where the car machine completes the restart, a first mode switching instruction is called to switch the working state of the car machine to a writing mode.

[0067] In the embodiment, the first restart instruction can be adb reboot. In a case where the car machine has the debugging permission, to ensure that the debugging version software can be successfully written, the car machine needs to be controlled to restart and the writing mode of the car machine needs to be opened.

[0068] In an embodiment of the present application, before the debugging version software is written into the car machine in the writing mode, the method further comprises:

[0069] In a case where the official version software of the car machine fails to be written, and the car machine does not have a debugging permission, a preset writing tool is connected with the car machine in response to a received connection instruction, so that the car machine opens the debugging permission through the writing tool;

[0070] A second mode switching instruction is called to switch the working state of the car machine to a writing mode.

[0071] In the embodiment, the connection instruction can be manually sent or automatically triggered by a writing rack in a case where it is detected that the car machine does not have the debugging permission. The writing tool is connected with the car machine, so that the car machine has the ADB permission, and the writing of the debugging version software can be performed.

[0072] The second mode switching instruction can be mdb-fastboot_hu_f, so that the car machine enters the fastboot mode. Then, the writing rack writes the debugging version software into the car machine.

[0073] In the embodiment, in a case where the car machine does not have the debugging permission, the car machine is connected with the writing tool, so that the car machine has the debugging permission, and the writing of the debugging version software of the car machine is completed. The success rate of the car machine in writing the debugging version software is improved, so that the success rate of the official version software is improved.

[0074] In an embodiment of the present application, after the official version software is written into the car machine in a case where the writing of the debugging version software is successful, the method further comprises:

[0075] send a first detection instruction to a control module, a network module and an operation module in the car machine respectively, the control module is used for writing a control software package in the official version software, the network module is used for writing a network software package in the official version software, and the operation module is used for writing an operation software package in the official version software;

[0076] acquire a to-be-tested control software package version in the control module, a to-be-tested network software package version in the network module and a to-be-tested operation software package version in the operation module;

[0077] in the case of satisfying a first preset condition, it is determined that the official version software is successfully written:

[0078] the first preset condition comprises:

[0079] information fed back by the control module, the network module and the operation module based on the first detection instruction is received;

[0080] the to-be-tested control software package version, the to-be-tested network software package version and the to-be-tested operation software package version are the same as the official version software.

[0081] In the embodiment, after the official version software is written into the car machine, the writing result is needed to judge whether the official version software needs to be re-written, so that whether the official version software is successfully written can be determined by acquiring the network connection state of each module in the car machine and the to-be-tested version software existing in the car machine.

[0082] Specifically, the first detection instruction is a ping instruction, and the network connection state of each module in the car machine is acquired by pinging the IP address of each module in the car machine. Whether the network connection state is connected or not is used as one of the conditions for determining whether the car machine is successfully written. The to-be-tested software version includes a to-be-tested control software package version, a to-be-tested network software package version and a to-be-tested operation software package version, and whether the to-be-tested version software and the version of each software package in the official version software are the same is used as one of the conditions for determining whether the writing is successful.

[0083] When the IP address of each module in the car machine is pinged, if each module in the car machine replies, it is considered that the network connection of each module is normal. In the case that the network connection of each module is normal, if the to-be-tested control software package version is the same as the software package version in the official version software, the to-be-tested network software package version is the same as the network software package version in the official version software, and the to-be-tested operation software package version is the same as the operation software package version in the official version software, it is considered that the official version software is successfully written.

[0084] It should be noted that when the judgment of the writing result of the formal version software is performed, the network connection state of the control module, the network module and the operation module and the version of the software package need to be acquired, and when the judgment of the writing result of the debugging version software is performed, only the network connection state of the network module and the operation module and the version of the software package need to be acquired.

[0085] In the embodiment, after the formal version software is re-written in the car machine, whether the formal version software is successfully written is judged by acquiring the connection state of each module in the car machine and the version of the software package, so that the writing of the car machine is ensured to be successful, the misjudgment is reduced, and the working efficiency of the writing is improved.

[0086] In an embodiment of the present application, the writing of the formal version software into the car machine in the case that the writing of the debugging version software is successful comprises:

[0087] A second restart instruction corresponding to the debugging permission is called to control the car machine to restart;

[0088] In the case that the car machine completes the restart, the formal version software is written into the car machine.

[0089] In the embodiment, the second restart instruction can be adb reboot. After the writing of the debugging version software is completed in the car machine, the car machine needs to be restarted to ensure that the formal version software can be successfully written.

[0090] After the restart of the car machine is completed, the network software package of the formal version software is written into the network module of the car machine, the operation software package of the formal version software is written into the operation module of the car machine, and the control software package of the formal version software is written into the control module of the car machine.

[0091] Here, it should be noted that, unlike the writing of the debugging version software, when the writing of the debugging version software is performed in the case that the writing of the formal version software fails, only the operation software package and the network software package need to be written into the car machine, and the control software package does not need to be written.

[0092] In the embodiment, during the writing of the formal version software, the writing success rate of the car machine is improved by controlling the car machine to restart and writing the software package in each module in the car machine, and the writing of the car machine is ensured to be completed normally.

[0093] In an embodiment of the present application, whether the writing of the debugging version software is successful is determined by the following steps:

[0094] sending a second detection instruction to a control module, a network module and an operation module in the car machine respectively, the control module being configured to write the control software package in the debugging version software, the network module being configured to write the network software package in the debugging version software, and the operation module being configured to write the operation software package in the debugging version software;

[0095] obtaining a to-be-tested control software package version in the control module, a to-be-tested network software package version in the network module and a to-be-tested operation software package version in the operation module;

[0096] in a case where a second preset condition is met, determining that the debugging version software is successfully written;

[0097] the second preset condition comprises:

[0098] receiving information fed back by the control module, the network module and the operation module based on the second detection instruction;

[0099] the to-be-tested control software package version, the to-be-tested network software package version and the to-be-tested operation software package version are the same as the debugging version software.

[0100] In the embodiment, the second detection instruction is the same as the first detection instruction, and the condition for determining that the debugging version software is successfully written is the same as the condition for determining that the formal version software is successfully written, which will not be described herein.

[0101] Figure 2 Fig. 1 shows a schematic diagram of the overall flow of the car machine writing method in an embodiment of the present application.

[0102] As shown in Fig. 1, step 201, the car machine is inserted, i.e., the writing bench is connected to the car machine; Figure 2

[0103] step 202, the car machine is started to check the state, i.e., the network connection states of the operation module, the network module and the control module in the car machine are obtained through a ping instruction;

[0104] step 203, the writing is started, i.e., the formal version software is written;

[0105] step 204, whether the writing is successful, i.e., whether the formal version software is successfully written is determined;

[0106] step 205, the label machine prints a label, i.e., after the formal version software is successfully written, a label is printed by the label machine to indicate that the car machine has been successfully written;

[0107] step 206, the writing is completed;

[0108] ​Step 207, the host computer restarts the vehicle computer, that is, after the failure of writing the official version software, the host computer in the writing bench controls the vehicle computer to restart;

[0109] Step 208, load the same software number test version software, that is, after restarting, rewrite the debug version software.

[0110] Figure 3 A structure diagram of a vehicle computer writing device is shown, and only parts related to the embodiments of the present application are shown for ease of illustration.

[0111] Referring to Figure 3 The vehicle computer writing device 300 can include:

[0112] The switching module 301 is configured to switch the working state of the vehicle computer to a writing mode by calling a first mode switching instruction when the official version software of the vehicle computer fails to be written and the vehicle computer has a debug permission.

[0113] The first writing module 302 is configured to write a debug version software into the vehicle computer in the writing mode.

[0114] The second writing module 303 is configured to write the official version software into the vehicle computer when the debug version software is successfully written.

[0115] Optionally, the first writing module 302 includes:

[0116] The first control submodule is configured to control the vehicle computer to run a writing script corresponding to the operation software package in the debug version software, so as to write the operation software package into the vehicle computer.

[0117] The first calling submodule is configured to call a writing instruction corresponding to the debug permission to write the network software package into the vehicle computer when the operation software package is successfully written.

[0118] Optionally, the first calling submodule includes:

[0119] The first calling unit is configured to call the opening instruction to control the vehicle computer to open the root permission.

[0120] The second calling unit is configured to call the import instruction to import the network software package into a network module in the vehicle computer.

[0121] The third calling unit is configured to call the permission instruction to enable the network module to enter an open permission mode.

[0122] The fourth calling unit is configured to call the writing instruction to write the network software package into the network module.

[0123] a fifth calling unit, configured 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 sub-module, configured to, in a case where official version software of the car machine fails to be flashed, and the car machine has a debugging permission, call a first restart instruction corresponding to the debugging permission to control the car machine to restart;

[0126] a switching sub-module, configured to, in a case where the car machine completes the restart, switch a working state of the car machine to a flashing mode by calling a first mode switching instruction.

[0127] Optionally, the car machine flashing device 300 further includes:

[0128] a response module, configured to, in a case where the official version software of the car machine fails to be flashed, and the car machine does not have the debugging permission, respond to the received connection instruction to connect a preset flashing tool to the car machine to make the car machine open the debugging permission through the flashing tool;

[0129] a calling module, configured to call a second mode switching instruction to switch the working state of the car machine to the flashing mode.

[0130] Optionally, the car machine flashing device 300 further includes:

[0131] a first sending module, configured to send a first detection instruction to a control module, a network module and an operation module in the car machine respectively, the control module being configured to flash a control software package in the official version software, the network module being configured to flash a network software package in the official version software, and the operation module being configured to flash an operation software package in the official version software;

[0132] a first obtaining module, configured to obtain a to-be-tested control software package version in the control module, a to-be-tested network software package version in the network module and a to-be-tested operation software package version in the operation module;

[0133] a first determining module, configured to determine that the official version software is successfully flashed in a case where 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 to-be-tested control software package version, the to-be-tested network software package version, and the to-be-tested operation software package version are the same as the formal version software.

[0137] Optionally, the second flashing module 303 comprises:

[0138] The control submodule is configured to invoke a second restart instruction corresponding to the debugging permission, and control the car machine to restart.

[0139] The flashing submodule is configured to flash the formal version software into the car machine in a case where the car machine completes the restart.

[0140] Optionally, the car machine flashing device 300 further comprises:

[0141] The second sending module is configured to send a second detection instruction to a control module, a network module, and an operation module in the car machine respectively, the control module being configured to flash a control software package in the debugging version software, the network module being configured to flash a network software package in the debugging version software, and the operation module being configured to flash an operation software package in the debugging version software.

[0142] The second obtaining module is configured to obtain a to-be-tested control software package version in the control module, a to-be-tested network software package version in the network module, and a to-be-tested operation software package version in the operation module.

[0143] In a case where a second preset condition is met, it is determined that the flashing of the debugging version software is successful.

[0144] The second preset condition comprises:

[0145] Receiving information fed back by the control module, the network module, and the operation module based on the second detection instruction.

[0146] The to-be-tested control software package version, the to-be-tested network software package version, and the to-be-tested operation software package version are the same as the debugging version software.

[0147] The car machine flashing device 300 provided by the embodiments of the present application can implement each process implemented by the foregoing method embodiments, and thus repeated descriptions are not given here.

[0148] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is taken as an example, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the above described functions. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of each functional unit and module are only for convenient distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0149] Figure 4 A hardware structure schematic diagram of an electronic device provided by an embodiment of the present application is shown.

[0150] The device can include a processor 401 and a memory 402 storing program instructions.

[0151] The processor 401 executes the program to implement the steps in any of the above method embodiments.

[0152] For example, the program can 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 can be a series of program instruction segments that can complete a specific function, which is used to describe the execution process of the program in the device.

[0153] Specifically, the above processor 401 can include a central processing unit (CPU), or a specific integrated circuit (ASIC), or can be configured as one or more integrated circuits that implement one or more embodiments of the present application.

[0154] The memory 402 can include mass storage for data or instructions. As an example and not by way of limitation, the memory 402 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc (e.g., a compact disc (CD) or a digital versatile disc (DVD)), a solid-state drive (SSD), a USB drive, or a combination of two or more of these. Where appropriate, the memory 402 can include removable or non-removable (or fixed) media. Where appropriate, the memory 402 can be internal or external to the integrated gateway disaster recovery device. In particular embodiments, the memory 402 is non-volatile, solid-state memory.

[0155] The memory can include read-only memory (ROM), random-access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software that, when executed (by one or more processors), is operable to access the data and / or instructions as described with reference to the methods according to the aspects of the present disclosure.

[0156] The processor 401 implements any of the above-described methods by reading and executing program instructions stored in the memory 402.

[0157] In one example, the electronic device further includes a communication interface 403 and a bus 310. The processor 401, the memory 402, and the communication interface 403 are connected through the bus 310 and complete communication therebetween.

[0158] The communication interface 403 is mainly used to realize the communication between the modules, devices, units, and / or equipment in the embodiments of the present application.

[0159] Bus 410 includes hardware, software, or both, to couple components of the online data traffic metering device to each other and to couple components to other systems. For example, but not limited to, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these. Where suitable, bus 310 can include one or more buses. Although specific busses are described and illustrated in the embodiments, the application contemplates any suitable bus or interconnect.

[0160] In addition, in combination with the method in the above-mentioned embodiments, the embodiments of the present application can provide a storage medium for implementation. The storage medium has program instructions stored thereon; the program instructions are executed by a processor to implement any one of the methods in the above-mentioned embodiments.

[0161] The embodiments of the present application further provide a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to execute programs or instructions, to implement various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0162] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0163] The embodiments of the present application provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0164] It should be understood that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-known methods are omitted here. In the above-mentioned embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are 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 steps, after understanding the spirit of the present application.

[0165] The functional modules shown in the structural block diagram above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. The "machine-readable medium" can include any medium that can store or transfer information. Examples of the machine-readable medium include an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an erasable ROM (EROM), a floppy diskette, a CD-ROM, an optical disk, a hard disk, a fiber optic medium, a radio frequency (RF) link, and the like. The code segments can be downloaded via a computer network, such as the Internet, an intranet, and the like.

[0166] It should also be noted that the example embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be performed simultaneously.

[0167] The above describes the aspects of the present application with reference to the flowcharts and / or block diagrams of the methods, apparatuses (systems) and program products according to the embodiments of the present application. It should be understood that each block in the flowcharts and / or block diagrams, and the combination of blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus enable the implementation of the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams. 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 should also be understood that each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can also be implemented by special hardware that performs the specified functions or actions, or can be implemented by a combination of special hardware and computer instructions.

[0168] The above is only a specific embodiment of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, modules and units can refer to the corresponding processes in the foregoing method embodiments, which will not be described here. It should be understood that the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.

Claims

1. A method for flashing a vehicle infotainment system, characterized in that, The method includes: If the official version of the vehicle infotainment system fails to be flashed, and the vehicle infotainment system has debugging privileges, the working state of the vehicle infotainment system is switched to flashing mode by calling the first mode switching command. In the flashing mode, the debug version of the software is flashed into the vehicle's infotainment system; If the debug version software is successfully flashed, the official version software will be flashed into the vehicle's infotainment system. The debug version of the 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 system, and the network software package is used to provide network connectivity for the vehicle system; The step of flashing the debug version software into the vehicle's infotainment system includes: The vehicle infotainment system is controlled to run the flashing script corresponding to the operation software package in the debug version software, so that the operation software package is flashed into the vehicle infotainment system; Once the operation software package has been flashed, the flashing command corresponding to the debugging permission is invoked to flash the network software package into the vehicle's infotainment system.

2. The vehicle infotainment system flashing method as described in claim 1, characterized in that, The flashing instructions include start instructions, import instructions, permission instructions, write instructions, and exit instructions; The invocation of the flashing command corresponding to the debugging permission to flash the network software package to the vehicle's infotainment system includes: The activation command is invoked to control the vehicle system to grant root access; The import command is invoked to import the network software package into the network module of the vehicle's infotainment system; The permission command is invoked to put the network module into open permission mode; The write command is invoked to flash the network software package into the network module; The exit command is invoked to cause the network module to exit the open permission mode.

3. The vehicle infotainment system flashing method as described in claim 1, characterized in that, When the official version of the vehicle's infotainment system fails to be flashed, and the system has debugging privileges, the system switches its operating state to flashing mode by invoking a first mode switching command, including: If the official version of the vehicle infotainment system fails to be flashed, and the vehicle infotainment system has debugging privileges, the first restart command corresponding to the debugging privileges is invoked to control the vehicle infotainment system to restart. When the vehicle system has restarted, the operating state of the vehicle system is switched to flashing mode by calling the first mode switching command.

4. The vehicle infotainment system flashing method as described in claim 1, characterized in that, Before flashing the debug version software to the vehicle infotainment system in the flashing mode, the method further includes: If flashing the official version of the vehicle infotainment system fails and the vehicle infotainment system does not have debugging privileges, in response to the received connection command, a preset flashing tool is connected to the vehicle infotainment system so that the vehicle infotainment system can gain the debugging privileges through the flashing tool. The second mode switching command is invoked to switch the working state of the vehicle system to flashing mode.

5. The vehicle infotainment system flashing method as described in claim 1, characterized in that, After the debug version software is successfully flashed, the official version software is flashed into the vehicle's infotainment system. The method further includes: The first detection command is sent to the control module, network module and operation module in the vehicle system respectively. The control module is used to flash the control software package in the official version of the software, the network module is used to flash the network software package in the official version of the software, and the operation module is used to flash the operation software package in the official version of the software. Obtain the version of the control software package under test in the control module, the version of the network software package under test in the network module, and the version of the operation software package under test in the operation module; If the first preset condition is met, the official version of the software is determined to have been successfully flashed: The first preset conditions include: The system receives information from the control module, the network module, and the operation module based on the first detection command. The versions of the control software package under test, the network software package under test, and the operation software package under test are the same as the official version of the software.

6. The vehicle infotainment system flashing method as described in claim 5, characterized in that, If the debug version software is successfully flashed, flashing the official version software to the vehicle's infotainment system includes: The second restart command corresponding to the debugging permission is invoked to control the vehicle system to restart. Once the vehicle's infotainment system has restarted, the official version of the software will be flashed onto the system.

7. The vehicle infotainment system flashing method as described in claim 1, characterized in that, The successful flashing of the debug version software is confirmed through the following steps: The second detection command is sent to the control module, network module and operation module in the vehicle system respectively. The control module is used to flash the control software package in the debug version of the software, the network module is used to flash the network software package in the debug version of the software, and the operation module is used to flash the operation software package in the debug version of the software. Obtain the version of the control software package under test in the control module, the version of the network software package under test in the network module, and the version of the operation software package under test in the operation module; If the second preset condition is met, the debug version software is determined to have been successfully flashed; The second preset condition includes: The system receives information from the control module, the network module, and the operation module based on the second detection command. The versions of the control software package under test, the network software package under test, and the operation software package under test are the same as the debug version software.

8. A vehicle infotainment system flashing device, characterized in that, The device includes: The switching module is used to switch the working state of the vehicle infotainment system to flashing mode by calling the first mode switching command when the official version of the software fails to be flashed and the vehicle infotainment system has debugging privileges. The first flashing module is used to flash the debug version software to the vehicle's infotainment system in the flashing mode. The second flashing module is used to flash the official version of the software to the vehicle system when the debug version software is successfully flashed. The debug version of the 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 system, and the network software package is used to provide network connectivity for the vehicle system; The first flash module includes: The first control submodule is used to control the vehicle infotainment system to run the flashing script in the debug version software that corresponds to the operation software package, so that the operation software package is flashed into the vehicle infotainment system. The first calling submodule is used to call the flashing instruction corresponding to the debugging permission when the operation software package has been flashed, so as to flash the network software package to the vehicle system.

9. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the vehicle system flashing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the vehicle infotainment system flashing method as described in any one of claims 1-7.

11. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the vehicle system flashing method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Automobile controller software flashing method, system and equipment and storage medium

    CN113127014A

  • OTA flashing method and system, readable storage medium and vehicle

    CN113448604A