Vehicle OTA configuration method and configuration system
By using DID data to determine the location of the configuration object in the OTA system of commercial vehicles, flexible configuration of functions of different models is achieved, problems of configuration complexity and high maintenance costs are solved, and work efficiency and software readability are improved.
Patent Information
- Application Number
- CN202411066419.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-03
AI Technical Summary
In the field of commercial vehicles, due to the diverse models and complex special operation scenarios, it is difficult for the existing technology to effectively reduce the complexity of functional configurations and software maintenance costs of different models.
Provide a configuration method and system for vehicle OTA. By obtaining the vehicle's DID data display configuration page, receiving the target byte position and target bit position fields input by the user, determining and configuring corresponding configuration objects, including network nodes and functional configuration objects , supports flexible configuration to reduce complexity.
Reduces configuration complexity, improves work efficiency, reduces software maintenance costs, and improves software readability.
Smart Images

Figure CN119071819A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle OTA, and in particular to a vehicle OTA configuration method and configuration system. Background Art
[0002] With the development of automotive OTA technology, many functional items can be configured during the life cycle of the vehicle. In the field of commercial vehicles, due to the large number of models and the complex and diverse special operation scenarios, there are great differences in the node and function configuration of commercial vehicles. If different configuration software packages are developed for different functions of different models, the workload is large, the configuration is complex, and the software maintenance cost is high.
[0003] Therefore, there is an urgent need for a configuration system that can meet the different functions of different models to reduce the complexity of configuration work and reduce software maintenance costs. Summary of the invention
[0004] The present application provides a vehicle OTA configuration method and configuration system, which can reduce configuration complexity.
[0005] The present application provides a vehicle OTA configuration method, including:
[0006] If the DID data of the vehicle is obtained, a configuration page is displayed, wherein the configuration page includes a target byte position field and a target bit position field for receiving user input data;
[0007] Determine a target byte in the DID data according to the target byte position field;
[0008] According to the target bit position field, searching for a target bit in the target byte;
[0009] According to the acquired configuration data, the configuration object represented by the target bit is configured; the configuration object includes a network node configuration object and a function configuration object.
[0010] Optionally, the configuration page further includes a target byte direction field for receiving user input data; after determining the target byte, the configuration method further includes: determining a search direction of the target byte according to the target byte direction field;
[0011] The step of searching for a target bit in the target byte according to the target bit position field includes:
[0012] According to the target bit position field and in accordance with the search direction, a target bit is searched in the target byte.
[0013] Optionally, the configuration page further includes a calibration enable field for receiving a user input setting state and a calibration data field for inputting data;
[0014] The configuration data is determined by the following steps:
[0015] If the setting state of the calibration enable field is to allow calibration, the data of the calibration data field is used as the configuration data;
[0016] If the setting state of the calibration enable field is that calibration is not allowed, the DID data is used as the configuration data.
[0017] Optionally, the configuration method further includes:
[0018] If the DID data is not obtained, the configuration object of the vehicle is configured by default; the default configuration is a configuration that ensures the basic functions of the OTA of the vehicle.
[0019] Optionally, the configuration data includes network configuration data and function configuration data; and configuring the configuration object represented by the target bit according to the acquired configuration data includes:
[0020] According to the acquired network configuration data, configure the network node configuration object represented by the target bit;
[0021] According to the acquired function configuration data, the function configuration object represented by the target bit is configured.
[0022] Optionally, in configuring the configuration object represented by the target bit according to the acquired configuration data, the configuration method includes:
[0023] bitwise AND the target byte and the reference byte to obtain a bitwise AND result; each bit of the reference byte is 1;
[0024] The configuration result is confirmed according to the bitwise AND result.
[0025] Optionally, the configuration object is the function configuration object, and the configuration page includes a maximum configuration value field and a minimum configuration value field; the maximum configuration value field indicates the maximum configuration value allowed by the function configuration object, and the minimum configuration value field indicates the minimum configuration value allowed by the function configuration object; and confirming the configuration result according to the bitwise AND result includes:
[0026] Left shift the bit and result to obtain a left shift result;
[0027] If the left shift result is between the maximum configuration value and the minimum configuration value, the configuration is valid;
[0028] If the left shift result is not between the maximum configuration value and the minimum configuration value, the configuration object is configured by default.
[0029] Optionally, the configuration object is the network node configuration object, and confirming the configuration result according to the bitwise AND result includes:
[0030] In the bitwise AND result, the network node configuration object represented by the bit with a value of 1 has a valid configuration;
[0031] The network node configuration object represented by the bit with a value of 0 has an invalid configuration.
[0032] Optionally, the display configuration page includes: displaying the target byte position field with a drop-down box element; the drop-down box element includes different target byte position IDs.
[0033] Optionally, the display configuration page includes: displaying the target bit position field with a drop-down box element; the drop-down box element includes different target bit position IDs.
[0034] Optionally, the display configuration page includes: displaying the target bit position field in a radio button element; the radio button element includes different target bit position IDs.
[0035] The present application also provides a vehicle OTA configuration system, including:
[0036] A page display module, used to: if the DID data of the vehicle is obtained, display a configuration page, the configuration page including a target byte position field and a target bit position field for receiving input data;
[0037] A byte determination module, configured to determine a target byte in the DID data according to the target byte position field;
[0038] A bit determination module, configured to search for a target bit in the target byte according to the target bit position field;
[0039] A configuration module is used to configure the configuration object represented by the target bit according to the acquired configuration data; the configuration object includes a network node configuration object and a function configuration object.
[0040] In some embodiments, by setting the target byte position field and the target bit position field on the configuration page, the position of the configuration object is determined according to the above fields, and then the configuration object is configured. The user can flexibly configure the configuration object by changing the above fields, which can reduce configuration complexity, improve work efficiency, improve software readability, and reduce software maintenance costs.
[0041] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] Figure 1 Shown is a flow chart of an embodiment of a vehicle OTA configuration method of the present application.
[0044] Figure 2 Shown is a schematic diagram of an embodiment of a configuration page of the present application.
[0045] Figure 3 Shown is a flowchart of an embodiment of the configuration method of the present application when used to configure a network node configuration object.
[0046] Figure 4 Shown is a flowchart of an embodiment of the configuration method of the present application when used to configure a functional configuration object.
[0047] Figure 5 It is a block diagram of an embodiment of the vehicle OTA configuration system provided by the present application. DETAILED DESCRIPTION
[0048] The present application provides a vehicle OTA configuration method and configuration system. The vehicle OTA configuration method and configuration system of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.
[0049] Figure 1 Shown is a flow chart of an embodiment of a vehicle OTA configuration method 10 of the present application.
[0050] The vehicle OTA configuration method 10 is used to configure the vehicle configuration objects. The configuration objects include network node configuration objects and function configuration objects.
[0051] Among them, for the network node configuration object, the vehicle OTA configuration method 10 is used to configure the network node for it. Network node configuration refers to the configuration of each electronic control unit (ECU) that supports OTA function in the internal network of the vehicle to ensure that they can receive and execute remotely pushed software updates. These ECU nodes are the basic units of the OTA system, which are responsible for receiving, verifying and installing update packages.
[0052] For the function configuration object, the vehicle OTA configuration method 10 is used to configure the function. The function configuration object includes multiple functions that support the vehicle's OTA technology, including vehicle application updates, entertainment system updates, navigation system updates, power control system updates, etc. Function configuration refers to the selection and configuration of specific functions that the vehicle supports to be updated through OTA technology. For example, the entertainment system adds a search function, a recommendation function, etc.
[0053] During the OTA update process, network node configuration and function configuration need to be configured in coordination. Node configuration ensures smooth transmission and installation of the update package, and function configuration completes the new functions or improvements included in the update package.
[0054] like Figure 1 As shown, the vehicle OTA configuration method 10 includes: step 11 to step 14. The configuration system of the present application is used to execute the configuration method 10 of the present application.
[0055] Step 11: If the DID data of the vehicle is obtained, a configuration page is displayed, which includes a target byte position field and a target bit position field for receiving user input data.
[0056] The vehicle's DID data is a series of configuration information used to identify and obtain specific parameter data in the vehicle's electronic control unit (ECU). This configuration information plays a key role in vehicle diagnosis, performance evaluation, troubleshooting, and maintenance. Each vehicle has different DID data.
[0057] When configuring a vehicle, if the DID data of the vehicle can be obtained, the configuration page is displayed, and the configuration page enables the vehicle configuration personnel to configure the configuration objects of the vehicle as needed.
[0058] Figure 2 The diagram of one embodiment of the configuration page of the present application is shown. On the configuration page, a target byte position field and a target bit position field can be seen, and the above two fields can receive user input data.
[0059] The target byte position field requires the user to enter or select a specific byte position. In the vehicle's DID data, the data is usually organized in bytes, and each byte contains 8 bits. The target byte position field can be used to know the target byte where the configuration object is located.
[0060] The target bit position field requires the user to enter or select a specific bit position. The target bit position field can be used to know the target bit position of the configuration object in the target byte.
[0061] Users can directly enter data in the fields of the configuration page, or select data according to the options in each field. Through the target byte position field and the target bit position field, users can easily set the location of the configuration object. The configuration system will locate the configuration object to be configured based on the byte position and bit position entered by the user.
[0062] In some embodiments, the “display configuration page” described in step 11 includes:
[0063] The target byte position field is presented as a drop-down box element; the drop-down box element includes different target byte position IDs; or
[0064] Displaying the target bit position field with a drop-down box element; the drop-down box element includes different target bit position IDs; or
[0065] The target bit position field is displayed as a radio button element; the radio button element includes different target bit position IDs.
[0066] The drop-down box of the target byte position field allows the user to select a target byte position from a predefined list. The configuration system predefines a series of possible byte position IDs based on the characteristics of the vehicle's DID data and populates them into the drop-down box as options. Users can find and select the byte position they want to operate on by scrolling or searching.
[0067] The drop-down box of the target bit position field contains different target bit position IDs, which represent different bit positions within the selected target byte. After selecting the target byte position, the configuration system will generate and display a drop-down box containing all possible bit position IDs based on the bit structure of the byte. Users can select the specific bit position they want to operate on.
[0068] Radio buttons are used to select one option from a set of options. Radio buttons are usually displayed side by side, and users can directly select the option they want by clicking on it.
[0069] Since the number of target bit positions is not too large, using radio buttons to display the target bit position field can improve the intuitiveness of the user interface and simplify the operation. Each radio button is associated with a specific bit position ID, and users only need to click the radio button corresponding to the bit position they want to operate.
[0070] Step 12, determine the target byte in the DID data according to the target byte position field.
[0071] The target byte position field is used to specify the identifier or index of the target byte position where the configuration object is located in the DID data. The configuration system directly corresponds to the byte index in the DID data based on the value of the target byte position field. For example, if the target byte position field is 3, it means that the target byte is the fourth byte in the DID data (the index usually starts at 0).
[0072] Step 13, according to the target bit position field, search for the target bit in the target byte.
[0073] The target bit position field is used to specify which bit in the target byte is the identifier or index of the target bit. Since a byte has 8 bits, the value range of the target bit position field is usually 0 to 7 (index starts from 0).
[0074] According to the value of the target bit position field, find which bit in the target byte is the target bit. For example, if the position field is 3, it means that the target bit is the fourth bit in the target byte (counting from 0).
[0075] Step 14: configure the configuration object represented by the target bit according to the acquired configuration data.
[0076] In some embodiments, step 14 includes:
[0077] According to the acquired network configuration data, configure the network node configuration object represented by the target bit;
[0078] According to the acquired function configuration data, the function configuration object represented by the target bit is configured.
[0079] If the target bit represents a network node configuration object, the configuration system will configure the network node according to the acquired network configuration data, for example, the settings of network parameters such as IP address, port number, communication protocol, etc.
[0080] If the target bit represents a function configuration object, the configuration system will configure the function according to the obtained function configuration data, for example, turning a function on or off, adjusting function parameters, etc.
[0081] Before configuring the function object, it is usually necessary to configure the network node configuration. However, the order of the network node configuration and the function configuration is not limited.
[0082] In some embodiments, the configuration page further includes a calibration enable field for receiving a user input setting state and a calibration data field for inputting data; the configuration data is determined by the following steps:
[0083] If the setting state of the calibration enable field is to allow calibration, the data of the calibration data field is used as configuration data;
[0084] If the setting state of the calibration enable field is not to allow calibration, the DID data is used as configuration data.
[0085] The Calibration Enable field is used to set whether the user is allowed to specify configuration data through the Calibration Data field. If the Calibration Enable field is set to allow calibration, the configuration system uses the data entered by the user in the Calibration Data field as configuration data. If the Calibration Enable field is set to not allow calibration, the configuration system uses the DID data as configuration data.
[0086] The calibration enable field and calibration data field allow the use of user-entered data instead of DID data. When there are errors in the network node configuration or optimization is required, the vehicle network node can be verified and adjusted quickly and easily without changing the main code of the hardware and software.
[0087] In some embodiments, by setting the target byte position field and the target bit position field on the configuration page, the position of the configuration object is determined according to the above fields, and then the configuration object is configured. The user can flexibly configure the configuration object by changing the above fields, which can reduce configuration complexity, improve work efficiency, improve software readability, and reduce software maintenance costs.
[0088] In some embodiments, the configuration page further includes a target byte direction field for receiving user input data. After step 12, the configuration method 10 further includes: determining a search direction of the target byte according to the target byte direction field. And, step 13 includes: searching for a target bit in the target byte according to the search direction according to the target bit position field.
[0089] After the target byte is determined, the target bit may be searched in a default direction, or the target bit may be searched in accordance with the method of this embodiment.
[0090] In this embodiment, the target byte direction field allows the user to enter or select a value to indicate the direction to be followed when searching for the target bit in subsequent operations. The direction refers to the search mode from left to right (i.e., low bit to high bit) or from right to left (i.e., high bit to low bit) within the target byte.
[0091] After determining the target byte in step 12, the configuration system dynamically determines the direction of searching for the target bit in the target byte based on the value entered or selected by the user in the "Target Byte Direction Field". If the direction is from left to right, the search starts from the lowest bit of the byte and moves the corresponding number of bits to the right (i.e., to the higher bits) according to the target bit position field to find the target bit. If the direction is from right to left, the search process will be reversed.
[0092] Setting the target byte direction field can improve the flexibility and compatibility of the configuration method 10. By allowing the user to specify the search direction, the configuration system can more flexibly adapt to different data formats and protocol requirements, thereby simplifying the configuration process and reducing the possibility of errors.
[0093] In some embodiments, after step 14, the configuration method 10 includes: bitwise ANDing the target byte and the reference byte to obtain a bitwise ANDing result; each bit of the reference byte is 1; and confirming the configuration result according to the bitwise ANDing result.
[0094] The configuration result is confirmed by introducing a reference byte, in which each bit of the reference byte is set to 1.
[0095] The bitwise AND operation is a binary operation that performs a logical AND operation on each bit of two binary numbers (or bytes) of the same length. If both corresponding bits are 1, the result bit is 1; otherwise, the result bit is 0.
[0096] The reference byte is used as a mask to perform a bitwise AND operation with the target byte.
[0097] Perform a bitwise AND operation on the target byte and the reference byte. The result is a new byte. Since all bits of the reference byte are 1, the result actually retains all 1 bits in the target byte and clears all 0 bits.
[0098] Bitwise AND can be used to detect whether a specific bit is 1. After obtaining the bitwise AND result, the result of configuring the target bit is confirmed based on the bitwise AND result.
[0099] In some embodiments, the configuration object is a network node configuration object, and confirming the configuration result according to the bitwise AND result includes:
[0100] In the bitwise AND result, the network node configuration object represented by the bit with a value of 1 has a valid configuration;
[0101] The network node configuration object represented by the bit with a value of 0 has an invalid configuration.
[0102] The bit with a value of 1 corresponds to the valid configuration of the network node configuration object, and the bit with a value of 0 corresponds to the invalid configuration of the network node configuration object. In the bitwise AND result, if the value of a bit is 1, it means that the bit at the corresponding position in the target byte is also 1. If the configuration bit of a network node is set to 1, then after the bitwise AND operation, the configuration is still retained as valid.
[0103] On the contrary, if the value of a bit in the bitwise AND result is 0, it means that in the target byte, the bit at the corresponding position is 0 or the target bit is not set to a valid configuration.
[0104] In some other embodiments, the configuration object is a function configuration object, and the configuration page includes a maximum configuration value field and a minimum configuration value field. The maximum configuration value field indicates the maximum configuration value allowed by the function configuration object, and the minimum configuration value field indicates the minimum configuration value allowed by the function configuration object. The confirmation of the configuration result according to the bitwise AND result includes:
[0105] Left shift and result to get the left shift result;
[0106] If the left shift result is between the maximum configuration value and the minimum configuration value, the configuration is valid;
[0107] If the left shift result is not between the maximum configuration value and the minimum configuration value, the configuration object is configured by default.
[0108] Left shift is a bit operation that shifts all bits of a number to the left by the specified number of bits. The excess bits will be discarded, and the newly added bits on the right will be filled with 0. The purpose of left shift and result is to convert the bit and result into a value that can be directly compared with the maximum and minimum configuration values.
[0109] After the left shift, the left shift result is compared with the maximum configuration value and the minimum configuration value, so as to determine whether the left shift result falls within the allowed configuration value range.
[0110] If the left shift result is between the maximum configuration value and the minimum configuration value (including these two values), the configuration is considered valid. This means that the selected configuration option or level meets the requirements and can be accepted and applied by the system.
[0111] If the left shift result is not between the maximum configuration value and the minimum configuration value, the configuration is considered invalid. In this case, the configuration system performs a default configuration on the configuration object to ensure that the system can continue to run without interruption due to the invalid configuration.
[0112] In some embodiments, the number of bits shifted left is determined according to the target byte bit position field. In some embodiments, the configuration method 10 further includes: if the DID data is not obtained, the configuration object of the vehicle is configured by default. The default configuration is a configuration that ensures the basic functions of the vehicle's OTA. In this way, if the DID data is not set when the vehicle leaves the factory, the basic functions of the vehicle are also guaranteed.
[0113] Figure 3 The flowchart of an embodiment of the configuration method of the present application when used to configure a network node configuration object is shown. In this embodiment, the result after configuration is set to 1, and the configuration is considered valid. The configuration method 10 includes steps 11 to 18.
[0114] Steps 11 to 15 are as described above and will not be repeated here.
[0115] Step 16, determine the value of each bit in the bit and result.
[0116] If the value is 1, go to step 17 and the configuration is valid.
[0117] If the value is 0, go to step 18 and the configuration is invalid.
[0118] Figure 4 The flowchart of an embodiment of the configuration method of the present application when used to configure a functional configuration object is shown. The configuration method 10 includes steps 11 to 194.
[0119] Steps 11 to 15 are as described above and will not be repeated here.
[0120] Step 191, left shift and the result to obtain the left shift result.
[0121] Step 192: Check whether the left shift result is between the maximum configuration value and the minimum configuration value.
[0122] If yes, execute step 193 and the configuration is valid.
[0123] If not, execute step 194 to perform default configuration on the function configuration object.
[0124] Figure 5 It is a block diagram of an embodiment of a vehicle OTA configuration system 20 provided by the present application.
[0125] The vehicle OTA configuration system includes: a page display module 21, a byte determination module 22, a bit determination module 23 and a configuration module 24.
[0126] The page display module 21 is used to display a configuration page if the DID data of the vehicle is acquired. The configuration page includes a target byte position field and a target bit position field for receiving input data.
[0127] The byte determination module 22 is used to determine the target byte in the DID data according to the target byte position field.
[0128] The bit determination module 23 is used to search for a target bit in a target byte according to the target bit position field.
[0129] The configuration module 24 is used to configure the configuration object represented by the target bit according to the acquired configuration data; the configuration object includes a network node configuration object and a function configuration object.
Claims
1. A vehicle OTA configuration method, It is characterized in that include: If the DID data of the vehicle is obtained, a configuration page is displayed, wherein the configuration page includes a target byte position field and a target bit position field for receiving user input data; Determine a target byte in the DID data according to the target byte position field; According to the target bit position field, searching for a target bit in the target byte; According to the acquired configuration data, the configuration object represented by the target bit is configured; the configuration object includes a network node configuration object and a function configuration object.
2. The vehicle OTA configuration method according to claim 1, It is characterized in that The configuration page also includes a target byte direction field for receiving user input data; after the target byte is determined, the configuration method further includes: determining the search direction of the target byte according to the target byte direction field; The step of searching for a target bit in the target byte according to the target bit position field includes: According to the target bit position field and in accordance with the search direction, a target bit is searched in the target byte.
3. The vehicle OTA configuration method according to claim 1, It is characterized in that The configuration page also includes a calibration enable field for receiving a user input setting state and a calibration data field for inputting data; The configuration data is determined by the following steps: If the setting state of the calibration enable field is to allow calibration, the data of the calibration data field is used as the configuration data; If the setting state of the calibration enable field is that calibration is not allowed, the DID data is used as the configuration data.
4. The vehicle OTA configuration method according to claim 1, It is characterized in that The configuration method further includes: If the DID data is not obtained, the configuration object of the vehicle is configured by default; the default configuration is a configuration that ensures the basic functions of the OTA of the vehicle.
5. The vehicle OTA configuration method according to claim 1, It is characterized in that The configuration data includes network configuration data and function configuration data; and configuring the configuration object represented by the target bit according to the acquired configuration data includes: According to the acquired network configuration data, configure the network node configuration object represented by the target bit; According to the acquired function configuration data, the function configuration object represented by the target bit is configured.
6. The vehicle OTA configuration method according to claim 1, It is characterized in that In configuring the configuration object represented by the target bit according to the acquired configuration data, the configuration method includes: bitwise AND the target byte and the reference byte to obtain a bitwise AND result; each bit of the reference byte is 1; The configuration result is confirmed according to the bitwise AND result.
7. The vehicle OTA configuration method according to claim 6, It is characterized in that The configuration object is the function configuration object, and the configuration page includes a maximum configuration value field and a minimum configuration value field; the maximum configuration value field indicates the maximum configuration value allowed by the function configuration object, and the minimum configuration value field indicates the minimum configuration value allowed by the function configuration object; The confirming the configuration result according to the bitwise AND result includes: Left shift the bit and result to obtain a left shift result; If the left shift result is between the maximum configuration value and the minimum configuration value, the configuration is valid; If the left shift result is not between the maximum configuration value and the minimum configuration value, the configuration object is configured by default.
8. The vehicle OTA configuration method according to claim 6, It is characterized in that The configuration object is the network node configuration object, and the confirming the configuration result according to the bitwise AND result includes: In the bitwise AND result, the network node configuration object represented by the bit with a value of 1 has a valid configuration; The network node configuration object represented by the bit with a value of 0 has an invalid configuration.
9. The vehicle OTA configuration method according to claim 1, It is characterized in that The display configuration page includes: The target byte position field is displayed using a drop-down box element; the drop-down box element includes different target byte position IDs; or The target bit position field is displayed using a drop-down box element; the drop-down box element includes different target bit position IDs; or The target bit position field is displayed as a radio button element; the radio button element includes different target bit position IDs.
10. A vehicle OTA configuration system, It is characterized in that include: A page display module, used to: if the DID data of the vehicle is obtained, display a configuration page, the configuration page including a target byte position field and a target bit position field for receiving input data; A byte determination module, configured to determine a target byte in the DID data according to the target byte position field; A bit determination module, configured to search for a target bit in the target byte according to the target bit position field; A configuration module is used to configure the configuration object represented by the target bit according to the acquired configuration data; the configuration object includes a network node configuration object and a function configuration object.
