Control method, device and computer-readable storage medium based on vehicle gateway
By receiving and matching the status values of the electronic control unit in the vehicle gateway, the problem of inaccurate function determination in the vehicle software under special circumstances is solved, and the accurate function execution and interactive logic simplification in the special circumstances is achieved, and the hardware dependence and R&D cycle are reduced.
Patent Information
- Application Number
- CN202311042876.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-18
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2043-08-18
AI Technical Summary
The existing on-board software fails to accurately determine the functions to be executed under special circumstances, resulting in the vehicle maintenance process being affected and abnormal data upload. The existing technology lacks an effective software enable and de-enable mechanism, resulting in the logic of the on-board software function implementation and the in-board software cannot accurately perform preset operations.
The on-board gateway receives the status values of each electronic control unit, generates a target message, and matches it with the historical status values, determines the functions to be executed, and controls the preset operations that match successfully, simplifies the interactive logic between the intelligent cockpit domain controller and the electronic control unit.
Accurately determining the functions to be executed under special circumstances simplifies the interactive logic, reduces the dependence of on-board software on hardware, shortens the R&D cycle, and meets the opening or closing requirements of functional modules in different states.
Smart Images

Figure CN117032174B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of vehicle technology, and more particularly to a control method, device, and computer-readable storage medium based on an in-vehicle gateway. Background Art
[0002] Existing in-vehicle software rarely considers special conditions during operation. For example, when a vehicle is undergoing maintenance, software running in the CDC (Cockpit Domain Controller) is not stopped, thus affecting the vehicle maintenance process. Another example is that when a vehicle is being updated via OTA (Over-The-Air), the collection and upload of vehicle data is not stopped, resulting in abnormal data being uploaded to the cloud, making it impossible to accurately determine the vehicle's condition.
[0003] Existing technologies don't consider enabling and disabling software in special situations like these. In practice, enabling conditions are communicated directly through each ECU (Electronic Control Unit), requiring the establishment of interaction logic between the on-board software and each ECU. This complicates the implementation logic of the on-board software functions, making it impossible to accurately determine the function to be executed in special situations, and thus unable to execute the corresponding preset operation. Summary of the Invention
[0004] In view of the above problems, the embodiments of the present application provide a control method, device and computer-readable storage medium based on a vehicle-mounted gateway to determine the function to be executed under special circumstances, thereby executing the preset operation corresponding to the function to be executed.
[0005] According to one aspect of an embodiment of the present application, a control method based on an on-board gateway is provided, which is applied to an intelligent cockpit domain controller. The control method includes: receiving a target message sent by the on-board gateway; wherein the target message includes the status value of each electronic control unit; matching the status value with the historical status value, and determining a function to be executed based on the matching result; matching the signal value in the target message with a preset signal value corresponding to the function to be executed, and controlling the execution of a preset operation corresponding to the preset signal value that successfully matches.
[0006] In an optional manner, matching the status value with the historical status value and determining the function to be executed based on the matching result further includes: matching the status value with the historical status value to obtain a matching result; determining an enable flag variable based on the matching result, and determining the function to be executed based on the enable flag variable.
[0007] In an optional manner, determining the enable flag variable based on the matching result and determining the function to be executed based on the enable flag variable further includes: if the matching result indicates that the state value successfully matches the historical state value, determining that the enable flag variable is the first enable flag variable, and determining the execution function whose enable flag variable is the first enable flag variable as the function to be executed; if the matching result indicates that the state value fails to match the historical state value, determining that the enable flag variable is the second enable flag variable, and determining the execution function whose enable flag variable is the second enable flag variable as the function to be executed.
[0008] In an optional manner, the signal value in the target message is matched with the preset signal value corresponding to the function to be executed, and the preset operation corresponding to the successfully matched preset signal value is controlled to be executed, further including: if the signal value in the target message successfully matches the first preset signal value corresponding to the function to be executed, then the preset operation of turning off the function to be executed is controlled to be executed; if the signal value in the target message successfully matches the second preset signal value corresponding to the function to be executed, then the preset operation of turning on the function to be executed is controlled to be executed.
[0009] In an optional manner, the preset signal value also includes a third preset signal value for which there is no corresponding preset operation, and a fourth preset signal value indicating that the function to be executed is a non-execution function; the control method also includes: if the signal value in the target message successfully matches the third preset signal value, then the preset operation is not controlled to be executed; if the signal value in the target message successfully matches the fourth preset signal value, then an error reporting operation is performed.
[0010] According to another aspect of an embodiment of the present application, a control method for an in-vehicle gateway is provided, the control method comprising: receiving status information of each electronic control unit, and generating a target message including status values of each electronic control unit based on the status information; sending the target message to an intelligent cockpit domain controller, so that the intelligent cockpit domain controller determines a function to be executed based on a matching result between the status values of each electronic control unit in the target message and historical status values; and matching the signal value in the target message with a preset signal value corresponding to the function to be executed, so that the intelligent cockpit domain controller controls the execution of a preset operation corresponding to the preset signal value that has been successfully matched.
[0011] In an optional manner, generating a target message including the status values of each electronic control unit based on the status information further includes: obtaining the starting field, field length, encoding method, status value and signal value in each status information; and encapsulating the starting field, field length, encoding method, status value and signal value in each status information to obtain a target message including the status values of each electronic control unit.
[0012] According to another aspect of an embodiment of the present application, a control device based on an on-board gateway is provided, which is applied to an intelligent cockpit domain controller. The control device includes: a receiving module for receiving a target message sent by the on-board gateway; wherein the target message includes the status value of each electronic control unit; a matching module for matching the status value with the historical status value and determining the function to be executed based on the matching result; and a control module for matching the signal value in the target message with the preset signal value corresponding to the function to be executed, and controlling the execution of a preset operation corresponding to the preset signal value that successfully matches.
[0013] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned control method.
[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned control method.
[0015] According to one aspect of an embodiment of the present application, a computer program product or computer program is further provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method described above.
[0016] In this embodiment of the application, there's no need to establish separate interaction logic between the smart cockpit domain controller and each electronic control unit. Instead, each electronic control unit is connected to the smart cockpit domain controller via an onboard gateway. The smart cockpit domain controller receives target messages from the onboard gateway and accurately determines the function to be executed based on the matching results between the status values of each electronic control unit in the target message and the historical status values. It then matches the signal value in the target message with the preset signal value corresponding to the function to be executed, and controls the execution of the preset operation corresponding to the successfully matched preset signal value.
[0017] The above description is only an overview of the technical solutions of the embodiments of the present application. In order to more clearly understand the technical means of the embodiments of the present application, they can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and it is clear that a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort.
[0019] Figure 1 This is a flow chart of a control method based on a vehicle gateway shown in an exemplary embodiment of the present application.
[0020] Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another control method based on a vehicle gateway.
[0021] Figure 3 is based on Figure 1 The exemplary embodiment shown is a flow chart of another control method based on a vehicle gateway.
[0022] Figure 4 FIG. 1 is a flow chart of a control method applied to a vehicle gateway, shown in an exemplary embodiment of the present application.
[0023] Figure 5 It is a parameter diagram of a target message shown in an exemplary embodiment of the present application.
[0024] Figure 6 This is a schematic diagram of an application scenario of the control method of the present application based on a vehicle-mounted gateway.
[0025] Figure 7 It is a structural diagram of a control device based on a vehicle gateway shown in an exemplary embodiment of the present application.
[0026] Figure 8 FIG. 1 is a structural diagram of a control device applied to a vehicle gateway, shown in an exemplary embodiment of the present application.
[0027] Figure 9 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0029] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0030] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0031] In this application, "plurality" refers to two or more. "And / or" describes the relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0032] To enable each ECU to directly transmit enabling conditions to the intelligent cockpit domain controller, it is necessary to establish interaction logic between multiple ECUs and the intelligent cockpit domain controller. Because the interaction logic between each ECU and the intelligent cockpit domain controller is not exactly the same, it is necessary to establish the interaction logic between each ECU and the intelligent cockpit domain controller separately. In addition, if new or updated ECUs are added, or if the intelligent cockpit domain controller is ported to another control platform, the interaction logic between the two must be re-established, resulting in low portability.
[0033] To this end, one aspect of this application provides a control method based on a vehicle gateway, which does not require the establishment of interactive logic between each electronic control unit and the intelligent cockpit domain controller to transmit the enabling conditions. Figure 1 , Figure 1 This is a flow chart of a control method based on a vehicle gateway, which is shown in an exemplary embodiment of the present application. This control method is applied to a smart cockpit domain controller and includes at least S110 to S130, which are described in detail as follows:
[0034] S110: Receive a target message sent by the vehicle gateway; wherein the target message includes status values of each electronic control unit.
[0035] The target message is a message generated by the vehicle gateway. The vehicle gateway receives status information from each electronic control unit and generates a target message containing the status values of each electronic control unit based on this status information. In this application, each electronic control unit interacts with the vehicle gateway so that the vehicle gateway can know the status of each electronic control unit in real time. The vehicle gateway then encapsulates the status information of each electronic control unit into a message according to a preset protocol and sends it to a specified IP address. For example, the message is encapsulated into a protocol message based on the UDP and BusMirror protocols and sent via a specific IP address and network segment.
[0036] S120: Match the state value with the historical state value, and determine the function to be executed according to the matching result.
[0037] The historical state value is the state value stored in the cache.
[0038] When the vehicle is in certain states, such as OTA upgrade state, the on-board software or electronic control unit needs to be updated and upgraded. In principle, the software function modules, whether to be updated or other parts, are not allowed to run during the OTA upgrade process. At this time, it is necessary to add the collection and judgment logic of the enabled status of these function modules. In addition, when the vehicle is in maintenance state, some software function modules are not allowed to be turned on. For example, when the vehicle is in maintenance state, if the data reporting function module continues to run, abnormal data will be uploaded to the cloud, causing users who use the cloud to make decisions to make wrong judgments, which may cause the cloud to issue wrong instructions, resulting in unpredictable effects on the vehicle.
[0039] This embodiment can know whether the state value has changed based on the matching result between the state value in the target message and the historical state value, thereby accurately determining the to-be-executed function corresponding to the to-be-executed function module under the current state value.
[0040] S130: Match the signal value in the target message with the preset signal value corresponding to the function to be executed, and control the execution of the preset operation corresponding to the preset signal value that successfully matches.
[0041] This embodiment is exemplified as follows: the intelligent cockpit domain controller monitors a fixed network segment and IP through a thread loop, extracts the data part of the received target message according to the UDP protocol, and parses the data part according to the busmirror protocol to obtain the status value of each electronic control unit in the target message; matches the field corresponding to the status value with the old field corresponding to the historical status value in the cache, and determines the function to be executed based on the matching result; matches the field corresponding to the signal value in the target message with each field corresponding to the preset signal value corresponding to the function to be executed, and uses the preset signal value corresponding to the successfully matched field as the preset signal of successful matching, and controls the execution of the corresponding preset operation.
[0042] This embodiment eliminates the need to establish interaction logic between the intelligent cockpit domain controller and each ECU separately; instead, each ECU is connected to the intelligent cockpit domain controller via the vehicle gateway. The intelligent cockpit domain controller receives target messages from the vehicle gateway and accurately determines the function to be executed based on the matching results of the status values of each ECU in the target message with the historical status values. It then matches the signal value in the target message with the preset signal value corresponding to the function to be executed, and controls the execution of the preset operation corresponding to the successfully matched preset signal value.
[0043] At the same time, because the interaction logic between the electronic control unit and the vehicle network is common, when a vehicle has a new electronic control unit or an updated electronic control unit, it only needs to be modified or copied based on the existing interaction logic. There is no need to create a new interaction logic between the electronic control unit and the intelligent cockpit domain controller. Each electronic control unit can be connected to the intelligent cockpit domain controller through the vehicle gateway.
[0044] In another exemplary embodiment of the present application, a method for determining a function to be executed is provided. Figure 2 , Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another control method based on a vehicle gateway. Figure 1 The illustrated S120 further includes S210 to S220, which are described in detail as follows:
[0045] S210: Match the state value with the historical state value to obtain a matching result.
[0046] S220: Determine an enable flag variable according to the matching result, and determine a function to be executed according to the enable flag variable.
[0047] The enable flag variable is a variable used to determine whether each execution function is a function to be executed.
[0048] This embodiment is described as follows: In one exemplary embodiment, the enable flag variable includes true and false. If the state value successfully matches the historical state value, it is determined that the current enable flag variable is true, and the execution function module whose enable flag variable is true is selected as the function module to be executed, and its function is selected as the function to be executed. In another exemplary embodiment, if the state value successfully matches the historical state value, it is determined that the current enable flag variable is true, and the execution function module whose enable flag variable is false is selected as the function module to be executed, and its function is selected as the function to be executed.
[0049] This embodiment introduces an enable flag variable to determine the function to be executed, so that the smart cockpit domain controller determines the enable flag variable according to the matching result of the state value and the historical state value, thereby accurately determining the function to be executed according to the enable flag variable.
[0050] In another exemplary embodiment of the present application, the above-mentioned S220 is introduced in detail, and S220 further includes: if the matching result represents that the state value matches the historical state value successfully, then the enable flag variable is determined to be the first enable flag variable, and the execution function whose enable flag variable is the first enable flag variable is determined as the function to be executed; if the matching result represents that the state value matches the historical state value unsuccessfully, then the enable flag variable is determined to be the second enable flag variable, and the execution function whose enable flag variable is the second enable flag variable is determined to be the function to be executed.
[0051] Exemplarily, the enable flag variable includes true and false. If it is determined that the current enable flag variable is true (i.e., the first enable flag variable in this embodiment), the execution function module with the enable flag variable being true will be used as the function module to be executed, and its function will be used as the function to be executed.
[0052] If it is determined that the current enable flag variable is false (ie, the second enable flag variable in this embodiment), the execution function module whose enable flag variable is false is used as the function module to be executed, and its function is used as the function to be executed.
[0053] In another exemplary embodiment of the present application, it is described in detail how to match the signal value in the target message with the preset signal value corresponding to the function to be executed, and control the execution of the preset operation corresponding to the preset signal value that successfully matches. For details, please refer to Figure 3 , Figure 3 is based on Figure 1 The exemplary embodiment shown is a flow chart of another control method based on a vehicle gateway. Figure 1 The illustrated S130 further includes S310 to S320, which are described in detail as follows:
[0054] S310: If the signal value in the target message successfully matches the first preset signal value corresponding to the function to be executed, control the execution of a preset operation of closing the function to be executed.
[0055] S320: If the signal value in the target message successfully matches the second preset signal value corresponding to the function to be executed, control the execution of a preset operation of starting the function to be executed.
[0056] The preset operation corresponding to the first preset signal value is to turn off the function to be executed, and the preset operation corresponding to the second preset signal value is to turn on the function to be executed.
[0057] Exemplarily, the first preset signal value is 0x1, and its corresponding preset operation is to turn off the function to be executed; the second preset signal value is 0x2, and its corresponding preset operation is to turn on the function to be executed; if the signal value in the target message is 0x1, the control turns off the function to be executed; if the signal value in the target message is 0x2, the control turns on the function to be executed.
[0058] This embodiment controls the execution of different preset operations according to the matching results between the signal value in the target message and different preset signal values, so as to quickly turn on or off the execution functions corresponding to different functional modules under special circumstances.
[0059] In another exemplary embodiment of the present application, based on Figure 3 In the illustrated embodiment, the preset signal value also includes a third preset signal value for which there is no corresponding preset operation, and a fourth preset signal value indicating that the function to be executed is a non-execution function; the control method also includes: if the signal value in the target message successfully matches the third preset signal value, then the preset operation is not controlled to be executed; if the signal value in the target message successfully matches the fourth preset signal value, then an error reporting operation is performed.
[0060] Exemplarily, the third preset signal value is 0x0, which is used in the test phase to determine whether the function corresponding to the target functional module is activated. For example, if the signal value in the target message is 0x0, it indicates that the function to be executed is not activated and does not control the execution of any preset operation. The fourth preset signal value is 0x3, which indicates that the signal value is an invalid value. For example, if the signal value in the target message is 0x3, it indicates that the signal value is an invalid value and an error is reported. Among them, the function to be executed may be a non-executable function, that is, an error occurs during the determination phase of the function to be executed, and the function is mistakenly determined to be a function to be executed.
[0061] This embodiment introduces two other preset signal values, one of which is used in the test phase to determine whether the function corresponding to the target functional module is activated; the other is used to re-determine whether the target function is a function to be executed, so as to improve the accuracy of the determined function to be executed.
[0062] Another aspect of the present application provides a control method for a vehicle-mounted gateway. Figure 4 , Figure 4 This is a flow chart of a control method applied to a vehicle gateway according to an exemplary embodiment of the present application. The control method includes at least S410 to S420, which are described in detail as follows:
[0063] S410: receiving status information of each electronic control unit, and generating a target message including status values of each electronic control unit according to the status information.
[0064] The various states of the vehicle are stored in various electronic control units. In certain states, each electronic control unit cannot directly transmit its own state information to the outside world, and can only update the state information in real time by interacting with the on-board gateway.
[0065] The execution end in this embodiment is the vehicle gateway, which generates target messages to be sent to the intelligent cockpit domain controller based on the status information received from each electronic control unit. For example, the vehicle gateway receives updated status information from the electronic control unit, encapsulates the updated status information into a protocol message using the BusMirror and UDP protocols, and forwards it via a specific IP address and network segment so that the intelligent cockpit domain controller can receive the protocol message.
[0066] S420: Send the target message to the smart cockpit domain controller so that the smart cockpit domain controller determines the function to be executed based on the matching results of the status values of each electronic control unit in the target message and the historical status values; so that the smart cockpit domain controller matches the signal value in the target message with the preset signal value corresponding to the function to be executed, so that the smart cockpit domain controller controls the execution of the preset operation corresponding to the preset signal value that is successfully matched.
[0067] After receiving the target message, the intelligent cockpit domain controller extracts the data part of the message according to the UDP protocol, parses the data part according to the BusMirror protocol, obtains the corresponding fields storing the status values of each electronic control unit, and matches them with the old fields in the cache; determines the enable flag variable based on the matching result, and determines the function to be executed based on the enable flag variable; matches the signal value in the target message with the preset signal value corresponding to the function to be executed, and controls the execution of the preset operation corresponding to the preset signal value that successfully matches.
[0068] This embodiment eliminates the need to establish interaction logic between the intelligent cockpit domain controller and each ECU separately; instead, each ECU is connected to the intelligent cockpit domain controller via the vehicle gateway. The intelligent cockpit domain controller receives target messages generated and sent by the vehicle gateway and accurately determines the function to be executed based on the matching results of the status values of each ECU in the target message with the historical status values. It then matches the signal value in the target message with the preset signal value corresponding to the function to be executed, and controls the execution of the preset operation corresponding to the successfully matched preset signal value.
[0069] At the same time, because the interaction logic between the electronic control unit and the vehicle network is common, when a vehicle has a new electronic control unit or an updated electronic control unit, it only needs to be modified or copied based on the existing interaction logic. There is no need to create a new interaction logic between the electronic control unit and the intelligent cockpit domain controller. Each electronic control unit can be connected to the intelligent cockpit domain controller through the vehicle gateway.
[0070] In another exemplary embodiment of the present application, how to generate a target message including the status value of each electronic control unit according to the status information is described in detail, that is, S410 further includes:
[0071] Get the starting field, field length, encoding method, status value and signal value in each status information.
[0072] The start field, field length, encoding mode, state value and signal value in each state information are encapsulated to obtain a target message including the state value of each electronic control unit.
[0073] For example, the starting field, field length, encoding method, status value, and signal value of each state message are stored in a JSON file format. Multiple state messages are stored in parallel as JSON objects within a JSON array. During program initialization, after reading the JSON file, the program initializes and stores each state message as a structure. When the intelligent cockpit domain controller reads a target message, it compares the stored structure to the state message, obtains the corresponding state value, matches it with historical state values, and determines the pending function corresponding to the pending functional module based on the matching result.
[0074] See also Figure 5 , Figure 5 FIG. 1 is a parameter diagram of a target message shown in an exemplary embodiment of the present application. Figure 5The generated target message may include a message name, type, length, identifier, transmission type, cycle time, etc., as well as signal-related parameters and mode status, etc. The start bit "27" is the start field in this embodiment; the message length "8" is the field length in this embodiment; the arrangement format "Intel" is the encoding method in this embodiment; the signal description "Maintenance Mode Status True" is the status value in this embodiment; and the signal value can be 0x0: INACTIVE (inactive, i.e., the third preset signal value mentioned above), 0x1: OFF (off, i.e., the first preset signal value mentioned above), 0x2: ON (on, i.e., the second preset signal value mentioned above), and 0x3: INVALID (invalid, i.e., the fourth preset signal value mentioned above).
[0075] This embodiment provides a target message composition parameter. The specific target message composition parameter can be adjusted according to actual conditions, and this embodiment does not limit the specific composition parameter.
[0076] In another exemplary embodiment of the present application, the application scenarios of the above-mentioned multiple control methods are exemplarily described. Figure 6 , Figure 6 This is a schematic diagram of the application scenario of the control method based on the vehicle gateway of this application. It includes an electronic control unit 100, a vehicle gateway 200 and an intelligent cockpit domain controller 300. The three ends can be connected by wireless communication. This application does not limit the connection method between them. The server 400 serves as the execution end of any of the above control methods of this application, such as Figure 6 As shown in (a), the server 400 can be connected to the smart cockpit domain controller 300 to execute any of the above-mentioned control methods based on the vehicle gateway. Figure 6 (b) The server 400 may also be connected to the vehicle gateway 200 to execute any of the above control methods applied to the vehicle gateway.
[0077] The various states of the vehicle are stored in the electronic control unit 100. In certain states, the electronic control unit 100 cannot directly transfer its own stored state information to the outside world. It can only update the state information in real time by interacting with the vehicle gateway 200. The electronic control unit 100 can send the state information to the vehicle gateway 200.
[0078] The onboard gateway 200 receives the status information sent by the electronic control unit 100, generates a target message including the status value of the electronic control unit 100 according to the status information, and forwards it through a specific IP and network segment so that the smart cockpit domain controller 300 receives the target message.
[0079] The smart cockpit domain controller 300 is in direct contact with the vehicle gateway 200 and can receive the target message sent by the vehicle gateway 200 to determine the to-be-executed function corresponding to the to-be-executed function module according to the content of the target message, and control the execution of the corresponding preset operation.
[0080] The server 400 serves as the execution end of the control method of the present application. It can be connected to the smart cockpit domain controller 300 to execute any of the above-mentioned control methods based on the vehicle gateway. The exemplary description is as follows:
[0081] The server 400 receives the target message sent by the vehicle gateway 200; the server 400 matches the status value with the historical status value, and determines the function to be executed based on the matching result; the server 400 matches the signal value in the target message with the preset signal value corresponding to the function to be executed, and controls the execution of the preset operation corresponding to the preset signal value that successfully matches.
[0082] In addition, the server 400 may also be connected to the vehicle gateway 200 to execute any of the above control methods applied to the vehicle gateway, as exemplified below:
[0083] The server 400 receives the status information of each electronic control unit 100 and generates a target message including the status value of each electronic control unit 100 according to the status information; the server 400 sends the target message to the smart cockpit domain controller 300 so that the smart cockpit domain controller 300 determines the function to be executed according to the matching result of the status value of each electronic control unit 100 in the target message and the historical status value; so that the smart cockpit domain controller 300 matches the signal value in the target message with the preset signal value corresponding to the function to be executed, so that the smart cockpit domain controller 300 controls the execution of the preset operation corresponding to the preset signal value that is successfully matched.
[0084] Server 400 can be an independent physical server or a server cluster or distributed system composed of multiple physical servers, where multiple servers can form a blockchain, and the server is a node on the blockchain. Server 400 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, and this is not restricted here.
[0085] This application uniformly transmits the status information of each electronic control unit in the vehicle to the on-board gateway, encapsulating it into a target message and forwarding it. This separates the hardware that obtains the status information of the vehicle electronic control unit from the on-board software. While meeting the dynamic start and stop requirements of the on-board software functions, it also reduces the on-board software's dependence on the vehicle's hardware, thereby reducing the application software's dependence on the hardware. Furthermore, when the on-board software is updated and iterated, there is no need to change the enable judgment logic; only the configuration file needs to be modified, thus shortening the vehicle's R&D cycle.
[0086] Furthermore, after updating the vehicle's electronic control unit, only the updated status information needs to be sent to the vehicle gateway, eliminating the need to create new interaction logic between the electronic control unit and the intelligent cockpit domain controller. This also addresses the need for certain vehicle software to enable or disable pending functions in related modules when the vehicle is in certain states.
[0087] Another aspect of the present application also provides a control device based on a vehicle-mounted gateway, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of a control device based on a vehicle gateway, shown in an exemplary embodiment of the present application. The first control device 700 is applied to the smart cockpit domain controller, including:
[0088] The receiving module 710 is configured to receive a target message sent by the vehicle gateway; wherein the target message includes the status values of each electronic control unit.
[0089] The matching module 730 is used to match the state value with the historical state value and determine the function to be executed according to the matching result.
[0090] The control module 750 is used to match the signal value in the target message with the preset signal value corresponding to the function to be executed, and control the execution of the preset operation corresponding to the preset signal value that successfully matches.
[0091] In an optional manner, the matching module 730 includes:
[0092] The matching unit is used to match the state value with the historical state value to obtain a matching result.
[0093] The determining unit is configured to determine an enable flag variable according to the matching result, and determine a function to be executed according to the enable flag variable.
[0094] In an optional manner, the determining unit includes:
[0095] The first determination module is used to determine that the enable flag variable is the first enable flag variable if the matching result indicates that the state value matches the historical state value successfully, and determine the execution function whose enable flag variable is the first enable flag variable as the function to be executed.
[0096] The second determination module is used to determine that the enable flag variable is the second enable flag variable if the matching result indicates that the state value fails to match the historical state value, and determine the execution function whose enable flag variable is the second enable flag variable as the function to be executed.
[0097] In an optional manner, the control module 750 includes:
[0098] The control closing unit is used to control the execution of a preset operation of closing the to-be-executed function if the signal value in the target message successfully matches the first preset signal value corresponding to the to-be-executed function.
[0099] The control activation unit is used to control the execution of a preset operation of activating the to-be-executed function if the signal value in the target message successfully matches the second preset signal value corresponding to the to-be-executed function.
[0100] In an optional manner, the preset signal value further includes a third preset signal value indicating no corresponding preset operation, and a fourth preset signal value indicating that the function to be executed is a non-execution function; and the first control device 700 further includes:
[0101] The inactivated module is configured to not control the execution of a preset operation if the signal value in the target message successfully matches the third preset signal value.
[0102] The invalid error reporting module is used to perform an error reporting operation if the signal value in the target message successfully matches the fourth preset signal value.
[0103] Another aspect of the present application also provides a control device for a vehicle gateway, such as Figure 8 As shown, Figure 8 This is a schematic diagram of a control device for a vehicle gateway according to an exemplary embodiment of the present application. The second control device 800 includes:
[0104] The receiving and generating module 810 is configured to receive status information of each electronic control unit and generate a target message including status values of each electronic control unit according to the status information.
[0105] The sending module 830 is used to send the target message to the smart cockpit domain controller so that the smart cockpit domain controller determines the function to be executed based on the matching results of the status values of each electronic control unit in the target message and the historical status values; so that the smart cockpit domain controller matches the signal value in the target message with the preset signal value corresponding to the function to be executed, so that the smart cockpit domain controller controls the execution of the preset operation corresponding to the preset signal value that is successfully matched.
[0106] In an optional manner, the receiving and generating module 810 includes:
[0107] The information acquisition unit is used to obtain the starting field, field length, encoding method, status value and signal value in each state information.
[0108] The encapsulation unit is used to encapsulate the start field, field length, encoding method, state value and signal value in each state information to obtain a target message including the state value of each electronic control unit.
[0109] It should be noted that the control device provided in the above embodiment and the control method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.
[0110] Another aspect of the present application provides an electronic device, comprising: a controller; and a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned control method.
[0111] See also Figure 9 , Figure 9 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.
[0112] It should be noted that Figure 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0113] like Figure 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 into the random access memory (RAM) 903, such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the RAM 903. The CPU 901, ROM 902 and RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0114] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output section 907 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. Removable media 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, are installed in the drive 910 as needed, so that computer programs read therefrom can be installed into the storage section 908 as needed.
[0115] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the various functions defined in the system of the present application are executed.
[0116] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0118] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.
[0119] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned control method. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently and not be incorporated into the electronic device.
[0120] Another aspect of the present application further provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method provided in each of the above embodiments.
[0121] According to one aspect of an embodiment of the present application, a computer system is further provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the RAM. The CPU, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0122] The following components are connected to the I / O interface: an input section including a keyboard, mouse, etc.; an output section including a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section including a hard disk; and a communication section including a network interface card such as a LAN (Local Area Network) card and a modem. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc. are installed in the drive as needed so that computer programs read from them can be installed into the storage section as needed.
[0123] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main ideas and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A control method based on a vehicle-mounted gateway, characterized in that: Applied to a smart cockpit domain controller, the control method includes: Receiving a target message sent by the vehicle gateway; wherein the target message includes the status value of each electronic control unit; Matching the state value with historical state values, and determining a function to be executed based on the matching result; Match the signal value in the target message with the preset signal value corresponding to the function to be executed, and control the execution of the preset operation corresponding to the preset signal value that successfully matches, including: if the signal value in the target message successfully matches the third preset signal value, then do not control the execution of the preset operation; if the signal value in the target message successfully matches the fourth preset signal value, then perform an error reporting operation; wherein, the third preset signal value is a signal value indicating that the function to be executed is not activated in the test phase, and the fourth preset signal value is an invalid signal value indicating that the function to be executed is a non-execution function when an error occurs in the judgment phase of the function to be executed.
2. The control method according to claim 1, characterized in that: The matching of the state value with the historical state value and determining the function to be executed according to the matching result further includes: Matching the state value with the historical state value to obtain a matching result; An enable flag variable is determined according to the matching result, and a function to be executed is determined according to the enable flag variable.
3. The control method according to claim 2, characterized in that: The step of determining an enable flag variable according to the matching result, and determining a function to be executed according to the enable flag variable, further includes: If the matching result indicates that the state value successfully matches the historical state value, determining that the enable flag variable is the first enable flag variable, and determining the execution function whose enable flag variable is the first enable flag variable as the function to be executed; If the matching result indicates that the state value fails to match the historical state value, it is determined that the enable flag variable is the second enable flag variable, and the execution function whose enable flag variable is the second enable flag variable is determined as the to-be-executed function.
4. The control method according to claim 1, wherein: The matching of the signal value in the target message with the preset signal value corresponding to the to-be-executed function, and controlling the execution of a preset operation corresponding to the preset signal value that successfully matches, further includes: If the signal value in the target message successfully matches the first preset signal value corresponding to the function to be executed, controlling execution of a preset operation to close the function to be executed; If the signal value in the target message successfully matches the second preset signal value corresponding to the function to be executed, the control executes a preset operation of starting the function to be executed.
5. A control method applied to a vehicle gateway, characterized in that: The control method includes: receiving status information of each electronic control unit and generating a target message including a status value of each electronic control unit according to the status information; The target message is sent to the smart cockpit domain controller, so that the smart cockpit domain controller determines the function to be executed according to the matching result of the status value of each electronic control unit in the target message and the historical status value; the smart cockpit domain controller matches the signal value in the target message with the preset signal value corresponding to the function to be executed, so that the smart cockpit domain controller controls the execution of the preset operation corresponding to the preset signal value that successfully matches; wherein, the preset signal includes a third preset signal value and a fourth preset signal value, the third preset signal value is a signal value indicating that the function to be executed is not activated in the test phase, and the third preset signal value has no corresponding preset operation; the fourth preset signal value is an invalid signal value indicating that the function to be executed is a non-execution function when an error occurs in the judgment phase of the function to be executed, and the preset operation corresponding to the fourth preset signal is an error reporting operation.
6. The control method according to claim 5, characterized in that: Generating a target message including the status value of each electronic control unit according to the status information further includes: Get the starting field, field length, encoding method, status value and signal value in each status information; The start field, field length, encoding mode, status value and signal value in each state information are encapsulated to obtain a target message including the status value of each electronic control unit.
7. A control device based on a vehicle-mounted gateway, characterized in that: Applied to the intelligent cockpit domain controller, the control device includes: A receiving module, configured to receive a target message sent by the vehicle-mounted gateway; wherein the target message includes a status value of each electronic control unit; A matching module, configured to match the state value with historical state values and determine a function to be executed based on the matching result; A control module, used to match the signal value in the target message with the preset signal value corresponding to the function to be executed, and control the execution of a preset operation corresponding to the preset signal value that successfully matches, including: if the signal value in the target message successfully matches the third preset signal value, then not controlling the execution of the preset operation; if the signal value in the target message successfully matches the fourth preset signal value, then performing an error reporting operation; wherein, the third preset signal value is a signal value indicating that the function to be executed is not activated in the test phase, and the fourth preset signal value is an invalid signal value indicating that the function to be executed is a non-execution function when an error occurs in the judgment phase of the function to be executed.
8. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by the controller, enables the controller to implement the control method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle upgrading method, vehicle and storage medium
CN112612490A
Vehicle safety system
CN115066868A