CN117971874A - Configuration word generation method and device, electronic equipment and storage medium - Google Patents

Configuration word generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117971874A
CN117971874A CN202410090144.4A CN202410090144A CN117971874A CN 117971874 A CN117971874 A CN 117971874A CN 202410090144 A CN202410090144 A CN 202410090144A CN 117971874 A CN117971874 A CN 117971874A
Authority
CN
China
Prior art keywords
configuration
configuration word
engineering
vehicle type
byte
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410090144.4A
Other languages
Chinese (zh)
Inventor
范映峰
张伟利
王冲
赵军朋
吴佳皓
刘宁宁
陈佳琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202410090144.4A priority Critical patent/CN117971874A/en
Publication of CN117971874A publication Critical patent/CN117971874A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device, electronic equipment and a storage medium for generating configuration words, wherein the method comprises the following steps: acquiring an engineering configuration table of a target train and a configuration word attribute table of a controller associated with the target train; the engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller; based on the engineering configuration table and the configuration word attribute table, a configuration word corresponding to the vehicle model of the controller is generated. The method can automatically generate the configuration word of at least one vehicle type under the target vehicle system corresponding to the controller based on the engineering configuration table and the configuration word attribute table of the target vehicle system, improves the efficiency of configuration word generation, reduces the risk of incomplete recognition or wrong recognition in the process of manually recognizing and generating the configuration word, and ensures the quality of the vehicle.

Description

