A program flashing method, device, equipment and storage medium

By defining the information of multiple target controllers in the flash message, and using VBOX and gateways for parallel flashing, the problem of high bus load when multiple devices are flashed at the same time in automotive OTA upgrades is solved, and efficient OTA upgrades are achieved. .

CN116456301BActive Publication Date: 2024-09-03CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310330099.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-09-03
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

During the automotive OTA upgrade process, when multiple devices need to be flashed simultaneously, the existing technology can only carry one device information to be flashed, resulting in high bus load and low transmission efficiency.

Method used

By defining the information of at least two target controllers to be flashed in the data area field of the flash message, the vehicle-mounted VBOX is used to obtain and locally transmit the flash message. After receiving it, the target device performs parallel processing based on the identity identification and program data information. Flashing supports data frame transmission in Ethernet and UDS protocol formats, enabling parallel flashing of multiple target controllers.

Benefits of technology

It reduces the amount of messages transmitted by the bus, reduces the bus load, shortens the flash upgrade time, and improves the efficiency of OTA upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116456301B
    Figure CN116456301B
Patent Text Reader

Abstract

The present application provides a program flashing method, apparatus, device and storage medium, which support parallel flashing of programs in a single piece, between domains, within a domain and in the whole domain. Since the data area field of the flashing message obtained by the vehicle-mounted VBOX defines the information of at least two target controllers to be flashed, parallel flashing of multiple target controllers can be achieved through one message, which greatly shortens the flashing upgrade time compared with serial flashing, reduces the amount of messages transmitted in the bus, and alleviates the transmission load of the bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of program flashing technology, and in particular to a program flashing method, device, equipment and storage medium. Background Art

[0002] Automotive OTA upgrades refer to firmware upgrades and software upgrades over the air. OTA not only brings a more convenient way to upgrade vehicles, but also allows consumers to experience a smarter and more convenient car experience. By downloading new software update packages from a remote server over the network to upgrade the system itself, system defects can be quickly repaired, products and user experience can be improved quickly, and time and costs can be saved. However, when it is necessary to upgrade the components of a car, since one message can only carry the information of one component to be flashed, when multiple devices need to be flashed at the same time, multiple messages need to be transmitted, and the bus load of the entire vehicle system is high. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a program flashing method to solve the above technical problems.

[0004] On the one hand, a program flashing method is provided, which is applied to a car, and the method comprises:

[0005] The vehicle-mounted VBOX obtains a flashing message; the flashing message includes a target address field and a data area field, the target address field is used to indicate the address of the target device that needs to receive the flashing message and perform message flashing processing based on the flashing message, and the data area field includes the identity of at least two target controllers to be program-flashed, and the program data information to be flashed of each of the target controllers;

[0006] The vehicle-mounted VBOX transmits the flashing message locally;

[0007] When the target device receives the flashing message and determines that the address indicated by the target address field matches its own actual address, the program flashing is completed for the corresponding target controller based on the identity identifier and the program data information.

[0008] In one of the embodiments, the data area field includes a program data indication information field and a program package field, and the program data information to be flashed to each target controller is determined by the content in the program data indication information field and the content in the program package field.

[0009] In one of the embodiments, the program data indication information field includes a program index field and a program data length field.

[0010] In one embodiment, the target device includes the target controller, and the step of flashing the program to the corresponding target controller based on the identity identifier and the program data information includes:

[0011] When the target controller determines that the identity in the flash message matches its own identity, the target controller determines the corresponding program data information to be flashed from the program package field according to the content in the corresponding program index field and the content in the program data length field;

[0012] The target controller completes program flashing according to the program data information.

[0013] In one embodiment, the target device includes a gateway, and the step of flashing the program to the corresponding target controller based on the identity identifier and the program data information includes:

[0014] The gateway determines the program data information to be flashed for each target controller from the program package field according to the content in the program index field and the content in the program data length field;

[0015] The gateway parses the identity identifier and the corresponding program data information into a target data frame in a target format, and transmits the target data frame locally, wherein the target data frame is a data frame in a USD protocol format;

[0016] When the target controller receives the target data frame, if it is determined that the identity included in the target data frame matches its own identity, the target controller completes program flashing according to the program data information in the target data frame.

[0017] In one of the embodiments, after the target controller receives the target data frame, the method includes:

[0018] When the target controller determines that the identity included in the target data frame does not match its own identity, the target data frame is discarded.

[0019] In one embodiment, after the vehicle-mounted VBOX transmits the flashing message locally, the method includes:

[0020] When a device on the vehicle receives the flashing message, if it is determined that the address indicated by the target address field does not match its own actual address, the flashing message is discarded.

[0021] Through the program flashing method, device, equipment and storage medium provided by the present application, information of at least two target controllers to be flashed can be defined in the data area field of the flashing message, so that parallel flashing of multiple target controllers can be achieved through one message, reducing the amount of messages transmitted in the bus and alleviating the transmission load of the bus. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A flowchart of a program flashing method provided in Embodiment 1 of the present application;

[0023] Figure 2 This is an architecture diagram of a vehicle system according to an embodiment of the present application;

[0024] Figure 3 A schematic diagram of upgrading a single target controller with Ethernet function provided in Embodiment 1 of the present application;

[0025] Figure 4 A schematic diagram of the structure of a flash message for upgrading a single target controller with Ethernet function provided in the first embodiment of the present application;

[0026] Figure 5 A schematic diagram of upgrading a single target controller without Ethernet function provided in Embodiment 1 of the present application;

[0027] Figure 6 A schematic diagram of the structure of a flash message for upgrading a single target controller without Ethernet function provided in the first embodiment of the present application;

[0028] Figure 7 A schematic diagram of message conversion between Ethernet and UDS formats provided in Example 1 of the present application;

[0029] Figure 8 A schematic diagram of the data structure of the flash message provided in Example 1 of the present application;

[0030] Fig. 9 A schematic diagram of the Ethernet frame transmission frame format provided in Example 1 of the present application;

[0031] Fig.10 A schematic diagram of performing a global ECU parallel upgrade provided in Embodiment 1 of the present application;

[0032] Fig.11 A schematic diagram of the structure of a flashing message for performing a global ECU parallel upgrade provided in the first embodiment of the present application;

[0033] Fig.12 A schematic diagram of performing parallel upgrade of group domain ECUs provided in Embodiment 1 of the present application;

[0034] Fig.13A schematic diagram of the structure of a flashing message for performing parallel upgrade of group domain ECUs provided in the first embodiment of the present application;

[0035] Fig.14 A schematic diagram of the structure of a program flashing device provided in Embodiment 2 of the present application;

[0036] Fig.15 This is a schematic diagram of the structure of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0038] Embodiment 1:

[0039] In order to realize OTA upgrade and flashing of ECU, and achieve the purpose of parallel flashing of ECU parts in the whole domain, between domains (cross-domain), and in each domain, the embodiment of the present application provides a program flashing method. Through the program flashing method provided by the embodiment of the present application, the whole domain parallel flashing can be realized, which mainly involves the OTA upgrade master control UMC module, the OTA upgrade agent UA module and the OAT upgrade slave control US module, etc. Each module realizes its corresponding function in VBOX, the vehicle gateway VGW and the ECU to be flashed.

[0040] The program flashing method provided in the embodiment of the present application can be found in Figure 1 As shown, the following steps are included:

[0041] S11: The vehicle-mounted VBOX obtains a flash message; the flash message includes a target address field and a data area field, the target address field is used to indicate the address of the target device that needs to receive the flash message and perform message flash processing based on the flash message, and the data area field includes the identity identifiers of at least two target controllers to be program flashed, and program data information to be flashed for each target controller.

[0042] S12: The vehicle-mounted VBOX transmits the flash message locally.

[0043] S13: When the target device receives the flashing message and determines that the address indicated by the target address field matches its own actual address, the program flashing is completed for the corresponding target controller based on the identity identifier and program data information in the data area field.

[0044] The specific process of each of the above steps is described in detail below.

[0045] The vehicle-mounted VBOX in the embodiment of the present application can obtain a flash message from a remote server through the network to complete the program flashing of the target controller. The flash message in the embodiment of the present application includes at least a target address field and a data area field. Among them, the target address field is used to indicate the address of the target device that needs to receive the flash message and perform message flashing processing based on the flash message, for example, it can indicate the IP address of the target device. It can be understood that when multiple target devices are required to receive the flash message, these multiple target devices can be pre-configured in the same network, that is, a multicast address can be pre-configured for these multiple target devices, and the target address field can be the multicast address of these multiple target devices. The target device in the embodiment of the present application includes but is not limited to at least one of a gateway and a target controller. When the target device includes a gateway, the gateway can process the flash message and send it to the target controller, or the gateway can also directly send the flash message to the target controller for the target controller to complete the program flashing.

[0046] In the embodiment of the present application, the identity of the target controller in the data area field refers to an identifier that can identify the unique identity of the target controller. Generally speaking, each device on the car has its own unique unicast address, and the identity here can be the unique unicast address of the target controller itself. Of course, in other embodiments, the unique identity of the target controller can also be identified by other means, such as pre-configuring a unique number for each controller, etc. At this time, the unique number of the target controller to be flashed needs to be configured in the flash message. When the target controller receives the flash message, it is to determine whether the unique number in the flash message is consistent with its own unique number.

[0047] The data area field in the embodiment of the present application may also include a program data indication information field and a program package field, and the program data information to be flashed for each target controller is determined by the content in the corresponding program data indication information field and the content in the program package field. Specifically, for a target controller to be flashed, the program data content to be flashed for the target controller can be determined from the program package field according to the content in the corresponding program data indication information field.

[0048] In an optional implementation, the program data indication information field may include a program index field and a program data length field, and the program data content to be refreshed of the target controller may be determined from the program package field according to the content in the program index field and the program data length field. Exemplarily, the content in the program index field may represent the starting index address of the program data content to be refreshed in the program package field, and the program data length field may represent the length of the program data content to be refreshed, and the program data content to be refreshed may be determined in the program package field according to the starting index address and the length.

[0049] Of course, in another optional implementation, the program data indication information field may include multiple program index fields. For example, the contents of these multiple program index fields may respectively represent the starting index address and the ending index address of the program data content to be flashed in the program package field, and the program data content to be refreshed is determined from the program package field by the starting index address and the ending index address.

[0050] It can be understood that the on-board VBOX locally transmits the flashing message means that the on-board VBOX transmits the flashing message locally in the car, for example, see Figure 2 As shown, the vehicle-mounted VBOX can directly send the flashing message to the target controller, for example, to the target controller ECU1~ECUn, or the flashing message can be forwarded to the target controller under the corresponding gateway through the local gateway VGW1...VGWn.

[0051] It should be noted that the target device in the embodiments of the present application includes but is not limited to a target controller to be flashed and a gateway in a vehicle system.

[0052] In a first example, the target device includes a target controller, and step S13 may include:

[0053] When the target controller determines that the identity in the flash message matches its own identity, it determines the corresponding program data information to be flashed from the program package field according to the content in the corresponding program index field and the content in the program data length field;

[0054] The target controller completes program flashing according to the program data information.

[0055] It is understandable that the flashing message in the embodiment of the present application can be an Ethernet message, and the numerous controllers in various domains of the vehicle system can be controllers supporting Ethernet functions, that is, these controllers can parse Ethernet messages. It should be noted that the flashing message can also be a message in other formats.

[0056] Continuing to use the above first example as an example to explain, when the multiple target controllers to be flashed support Ethernet function, these multiple target controllers can be configured with the same local broadcast address, or configured in the same multicast group. When it is necessary to flash the program of these target controllers, the content in the target address field in the flash message can be set to the local broadcast address or the multicast address, so that these target controllers can all receive the flash message. After receiving the flash message, these target controllers determine that the address indicated by the target address field matches their actual address, and then determine whether the identity in the flash message matches their own identity. When it is determined that the flash message contains its own identity, the corresponding program data information to be flashed can be determined from the program package field according to the content in the corresponding program index field and the content in the program data length field, and then the program flash is completed according to the program data information. Of course, if a controller in the vehicle system receives the flash message, but determines that the address indicated by the target address field in the flash message does not match its actual address, the flash message can be discarded.

[0057] See also Figure 3 and Figure 4 , Figure 3 and Figure 4 This is a specific example of the first example mentioned above, which is a specific instance of upgrading a single target controller with Ethernet function. The vehicle-mounted VBOX can receive the flash message sent by the network end. The flash message in this example also includes the IPHead field. The IPHead field includes the target address field and other configuration fields. In other configuration fields, the protocol number can be set to 0x06, that is, TCP protocol is supported. In other configuration fields, the source IP address is set to 192.168.69.100, representing the address of VBOX, and the target address field is set to 192.168.69.113, representing the address of the target controller ECUn+1. In the data area field, that is, the DOIP field, VBOX is set as the source logical ID, the target controller is ECUn+1, and the target controller to be flashed is The number of controllers is 1, the data content length is 46, and the index address in the program index field is 0. After the vehicle-mounted VBOX obtains the flashing message, the flashing message is sent from the VBOX and forwarded to the target controller ECUn+1 through the gateway VGW1. The target controller ECUn+1 finds that the address in the target address field in the flashing message matches its own address. After receiving the flashing message, the US module in the target controller ECUn+1 further parses the content in the data area field, and finds that the identity identifier (logical address) in the field is equal to its own, which is the data sent to itself. According to the content in the program index field and the program data length field, the data is taken out to upgrade and flash the ECU components.

[0058] In the second example, the target device includes a gateway, and step S13 may include:

[0059] The gateway determines the program data information to be flashed for each target controller from the program package field according to the content in the program index field and the content in the program data length field;

[0060] The gateway parses the identity and the corresponding program data information into a target data frame in a target format and transmits the target data frame locally;

[0061] When the target controller receives the target data frame, if it is determined that the identity included in the target data frame matches its own identity, it completes the program flashing according to the program data information in the target data frame.

[0062] It is understandable that when the target controller determines that the identity included in the target data frame does not match its own identity, the target data frame may be discarded.

[0063] Continuing to use the above second example as an example to illustrate, when the target controller to be flashed does not support the Ethernet function, the gateway to which the target controller in the vehicle system is connected can first process the flash message, and after processing the flash message into a message in a format that can be processed by the target controller, it is forwarded to the target controller. The gateway and the target controller to be flashed can be configured with the same local broadcast address, or configured in the same multicast group. When the target controller needs to be program-flashed, the content in the target address field in the flash message can be set to the local broadcast address or the multicast address, so that the gateway can receive the flash message, process the flash message, and send the processed message to the target controller. Of course, in this example, the content in the target address field in the flash message can also be directly set to the unicast address of the corresponding gateway, so that the gateway can also receive the flash message. Of course, if a gateway in the vehicle system receives the flash message, but determines that the address indicated by the target address field in the flash message does not match its actual address, the flash message can be discarded.

[0064] The target data frame in the embodiment of the present application may be a data frame in the USD protocol format, see Figure 5 and Figure 6 , Figure 5 and Figure 6This is a specific example in the second example above, which is a specific instance of upgrading a single target controller without Ethernet function. The vehicle-mounted VBOX can receive the flash message sent by the network end. The flash message in this example also includes the IPHead field. The IPHead field includes the target address field and other configuration fields. In other configuration fields, the protocol number can be set to 0x06, that is, TCP protocol is supported. In other configuration fields, the source IP address is set to 192.168.69.100, representing the address of VBOX, and the target address field is set to 192.168.69.251, representing the address of the gateway VGWn. In the data area field, that is, the DOIP field, VBOX is set as the source logical ID, the target controller is ECUz, the number of target controllers to be flashed is 1, the data content length is 64, and the program index field is The index address is 0. After the vehicle-mounted VBOX obtains the flash message, the flash message is sent from the VBOX to the gateway VGWn. The UA module in the gateway VGWn finds that the address in the target address field in the flash message matches its own address. After receiving the flash message, the UA module of VGWn parses the IP data packet, that is, the program data information, into a UDS protocol format data frame. After the parsing is completed, the UDS protocol format data frame is sent to the target controller ECUz. When the target controller ECUz receives the UDS protocol format data frame, if it determines that the identity (logical address) contained in the UDS protocol format data frame matches its own identity, it completes the program flash according to the program data information in the UDS protocol format data frame.

[0065] It is understandable that in the vehicle system, the gateways and the VBOX and the gateway can be connected via Ethernet cables, that is, the flash messages can be transmitted via Ethernet. VBOX and VGW can be connected to the controllers under each domain via Ethernet cables or CAN buses. Of course, in some other embodiments, the gateways, the VBOX and the gateway VGW, and the controllers under the gateway and VGW can all be connected via Ethernet. For target controllers that do not support Ethernet functions, the corresponding gateway can send the processed flash messages, that is, the target data frames, to the target controller to be flashed via the CAN bus. The domains of the vehicle system are generally divided into: power domain, chassis domain, body domain, autonomous driving domain, infotainment domain, etc., and multiple ECU components are connected under each domain. The IP address and ECUID (logical address) of the ECU component are the unique identifiers of its entire domain. The IP addresses of VBOX, VGW, and ECU components can all have their own unique unicast addresses. For example, the unicast address can be 192.168.19.xx. VBOX, VGW, and ECU components can be pre-configured with the same broadcast address, such as 255.255.255.255. The ECU components can also be grouped in advance according to the upgrade and flashing requirements. For example, the multicast address of group one can be 239.10.0.255, and the multicast address of group two can be 239.20.0.255. VBOX, VGW, and ECU can have multiple multicast addresses.

[0066] In some embodiments, the numerous devices in various domains of the vehicle system may include devices that support Ethernet and devices that support UDS. When OTA upgrades and flashes each ECU, two different message formats must be used during the transmission process. Message conversion must be performed between Ethernet and UDS formats so that each ECU can correctly identify and process the corresponding data. This function is undertaken by the UA and US modules. For details, see Figure 7 shown.

[0067] When the flashing message is an Ethernet message, only one Ethernet message needs to be transmitted to achieve parallel upgrade and flashing of multiple ECUs in the entire domain. Since Ethernet messages can transmit large amounts of data and have a fast response speed, remote upgrade and flashing via Ethernet is an inevitable trend in vehicle network upgrades.

[0068] For example, when the flash message is an Ethernet message, the IP protocol, TCP protocol, UDP protocol, and custom message encapsulation based on DOIP message can be used to implement OTA global upgrade flashing. The data structure of the Ethernet message can be as follows: Figure 8 As shown, the following is a detailed description:

[0069] Maximum length of DOIP area = Ethframe length: 1518B-(Ethframe header length: 14B+FCS length: 4B)-IP header length: 20B-TCP / UDP header length: 20B=1460B, see Fig. 9 The top row.

[0070] DOIP data structure = DOIP header + DOIP data = 8B + 1444B = 1452B. The length of DOIP data is less than the maximum length of the DOIP area. Figure 8 Shown in the middle row.

[0071] An Ethernet message has 1444 bytes of space, and the logical address, program index field and program data length field of each ECU can be pre-set to occupy a total of 6 bytes. The minimum data length of each IP packet is 64 bytes, and there are 4 bytes for the source address and the number of ECUs to be written. The data content length is 46 to 1286, and the total data length of all ECUs to be flashed does not exceed 1286 bytes.

[0072] Assuming that a maximum of 28 ECUs are flashed at the same time, the byte space required is:

[0073] 28*6+4+46*28=1460>1444; does not meet the conditions.

[0074] Assuming that a maximum of 27 ECUs are flashed at the same time, the byte space required is:

[0075] 27*6+4+46*27=1408<1444.

[0076] Therefore, in this example, up to 27 ECUs can be flashed simultaneously.

[0077] The first 27*6+4=166 is fixed to 166 bytes, and the last 1278 bytes are the data in the flash data area. The entire Ethernet frame transmission frame format can be as follows: Fig. 9 shown.

