Vehicle control command execution method, device, electronic device and storage medium

By converting vehicle control requests into diagnostic messages in vehicle OTA mode and forwarding them to the body controller through the vehicle gateway, the problem of vehicle control operation cannot be performed during OTA upgrade is solved, and the normal operation of the vehicle in OTA mode is realized and Improved user experience.

CN118200866BActive Publication Date: 2024-11-01CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410269705.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2024-11-01
Estimated Expiration
2044-03-11

AI Technical Summary

Technical Problem

During the vehicle OTA upgrade process, the body controller cannot receive and process requests such as opening or closing of the vehicle door, resulting in user needs being unable to achieve.

Method used

When the vehicle is in OTA mode, it receives the user's vehicle control request and converts it into a diagnostic message, forwards it to the vehicle body controller through the vehicle gateway, and receives and converts it back to the application message to execute the vehicle control command.

Benefits of technology

It realizes the normal execution of specific vehicle control operations in OTA mode, improving vehicle control safety and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118200866B_ABST
    Figure CN118200866B_ABST
Patent Text Reader

Abstract

The present application relates to the field of vehicle control technology, and provides a vehicle control command execution method, device, electronic device and storage medium. The method converts the received vehicle control request corresponding to one or more vehicle control operations in a specific vehicle control operation into a message when the vehicle is in OTA mode, converts the vehicle control request application message into a vehicle control request diagnostic message and sends it to the vehicle gateway and then to the body controller, receives the vehicle control command diagnostic message sent by the body controller, converts the vehicle control command diagnostic message into a vehicle control command application message, and then parses and executes the vehicle control command, thereby realizing the normal implementation of specific vehicle control operations in OTA mode, improving vehicle control safety and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle control command execution method, device, electronic device and storage medium. Background Art

[0002] Over-the-Air Technology (OTA) upgrades refer to firmware and software upgrades based on over-the-air technology. 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 Internet to upgrade the system, vehicle system defects can be quickly repaired, rapid iterations can be made, and vehicle products and user experience can be improved, while saving time and money for both vehicle suppliers and users.

[0003] When using OTA to upgrade the target Electronic Control Unit (ECU), the Telematics BOX (TBOX) will shut down the application message and function addressing for the entire vehicle, and shut down the communication of the application message on the bus. At this time, the ECUs cannot communicate with each other because the application message is shut down.

[0004] However, during the OTA upgrade process, there is still a need to open or close the doors normally, which is controlled by the body control module (BCM). During the OTA upgrade, the application message and application message bus communication between the body control module and the ECU such as the door controller are closed, and the BCM cannot receive and process requests to open or close the doors, so the above user needs cannot be met. Summary of the invention

[0005] In view of this, an embodiment of the present application provides a vehicle control command execution method, device, electronic device and storage medium to solve the problem in the prior art that when the vehicle is OTA upgraded, all application messages are disabled and therefore no vehicle control operations can be performed.

[0006] According to a first aspect of an embodiment of the present application, a vehicle control command execution method is provided, comprising:

[0007] When the vehicle is in the space download technology OTA mode, it receives the vehicle control request sent by the user and generates a vehicle control request application message;

[0008] In response to determining that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations, converting the vehicle control request application message into a vehicle control request diagnostic message;

[0009] Sending the vehicle control request diagnosis message to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnosis message to the body controller after determining that the vehicle control request diagnosis message is valid;

[0010] receiving a vehicle control command diagnostic message from the vehicle gateway, wherein the vehicle control command diagnostic message is generated by the body controller according to the vehicle control request and sent to the vehicle gateway;

[0011] In response to determining that the vehicle control command diagnostic message is valid, converting the vehicle control command diagnostic message into a vehicle control command application message;

[0012] Parse the vehicle control command application message and execute the vehicle control command.

[0013] A second aspect of an embodiment of the present application provides a vehicle control command execution device, including:

[0014] A generation module is configured to receive a vehicle control request sent by a user and generate a vehicle control request application message when the vehicle is in an over-the-air download technology OTA mode;

[0015] a conversion module configured to, in response to determining that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations, convert the vehicle control request application message into a vehicle control request diagnostic message;

[0016] A communication module is configured to send the vehicle control request diagnosis message to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnosis message to the body controller after determining that the vehicle control request diagnosis message is valid;

[0017] The communication module is further configured to receive a vehicle control command diagnostic message from the vehicle gateway, wherein the vehicle control command diagnostic message is generated by the body controller according to the vehicle control request and sent to the vehicle gateway;

[0018] The conversion module is further configured to, in response to determining that the vehicle control command diagnostic message is valid, convert the vehicle control command diagnostic message into a vehicle control command application message;