Configuration word generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computers, and more particularly, to a method, apparatus, electronic device, and storage medium for generating a configuration word in the field of computers.
Background
With the continuous development of the trend of electric, intelligent, networking and sharing of automobiles, more and more functions are related to electronic control of automobiles, and the realization of the functions requires each controller or each ECU (Electronic Control Unit, electronic controller unit) to singly control related functions or multiple ECUs to cooperatively realize corresponding functions.
The vehicle is composed of thousands of parts, each part is divided into different functions, and a plurality of ECUs are correspondingly distributed under different functional layers, so that the vehicle needs to realize different functions and related ECUs need to be associated. The related ECUs are required to be associated through configuration words, each ECU realizes one or more functions and also has corresponding configuration information, the configuration information is endowed with corresponding codes, and the corresponding codes are correspondingly called through writing the configuration words, so that the functions of the vehicle are realized.
At present, the industry generally identifies corresponding information to generate configuration words of a single ECU by manpower, the efficiency of the manual identification method is low, and the risk of incomplete identification or incorrect identification easily occurs, which can cause the problem that the functions of the vehicle cannot be realized and finally the quality of the vehicle is affected.
Disclosure of Invention
The application provides a method, a device, electronic equipment and a storage medium for generating configuration words, which can automatically generate the configuration words, improve the efficiency of generating the configuration words, reduce the risk of incomplete recognition or recognition errors in the process of manually recognizing and generating the configuration words, and ensure the quality of vehicles.
In a first aspect, a method for generating a configuration word is provided, the method comprising: acquiring an engineering configuration table of a target train and a configuration word attribute table of a controller associated with the target train; the engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller; based on the engineering configuration table and the configuration word attribute table, a configuration word corresponding to the vehicle model of the controller is generated.
According to the technical scheme, the configuration word of the controller corresponding to at least one vehicle type under the target vehicle system is automatically generated based on the engineering configuration table of the target vehicle system and the configuration word attribute table of the controller, so that the efficiency of configuration word generation is improved, the risk of incomplete recognition or wrong recognition in the process of manually recognizing and generating the configuration word is reduced, and the quality of the vehicle is ensured.
With reference to the first aspect, in some possible implementations, generating a configuration word of the controller corresponding to the vehicle model based on the engineering configuration table and the configuration word attribute table includes: associating the engineering configuration table with the configuration word attribute table to generate a project configuration word list; the project configuration word list comprises an association relation between configuration word generation information and engineering configuration information; based on the project configuration word list, a configuration word corresponding to the vehicle model of the controller is generated.
In the technical scheme, the project configuration word list is obtained by associating the engineering configuration table and the configuration word attribute table, so that the configuration word can be accurately and quickly generated based on one generated table, and the condition of searching errors during searching based on the two tables is avoided.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, the configuration word attribute table includes a feature value of a configuration item of the controller, and the associating the engineering configuration table with the configuration word attribute table to generate an item configuration word list includes: determining a target configuration item matched with the characteristic value in the engineering configuration table based on the characteristic value of the configuration item in the configuration word attribute table; determining a characteristic value state corresponding to the target configuration item in the engineering configuration table; a list of item configuration words is generated based on the eigenvalue status.
According to the technical scheme, the target configuration item can be accurately determined in the engineering configuration table based on the characteristic value in the configuration word attribute table, and the project configuration word list is generated based on the characteristic value state accurately determined by the target configuration item, so that the subsequent rapid and accurate generation of the configuration word based on the project configuration word list is facilitated.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, the engineering configuration table includes a first vehicle type column, an initial eigenvalue state is filled in the first vehicle type column, and the generating a project configuration word list based on the eigenvalue state includes: based on a first vehicle type column in the engineering configuration table, adding a second vehicle type column in the configuration word attribute table; the column number of the second vehicle type column is the same as that of the first vehicle type column; and filling in a second model column based on the characteristic value state to obtain a project configuration word list.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, generating, based on the project configuration word list, a configuration word of the controller corresponding to a vehicle model includes: based on the second model column, determining the binary value of each byte of the controller corresponding to the model; wherein the binary value is used to characterize the configuration word; converting the binary values into hexadecimal values, and respectively combining hexadecimal values corresponding to the vehicle types into an array in a preset format according to byte sequences to obtain configuration words corresponding to the vehicle types by the controller.
According to the technical scheme, the binary value representing the configuration word is determined based on the second train type, the binary value is converted into the hexadecimal value, and the configuration words corresponding to the train type in the second train type by the controller can be automatically and accurately generated based on the preset format combination, so that the cost of manually identifying and generating the configuration words is reduced, and the efficiency and the accuracy of generating the configuration words are improved.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, the feature value state includes a standard configuration state, and determining, based on the second model column, a binary value of each byte of the controller corresponding to the vehicle model includes: determining the standard configuration state filled in a second type column of the project configuration word list; determining a numerical value corresponding to the allocation state based on the row position and the preset column position of the allocation state in the project allocation word list; updating the standard allocation state into a numerical value; and determining the binary value of each byte of the controller corresponding to the vehicle type based on the updated project configuration word list.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, the project configuration word list includes a correspondence between a numerical value and a digit, and a correspondence between a numerical value and a byte, and determining, based on the updated project configuration word list, a binary value of each byte of a controller corresponding to a vehicle model includes: determining the number of bits and bytes corresponding to the numerical value based on the updated project configuration word list; and combining the numerical values of the same byte listed in the same vehicle model according to the number of bits to obtain the binary value of each byte of the controller corresponding to the vehicle model.
In summary, the application can automatically generate the configuration word of at least one vehicle type under the target train corresponding to the controller based on the engineering configuration table of the target train and the configuration word attribute table of the controller, thereby improving the efficiency of configuration word generation, reducing the risk of incomplete recognition or wrong recognition in the process of manually recognizing and generating the configuration word, and ensuring the quality of the vehicle. By associating the engineering configuration table with the configuration word attribute table to obtain the project configuration word list, the configuration word can be accurately and quickly generated based on one generated table, and the condition of searching errors during searching based on the two tables is avoided. The method has the advantages that the target configuration item can be accurately determined in the engineering configuration table based on the characteristic value in the configuration word attribute table, the project configuration word list is generated based on the characteristic value state accurately determined by the target configuration item, and the subsequent rapid and accurate generation of the configuration words based on the project configuration word list is facilitated. The binary value of the characterization configuration word is determined based on the second train, the binary value is converted into the hexadecimal value, and the configuration words corresponding to the train type in the second train can be automatically and accurately generated based on the preset format combination, so that the cost of manually identifying and generating the configuration word is reduced, and the efficiency and the accuracy of generating the configuration word are improved.
In a second aspect, there is provided an apparatus for generating a configuration word, the apparatus comprising: the acquisition module is used for acquiring the engineering configuration table of the target train and the configuration word attribute table of the controller associated with the target train; the engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller; and the generating module is used for generating the configuration word of the controller corresponding to the vehicle type based on the engineering configuration table and the configuration word attribute table.
With reference to the second aspect, in some possible implementations, the generating module is specifically configured to associate the engineering configuration table with the configuration word attribute table to generate a project configuration word list; the project configuration word list comprises an association relation between configuration word generation information and engineering configuration information; based on the project configuration word list, a configuration word corresponding to the vehicle model of the controller is generated.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the configuration word attribute table includes a feature value of a configuration item of the controller, and the generating module is specifically configured to determine, in the engineering configuration table, a target configuration item that matches the feature value based on the feature value of the configuration item in the configuration word attribute table; determining a characteristic value state corresponding to the target configuration item in the engineering configuration table; a list of item configuration words is generated based on the eigenvalue status.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the engineering configuration table includes a first vehicle type column, an initial characteristic value state is filled in the first vehicle type column, and the generating module is specifically configured to add a second vehicle type column in the configuration word attribute table based on the first vehicle type column in the engineering configuration table; the column number of the second vehicle type column is the same as that of the first vehicle type column; and filling in a second model column based on the characteristic value state to obtain a project configuration word list.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the generating module is specifically configured to determine, based on the second model column, a binary value of each byte of the controller corresponding to the vehicle model; wherein the binary value is used to characterize the configuration word; converting the binary values into hexadecimal values, and respectively combining hexadecimal values corresponding to the vehicle types into an array in a preset format according to byte sequences to obtain configuration words corresponding to the vehicle types by the controller.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the feature value state includes a standard configuration state, and the generating module is specifically configured to determine the standard configuration state filled in the second vehicle type column of the project configuration word list; determining a numerical value corresponding to the allocation state based on the row position and the preset column position of the allocation state in the project allocation word list; updating the standard allocation state into a numerical value; and determining the binary value of each byte of the controller corresponding to the vehicle type based on the updated project configuration word list.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the project configuration word list includes a correspondence between a numerical value and a digit, and a correspondence between a numerical value and a byte, and the generating module is specifically configured to determine, based on the updated project configuration word list, the digit and the byte corresponding to the numerical value; and combining the numerical values of the same byte listed in the same vehicle model according to the number of bits to obtain the binary value of each byte of the controller corresponding to the vehicle model.
In a third aspect, there is provided an electronic device comprising: memory and a processor. The memory is for storing executable program code and the processor is for calling and running the executable program code from the memory for causing the electronic device to perform the method of the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, there is provided a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, a computer readable storage medium is provided, the computer readable storage medium storing computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic flow chart of a method for generating a configuration word according to an embodiment of the present application.
Fig. 2 is a schematic diagram of an engineering configuration table according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a configuration word attribute table of a controller according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a project configuration word list according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a mapping table according to an embodiment of the present application.
Fig. 6 is a schematic flow chart of another method for generating a configuration word provided by an embodiment of the present application.
Fig. 7 is a schematic diagram of an output table according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a configuration word generating device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B: the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present application, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
The vehicle is composed of thousands of parts, each part is divided into different functions, and a plurality of ECUs are correspondingly distributed under different functional layers, so that the vehicle needs to realize different functions and related ECUs need to be associated. The related ECUs are required to be associated through configuration words, each ECU realizes one or more functions and also has corresponding configuration information, the configuration information is endowed with corresponding codes, and the corresponding codes are correspondingly called through writing the configuration words, so that the functions of the vehicle are realized.
The configuration word refers to a character string and a byte sequence used for setting and adjusting hardware and software system parameters in computers, mobile phones and other devices.
In the prior art, the configuration word of the single ECU is generated by manually identifying corresponding information, the efficiency of a manual identification method is low, and the risk of incomplete identification or incorrect identification easily occurs, so that the functions of a vehicle cannot be realized, and the quality problem of the vehicle is finally affected.
Based on the above problems, the present application provides a method for generating a configuration word, which is applied to an RPA (Robotic Process Automation, robot flow automation) system. The method can automatically generate the configuration words of the single ECU corresponding to different vehicle types under a certain vehicle system, improves the efficiency of generating the configuration words, reduces the risk of incomplete recognition or recognition errors, and ensures the quality of the vehicle.
Fig. 1 is a schematic flow chart of a method for generating a configuration word according to an embodiment of the present application.
Illustratively, as shown in FIG. 1, the method includes:
step 101, acquiring an engineering configuration table of a target train and a configuration word attribute table of a controller associated with the target train.
The engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller; specifically, the configuration word attribute table includes configuration word generation information of a configuration item configurable for the controller, and the configuration word may be generated based on the configuration word generation information.
It should be understood that there are multiple trains under the brand of the automobile, one train being one type of vehicle, and one type of vehicle may have different configurations, and then the same type of vehicle with different configurations is the different types of vehicles under the train. Specific different configurations may include standard configurations, medium configurations, high configurations, etc., and corresponding vehicle models may include standard vehicle models, medium vehicle models, high vehicle models, etc. The target train may be any train under a certain brand of automobile.
In some embodiments, a vehicle system may also be referred to as an item, and a target vehicle system may be referred to as a target item.
The engineering configuration table can comprise configuration items of vehicles under the target train and engineering configuration information of at least one vehicle type under the target train corresponding to each configuration item, and the engineering configuration information of at least one vehicle type corresponding to the configuration items can be found based on a certain configuration item in the engineering configuration table. Wherein the configuration item may be understood as a function of the vehicle.
It should be understood that when the engineering configuration table includes engineering configuration information of multiple vehicle types under the target train, the engineering configuration information of the configuration items corresponding to the multiple vehicle types may be determined based on the engineering configuration table.
The vehicle under the train may include a plurality of controllers for controlling the whole vehicle to perform different functions, the controller associated with the target train being any one of the plurality of controllers.
The configuration word attribute table of the controller is a table for establishing configuration word generation information corresponding to the configuration items which can be configured by the controller in advance. The configuration word generation information for a certain configuration item may be looked up based on a configuration word attribute table.
When the engineering configuration information is the engineering configuration information of which the configuration items correspond to multiple vehicle types, the configuration word generation information of the controller corresponding to the multiple vehicle types can be determined based on the engineering configuration information.
The user can input the engineering configuration table and the configuration word attribute table into the RPA system, so that the RPA system obtains the engineering configuration table and the configuration word attribute table.
By way of example, a user may install a cloud desktop of the RPA system on a client, start the cloud desktop based on a pre-registered account number and password, then create a folder based on the cloud desktop, name the folder as "project configuration word generation automation", and then place an engineering configuration table and a configuration word attribute table under the folder, thereby implementing inputting the engineering configuration table and the configuration word attribute table into the RPA system.
Step 102, generating a configuration word corresponding to the vehicle type of the controller based on the engineering configuration table and the configuration word attribute table.
After the RPA system acquires the engineering configuration table and the configuration word attribute table, the configuration items which can be configured by the controller can be determined firstly based on the configuration word attribute table, engineering configuration information of the configuration items which can be configured by the controller and correspond to different vehicle types is determined in the engineering configuration table based on the determined configuration items, configuration word generation information of each configuration item is determined in the configuration word attribute table based on the determined engineering configuration information, and the configuration word of the vehicle type is determined based on the determined configuration word generation information.
In some embodiments, after the RPA system obtains the engineering configuration table and the configuration word attribute table, the RPA system may further detect the obtained content based on the preset condition, and when detecting that the obtained content does not meet the preset condition, perform an error reporting prompt to remind the user to correct, and after detecting that the content meets the preset condition, generate the configuration word based on the engineering configuration table and the configuration word attribute table.
The preset conditions may be: searching whether the names of the engineering configuration table and the configuration word attribute table comprise preset keywords or not, and judging whether the engineering configuration table and the configuration word attribute table comprise a plurality of tables or not. When the preset keywords are not detected and/or a plurality of tables are detected, the acquired content is determined to be not in accordance with the preset conditions, and at the moment, error reporting prompt is carried out to remind a user to correct.
According to the method, the configuration word of the controller corresponding to at least one vehicle type under the target vehicle system can be automatically generated based on the engineering configuration table of the target vehicle system and the configuration word attribute table of the controller, so that the efficiency of configuration word generation is improved, the risk of incomplete recognition or wrong recognition in the process of manually recognizing and generating the configuration word is reduced, and the quality of the vehicle is ensured.
In a possible implementation manner, generating a configuration word of the controller corresponding to the vehicle type based on the engineering configuration table and the configuration word attribute table includes: associating the engineering configuration table with the configuration word attribute table to generate a project configuration word list; the project configuration word list comprises an association relation between configuration word generation information and engineering configuration information; based on the project configuration word list, a configuration word corresponding to the vehicle model of the controller is generated.
The configuration word attribute table comprises configuration word generation information of certain configuration items in the engineering configuration table, the configuration word generation information can be determined according to the engineering configuration information of certain configuration items in the engineering configuration table, and then the association relationship between the engineering configuration information and the configuration word generation information can be established to obtain an item configuration word list.
Specifically, in the engineering configuration table, for the same vehicle model, one configuration item corresponds to one engineering configuration information. In the configuration word attribute table of the controller, corresponding configuration word generation information exists in a configuration item corresponding to a certain vehicle type. The association relationship between the engineering configuration information and the configuration word generation information can be established based on the association relationship between the engineering configuration information and the configuration items and the association relationship between the configuration items and the configuration word generation information, so as to obtain the project configuration word list.
After determining the item configuration word list, configuration word generation information corresponding to the configuration item may be determined based on the item configuration word list, and the configuration word may be generated based on the configuration word generation information.
According to the method, the project configuration word list is obtained by associating the engineering configuration table and the configuration word attribute table, so that the configuration word can be accurately and quickly generated based on one generated table, and the condition of searching errors during searching based on the two tables is avoided.
In some embodiments, the engineering configuration table further includes a feature value, a feature value state, some other information for characterizing the configuration item, and a correspondence between the information. The characteristic value state is the engineering configuration information. This is illustrated by the following examples:
In a possible implementation, the configuration word attribute table includes a feature value of a configuration item configured by the controller, and the engineering configuration table and the configuration word attribute table are associated to generate a project configuration word list, including: determining a target configuration item matched with the characteristic value in the engineering configuration table based on the characteristic value of the configuration item in the configuration word attribute table; determining a characteristic value state corresponding to the target configuration item in the engineering configuration table; a list of item configuration words is generated based on the eigenvalue status.
The configuration word attribute table is a configuration word attribute table of a certain controller, wherein the configuration word attribute table comprises configuration word generation information of configuration items which can be configured by the controller, and the configuration word attribute table can also comprise characteristic values of the configuration items which can be configured by the controller. The engineering configuration table also comprises configuration characteristic values corresponding to different configuration items, the configuration characteristic values in the engineering configuration table can be searched in the engineering configuration table based on the characteristic values in the configuration word attribute table, and the configuration items with the same characteristic values in the engineering configuration table and the configuration word attribute table are determined to be target configuration items.
Fig. 2 is a schematic diagram of an engineering configuration table according to an embodiment of the present application.
Illustratively, as shown in FIG. 2, the engineering configuration table includes: a feature value encoding column, a feature value name column, and a feature value status column.
Wherein each term of the characteristic value name column represents a configuration item, and the characteristic value code column comprises characteristic values for representing the configuration item, such as AAA52, TCC00 and the like in the figure. The characteristic value state columns comprise an overall characteristic value state column, a standard vehicle type characteristic value state column, a medium vehicle type characteristic value state column and a high vehicle type characteristic value state column. The standard vehicle model feature value state column, the medium vehicle model feature value state column, and the high vehicle model feature value state column correspond to the last three columns in fig. 2. The eigenvalue status column includes eigenvalue status corresponding to the eigenvalue, such as "S", "-" in the figure.
Specifically, the characteristic value state includes a standard configuration state, which indicates that the corresponding characteristic value (or configuration item) is the standard configuration of the vehicle type, that is, the vehicle corresponding to the vehicle type has the corresponding engineering configuration, the corresponding vehicle capability can be used, and the expression form of the corresponding characteristic value under the vehicle type can be "S". The characteristic value state further comprises a matching state, and the matching state indicates that the corresponding characteristic value is the matching of the vehicle type, namely the vehicle corresponding to the vehicle type may or may not have the corresponding engineering configuration, the installation or the disassembly of the corresponding engineering configuration is required according to the user requirement, the corresponding vehicle capability is not necessarily required, and the expression form of the corresponding characteristic value under the vehicle type may be 0. And when the vehicle type does not have certain capabilities, the vehicle type does not have the corresponding characteristic value, and the expression form of the corresponding characteristic value under the vehicle type can be "".
Fig. 3 is a schematic diagram of a configuration word attribute table of a controller according to an embodiment of the present application.
Illustratively, as shown in FIG. 3, the configuration word attribute table includes: column a-sequence number column, column B-hierarchy column, column C-parent byte/bit/value column, and column D-characteristic value encoding column.
The sequence number column comprises sequence numbers, the hierarchy column comprises byte, bit, value and other hierarchy information, the parent byte/bit/value column comprises byte items, bit numbers, numerical values and other information, and the characteristic value coding column comprises characteristic values AAA48, AAA49 and the like for representing the configurable configuration items of the controller.
The feature values in the code column of the D-column feature values based on the configuration word attribute table may be retrieved in the engineering configuration table. As shown in fig. 3, column D of the configuration word attribute table includes: the characteristic values such as ZT1, AAA48, AAA49, ZT2, AAA50, AAA51, ZT3, AAA52, AAA53, ZT4, AAA54 and the like are searched in an engineering configuration table based on the characteristic values, and if the AAA52 in the engineering configuration table is the same as the AAA52 in the characteristic values, the target configuration item can be determined to be a CC02 configuration item, and the characteristic value state corresponding to the CC02 configuration item is determined in the engineering configuration table, so that engineering configuration information is obtained.
Specifically, determining, based on fig. 3, the characteristic value state corresponding to the CC02 configuration item includes: standard vehicle model characteristic value state S, medium vehicle model characteristic value state S, and high vehicle model characteristic value state S.
It should be understood that the target configuration item may further include other configuration items, and the feature value states corresponding to the other configuration items may be determined in the engineering configuration table based on the other configuration items through similar steps in the foregoing embodiments.
And after obtaining the corresponding characteristic value states of the target configuration items under different vehicle types, generating a project configuration word list based on the determined characteristic value states.
In the method, the target configuration item can be accurately determined in the engineering configuration table based on the characteristic value in the configuration word attribute table, and the project configuration word list is generated based on the accurate determination characteristic value state of the target configuration item, so that the subsequent rapid and accurate generation of the configuration word based on the project configuration word list is facilitated.
In a possible implementation manner, the engineering configuration table includes a first vehicle type column, an initial eigenvalue state is filled in the first vehicle type column, and a project configuration word list is generated based on the eigenvalue state, including: based on a first vehicle type column in the engineering configuration table, adding a second vehicle type column in the configuration word attribute table; the column number of the second vehicle type column is the same as that of the first vehicle type column; and filling in a second model column based on the characteristic value state to obtain a project configuration word list.
The first vehicle type column is a standard vehicle type feature value state column, a medium vehicle type feature value state column and a higher vehicle type feature value state column shown in fig. 2, and the table head of the first vehicle type column represents the vehicle type under the target vehicle system: standard, medium and high. After the characteristic value state of the target configuration item is determined, the table head of the first vehicle type column can be copied and pasted into the configuration word attribute table, so that the second vehicle type column is added into the configuration word attribute table. The added list head of the second vehicle type list is the same as the list head of the first vehicle type list, and the number of columns of the second vehicle type list and the first vehicle type list is also the same.
And determining the position of the target row in the configuration word attribute table based on the characteristic value corresponding to the target configuration item of the determined characteristic value state information, and filling the characteristic value state information into a second vehicle type column according to the vehicle type and the determined position of the target row to obtain the project configuration word list.
Fig. 4 is a schematic diagram of a project configuration word list according to an embodiment of the present application.
Exemplary, as shown in fig. 4, the header of the standard vehicle type, the medium vehicle type and the higher vehicle type in the engineering configuration table is copied to the E column, the F column and the G column of the configuration word attribute table, so as to obtain the second vehicle type column. Thereafter, the sequence number of the row is determined based on the feature value AAA52 of the target configuration item CC02 for which the feature value state is determined, and the sequence number is determined to be 9 based on fig. 4. And based on the determined characteristic value state of the standard vehicle type is S, the characteristic value state of the medium vehicle type is S, the characteristic value state of the higher vehicle type is S, S is filled in the cells of the standard vehicle type with the serial number of 9 in the second vehicle type column, S is filled in the cells of the medium vehicle type with the serial number of 9 in the second vehicle type column, S is filled in the cells of the higher vehicle type with the serial number of 9 in the second vehicle type column, and the characteristic value state determined based on all target configuration items is filled in the second vehicle type column by pushing the above steps to obtain a project configuration word list.
It should be understood that, the configuration word attribute table includes a correspondence between configuration word generation information and feature values, the item configuration word list is generated by adding a second type column to the configuration word attribute table and filling a feature value state in the second type column, and the feature value state in the item configuration word list is filled into the second type column based on the feature values, so that the generated item configuration word list includes a correspondence between the feature value state and the configuration word generation information, and the configuration word can be generated directly based on the generated item configuration word list.
In a possible implementation manner, generating a configuration word corresponding to a vehicle model by a controller based on a project configuration word list includes: based on the second model column, determining the binary value of each byte of the controller corresponding to the model; wherein the binary value is used to characterize the configuration word; converting the binary values into hexadecimal values, and respectively combining hexadecimal values corresponding to the vehicle types into an array in a preset format according to byte sequences to obtain configuration words corresponding to the vehicle types by the controller.
Wherein the binary values characterizing the configuration words are the configuration word generation information in the above embodiments.
A controller corresponds to a binary value with a certain byte length, and assuming that the controller in the embodiment of the application corresponds to a binary value with eighty bytes representing a configuration word, the binary value corresponding to each byte can be determined from byte zero to byte eighty one by one.
It should be understood that the controller may configure a plurality of configuration items, each configuration item corresponding to a binary value of the characterization configuration word, and then the binary value of the characterization configuration word is determined to be a long string, and for the sake of statistics, the binary value may be divided into bytes, and one byte includes an 8-bit binary value.
Binary values, i.e. configuration word generation information, the generated item configuration word list comprises the corresponding relation between the binary values and characteristic value states under each byte.
The eigenvalue status is filled in a second pattern column of the project configuration word list, and then the binary value can be determined based on the corresponding relation between the eigenvalue status and the binary value in the second pattern column.
For example, assuming that the binary value corresponding to the characteristic value state "S" in the item configuration word list is 01 and the binary value corresponding to the characteristic value state "-" is 00, the index state "S" in the second vehicle type column in the standard vehicle type column, the intermediate vehicle type column and the higher vehicle type column shown in fig. 4 may be converted to 01, and the unselected state "-" is converted to 00 to obtain the binary value.
In some embodiments, the item configuration word list includes a correspondence between a feature value and a byte, the byte may be determined based on the feature value, and the feature value state is filled based on the feature value, and then the byte to which the binary value belongs may be determined based on the feature value corresponding to the feature value state, so as to determine the binary value of each byte of the controller.
Specifically, the values of the same byte under the same vehicle model column can be combined according to the sequence from the large sequence number to the small sequence number corresponding to the row where the characteristic value state of the values is converted, so as to obtain the binary values of the bytes of the controller corresponding to different vehicle models.
Illustratively, as shown in fig. 4, the characteristic value states in the configuration word list are characteristic value states of characteristic values AAA48, AAA51, AAA52, AAA55, and bytes corresponding to the characteristic values AAA48, AAA51, AAA52, AAA55 are Byte zero, i.e. Byte 0 in the figure. The index state "S" is assigned to the row number 3,9, 13, and the non-selected state "-" is assigned to the row number 7. That is, the number corresponding to the number 13 is 0, the number corresponding to the number 9 is 01, the number corresponding to the number 7 is 00, and the number corresponding to the number 3 is 01, and then the numbers under the standard vehicle model list are combined according to the number 13, the number 9, the number 7 and the number 3 to obtain the binary value '01010001' of the controller byte zero.
In one possible implementation manner, the feature value state includes a standard configuration state, and based on the second model column, determining a binary value of each byte of the controller corresponding to the vehicle model includes: determining the standard allocation state filled in the vehicle type column of the project configuration word list; determining a numerical value corresponding to the allocation state based on the row position and the preset column position of the allocation state in the project allocation word list; updating the standard allocation state into a numerical value; and determining the binary value of each byte of the controller corresponding to the vehicle type based on the updated project configuration word list.
After the project configuration word list is obtained, filling in the characteristic value state of the target configuration item in a second model column in the project configuration word list, wherein the filled characteristic value state comprises: the standard state, the expression form is S; a selected state, the expression form is 0; the non-selected state is represented by "-".
The mapping status "S" filled in the second type column may be determined and the row position of each mapping status in the project configuration word list may be determined. The preset column position is a column storing binary values representing configuration words in the item configuration word list, specifically a column C in fig. 4. Based on the row where the standard configuration state "S" is located, a corresponding value may be determined in column C, and the standard configuration state "S" is updated to the value in column C, so as to obtain an updated item configuration word list.
In some embodiments, the optional state "0" and the optional state "-" in the project configuration word list may be converted into "00" to obtain a mapping table as shown in fig. 5, so as to fill in the blank binary value in each byte.
After the mapping table is obtained, the binary value of each byte of the controller under different vehicle types can be determined based on the mapping table.
In one possible implementation manner, the project configuration word list includes a numerical value and a number of bits, and a correspondence between the numerical value and bytes, and determining, based on the updated project configuration word list, a binary value of each byte of the controller corresponding to the vehicle model includes: determining the number of bits and bytes corresponding to the numerical value based on the updated project configuration word list; and combining the numerical values of the same byte listed in the same vehicle model according to the number of bits to obtain the binary value of each byte of the controller corresponding to the vehicle model.
The list of item configuration words C is listed as a parent byte/bit/value column, which includes numerical values and digits, and correspondence between numerical values and bytes. Specifically, in the C column, the first digit term above the value is the digit of the value, and the first byte term above the value is the byte of the value.
The updated mapping table also includes column C of the item configuration word list, that is, also includes the corresponding relationship between the numerical value and the number of bits, and between the numerical value and the bytes. Specifically, as shown in fig. 5, the column C includes a "byte item" including a "bit" of the byte under the "byte item" and a specific "numerical value" under the "bit". The byte in which the value is located and the bit in the byte can be determined based on the updated value in the model column and the correspondence.
For example, based on the column number 00 of row C with the number 3 in fig. 5, the first "Bit" is found upwards in column C, the number of bits of the numerical value 00 in the row with the number 3 of the second vehicle type column is determined to be 6 th to 7 th, that is, bit7-Bit6 in the figure, then the first "Byte entry" is found upwards, the Byte of the numerical value 00 is determined to be Byte zero, that is, byte 0 in the figure, and so on, the bytes and the number of bits of each numerical value in the column of the second vehicle type in fig. 5 are determined.
After the byte and the bit number of each numerical value in the second model column are determined, the numerical values of the same byte are combined based on the bit number sequence, and a binary value corresponding to the byte is obtained. When the second model list includes a plurality of models, the values of the models in the second model list may be combined according to the above method to obtain binary values of the bytes corresponding to different models.
For example, as shown in fig. 5, the second vehicle type column includes a standard vehicle type column, a middle vehicle type column, and a higher vehicle type column, the 0 th to 1 st digits "01", the 2 nd to 3 rd digits "00", the 4 th to 5 th digits "00", and the 6 th to 7 th digits "00" of byte zeros are determined based on the C column, the values under byte zeros are combined according to the number of bits, the binary value corresponding to byte zeros of the standard vehicle type is determined to be "01000000", and the binary value corresponding to byte zeros of the middle vehicle type is determined to be "00000100", and the binary value corresponding to byte zeros of the higher vehicle type is determined to be "01000000".
By cycling through the steps, the binary value corresponding to each byte of the controller can be determined sequentially.
In some embodiments, a BIN (Binary) linked list may be generated based on the byte entry (i.e., byte number) of the Binary value and the row number of the byte entry in the mapping list, as well as the Binary value of each byte. Wherein the row number is the value before the sequence number column in fig. 5.
TABLE 1
As shown in table 1, the BIN link table includes: binary values "01000000" corresponding to Byte zero (i.e., byte 0), binary value "10000111" corresponding to Byte one (i.e., byte 1), binary value "00010001" corresponding to Byte two (i.e., byte 2), binary value "0110001" corresponding to Byte three (i.e., byte 3), binary value "00010001" corresponding to Byte four (i.e., byte 4), and so forth for a standard vehicle model. Binary value "00000100" corresponding to byte zero of the medium vehicle type, binary value "10000111" corresponding to byte one, binary value "00010001" corresponding to byte two, binary value "0110001" corresponding to byte three, binary value "01000100" corresponding to byte four, and the like. Binary values "01000000" corresponding to higher vehicle type byte zero, "10000111" corresponding to byte one, "00010001" corresponding to byte two, "0110001" corresponding to byte three, "01010100" corresponding to byte four, and so on.
After obtaining the binary value, the obtained binary value may be converted into a hexadecimal value, wherein every four bits of binary values may be converted into one-bit hexadecimal values, and then the binary value of each byte may be converted into two-bit hexadecimal values.
In some embodiments, the binary values in the cells listed under the model of the BIN linked list may be converted to hexadecimal values to obtain a HEX (Hexadecimal ) linked list, as shown in table 2.
TABLE 2
As shown in table 2, the HEX link table includes a hexadecimal value "40" corresponding to byte zero, a hexadecimal value "87" corresponding to byte one, a hexadecimal value "11" corresponding to byte two, a hexadecimal value "71" corresponding to byte three, a hexadecimal value "00" corresponding to byte four, and so on. The method comprises the following steps of a hexadecimal value '04' corresponding to byte zero of a medium vehicle type, a hexadecimal value '84' corresponding to byte one, a hexadecimal value '11' corresponding to byte two, a hexadecimal value '71' corresponding to byte three, a hexadecimal value '44' corresponding to byte four and the like. Including the hexadecimal value "40" corresponding to the higher vehicle type byte zero, the hexadecimal value "84" corresponding to the byte one, the hexadecimal value "11" corresponding to the byte two, the hexadecimal value "71" corresponding to the byte three, the hexadecimal value "54" corresponding to the byte four, etc.
The preset format may be that the hexadecimal values converted from the binary values of each byte are separated by spaces, and then the converted hexadecimal values are arranged from byte zero to byte eighty, and the hexadecimal values of each byte are separated by spaces, so as to obtain the configuration word.
For example, as shown in table 2, the hexadecimal value "40" corresponding to byte zero, the hexadecimal value "87" corresponding to byte one, the hexadecimal value "11" corresponding to byte two, the hexadecimal value "71" corresponding to byte three, and the hexadecimal value "00" corresponding to byte four under the standard vehicle model list are arranged according to bytes, and spaces among the hexadecimal values of the bytes are separated, so as to obtain the configuration word "40 87 11 7100.
According to the method, the binary value representing the configuration word is determined based on the second vehicle type column, the binary value is converted into the hexadecimal value, and the configuration words corresponding to the vehicle type in the second vehicle type column by the controller can be automatically and accurately generated based on the preset format combination, so that the cost of manually identifying and generating the configuration word is reduced, and the efficiency and the accuracy of generating the configuration word are improved.
Fig. 6 is a schematic flow chart of another method for generating a configuration word provided by an embodiment of the present application.
Illustratively, as shown in FIG. 6, the method 600 includes:
Step 601, acquiring an engineering configuration table; step 602, obtaining a configuration word attribute library; the configuration word attribute library is the configuration word attribute table in the above embodiment. Step 603, judging the validity of the obtained file; namely, in the embodiment, whether the engineering configuration table and the configuration word attribute library meet preset conditions or not is judged; executing step 604 when the file is determined to be legal, executing steps 601 and/or 602 when the file is not legal, and re-acquiring the engineering configuration table and the configuration word attribute library; step 604, associating the engineering configuration table and the configuration word attribute library to generate a project configuration word list; step 605, generating a mapping table based on the project configuration word list; step 606, generating a BIN link table based on the mapping table; step 607, generating a HEX link table based on the BIN link table; step 608, generating a configuration word based on the HEX link table; step 609, associating the configuration word to the corresponding vehicle model to form an output table. Specifically, the configuration words of different vehicle types generated in the above embodiment may be filled into the table above the list head of the vehicle type of the mapping table to form the output table. For example, as shown in fig. 7, the output table is configured with configuration words corresponding to each vehicle type filled in the cells above the second vehicle type column in the area 701. The configuration word of the standard vehicle model is "40 87 11 71 00..the configuration word of the medium vehicle model is" 04 84 11 71 44..the configuration word of the higher vehicle model is "40 84 11 71 54..the configuration word of the medium vehicle model is" 04 84 11 71 44..the configuration word of the higher vehicle model.
The specific implementation steps of this embodiment are similar to those of the above embodiment, and in order to reduce repetition, a detailed description is omitted here.
In summary, the application can automatically generate the configuration word of at least one vehicle type under the target train corresponding to the controller based on the engineering configuration table of the target train and the configuration word attribute table of the controller, thereby improving the efficiency of configuration word generation, reducing the risk of incomplete recognition or wrong recognition in the process of manually recognizing and generating the configuration word, and ensuring the quality of the vehicle. By associating the engineering configuration table with the configuration word attribute table to obtain the project configuration word list, the configuration word can be accurately and quickly generated based on one generated table, and the condition of searching errors during searching based on the two tables is avoided. The method has the advantages that the target configuration item can be accurately determined in the engineering configuration table based on the characteristic value in the configuration word attribute table, the project configuration word list is generated based on the characteristic value state accurately determined by the target configuration item, and the subsequent rapid and accurate generation of the configuration words based on the project configuration word list is facilitated. The binary value of the characterization configuration word is determined based on the second train, the binary value is converted into the hexadecimal value, and the configuration words corresponding to the train type in the second train can be automatically and accurately generated based on the preset format combination, so that the cost of manually identifying and generating the configuration word is reduced, and the efficiency and the accuracy of generating the configuration word are improved.
Fig. 8 is a schematic structural diagram of a configuration word generating device according to an embodiment of the present application.
Illustratively, as shown in FIG. 8, the apparatus 800 includes:
An obtaining module 801, configured to obtain an engineering configuration table of a target train and a configuration word attribute table of a controller associated with the target train; the engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller;
A generating module 802, configured to generate a configuration word corresponding to the vehicle model by the controller based on the engineering configuration table and the configuration word attribute table.
In a possible implementation manner, the generating module 802 is specifically configured to associate the engineering configuration table with the configuration word attribute table to generate a project configuration word list; the project configuration word list comprises an association relation between configuration word generation information and engineering configuration information; based on the project configuration word list, a configuration word corresponding to the vehicle model of the controller is generated.
In a possible implementation manner, the configuration word attribute table includes a feature value of a configuration item of the controller, and the generating module 802 is specifically configured to determine, in the engineering configuration table, a target configuration item that matches the feature value based on the feature value of the configuration item in the configuration word attribute table; determining a characteristic value state corresponding to the target configuration item in the engineering configuration table; a list of item configuration words is generated based on the eigenvalue status.
In a possible implementation manner, the engineering configuration table includes a first vehicle type column, in which an initial characteristic value state is filled in, and the generating module 802 is specifically configured to add a second vehicle type column in the configuration word attribute table based on the first vehicle type column in the engineering configuration table; the column number of the second vehicle type column is the same as that of the first vehicle type column; and filling in a second model column based on the characteristic value state to obtain a project configuration word list.
In a possible implementation manner, the generating module 802 is specifically configured to determine, based on the second model column, a binary value of each byte of the controller corresponding to the vehicle type; wherein the binary value is used to characterize the configuration word; converting the binary values into hexadecimal values, and respectively combining hexadecimal values corresponding to the vehicle types into an array in a preset format according to byte sequences to obtain configuration words corresponding to the vehicle types by the controller.
In a possible implementation manner, the feature value state includes a standard configuration state, and the generating module 802 is specifically configured to determine the standard configuration state filled in the second type column of the project configuration word list; determining a numerical value corresponding to the allocation state based on the row position and the preset column position of the allocation state in the project allocation word list; updating the standard allocation state into a numerical value; and determining the binary value of each byte of the controller corresponding to the vehicle type based on the updated project configuration word list.
In a possible implementation manner, the item configuration word list includes a correspondence between a numerical value and a number of bits, and a correspondence between a numerical value and a byte, and the generating module 802 is specifically configured to determine, based on the updated item configuration word list, the number of bits and the byte corresponding to the numerical value; and combining the numerical values of the same byte listed in the same vehicle model according to the number of bits to obtain the binary value of each byte of the controller corresponding to the vehicle model.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Illustratively, as shown in FIG. 9, the electronic device 900 includes: a memory 901 and a processor 902, wherein the memory 901 stores executable program code 9011, and the processor 902 is configured to call and execute the executable program code 9011 to execute a method for generating a configuration word.
In addition, the embodiment of the application also protects a device, which can comprise a memory and a processor, wherein executable program codes are stored in the memory, and the processor is used for calling and executing the executable program codes to execute the method for generating the configuration words provided by the embodiment of the application.
In this embodiment, the functional modules of the apparatus may be divided according to the above method example, for example, each functional module may be corresponding to one processing module, or two or more functions may be integrated into one processing module, where the integrated modules may be implemented in a hardware form. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
In the case of dividing each function module by corresponding each function, the apparatus may further include an acquisition module, a generation module, and the like. It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
It should be understood that the apparatus provided in this embodiment is configured to perform the above-described method for generating a configuration word, so that the same effects as those of the above-described implementation method can be achieved.
In case of an integrated unit, the apparatus may comprise a processing module, a memory module. When the device is applied to the electronic equipment, the processing module can be used for controlling and managing the actions of the electronic equipment. The memory module may be used to support the electronic device in executing mutual program code, etc.
Wherein a processing module may be a processor or controller that may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the present disclosure. A processor may also be a combination of computing functions, including for example one or more microprocessors, digital Signal Processing (DSP) and microprocessor combinations, etc., and a memory module may be a memory.
In addition, the device provided by the embodiment of the application can be a chip, a component or a module, wherein the chip can comprise a processor and a memory which are connected; the memory is used for storing instructions, and when the processor calls and executes the instructions, the chip can be caused to execute the method for generating the configuration word provided by the embodiment.
The present embodiment also provides a computer-readable storage medium having stored therein computer program code which, when run on a computer, causes the computer to perform the above-described related method steps to implement a method for generating a configuration word provided in the above-described embodiments.
The present embodiment also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement a method for generating a configuration word provided in the above-mentioned embodiments.
The apparatus, the computer readable storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding method provided above, and therefore, the advantages achieved by the apparatus, the computer readable storage medium, the computer program product, or the chip can refer to the advantages of the corresponding method provided above, which are not described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. A method for generating a configuration word, the method comprising:
Acquiring an engineering configuration table of a target train and a configuration word attribute table of a controller associated with the target train; the engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller;
And generating a configuration word corresponding to the vehicle type by the controller based on the engineering configuration table and the configuration word attribute table.
2. The method of claim 1, wherein the generating a configuration word for the controller corresponding to the vehicle model based on the engineering configuration table and the configuration word attribute table comprises:
Associating the engineering configuration table with the configuration word attribute table to generate a project configuration word list; wherein the project configuration word list comprises an association relationship between the configuration word generation information and the engineering configuration information;
And generating a configuration word corresponding to the vehicle type by the controller based on the project configuration word list.
3. The method of claim 2, wherein the configuration word attribute table includes feature values of configuration items of the controller, wherein the associating the engineering configuration table with the configuration word attribute table to generate a project configuration word list includes:
determining a target configuration item matched with the characteristic value in the engineering configuration table based on the characteristic value of the configuration item in the configuration word attribute table;
Determining a characteristic value state corresponding to the target configuration item in the engineering configuration table;
And generating the project configuration word list based on the characteristic value state.
4. A method according to claim 3, wherein the engineering configuration table comprises a first vehicle type column filled with an initial eigenvalue status, the generating the project configuration word list based on the eigenvalue status comprising:
Based on a first vehicle type column in the engineering configuration table, adding a second vehicle type column in the configuration word attribute table; wherein the number of columns of the second vehicle type column is the same as the number of columns of the first vehicle type column;
and filling in the second model column based on the characteristic value state to obtain the project configuration word list.
5. The method of claim 4, wherein generating a configuration word for the controller corresponding to the vehicle model based on the project configuration word list comprises:
Based on the second model column, determining the binary value of each byte of the controller corresponding to the vehicle type; wherein the binary value is used to characterize the configuration word;
Converting the binary values into hexadecimal values, and respectively combining hexadecimal values corresponding to the vehicle types into an array in a preset format according to byte sequences to obtain configuration words corresponding to the vehicle types by the controller.
6. The method according to claim 5, wherein the characteristic value state includes a standard configuration state, and the determining, based on the second model column, a binary value of each byte of the controller corresponding to the model includes:
Determining the standard configuration state filled in a second vehicle type column of the project configuration word list;
Determining a numerical value corresponding to the standard allocation state based on a row position and a preset column position of the standard allocation state in the project configuration word list;
Updating the standard allocation state to the numerical value;
And determining the binary value of each byte of the controller corresponding to the vehicle type based on the updated project configuration word list.
7. The method of claim 6, wherein the list of item configuration words includes a correspondence between a number of values and a number of bits and a correspondence between a number of values and a byte, wherein the determining, based on the updated list of item configuration words, a binary value for each byte of the controller corresponding to the vehicle model includes:
determining the bit number and the byte corresponding to the numerical value based on the updated project configuration word list;
And combining the numerical values of the same byte listed in the same vehicle type according to the bit number to obtain the binary value of each byte of the controller corresponding to the vehicle type.
8. A device for generating a configuration word, the device comprising:
The system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring an engineering configuration table of a target train and a configuration word attribute table of a controller associated with the target train; the engineering configuration table comprises engineering configuration information of at least one vehicle type in the target train, and the configuration word attribute table comprises configuration word generation information of configuration items of the controller;
And the generating module is used for generating the configuration word of the controller corresponding to the vehicle type based on the engineering configuration table and the configuration word attribute table.
9. An electronic device, the electronic device comprising:
a memory for storing executable program code;
A processor for calling and running the executable program code from the memory, causing the electronic device to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed, implements the method according to any of claims 1 to 7.
CN202410090144.4A 2024-01-22 2024-01-22 Configuration word generation method and device, electronic equipment and storage medium Pending CN117971874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410090144.4A CN117971874A (en) 2024-01-22 2024-01-22 Configuration word generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410090144.4A CN117971874A (en) 2024-01-22 2024-01-22 Configuration word generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117971874A true CN117971874A (en) 2024-05-03