[0078] In the third example, the target device includes a target controller and a gateway. Fig.10 and Fig.11 , Fig.10 and Fig.11This is an example of OTA global ECU parallel upgrade in the third example, in which the vehicle system includes ECUs that support DOIP (Ethernet) function and ECUs that do not support DOIP (Ethernet) function. The flash message in this example also includes an IPHead field, which includes a target address field and other configuration fields. In other configuration fields, the protocol number can be set to 0x11, that is, the UCP protocol is supported. In other configuration fields, the source IP address is set to 192.168.69.100, representing the address of VBOX, and the target address field is set to 255.255.255.255, representing the local broadcast address. All local devices can receive the flash message. In the data area field, that is, the DOIP field, VBOX is set as the source logical ID, and the target controller is the identity of each ECU, such as the logical address of each ECU. The number of ECUs to be flashed is 27, and the data content length is 1286 bytes. The cumulative data length of all flashed ECUs cannot exceed 1286 bytes. Since the address in the target address field is a broadcast address, all VBOX, VGW1..VGWn, and each ECU that supports Ethernet function can receive the flash message. When the device that receives the flash message determines that the address indicated by the target address field matches its own actual address, it will parse the content in the data area field.

[0079] Among them, when each ECU component supporting Ethernet function determines that the address indicated by the target address field in the flash message matches its actual address, the US module further parses the content in the data area field, and finds that the identity (logical address) of the target ECU is equal to its own, and the data is sent to itself. According to the content in the program index field and the program data length field, the data is taken out to upgrade the ECU component. For each ECU component that does not support Ethernet function, when its gateway VGW1...VGWn determines that the address indicated by the target address field in the flash message matches its own actual address, it will parse the flash message into a UDS protocol format data frame, and after parsing, it will be sent to the CAN bus under each gateway. The US module in each ECU on the CAN bus will further parse the UDS protocol format data frame. If each ECU component determines that the identity identifier (logical address) contained in the UDS protocol format data frame matches its own identity identifier and is data sent to itself, it will complete the program flashing according to the program data information in the UDS protocol format data frame. If each ECU component determines that the identity identifier (logical address) contained in the UDS protocol format data frame does not match its own identity identifier and is not data sent to itself, it can discard the data.

[0080] In the fourth example, the target device includes a target controller and a gateway. Fig.12 and Fig.13 , Fig.12 and Fig.13 This is an example of parallel upgrade of group domain ECUs in the fourth example. The processing flow is the same as Fig.10 and Fig.11 Similar, no further elaboration is required here.

[0081] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0082] The program flashing method provided in the embodiment of the present application supports parallel flashing of programs in a single piece, between domains, within a domain, and in the entire domain. Parallel flashing of multiple target controllers can be achieved through one message, which greatly shortens the flashing upgrade time compared to serial flashing, reduces the amount of messages transmitted in the bus, and reduces the transmission load of the bus.

[0083] Embodiment 2:

[0084] Based on the same inventive concept, the present application embodiment provides a program flashing device, which is applied to automobiles, see Fig.14 As shown, it should be understood that the specific functions of the program flashing device can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here.

[0085] The program flashing device includes at least one software functional unit that can be stored in a memory in the form of software or firmware or fixed in the operating system of the device. Specifically, the program flashing device includes:

[0086] The vehicle-mounted VBOX acquisition module 1401 is used to acquire a flashing message; the flashing message includes a target address field and a data area field, the target address field is used to indicate the address of a target device that needs to receive the flashing message and perform message flashing processing based on the flashing message, and the data area field includes the identity of at least two target controllers to be program-flashed, and the program data information to be flashed of each of the target controllers;

[0087] The vehicle-mounted VBOX transmission module 1402 is used to transmit the flashing message locally;

[0088] The flash control module 1403 is used to complete program flashing for the corresponding target controller based on the identity identifier and the program data information when the target device receives the flash message and determines that the address indicated by the target address field matches its own actual address.

[0089] It should be noted that, for the sake of brevity, the contents described in the above embodiments will not be repeated in this embodiment.

[0090] Embodiment three:

[0091] This embodiment provides an electronic device. Fig.15 As shown, the electronic device includes a processor 1501 and a memory 1502, the memory 1502 stores a computer program, the processor 1501 and the memory 1502 communicate via a communication bus, and the processor 1501 executes the computer program to implement the steps of the method in the above-mentioned embodiment 1, which will not be repeated here. It can be understood that Fig.15 The structure shown is for illustration only. The electronic device may also include Fig.15 More or fewer components as shown, or with Fig.15 It should be noted that the electronic device in the embodiment of the present application can be arranged in a car.

[0092] The processor 1501 may be an integrated circuit chip with signal processing capabilities. The processor 1501 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It may implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0093] The memory 1502 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.

[0094] This embodiment also provides a computer-readable storage medium, such as a floppy disk, a CD, a hard disk, a flash memory, a USB flash disk, an SD card, an MMC card, etc., in which one or more programs for implementing the above steps are stored. The one or more programs can be executed by one or more processors 301 to implement the steps of the method in the above embodiment 1, which will not be repeated here.

[0095] It should be noted that the diagram provided in the present embodiment only illustrates the basic concept of the present invention in a schematic manner, so the diagram only shows the components related to the present invention rather than drawing according to the number, shape and size of the components during actual implementation. The type, quantity and ratio of each component during actual implementation can be a random change, and the component layout type may also be more complicated. The structure, ratio, size, etc. illustrated in the drawings of the present specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions that the present invention can implement, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effect that the present invention can produce and the purpose that can be achieved. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of narration, and are not used to limit the scope of the present invention. The change or adjustment of its relative relationship should also be regarded as the scope of the present invention without substantially changing the technical content.

[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0097] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A program flashing method, characterized in that: Applied to automobiles, the method comprises: The vehicle-mounted VBOX obtains a flashing message; the flashing message includes a target address field and a data area field, the target address field is used to indicate the address of the target device that needs to receive the flashing message and perform message flashing processing based on the flashing message, and the data area field includes the identity of at least two target controllers to be program-flashed, and the program data information to be flashed of each of the target controllers; The vehicle-mounted VBOX transmits the flashing message locally; When the target device receives the flashing message and determines that the address indicated by the target address field matches its own actual address, the program flashing is completed for the corresponding target controller based on the identity identifier and the program data information; The data area field includes a program data indication information field and a program package field. The program data information to be flashed to each target controller is determined by the content in the program data indication information field and the content in the program package field.

2. The program flashing method according to claim 1, characterized in that: The program data indication information field includes a program index field and a program data length field.

3. The program flashing method according to claim 2, characterized in that: The target device includes the target controller, and the step of flashing the program to the corresponding target controller based on the identity identifier and the program data information includes: When the target controller determines that the identity in the flash message matches its own identity, the target controller determines the corresponding program data information to be flashed from the program package field according to the content in the corresponding program index field and the content in the program data length field; The target controller completes program flashing according to the program data information.

4. The program flashing method according to claim 2, characterized in that: The target device includes a gateway, and the program flashing of the corresponding target controller based on the identity identifier and the program data information includes: The gateway determines the program data information to be flashed for each target controller from the program package field according to the content in the program index field and the content in the program data length field; The gateway parses the identity identifier and the corresponding program data information into a target data frame in a target format, and transmits the target data frame locally, wherein the target data frame is a data frame in a USD protocol format; When the target controller receives the target data frame, if it is determined that the identity included in the target data frame matches its own identity, the program flashing is completed according to the program data information in the target data frame.

5. The program flashing method according to claim 4, characterized in that: After the target controller receives the target data frame, the method includes: When the target controller determines that the identity included in the target data frame does not match its own identity, the target data frame is discarded.

6. The program flashing method according to claim 1, characterized in that: After the vehicle-mounted VBOX transmits the flashing message locally, the method includes: When a device on the vehicle receives the flashing message, if it is determined that the address indicated by the target address field does not match its own actual address, the flashing message is discarded.

7. A program flashing device, characterized in that: Applied to automobiles, the device comprises: The vehicle-mounted VBOX acquisition module is used to acquire a flashing message; the flashing message includes a target address field and a data area field, the target address field is used to indicate the address of a target device that needs to receive the flashing message and perform message flashing processing based on the flashing message, and the data area field includes the identity of at least two target controllers to be program-flashed, and the program data information to be flashed of each of the target controllers; The vehicle-mounted VBOX transmission module is used to transmit the flashing message locally; A flash control module, configured to complete program flashing for the corresponding target controller based on the identity identifier and the program data information when the target device receives the flash message and determines that the address indicated by the target address field matches its own actual address; The data area field includes a program data indication information field and a program package field. The program data information to be flashed to each target controller is determined by the content in the program data indication information field and the content in the program package field.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor executes the computer program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the method according to any one of claims 1 to 6 is implemented.