[0019] The execution module is configured to parse the vehicle control command application message and execute the vehicle control command.

[0020] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0021] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0022] Compared with the prior art, the beneficial effect of the embodiments of the present application is as follows: when the vehicle is in OTA mode, the embodiments of the present application converts the received vehicle control requests corresponding to one or more vehicle control operations in specific vehicle control operations into messages, converts the vehicle control request application messages into vehicle control request diagnostic messages, sends them to the vehicle gateway and then to the body controller, receives the vehicle control command diagnostic messages sent by the body controller, converts the vehicle control command diagnostic messages into vehicle control command application messages, and then parses and executes the vehicle control commands, thereby realizing the normal implementation of specific vehicle control operations in OTA mode, improving vehicle control safety and enhancing user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1 It is a scenario diagram of an application scenario of an embodiment of the present application.

[0025] Figure 2 It is a flow chart of a vehicle control command execution method provided in an embodiment of the present application.

[0026] Figure 3 It is a flow chart of another vehicle control command execution method provided in an embodiment of the present application.

[0027] Figure 4 It is a flow chart of a method provided by an embodiment of the present application for a vehicle gateway to determine whether a vehicle control request diagnostic message is valid.

[0028] Figure 5 It is a flow chart of a method for a vehicle body controller to generate a vehicle control command diagnostic message provided in an embodiment of the present application.

[0029] Figure 6 It is a schematic diagram of the connection relationship between the various communication modules provided in the embodiment of the present application.

[0030] Figure 7 It is a schematic diagram of the structure of the US provided in the embodiment of the present application.

[0031] Figure 8 It is a schematic diagram of the structure of the UA provided in the embodiment of the present application.

[0032] Fig. 9 It is a schematic diagram of a vehicle door device provided in an embodiment of the present application.

[0033] Fig.10 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0035] A vehicle control command execution method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0036] Figure 1 1 is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario may include an OTA upgrade master control unit UMC, an OTA upgrade agent UA and an OTA upgrade slave control unit US.

[0037] In order to achieve the purpose of OTA upgrade package download and upgrade ECU parts, OTA download and upgrade processing technology can be used. This technology is mainly implemented in the vehicle remote communication module VBOX, the vehicle gateway VGW and the ECU parts to be flashed. VBOX and VGW can be connected via 100M Ethernet, and VGW can be connected to each ECU component under it via the CAN bus, and one or more ECU components are hung below it. External devices, such as diagnostic instruments, perform fault diagnosis through the on-board automatic diagnostic system (On-Board Diagnostics, OBD) port. VBOX can also be connected to a private network access point (Access Point Name, APN) through a 4G or 5G network.

[0038] As mentioned above, when using OTA to upgrade the target ECU, TBOX will close the application message and function addressing for the whole vehicle, and close the communication of the application message on the bus. At this time, the ECUs cannot communicate with each other because the application message is closed.

[0039] However, during the OTA upgrade process, there is still a need to open or close the door normally, which is controlled by the BCM. During the OTA upgrade, the application message and application message bus communication between the body controller and the ECU such as the door controller are closed, and the BCM cannot receive and process requests to open or close the door, so the above user needs cannot be met.

[0040] In view of this, an embodiment of the present application provides a vehicle control command execution method. When the vehicle is in OTA mode, the received vehicle control request corresponding to one or more vehicle control operations in a specific vehicle control operation is converted into a message, and its vehicle control request application message is converted into a vehicle control request diagnostic message and sent to the whole vehicle gateway and then to the body controller, and the vehicle control command diagnostic message sent by the body controller is received. After converting the vehicle control command diagnostic message into a vehicle control command application message, the vehicle control command is parsed and executed, thereby realizing the normal implementation of specific vehicle control operations in OTA mode, improving vehicle control safety and enhancing user experience.

[0041] Figure 2 FIG. 1 is a flow chart of a vehicle control command execution method provided by an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0042] In step S201, when the vehicle is in the space download technology OTA mode, a vehicle control request sent by a user is received and a vehicle control request application message is generated.

[0043] In step S202 , in response to determining that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations, the vehicle control request application message is converted into a vehicle control request diagnosis message.

[0044] In step S203, the vehicle control request diagnosis message is sent to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnosis message to the body controller after determining that the vehicle control request diagnosis message is valid.

[0045] In step S204, a vehicle control command diagnosis message is received from the vehicle gateway. The vehicle control command diagnosis message is generated by the body controller according to the vehicle control request and sent to the vehicle gateway.

[0046] In step S205 , in response to determining that the vehicle control command diagnosis message is valid, the vehicle control command diagnosis message is converted into a vehicle control command application message.

[0047] In step S206, the vehicle control command application message is parsed and the vehicle control command is executed.

[0048] In an embodiment of the present application, the vehicle control command execution method can be executed by an ECU, wherein the ECU is connected to the VGW as a UA as a US during the vehicle OTA upgrade process.

[0049] In an embodiment of the present application, when the vehicle is in OTA mode, after receiving a vehicle control request sent by a user, an application message corresponding to the vehicle control request can be generated in the ECU. Further, it can be determined whether the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations. Among them, the specific vehicle control operation refers to the vehicle control operation that is allowed to be executed when the vehicle is in OTA mode, such as opening or closing the door operation, opening or closing the window operation, etc. Among them, the door may include the left front door, right front door, left rear door, right rear door, trunk door and front trunk door of the vehicle.

[0050] In an embodiment of the present application, when it is determined that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations, that is, when it is determined that the vehicle control request is a request that the vehicle still needs to respond to in OTA mode, the vehicle control request application message can be converted into a vehicle control request diagnostic message, and the converted vehicle control request diagnostic message can be sent to the VGW, so that the VGW forwards the vehicle control request diagnostic message to the body controller after determining that the received vehicle control request diagnostic message is valid.

[0051] In the embodiment of the present application, after sending the vehicle control request diagnostic message to the VGW, the ECU can receive the vehicle control command diagnostic message from the VGW. The vehicle control command diagnostic message is the vehicle control command message sent by the body controller after receiving the vehicle control request. Further, the ECU can determine whether the received vehicle control command diagnostic message is valid. If so, the vehicle control command diagnostic message is converted into a vehicle control command application message, and finally the command code in the vehicle control command application message is parsed, and the vehicle control operation is executed according to the command code.

[0052] According to the technical solution provided in the embodiment of the present application, when the vehicle is in OTA mode, the received vehicle control request corresponding to one or more vehicle control operations in the specific vehicle control operation is converted into a vehicle control request diagnostic message, which is sent to the whole vehicle gateway and then to the body controller, and the vehicle control command diagnostic message sent by the body controller is received, and the vehicle control command diagnostic message is converted into a vehicle control command application message, and then the vehicle control command is parsed and executed, thereby realizing the normal implementation of specific vehicle control operations in OTA mode, improving vehicle control safety and enhancing user experience.

[0053] In the embodiment of the present application, the message format of each message can be (source address, destination address, data length, command code). Among them, the source address in the vehicle control request application message is the application message address of the ECU that generates the vehicle control request application message, and the destination address is the application message address of the body controller. The source address in the vehicle control request diagnosis message is the diagnosis message address of the ECU that generates the vehicle control request application message, and the destination address is the diagnosis message address of the body controller.

[0054] Further, converting the vehicle control request application message into the vehicle control request diagnosis message may be, converting the application message source address in the vehicle control request application message into the diagnosis request source address, and converting the application message destination address in the vehicle control request application message into the diagnosis request destination address. In some implementations, converting the vehicle control request application message into the vehicle control request diagnosis message may also be, converting the application message source address in the vehicle control request application message into the diagnosis request source address, converting the application message destination address in the vehicle control request application message into the diagnosis request destination address, and mapping the command code in the vehicle control request application message into the command code in the vehicle control request diagnosis message.

[0055] In an example, taking the ECU as a front door left handle controller, assuming that the application message address of the front door left handle controller is A-HCUFL, the diagnostic message address is D-HCUFL, and the diagnostic response message address is D-HCUFL+0x40, and the application message address of the body controller is A-BCM, the diagnostic message address is D-BCM, and the diagnostic response message address is D-BCM+0x40, then when the user presses the left front door handle of the vehicle to open the left front door when the vehicle is in OTA mode, the front door left handle controller first determines whether the left front door is in a closed state, and if so, generates a vehicle control request application message (A-HCUFL, A-BCM, 01, 01) corresponding to the vehicle control operation of opening the left front door, wherein A-HCUFL is the application message source address of the application message, A-BCM is the application message destination address, the first 01 indicates the data length of the application message, and the second 01 is the command code, representing opening the door.

[0056] The command code can be used to determine whether the vehicle control operation corresponding to the vehicle control request application message is one or more of the specific vehicle control operations. If so, the vehicle control request application message is converted into a vehicle control request diagnostic message. In one example, the conversion can be achieved by replacing only the source address and the destination address. At this time, the converted vehicle control request diagnostic message is (D-HCUFL, D-BCM, 01, 01). In some implementations, the command code can also be mapped and converted to improve the security of data transmission.

[0057] In the embodiment of the present application, the source address in the vehicle control command diagnostic message is the source address of the diagnostic response message of the body controller, and the destination address is the source address of the diagnostic response message of the ECU. The source address in the vehicle control command application message is the application message address of the body controller, and the destination address is the application message address of the ECU.

[0058] Further, converting the vehicle control command diagnostic message into the vehicle control command application message may be, converting the diagnostic response source address in the vehicle control command diagnostic message into the application message source address, and converting the diagnostic response destination address in the vehicle control command diagnostic message into the application message destination address. In some implementations, converting the vehicle control command diagnostic message into the vehicle control command application message may also be, converting the diagnostic response source address in the vehicle control command diagnostic message into the application message source address, converting the diagnostic response destination address in the vehicle control command diagnostic message into the application message destination address, and mapping the command code in the vehicle control command diagnostic message into the command code in the vehicle control command application message.

[0059] That is to say, the method of converting the vehicle control command diagnostic message into the vehicle control command application message is basically the same as the method of converting the vehicle control request application message into the vehicle control request diagnostic message, either by modifying the source address and destination address in the message, or by modifying the source address, destination address and command code in the message at the same time.

[0060] Still taking the above-mentioned vehicle control operation of opening the left front door as an example, the generated vehicle control command diagnostic message is (D-BCM+0x40, D-HCUFL+0x40, 01, 01), and the converted vehicle control command application message can be (A-BCM, A-HCUFL, 01, 01), or (A-BCM, A-HCUFL, 01, *), where * is the result of command code mapping processing, and the mapping processing can be, for example, encryption processing, or other processing. After parsing the vehicle control command application message to obtain the command code 01, the ECU can execute the corresponding vehicle control operation to open the left front door.

[0061] Figure 3 is a flow chart of another vehicle control command execution method provided by an embodiment of the present application. Figure 3 Steps S301 to S302 in the embodiment shown are Figure 2 Steps S201 to S202 in the illustrated embodiment are substantially the same. Figure 3 Steps S304 to S306 in the illustrated embodiment are Figure 2 Steps S204 to S206 in the illustrated embodiment are substantially the same and will not be described in detail herein. Figure 3 As shown, the method also includes the following steps:

[0062] In step S303, in response to determining that the message format of the vehicle control request diagnostic message is legal, the source address is the ECU address and the destination address is the body controller address, the vehicle control request diagnostic message is sent to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnostic message to the body controller after determining that the vehicle control request diagnostic message is valid.

[0063] In an embodiment of the present application, after generating a vehicle control request diagnostic message, the ECU can first determine whether the message format of the vehicle control request diagnostic message is legal. When the message format of the vehicle control request diagnostic message is legal, it can further determine whether the source address of the vehicle control request diagnostic message is the local address of the ECU and whether the destination address is the BCM address. If so, the vehicle control request diagnostic message is sent to the vehicle gateway, so that the vehicle gateway can forward the vehicle control request diagnostic message to the body controller after determining that the vehicle control request diagnostic message is valid.

[0064] In this way, it is possible to conveniently and quickly check again whether the vehicle control operation in the sent vehicle control request diagnostic message is one or more of the specific vehicle control operations, thereby avoiding the execution of other unnecessary vehicle control operations during the vehicle OTA upgrade, resulting in vehicle OTA upgrade errors or upgrade failures.

[0065] Figure 4 FIG. 1 is a flow chart of a method for determining whether a vehicle control request diagnosis message is valid by a vehicle gateway according to an embodiment of the present application. Figure 4 As shown, the method comprises the following steps:

[0066] In step S401, a vehicle control request message is received.

[0067] In step S402 , in response to determining that the vehicle control request message is a vehicle control request diagnosis message, when it is determined that the source address of the vehicle control request diagnosis message is an ECU address and the destination address is a body controller address, the vehicle control request diagnosis message is determined to be valid.

[0068] In step S403, in response to determining that the vehicle control request message is a vehicle control request application message, the vehicle control request application message is converted into a vehicle control request diagnostic message, and when it is determined that the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the body controller address, the vehicle control request diagnostic message is determined to be valid.

[0069] In the embodiment of the present application, when the VGW receives the vehicle control request message, it first determines whether the vehicle control request message is a vehicle control request application message or a vehicle control request diagnosis message. This is because in certain specific scenarios, such as when the vehicle has just entered the OTA mode, the VGW may receive a vehicle control request application message from the ECU when the vehicle is currently in the OTA mode.

[0070] At this time, if it is determined that the vehicle control request message is a vehicle control request diagnosis message, whether the vehicle control request diagnosis message is valid can be determined by judging whether the source address of the vehicle control request diagnosis message is the ECU address and whether the destination address is the BCM address.

[0071] On the other hand, if it is determined that the vehicle control request message is a vehicle control request application message, the vehicle control request application message can be first converted into a vehicle control request diagnostic message, and then the vehicle control request diagnostic message is determined to be valid by judging whether the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the BCM address. If it is determined that the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the body controller address, the vehicle control request diagnostic message is determined to be valid.

[0072] Figure 5 FIG. 1 is a flow chart of a method for a vehicle body controller to generate a vehicle control command diagnostic message provided by an embodiment of the present application. Figure 5 As shown, the method comprises the following steps:

[0073] In step S501, a vehicle control request message is received.

[0074] In step S502 , in response to determining that the vehicle control request message is a vehicle control request diagnosis message and the source address of the vehicle control request diagnosis message is an ECU address, the vehicle control request diagnosis message is converted into a vehicle control request application message.

[0075] In step S503, the vehicle control request application message is parsed, and a vehicle control command application message is generated based on the parsing result.

[0076] In step S504 , in response to determining that the vehicle control operation in the vehicle control command is one or more of the specific vehicle control operations, the vehicle control command application message is converted into a vehicle control command diagnosis message.

[0077] In the embodiment of the present application, after receiving the vehicle control request message from the VGW, the BCM can first determine whether the message is a diagnostic message. If not, that is, it is determined that the message is an application message, the vehicle control request message can be directly discarded. If so, that is, it is determined that the message is a diagnostic message, the source address and destination address of the message are further determined. When it is determined that the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the BCM address, the vehicle control request diagnostic message is converted into a vehicle control request application message.

[0078] Next, the BCM can parse the vehicle control request application message and generate a vehicle control command application message based on the parsing result. After generating the vehicle control command application message, it can be determined again whether the vehicle control operation in the vehicle control command is one or more of the specific vehicle control operations. If so, the vehicle control command application message is converted into a vehicle control command diagnostic message.

[0079] In this way, through message conversion and multiple confirmations in BCM, it is possible to receive vehicle control requests and generate vehicle control command diagnostic messages that can be transmitted in vehicle OTA mode based on the vehicle control requests, and ensure that the transmitted diagnostic messages are messages corresponding to specific vehicle control operations, thereby avoiding the execution of other unnecessary vehicle control operations during the vehicle OTA upgrade, which may cause vehicle OTA upgrade errors or upgrade failures.

[0080] In an embodiment of the present application, the ECU determines that the vehicle control command diagnostic message is valid by receiving the vehicle control command message; in response to determining that the vehicle control command message is a vehicle control command diagnostic message, and the source address of the vehicle control command diagnostic message is the body controller address, and the destination address is the ECU address, determining that the vehicle control command diagnostic message is valid.

[0081] In the embodiment of the present application, the specific vehicle control operation is a vehicle control operation that is allowed to be executed when the vehicle is in OTA mode. The specific vehicle control operation can be set according to actual needs and is not limited here.

[0082] Taking the specific vehicle control operation of opening or closing the left front door, right front door, left rear door, right rear door and tailgate (i.e., trunk door) as an example, the module composition and workflow in each controller are described in detail below. Figure 6 Schematic diagram of the connection relationship of each communication module provided in the embodiment of the present application. Figure 6 As shown, VGW can be used as UA in vehicle OTA mode, and BCM and various door controllers, including front door left handle controller (HCUFL), front door right handle controller (HCUFR), rear door left handle controller (HCURL), rear door right handle controller (HCURR) and back door controller (PLG), can be used as US in vehicle OTA mode. Each US is connected to UA, and the vehicle control operations in HCUFL, HCUFR, HCURL, HCURR and PLG are controlled and executed by BCM.

[0083] Among them, the application message address of HCUFL is A-HCUFL, the diagnostic request address is D-HCUFL, and the diagnostic response address is D-HCUFL+0x40; the application message address of HCUFR is A-HCUFR, the diagnostic request address is D-HCUFR, and the diagnostic response address is D-HCUFR+0x40; the application message address of HCURL is A-HCURL, the diagnostic request address is D-HCURL, and the diagnostic response address is D-HCURL+0x40; the application message address of HCURR is A-HCURR, the diagnostic request address is D-HCURR, and the diagnostic response address is D-HCURR+0x40; the application message address of PLG is A-PLG, the diagnostic request address is D-PLG, and the diagnostic response address is D-PLG+0x40; the application message address of BCM is A-BCM, the diagnostic request address is D-BCM, and the diagnostic response address is D-BCM+0x40.

[0084] Figure 7 Schematic diagram of the structure of the US provided in the embodiment of the present application. Figure 7 As shown, the US may include a controller area network (CAN) controller receiving end, a message receiving module, an external event module, a service filtering module, a service conversion module, a message processing module, a function execution module, a message distribution module and a CAN controller transmitting end.