Family

ID=90860983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410090144.4A Pending CN117971874A (en) 2024-01-22 2024-01-22 Configuration word generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117971874A (en)

Similar Documents

Publication Publication Date Title
CN109067704B (en) Satellite remote control instruction format design and coding management system and method
CN113189970B (en) Hardware-in-loop automatic test method and system of CAN bus controller and storage medium
CN111176695A (en) Vehicle ECU configuration method, server and terminal
US20230135115A1 (en) Consumable chip and consumable chip response method, consumable cartridge, and storage medium
CN111638703A (en) Method for improving diagnosis efficiency of automobile offline diagnosis system
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN111474923B (en) Vehicle diagnosis method, device and equipment
CN117971874A (en) Configuration word generation method and device, electronic equipment and storage medium
CN110806979B (en) Interface return value checking method, device, equipment and storage medium
CN108763127B (en) Method for realizing Modbus adapter capable of realizing interconversion of source data and target data
CN113360388B (en) Method for integrally managing test process of unmanned aerial vehicle ground station software
CN116185387A (en) Method and device for generating SOC chip pin multiplexing code
US20080109778A1 (en) Setting method of line pitch/line width layout for logic circuit
CN114329090A (en) Path reference searching method and device, electronic equipment and storage medium
CN112445816B (en) Vehicle diagnosis data reference method, device, terminal equipment and storage medium
CN114564336A (en) Data consistency checking method, device, equipment and storage medium
CN113985849A (en) Method for writing DTC (digital control channel) read ECU (electronic control unit) version of automatic clear-reading whole vehicle based on CANoe software
CN114564925A (en) Report generation method and device, electronic equipment and readable storage medium
CN112277841A (en) Vehicle type configuration identification method, vehicle control method, driving computer and vehicle
CN111475471A (en) Information system for industrial design resource sharing
CN111538651A (en) Interface testing method, device, server and storage medium
CN113448733B (en) Data processing method and system
CN114691604B (en) DBC signal derived start bit format conversion method and system
CN113434359B (en) Data traceability system construction method and device, electronic device and readable storage medium
CN114826909B (en) Server production instruction information maintenance system, method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination