Information configuration method, device and equipment of vehicle controller and medium
By acquiring and detecting the range of data identifiers in the vehicle controller, generating an information reading file and writing it to the controller to be configured, the problem of low efficiency and insufficient accuracy of information configuration when replacing the controller is solved, and convenient and efficient information migration is achieved.
Patent Information
- Application Number
- CN202310605781.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2043-05-26
AI Technical Summary
In existing technologies, when replacing vehicle controllers, information configuration is inefficient and the accuracy of configuration information cannot be guaranteed, especially when the specific vehicle model configuration information is unknown.
By obtaining the data identifiers from the original controller, a data identifier range is formed, and range detection is performed to generate an information reading file. Finally, the configuration information is written to the controller to be configured, ensuring that the data identifier range is consistent with the standard range.
Even without network connectivity, it ensures the convenience and accuracy of information configuration for controller replacement, and improves the efficiency of configuration information migration.
Smart Images

Figure CN116755421B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of controller information configuration, and particularly relates to a vehicle controller information configuration method, device, equipment and medium. BACKGROUND
[0002] With the continuous development of automobile technology, the functions in the automobile are also more and more, and a large number of electronic controllers are widely used in the automobile. When the automobile is configured, the controller needs to be configured according to the regulations and the vehicle model configuration requirements, for example, the vehicle lamp controller, the sunroof controller, the seat controller, etc., the configuration of the controller includes the function configuration, the information configuration, etc., the information configuration involves the key data and the function switch of the automobile, such as VIN, TUID number, root certificate, certificate, IP / web address, port, APN routing parameter, etc. As the function guarantee of the whole vehicle, there are many vehicle data that need to be configured in the vehicle controller, when the vehicle controller needs to be replaced, the accuracy of the configuration information in the replaced controller and the convenience of the information configuration must be ensured.
[0003] Chinese patent CN110456764B discloses a configuration management method and device of a controller in a vehicle and a vehicle diagnostic instrument, vehicle information in a target vehicle is automatically extracted and determined as valid vehicle information, when there is a replaced controller to be configured in the target vehicle, the valid vehicle information is written into the controller to be configured according to the configuration function of the corresponding controller to be configured triggered by the user, the automatic configuration of the replaced controller to be adapted in the target vehicle is realized, and the accuracy of the automatically obtained configuration information is improved. But the premise of this method is to know the value of the specific vehicle model configuration information, and in the case of not knowing the specific vehicle data in the specific vehicle model configuration information, the information configuration of the controller to be configured is affected, the efficiency of the information configuration of the replaced controller is low, and the accuracy of the configuration information cannot be ensured. SUMMARY
[0004] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is presented. The summary is not an extensive overview of the embodiments, nor is it intended to identify key / critical elements of the embodiments or to delineate the scope of the embodiments, but to present some aspects of the later detailed description in a simplified form.
[0005] In view of the above-mentioned defects of the prior art, the present application discloses a vehicle controller information configuration method, device, equipment and medium, which is used to solve the technical problem of low efficiency of information configuration of the replaced controller and inability to ensure the accuracy of the configuration information in the related art.
[0006] In a first aspect, the application provides a method for information configuration of a vehicle controller, comprising: obtaining a first data identifier configured in an original controller, the first data identifier having a one-to-one correspondence with vehicle data; forming a first data identifier range according to the first data identifier, and performing a first range detection on the first data identifier range; if it is determined that the first data identifier range is consistent with a data identifier standard range corresponding to a to-be-configured controller, generating an information reading file according to the first data identifier; reading the information reading file, generating an information configuration file of the to-be-configured controller, and writing the information configuration file into the to-be-configured controller.
[0007] In an embodiment of the application, the forming of the first data identifier range according to the first data identifier and the range detection on the first data identifier range comprises: reading the first data identifier, which is in a numerical form; arranging the first data identifier according to numerical size to form a data identifier queue; obtaining a start data identifier at a start position and a terminal data identifier at a terminal position of the data identifier queue; obtaining the first data identifier range according to the start data identifier and the terminal data identifier; and judging whether the data identifier range is consistent with the data identifier standard range based on the data identifier standard range corresponding to the to-be-configured controller.
[0008] In an embodiment of the application, after the range detection on the first data identifier range, the method further comprises: if it is determined that the first data identifier range is not consistent with the data identifier standard range, generating a range error signal; in response to the range error signal, re-obtaining a second data identifier of the vehicle data configured in the original controller, and generating a second data identifier range; and performing a second range detection on the second data identifier range based on the data identifier standard range until the generated data identifier range is consistent with the data identifier standard range.
[0009] In an embodiment of the application, the generating of the information reading file according to the first data identifier comprises: numbering each first data identifier in the data identifier queue in sequence based on the start data identifier; assigning the first data identifier with the number to an initial reading list; attaching a first prefix to the initial reading list according to a data identifier reading service to obtain a to-be-read list; and loading the to-be-read list based on a preset reading file format to generate the information reading file.
[0010] In an embodiment of the present application, the reading of the information reading file and the generation of the information configuration file of the to-be-configured controller comprises: loading the information reading file to obtain a configuration information data stream, the configuration information data stream comprising a keyword, the first data identifier and the vehicle data; identifying the keyword to determine whether the configuration information data stream contains the keyword; if it is determined that the data stream contains the keyword, extracting and assigning the first data identifier and the vehicle data to an initial configuration list; according to a data identifier writing service, attaching a second prefix to the initial configuration list to obtain a to-be-configured list; and loading the to-be-configured list based on a preset configuration file specification to generate the information configuration file.
[0011] In an embodiment of the present application, after the determination of whether the configuration information data stream contains the keyword, the method further comprises: if it is determined that the data stream does not contain the keyword, generating a configuration information data stream error signal; and in response to the configuration information data stream error signal, reloading the information reading file or reacquiring a third data identifier of the vehicle data configured in the original controller until a correct configuration information data stream is obtained.
[0012] In an embodiment of the present application, the generation of the information reading file and the information configuration file is displayed by a visual operation interface, the visual operation interface comprising an operation prompt and an operation record of the information configuration of the vehicle controller.
[0013] In a second aspect, the present application provides an information configuration device of a vehicle controller, characterized in that the device comprises: a data identifier acquisition module configured to acquire a first data identifier configured in an original controller, the first data identifier having a one-to-one correspondence with vehicle data; a data identifier range detection module configured to form a first data identifier range according to the first data identifier and perform a first range detection on the first data identifier range; an information reading file generation module configured to generate an information reading file according to the first data identifier if it is determined that the first data identifier range is consistent with a data identifier standard range corresponding to a to-be-configured controller; and an information configuration module configured to read the information reading file to generate an information configuration file of the to-be-configured controller and write the information configuration file into the to-be-configured controller.
[0014] In a third aspect, the present application provides an electronic device, comprising: one or more processors; and a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, causing the electronic device to implement the information configuration method of the vehicle controller described in the first aspect.
[0015] In a fourth aspect, the present application provides a computer readable storage medium, having stored thereon a computer program, which, when executed by a processor of a computer, causes the computer to perform the information configuration method of the vehicle controller described in the first aspect.
[0016] As described above, the information configuration method, device, equipment and medium of the vehicle controller provided by the embodiments of the present application have the following beneficial effects:
[0017] By obtaining the first data identifier configured in the original controller, wherein the first data identifier has a one-to-one correspondence with the vehicle data, then forming a first data identifier range according to the first data identifier, and performing a range detection on the first data identifier range, when it is determined that the first data identifier range is consistent with the data identifier standard range corresponding to the to-be-configured controller, then generating an information reading file according to the first data identifier, and finally generating an information configuration file of the to-be-configured controller according to the information reading file, and writing the information configuration file into the to-be-configured controller. This method can migrate the configuration information in the original controller to the replaced to-be-configured controller without knowing the specific vehicle data in the specific vehicle configuration information, so that the configuration information in the replaced to-be-configured controller remains unchanged, and at the same time, the information configuration of the newly replaced controller can be quickly performed, so that the migration of the configuration information is convenient and efficient.
[0018] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0019] The drawings incorporated into the specification and forming a part thereof, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor. In the drawings:
[0020] Figure 1 is a schematic diagram of an implementation environment of the information configuration device of the vehicle controller according to an exemplary embodiment of the present application;
[0021] Figure 2 is a flowchart of the information configuration method of the vehicle controller according to an exemplary embodiment of the present application;
[0022] Figure 3 is Figure 2 the step S220 in the embodiment shown in the flowchart in an exemplary embodiment;
[0023] Figure 4 is Figure 2Step S230 in the illustrated embodiment is a flowchart of the output information reading file in an exemplary embodiment of the present application.
[0024] Figure 5 is a flowchart of the output information configuration file in an exemplary embodiment of the present application.
[0025] Figure 6 is Figure 2 Step S240 in the illustrated embodiment is a flowchart of the output information configuration file in an exemplary embodiment of the present application.
[0026] Figure 7 is a flowchart of the output information configuration file in an exemplary embodiment of the present application.
[0027] Figure 8 is a schematic diagram of the visual operation interface in an exemplary embodiment of the present application.
[0028] Figure 9 is a block diagram of the information configuration device of the vehicle controller in an exemplary embodiment of the present application.
[0029] Figure 10 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] Other advantages and effects of the present application can be easily understood by those skilled in the art from the above description of the preferred embodiments of the present application. The present application can be implemented or applied in other different specific embodiments, and the details in the specification can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, and are not intended to limit the protection scope of the present application.
[0031] It should be noted that the diagrams provided in the following embodiments only schematically illustrate the basic concept of the present application, and only the components related to the present application are shown in the diagrams, rather than the number, shape and size of the components when actually implemented. The shapes, number and proportions of the components when actually implemented can be arbitrarily changed, and the layout pattern of the components can be more complex.
[0032] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application, however, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details, and in other embodiments, the well-known structures and devices are shown in the form of block diagrams rather than in the form of details, to avoid making the embodiments of the present application difficult to understand.
[0033] The vehicle controller needs to configure a large number of vehicle data as the function guarantee of the whole vehicle, so when the vehicle controller needs to be replaced, the accuracy of the configuration information in the replaced controller and the convenience of the information configuration must be ensured. In the traditional method, the configuration information in the original controller is migrated to the replaced controller to be configured, and the configuration of the controller to be configured can be completed only by knowing the values of the configuration information of the specific vehicle type. If the specific vehicle data in the configuration information of the specific vehicle type is unknown, the information configuration of the controller to be configured will be affected. Moreover, the values of the vehicle type and the configuration information are usually obtained by networking, and the efficiency of the information configuration of the replaced controller is low, and the accuracy of the configuration information cannot be ensured.
[0034] Therefore, please refer to Figure 1 , Figure 1 is an embodiment of the information configuration device of the vehicle controller according to an example embodiment of the present application. As shown in Figure 1 , the embodiment includes a vehicle 101 and an information configuration device 102 embedded in the vehicle 101 for realizing the information configuration of the vehicle controller. The information configuration device 102 includes but is not limited to a car machine system, a vehicle-mounted computer, etc., and can migrate the configuration information in the original controller to the replaced controller to be configured without networking the vehicle and without knowing the specific vehicle data in the configuration information of the specific vehicle type, so that the configuration information in the replaced controller to be configured remains unchanged, and the new replaced controller can be quickly configured, so that the migration of the configuration information is convenient and efficient.
[0035] Please refer to Figure 2 , Figure 2 is a flowchart of the information configuration method of the vehicle controller according to an example embodiment of the present application. The method can be applied to Figure 1 and specifically executed by the information configuration device in the embodiment. It should be understood that the method can also be applied to other example embodiments and specifically executed by devices in other embodiments, and the present embodiment does not limit the applicable embodiments of the method.
[0036] As shown in Figure 2 , in an example embodiment, the information configuration method of the vehicle controller at least includes steps S210 to S240, which are described in detail as follows:
[0037] Step S210, acquiring a first data identifier configured in the original controller, the first data identifier having a one-to-one correspondence with the vehicle data.
[0038] It should be noted that the controller to be configured corresponds to the original controller. The original controller refers to the controller already configured in the vehicle, which stores vehicle data and data identifiers. The controller to be configured refers to the controller that needs to be upgraded during the vehicle's pre-delivery debugging and configuration process, replacing the original controller. A data identifier (DID) is a symbol that identifies a specific piece of vehicle data; there is a one-to-one correspondence between DIDs and vehicle data, as shown in Table 1 below. However, the DIDs configured in the vehicle controller include, but are not limited to, those listed in Table 1. In this embodiment, it is not required to know the specific vehicle data; only the DID in the original controller needs to be obtained. It should be understood that the DID field carries a DID value, which represents the vehicle data corresponding to that DID.
[0039] Table 1: Configuration Information List
[0040] Vehicle data DID Frame number F190 Battery trace code F192 Function switch F197 Vehicle model information F19A TUID F1F6 Public network APN F025 Private network APN F026 TSP F027 Supplier code F1A0 SK code F1A1 PIN code F1A2
[0041] Step S220: Form a range of first data identifiers based on the first data identifiers, and perform a range check on the range of first data identifiers.
[0042] The data identifier range refers to the range formed by the data identifiers obtained from the original controller. For example, assuming that the DIDs obtained from the original controller are F001, F002...FFFF, then the range of data identifiers formed is F001~FFFF. Range detection of the data identifier range is used to determine the accuracy of the data identifier range. By detecting the data identifier range, the accuracy of the configuration information in the controller to be configured can be guaranteed.
[0043] Please see Figure 3 , Figure 3 yes Figure 2 The flowchart of step S220 in the illustrated embodiment is shown in an exemplary embodiment. (See attached flowchart.) Figure 3 As shown, forming a first data identifier range based on a first data identifier and performing range detection on the first data identifier range includes at least steps S310 to S350, as follows: Step S310, reading the first data identifier, which is in numerical form; Step S320, arranging the first data identifiers according to their numerical values to form a data identifier queue; Step S330, obtaining the starting data identifier at the beginning position and the ending data identifier at the end position of the data identifier queue; Step S340, obtaining the first data identifier range based on the starting and ending data identifiers; Step S350, determining whether the data in the data identifier range is consistent with the standard range of identifiers corresponding to the controller to be configured.
[0044] In this embodiment, the data identifier is in the form of a numerical value, which is a four-digit hexadecimal number, such as the DID shown in Table 1 above. It should be noted that the DIDs corresponding to the vehicle data configured in each vehicle controller are sequentially incremented in numerical value if arranged in numerical order. In addition, each controller has its own standard range of data identifiers, and the DIDs configured in each controller are included in the standard range of data identifiers for that controller. The data identifiers are arranged in numerical order to form a data identifier queue. For example, the obtained DIDs include F001, F002, …, FFFF. The data identifiers are arranged in numerical order to form a data identifier queue in ascending order, i.e., F001, F002, F003, F004, …, FFFF. The starting data identifier F001 at the start of the data identifier queue and the ending data identifier FFFF at the end of the data identifier queue are obtained. The data identifier range F001-FFFF is formed based on F001 and FFFF. Then, it is determined whether the data identifier range F001-FFFF is accurate based on the standard range of data identifiers for the controller to be configured. The detection of the data identifier range ensures the accuracy of the configuration information in the controller to be configured.
[0045] In one embodiment, after the range detection of the first data identifier range, if it is determined that the first data identifier range is inconsistent with the standard range of data identifiers, a range error signal is generated. In response to the range error signal, the second data identifier of the vehicle data configured in the original controller is re-obtained, and a second data identifier range is generated. The second data identifier range is subjected to secondary range detection based on the standard range of data identifiers until the generated data identifier range is consistent with the standard range of data identifiers.
[0046] It should be noted that if the data identifier range is inconsistent with the standard range of data identifiers, it can be considered that an error occurred when obtaining the data identifier or generating the data identifier range. Therefore, the data identifier of the vehicle data configured in the original controller is re-obtained, and the data identifier range is re-generated until the generated data identifier range is consistent with the standard range of data identifiers, and then the subsequent operation is continued. This improves the accuracy of the configuration information in the controller to be configured.
[0047] In step S230, if it is determined that the first data identifier range is consistent with the standard range of data identifiers corresponding to the controller to be configured, an information reading file is generated based on the first data identifier.
[0048] For example, if the data identifier standard range is F001~FFFF, and the obtained data identifier range is F001~FF01, a range error signal is generated; if the obtained data identifier range is F001~FFFF, the data identifier range is accurate, and subsequent operations are continued.
[0049] In addition, the information reading file can be generated by a CAN (Controller Area Network) device, including but not limited to USBCAN II, USBCAN FD, CANalyzer, etc.
[0050] Please refer to Figure 4 , Figure 4 is Figure 2 Step S230 in the embodiment shown in the flow chart in an exemplary embodiment. As shown in Figure 4 According to the first data identifier, the information reading file is generated, including at least steps S410 to S440, as follows: step S410, numbering each first data identifier in the data identifier queue based on the starting data identifier; step S420, assigning the numbered first data identifier to the initial reading list; step S430, attaching a first prefix to the initial reading list according to the data identifier reading service, to obtain a to-be-read list; and step S440, loading the to-be-read list based on a preset reading file format, to generate the information reading file.
[0051] For example, assuming that the data identifier queue is F001, F002, F003, F004,..., FFFF, i.e., numbering F001, F002, F003, F004,..., FFFF based on F001, starting from 1, and then writing the numbered F001, F002, F003, F004,..., FFFF into the initial reading list Cfg_List. Then, the initial reading list is read through the data identifier reading service (i.e., 0x22 service of UDS), and "22" is added in front of Cfg_List to form the to-be-read list
[0052] Cfg_List1, and finally, the contents in the to-be-read list Cfg_List1 are filled in according to the reading file XML specification of the CAN device, to generate the information reading file.
[0053] Cfg_List1, and finally, the contents in the to-be-read list Cfg_List1 are filled in according to the reading file XML specification of the CAN device, to generate the information reading file.
[0054] The XML text file is used, which is convenient for information filling and file generation, has high processing efficiency, and can ensure the efficiency of the to-be-configured controller information configuration.
[0055] Please refer to Figure 5 ,Figure 5 is a flowchart of outputting information reading file according to an exemplary embodiment of the present application. As shown in Figure 5 , a DID start-end range (i.e. data identifier range) is formed according to each DID; it is judged whether the DID range is consistent with the DID standard range; if not, an "NG" (i.e. generation range error signal) is displayed, and then the DID is re-acquired to form the DID start-end range; if yes, an "OK" is displayed; an information reading file is generated; it is checked whether the display is "OK", because after the information reading file is generated, the information reading file needs to be loaded, and it is checked whether the information reading file is readable; if not, then the DID is re-acquired to form the DID start-end range; if yes, the initial DID is assigned to Current_DID, and then Current_DID is added to the list Cfg_List, and then Current_DID is added 1 to become a new Current_DID (i.e. the DID is numbered); it is judged whether Current_DID≤end DID, and the correctness of the DID numbering can be judged; if yes, Current_DID is re-added to the list Cfg_List; if not, a prefix "22" is filled in front of Cfg_List to form a new variable Cfg_List1; according to the XML specification, Cfg_List1 is filled in turn, and the information reading file is outputted.
[0056] In step S240, the information reading file is read, the information configuration file of the controller to be configured is generated, and the information configuration file is written into the controller to be configured.
[0057] Please refer to Figure 6 , Figure 6 is Figure 2 the flowchart of step S240 in the embodiment shown in Figure 6 . As shown, the information reading file is read, the information configuration file of the controller to be configured is generated, and at least includes steps S610 to S650, as follows: in step S610, the information reading file is loaded, and the configuration information data stream is obtained, the configuration information data stream includes the keyword, the first data identifier and the vehicle data; in step S620, the keyword is identified, and it is judged whether the configuration information data stream contains the keyword; in step S630, if it is determined that the data stream contains the keyword, the first data identifier and the vehicle data are extracted and assigned to the initial configuration list; in step S640, the data identifier is written into the service according to the data identifier, and the second prefix is attached to the initial configuration list, and the to-be-configured list is obtained; in step S650, based on the preset configuration file specification, the to-be-configured list is loaded, and the information configuration file is generated.
[0058] In the embodiment, the configuration information data stream can be obtained after the load reading of the information reading file by the 0x22 service positive response of the UDS, including the keyword, the first data identifier and the vehicle data, i.e. "62+DID+DID value", if the data stream contains "62", it indicates that the data stream contains the keyword, and then the subsequent operation can be continued. The configuration file can be written into the to-be-configured controller by the CAN device, and the XML text file is adopted, so that the information filling and the file generation are facilitated, the processing efficiency is high, and the efficiency of the information configuration of the to-be-configured controller can be ensured.
[0059] In an embodiment, after judging whether the configuration information data stream contains the keyword, the method further comprises: if it is determined that the data stream does not contain the keyword, a configuration information data stream error signal is sent; and in response to the configuration information data stream error signal, the information reading file is reloaded or the third data identifier of the vehicle data configured in the original controller is reacquired until the correct configuration information data stream is obtained. The accuracy of the obtained information configuration file can be ensured.
[0060] Please refer to Figure 7 , Figure 7 is a flowchart of the output information configuration file according to an example embodiment of the present application. As shown in Figure 7 , the information reading file is loaded; the read configuration information (to form the data stream) is selected; the file (i.e. the information reading file) path is assigned to the variable initial configuration list Write_List; it is judged whether the Write_List file contains the keyword "62"; if not, the information reading file is reloaded or the DID is reacquired; if yes, the content of the line containing the keyword "62" is assigned to the variable Raw; the "62" and the content after it are separated in the Raw, and the latter data is assigned to the variable Write_List; the data identifier writing service (i.e. the 0x2E service of the UDS) is used to write the Write_List content and "2E" to form a new variable to-be-configured list Write_List1; the Write_List1 is filled in according to the XML specification; and the information configuration file is output.
[0061] In an embodiment, the generation of the information reading file and the information configuration file is displayed by a visual operation interface, and the visual operation interface includes the operation prompt and the operation record of the information configuration of the vehicle controller.
[0062] Please refer to Figure 8 , Figure 8 is a schematic diagram of the visual operation interface according to an example embodiment of the present application, as shown in Figure 8The operation display includes two text boxes for inputting the start DID and the end DID, and the DID range can be generated after the input; a text box for displaying the DID filling detection result; two generation buttons, i.e., a generate
read
write
[0063] The information configuration method of the vehicle controller provided in the above embodiment comprises the following steps: obtaining a first data identifier configured in an original controller, wherein the first data identifier has a one-to-one correspondence with vehicle data; forming a first data identifier range according to the first data identifier; performing a range detection on the first data identifier range; when it is determined that the first data identifier range is consistent with a data identifier standard range corresponding to a controller to be configured, generating an information reading file according to the first data identifier; and finally generating an information configuration file of the controller to be configured according to the information reading file and writing the information configuration file into the controller to be configured. The method can migrate the configuration information in the original controller to the replaced controller to be configured without knowing the specific vehicle data in the specific vehicle configuration information, so that the configuration information in the replaced controller to be configured remains unchanged, and the information configuration of the newly replaced controller can be quickly performed, so that the migration of the configuration information is convenient and efficient.
[0064] Please refer to Figure 9 , Figure 9 is a block diagram of an information configuration device of a vehicle controller according to an example embodiment of the present application. The device can be applied to Figure 1 the example implementation environment shown in the figure, and it should be understood that the device can also be applied to other example implementation environments, and the present embodiment does not limit the implementation environment to which the device is applied.
[0065] As Figure 9 shown, in an example embodiment, the information configuration device of the vehicle controller at least comprises a data identifier obtaining module 910, a data identifier range detection module 920, an information reading file generating module 930 and an information configuration module 940, which are described in detail as follows:
[0066] The data identifier obtaining module 910 is configured to obtain a first data identifier configured in an original controller, and the first data identifier has a one-to-one correspondence with vehicle data;
[0067] The data identifier range detection module 920 is configured to form a first data identifier range according to the first data identifier, and perform a range detection on the first data identifier range.
[0068] The information reading file generation module 930 is configured to generate an information reading file according to the first data identifier if it is determined that the first data identifier range is consistent with the data identifier standard range corresponding to the configuration controller.
[0069] The information configuration module 940 is configured to read the information reading file, generate an information configuration file of the to-be-configured controller, and write the information configuration file into the to-be-configured controller.
[0070] It should be noted that the information configuration apparatus of the vehicle controller provided in the above embodiments and the information configuration method of the vehicle controller provided in the above embodiments belong to the same concept, and the content of the operation of each module has been described in detail in the method embodiments, which will not be described here.
[0071] Please refer to Figure 10 , Figure 10 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. Figure 10 A structural schematic diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application is shown. It should be noted that Figure 10 The computer system 1000 of the electronic device shown is only an example, and should not limit the functions and use range of the embodiments of the present application.
[0072] As Figure 10 shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage portion 1008 into a random access memory (RAM) 1003, such as performing the methods in the above embodiments. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0073] The following components are connected to the I / O interface 1005: an input part 1006 including a keyboard, a mouse, etc.; an output part 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage part 1008 including a hard disk, etc.; and a communication part 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 1010 as necessary, so that a computer program read out therefrom is installed in the storage part 1008 as necessary.
[0074] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing a computer program for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.
[0075] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this application, the computer-readable signal medium can include a data signal propagated in a baseband or as a carrier wave in a propagated data signal, in which the computer-readable computer program is carried. Such a propagated data signal can take on many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit the program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.
[0076] The flowcharts and block diagrams in the drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Each block in the flowcharts or block diagrams can represent a module, a program segment, or a portion of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in a different order than that shown in the figures. For example, two blocks noted in succession can actually be executed substantially concurrently, or they can sometimes be executed in reverse order, depending on the functionality involved. It should also be noted that each block in the flowcharts or block diagrams, and combinations of blocks in the flowcharts or block diagrams, can be implemented by dedicated hardware-based systems that perform the specified functions or operations, or they can be implemented by a combination of dedicated hardware and computer instructions.
[0077] The units described in the embodiments of the present application can be implemented by software or by hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0078] The present application also provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor of a computer, the computer performs the information configuration method of the vehicle controller as described above. The computer readable storage medium can be included in the electronic device described in the above embodiments, or can exist separately without being assembled into the electronic device.
[0079] The above embodiments only illustrate the principles and effects of the present application, and are not used to limit the present application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and technical ideas of the present application should be covered by the claims of the present application.
Claims
1. An information configuration method of a vehicle controller, characterized by, The method comprises: acquiring a first data identifier configured in an original controller, the first data identifier being in one-to-one correspondence with vehicle data; forming a first data identifier range according to the first data identifier, and performing a range detection on the first data identifier range; if it is determined that the first data identifier range is consistent with a data identifier standard range corresponding to a to-be-configured controller, generating an information reading file according to the first data identifier; reading the information reading file, generating an information configuration file of the to-be-configured controller, and writing the information configuration file into the to-be-configured controller; the forming of the first data identifier range according to the first data identifier and the range detection on the first data identifier range comprise: reading the first data identifier, the first data identifier being in a numerical form; arranging the first data identifier according to numerical size to form a data identifier queue; acquiring a start data identifier at a start position and a terminal data identifier at a terminal position of the data identifier queue; obtaining the first data identifier range according to the start data identifier and the terminal data identifier; and judging whether the first data identifier range is consistent with the data identifier standard range based on the data identifier standard range corresponding to the to-be-configured controller.
2. The information configuration method of a vehicle controller according to claim 1, characterized by, after the range detection on the first data identifier range, the method further comprises: if it is determined that the first data identifier range is not consistent with the data identifier standard range, generating a range error signal; in response to the range error signal, re-acquiring a second data identifier of the vehicle data configured in the original controller, and generating a second data identifier range; performing a secondary range detection on the second data identifier range based on the data identifier standard range until the generated data identifier range is consistent with the data identifier standard range.
3. The information configuration method of a vehicle controller according to claim 1, wherein the generating of the information reading file according to the first data identifier comprises: numbering each first data identifier in the data identifier queue in sequence based on the start data identifier as a reference; assigning the first data identifier with the number to an initial reading list; attaching a first prefix to the initial reading list to obtain a to-be-read list according to a data identifier reading service; loading the to-be-read list based on a preset reading file format to generate the information reading file.
4. The information configuration method of a vehicle controller according to claim 1, characterized by the reading of the information reading file to generate the information configuration file of the to-be-configured controller comprises: loading the information reading file to obtain a configuration information data stream, the configuration information data stream comprising a keyword, the first data identifier and the vehicle data; identifying the keyword to determine whether the configuration information data stream contains the keyword; if it is determined that the data stream contains the keyword, extracting and assigning the first data identifier and the vehicle data to an initial configuration list; attaching a second prefix to the initial configuration list to obtain a to-be-configured list according to a data identifier writing service; and Load the list to be configured based on a preset profile specification to generate the information configuration file.
5. The information configuration method of a vehicle controller according to claim 4, wherein The method further comprises: If the data stream does not contain the keyword, a configuration information data stream error signal is generated. In response to the configuration information data stream error signal, the information reading file is reloaded or the third data identifier of the vehicle data configured in the original controller is reacquired until a correct configuration information data stream is obtained.
6. The information configuration method of a vehicle controller according to any one of claims 1 to 5, characterized by The generation of the information reading file and the information configuration file is displayed by a visual operation interface, which includes operation prompts and operation records of the information configuration of the vehicle controller.
7. An information configuration device of a vehicle controller, characterized by comprising: The apparatus comprises: a data identifier acquisition module configured to acquire a first data identifier configured in an original controller, the first data identifier being in one-to-one correspondence with vehicle data; a data identifier range detection module configured to form a first data identifier range based on the first data identifier and perform a range detection on the first data identifier range; an information reading file generation module configured to generate an information reading file based on the first data identifier if the first data identifier range is consistent with a data identifier standard range corresponding to the configuration controller; an information configuration module configured to read the information reading file, generate an information configuration file of a configuration controller, and write the information configuration file into the configuration controller; The data identifier range detection module is specifically configured to read the first data identifier, which is in numerical form; arrange the first data identifier according to numerical size to form a data identifier queue; acquire a starting data identifier at a starting position and a terminal data identifier at a terminal position of the data identifier queue; obtain the first data identifier range based on the starting data identifier and the terminal data identifier; and determine whether the first data identifier range is consistent with a data identifier standard range corresponding to the configuration controller.
8. An electronic device, comprising: The apparatus comprises: one or more processors; a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the information configuration method of the vehicle controller according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, A computer readable instruction is stored thereon, which, when executed by a processor of a computer, causes the computer to execute the information configuration method of the vehicle controller according to any one of claims 1 to 6.
Citation Information
Patent Citations
Configuration management methods, devices, and vehicle diagnostic tools for controllers in vehicles
CN110456764B
Vehicle controller function configuration method
CN105302108A
Vehicle remote upgrading method and system, and cloud server
CN111669428A