[0085] If the user needs to open the left front door in OTA mode, when the user presses the door handle, the external event module of the left front door controller as the US in OTA receives the signal and determines whether the current door is released to the closed state. If so, it will generate an open door request application message (A-HCUFL A-BCM 0101) and transmit the generated application message to the service filtering module for processing. The service filtering module determines that the signal corresponding to the command code in the application message is an open door signal, which belongs to one of the specific vehicle control operation signals, determines that it is a valid signal, and then sends the application message to the service conversion module for processing.

[0086] Because the application message is disabled in OTA mode, the application message on the bus cannot communicate, so the application message needs to be converted into a diagnostic message format. That is, the service conversion module can convert the application message (A-HCUFL A-BCM 01 01) into a diagnostic message (D-HCUFL D-BCM 01 01), and transmit the converted message format to the message processing module for further processing. The message processing module can again determine whether the message format is legal, whether the source address of the message is the local address, and whether the destination address is D-BCM. When it is determined that the message is valid, it can be forwarded to the CAN bus for transmission by the message distribution module.

[0087] Figure 8 Schematic diagram of the structure of UA provided in the embodiment of the present application. Figure 8 As shown, the US may include a CAN controller receiving end, a message receiving module, a service filtering module, a service conversion module, a message processing module, a function execution module, a message distribution module and a CAN controller transmitting end.

[0088] The left front door controller, which is the US in OTA, sends the door opening request diagnostic message to the VGW, which is the UA in OTA, through the CAN bus. After the message receiving module of the VGW's UA receives the message, the service filtering module processes it to determine whether it is a diagnostic message. If so, it further determines whether the source address is a valid address of the door or back door controller. If not, the message is discarded. If so, it is further processed.

[0089] If the UA of VGW determines that the message received is a diagnostic message in the current OTA processing mode, no conversion is required. If it is an application message, the application message needs to be converted into a diagnostic message and then sent to the message processing module for further processing. The message processing module determines whether the message format is legal, whether the source address is the local address, and whether the destination address is D-BCM. If so, the message is sent to BCM and will be forwarded to the bus for transmission by the message distribution module.

[0090] The structure of the BCM as the US in OTA is the same as that of the left front door controller as the US in OTA. Figure 7 After the message receiving module of the BCM US receives the message, the service filtering module processes it to determine whether it is a diagnostic message. If so, it further determines whether it is a valid address of the door or back door controller. If not, the message is discarded. If so, it is further processed.

[0091] If the US of BCM determines that the received message is a diagnostic message in the current processing OTA mode, it needs to be converted into an application message internally and sent to the message processing module for processing. After BCM determines that the source address in the converted application message is the local address and the destination address is the BCM address, BCM can respond to the received request instruction to open the door and guide the execution of the door opening control command. At this time, the function execution module can assemble the response message (D-BCM+0x40 D-HCUFL+0x40 01 01), and then forward it to the left front door controller with the destination address of by the message distribution module. Among them, the response message is an application message, that is, the application message of the door opening command. The US of BCM also needs to convert the application message into a diagnostic message and forward it to the US of the left front door controller through the UA of VGW. Among them, the process of the US of BCM sending the door opening command message to the US of the left front door controller is basically the same as the process of the US of the left front door controller sending the door opening request message to the US of BCM, which will not be repeated here.

[0092] Furthermore, the process of closing the left front door, opening other doors and closing other doors is basically the same as the above-mentioned process of opening the left front door, and will not be repeated here.

[0093] By adopting the technical solution of the embodiment of the present application, events and messages are parsed in UA and US, and the received messages are filtered for legitimacy, diagnostic messages and application messages are converted inside the module to execute its functions; diagnostic messages are transmitted outside the module to support specific functions such as opening or closing doors during OTA upgrade flashing, thereby improving the flexibility of vehicle control and enhancing user experience.

[0094] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0095] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0096] Fig. 9 Schematic diagram of a vehicle door device provided in an embodiment of the present application. Fig. 9 As shown, the device comprises:

[0097] The generation module 901 is configured to receive a vehicle control request sent by a user and generate a vehicle control request application message when the vehicle is in the space download technology OTA mode.

[0098] The conversion module 902 is configured to convert the vehicle control request application message into a vehicle control request diagnosis message in response to determining that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations.

[0099] The communication module 903 is configured to send a vehicle control request diagnosis message to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnosis message to the body controller after determining that the vehicle control request diagnosis message is valid.

[0100] The communication module 903 is also configured to receive a vehicle control command diagnostic message from the vehicle gateway. The vehicle control command diagnostic message is generated by the body controller according to the vehicle control request and sent to the vehicle gateway.

[0101] The conversion module 902 is further configured to, in response to determining that the vehicle control command diagnosis message is valid, convert the vehicle control command diagnosis message into a vehicle control command application message.

[0102] The execution module 904 is configured to parse the vehicle control command application message and execute the vehicle control command.

[0103] According to the technical solution provided in the embodiment of the present application, when the vehicle is in OTA mode, the received vehicle control request corresponding to one or more vehicle control operations in the specific vehicle control operation is converted into a vehicle control request diagnostic message, which is sent to the whole vehicle gateway and then to the body controller, and the vehicle control command diagnostic message sent by the body controller is received, and the vehicle control command diagnostic message is converted into a vehicle control command application message, and then the vehicle control command is parsed and executed, thereby realizing the normal implementation of specific vehicle control operations in OTA mode, improving vehicle control safety and enhancing user experience.

[0104] In an embodiment of the present application, converting a vehicle control request application message into a vehicle control request diagnostic message includes: converting an application message source address in the vehicle control request application message into a diagnostic request source address, and converting an application message destination address in the vehicle control request application message into a diagnostic request destination address; or converting an application message source address in the vehicle control request application message into a diagnostic request source address, converting an application message destination address in the vehicle control request application message into a diagnostic request destination address, and mapping a command code in the vehicle control request application message to a command code in the vehicle control request diagnostic message; converting a vehicle control command diagnostic message into a vehicle control command application message includes: converting a diagnostic response source address in a vehicle control command diagnostic message into an application message source address, and converting a diagnostic response destination address in a vehicle control command diagnostic message into an application message destination address; or converting a diagnostic response source address in a vehicle control command diagnostic message into an application message source address, converting a diagnostic response destination address in a vehicle control command diagnostic message into an application message destination address, and mapping a command code in a vehicle control command diagnostic message into a command code in a vehicle control command application message.

[0105] In an embodiment of the present application, after converting the vehicle control request application message into a vehicle control request diagnostic message, it also includes: in response to determining that the message format of the vehicle control request diagnostic message is legal, the source address is the ECU address and the destination address is the body controller address, sending the vehicle control request diagnostic message to the vehicle gateway.

[0106] In an embodiment of the present application, the vehicle gateway determines whether the vehicle control request diagnostic message is valid in the following manner: receiving a vehicle control request message; in response to determining that the vehicle control request message is a vehicle control request diagnostic message, when it is determined that the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the body controller address, determining that the vehicle control request diagnostic message is valid; in response to determining that the vehicle control request message is a vehicle control request application message, converting the vehicle control request application message into a vehicle control request diagnostic message, and when it is determined that the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the body controller address, determining that the vehicle control request diagnostic message is valid.

[0107] In an embodiment of the present application, a vehicle control command diagnostic message is generated by a body controller in the following manner: receiving a vehicle control request message; in response to determining that the vehicle control request message is a vehicle control request diagnostic message, and the source address of the vehicle control request diagnostic message is an ECU address, converting the vehicle control request diagnostic message into a vehicle control request application message; parsing the vehicle control request application message, and generating a vehicle control command application message based on the parsing result; in response to determining that the vehicle control operation in the vehicle control command is one or more of the specific vehicle control operations, converting the vehicle control command application message into a vehicle control command diagnostic message.

[0108] In an embodiment of the present application, determining that a vehicle control command diagnostic message is valid includes: receiving a vehicle control command message; in response to determining that the vehicle control command message is a vehicle control command diagnostic message, and the source address of the vehicle control command diagnostic message is a body controller address, and the destination address is an ECU address, determining that the vehicle control command diagnostic message is valid.

[0109] In the embodiment of the present application, the specific vehicle control operation is a vehicle control operation that is allowed to be executed when the vehicle is in OTA mode.

[0110] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0111] Fig.10 Schematic diagram of an electronic device provided in an embodiment of the present application. Fig.10As shown, the electronic device 10 of this embodiment includes: a processor 1001, a memory 1002, and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. When the processor 1001 executes the computer program 1003, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1001 executes the computer program 1003, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0112] The electronic device 10 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will appreciate that Fig.10 The electronic device 10 is merely an example and does not limit the electronic device 10 . The electronic device 10 may include more or fewer components than shown in the figure, or different components.

[0113] Processor 1001 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0114] The memory 1002 may be an internal storage unit of the electronic device 10, for example, a hard disk or memory of the electronic device 10. The memory 1002 may also be an external storage device of the electronic device 10, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 10. The memory 1002 may also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.

[0115] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0117] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A vehicle control command execution method, characterized in that: The method is executed by an electronic control unit ECU, and the method comprises: When the vehicle is in the space download technology OTA mode, it receives the vehicle control request sent by the user and generates a vehicle control request application message; In response to determining that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations, converting the vehicle control request application message into a vehicle control request diagnostic message; Sending the vehicle control request diagnosis message to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnosis message to the body controller after determining that the vehicle control request diagnosis message is valid; Receive a vehicle control command diagnostic message from the vehicle gateway, the vehicle control command diagnostic message is generated by the body controller according to the vehicle control request diagnostic message and sent to the vehicle gateway; In response to determining that the vehicle control command diagnostic message is valid, converting the vehicle control command diagnostic message into a vehicle control command application message; Parse the vehicle control command application message and execute the vehicle control command.

2. The method according to claim 1, characterized in that The converting the vehicle control request application message into a vehicle control request diagnosis message includes: Converting the application message source address in the vehicle control request application message to the diagnosis request source address, and converting the application message destination address in the vehicle control request application message to the diagnosis request destination address; or Converting the application message source address in the vehicle control request application message into the diagnosis request source address, converting the application message destination address in the vehicle control request application message into the diagnosis request destination address, and mapping the command code in the vehicle control request application message into the command code in the vehicle control request diagnosis message; The converting of the vehicle control command diagnosis message into the vehicle control command application message includes: Convert the diagnostic response source address in the vehicle control command diagnostic message into the application message source address, and convert the diagnostic response destination address in the vehicle control command diagnostic message into the application message destination address; or The diagnostic response source address in the vehicle control command diagnostic message is converted into the application message source address, the diagnostic response destination address in the vehicle control command diagnostic message is converted into the application message destination address, and the command code in the vehicle control command diagnostic message is mapped to the command code in the vehicle control command application message.

3. The method according to claim 1, characterized in that After converting the vehicle control request application message into a vehicle control request diagnosis message, the method further includes: In response to determining that the message format of the vehicle control request diagnosis message is legal, the source address is the ECU address and the destination address is the body controller address, the vehicle control request diagnosis message is sent to the vehicle gateway.

4. The method according to claim 1, characterized in that: The vehicle gateway determines whether the vehicle control request diagnosis message is valid in the following manner: Receive vehicle control request message; In response to determining that the vehicle control request message is a vehicle control request diagnosis message, when it is determined that the source address of the vehicle control request diagnosis message is the ECU address and the destination address is the body controller address, determining that the vehicle control request diagnosis message is valid; In response to determining that the vehicle control request message is a vehicle control request application message, the vehicle control request application message is converted into a vehicle control request diagnostic message, and when it is determined that the source address of the vehicle control request diagnostic message is the ECU address and the destination address is the body controller address, the vehicle control request diagnostic message is determined to be valid.

5. The method according to claim 1, characterized in that The vehicle control command diagnostic message is generated by the vehicle body controller in the following manner: Receive vehicle control request message; In response to determining that the vehicle control request message is a vehicle control request diagnosis message, and the source address of the vehicle control request diagnosis message is the ECU address, converting the vehicle control request diagnosis message into a vehicle control request application message; Parsing the vehicle control request application message, and generating a vehicle control command application message based on the parsing result; In response to determining that the vehicle control operation in the vehicle control command is one or more of the specific vehicle control operations, the vehicle control command application message is converted into a vehicle control command diagnostic message.

6. The method according to claim 1, characterized in that The determining that the vehicle control command diagnostic message is valid includes: Receive vehicle control command message; In response to determining that the vehicle control command message is a vehicle control command diagnosis message, and the source address of the vehicle control command diagnosis message is the body controller address and the destination address is the ECU address, it is determined that the vehicle control command diagnosis message is valid.

7. The method according to any one of claims 1 to 6, characterized in that The specific vehicle control operation is a vehicle control operation that is allowed to be executed when the vehicle is in OTA mode.

8. A vehicle control command execution device, characterized in that: include: A generation module is configured to receive a vehicle control request sent by a user and generate a vehicle control request application message when the vehicle is in an over-the-air download technology OTA mode; a conversion module configured to, in response to determining that the vehicle control operation in the vehicle control request is one or more of the specific vehicle control operations, convert the vehicle control request application message into a vehicle control request diagnostic message; A communication module is configured to send the vehicle control request diagnosis message to the vehicle gateway, so that the vehicle gateway forwards the vehicle control request diagnosis message to the body controller after determining that the vehicle control request diagnosis message is valid; The communication module is further configured to receive a vehicle control command diagnostic message from the vehicle gateway, wherein the vehicle control command diagnostic message is generated by the body controller according to the vehicle control request diagnostic message and sent to the vehicle gateway; The conversion module is further configured to, in response to determining that the vehicle control command diagnostic message is valid, convert the vehicle control command diagnostic message into a vehicle control command application message; The execution module is configured to parse the vehicle control command application message and execute the vehicle control command.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.