Configuration information loading method and device based on configuration word transmission, equipment and medium

By reading and verifying configuration words in the controller, and generating configuration loading instructions to send to the chip core, the problem of low loading efficiency in the existing technology is solved, and the correct loading is achieved during the boot stage and the accuracy of loading is improved. and efficiency avoids boot abnormalities.

CN119292700APending Publication Date: 2025-01-10BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411431740.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The configuration information loading method in the prior art has the problem of low loading efficiency, which leads to the function of the vehicle terminal being unable to be used normally during the booting process, and even startup abnormalities occur.

Method used

By reading the configuration words of chip memory and memory storage in the controller, checksum updates, and generating configuration loading instructions to send to the chip core, the configuration information is loaded and parsed, and the correct configuration information is loaded using global variables.

Benefits of technology

Improve the accuracy and efficiency of loading configuration information, avoid abnormalities during booting, and ensure the correct loading of vehicle model-related attribute configuration information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292700A_ABST
    Figure CN119292700A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration information loading method, device and equipment based on configuration word transfer and a medium, the method comprises the configuration information loading method, device and equipment based on configuration word transfer and the medium, the method comprises the following steps: receiving a configuration loading instruction, and reading a first configuration word stored in a chip memory and a second configuration word stored in a memory; and if the configuration word is successfully read, checking and updating the first configuration word and the second configuration word according to a checking result, analyzing the first configuration word to obtain a configuration parameter, generating a configuration loading instruction in combination with a state code corresponding to the checking result, and sending the configuration loading instruction to a chip kernel to load configuration information. According to the method, the attribute configuration information related to the specific vehicle type is extracted and processed to be loaded to the chip kernel in the global variable mode, so that correct configuration information can be loaded in the startup stage, the configuration information loading accuracy and loading efficiency are improved, and abnormity in the startup process is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a configuration information loading method, device, equipment and medium based on configuration word transmission. Background Art

[0002] When car companies release new cars, they often have different models based on different hardware configurations, which brings great challenges to software development. The main challenges are the following two aspects: first, to drive different types of hardware with the same function, it is necessary to develop compatible drivers to realize the corresponding functions; second, during the boot process, it is necessary to obtain the current model configuration as early as possible to realize the normal use of the function. For the latter, the traditional approach is to use configuration words to achieve this.

[0003] The configuration word is stored in the memory of the MCU. After the SOC is powered on, it is transmitted to the Vehicle process of the SOC through the CAN bus for parsing to enable / disable certain functions. The Vehicle process belongs to the upper-layer application process of Android. After it is started and loaded, it runs in the Kernel kernel, resulting in the inability to quickly obtain the current vehicle configuration during the startup phase, so that some functions on the vehicle side cannot be used normally, and even abnormal startup occurs. Therefore, the configuration information loading method in the prior art method has the problem of low loading efficiency. Summary of the invention

[0004] The embodiments of the present invention provide a configuration information loading method, device, equipment and medium based on configuration word transmission, aiming to solve the problem of low loading efficiency existing in the configuration information loading method in the prior art method.

[0005] In a first aspect, an embodiment of the present invention provides a configuration information loading method based on configuration word transmission, wherein the method is applied to a controller, wherein the controller establishes a network connection with a chip core, a chip memory, and a memory to realize the transmission of data information, wherein the method comprises:

[0006] If a configuration loading instruction is received, reading a first configuration word stored in the chip memory and a second configuration word stored in the memory;

[0007] Determining whether the configuration word is read successfully according to the first configuration word and the second configuration word;

[0008] If the configuration word is read successfully, the first configuration word and the second configuration word are verified according to a preset verification rule to obtain a corresponding verification result;

[0009] updating the second configuration word and the first configuration word according to the verification result;

[0010] Performing configuration analysis on the first configuration word to obtain corresponding configuration parameters;

[0011] A corresponding configuration loading instruction is generated according to the status code corresponding to the verification result and the configuration parameters and sent to the chip core to load the configuration information.

[0012] In a second aspect, an embodiment of the present invention further provides a configuration information loading device based on configuration word transmission, wherein the device is used to execute the configuration information loading method based on configuration word transmission as described in the first aspect above, the device is configured in a controller, the controller establishes a network connection with a chip core, a chip memory and a memory to realize the transmission of data information, and the device includes:

[0013] A configuration word reading unit, configured to read the first configuration word stored in the chip memory and the second configuration word stored in the memory if a configuration loading instruction is received;

[0014] A reading judgment unit, used for judging whether the configuration word is read successfully according to the first configuration word and the second configuration word;

[0015] A verification unit, configured to verify the first configuration word and the second configuration word according to a preset verification rule to obtain a corresponding verification result if the configuration word is read successfully;

[0016] an updating unit, configured to update the second configuration word and the first configuration word according to the verification result;

[0017] A parsing unit, configured to perform configuration parsing on the first configuration word according to a status code corresponding to the verification result to obtain corresponding configuration parameters;

[0018] The instruction sending unit is used to generate a corresponding configuration loading instruction according to the status code corresponding to the verification result and the configuration parameters and send the instruction to the chip core to load the configuration information.

[0019] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0020] Memory, used to store computer programs;

[0021] The processor is used to implement the steps of the configuration information loading method based on configuration word transmission described in the first aspect when executing the program stored in the memory.

[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the configuration information loading method based on configuration word transfer as described in the first aspect above are implemented.

[0023] The embodiment of the present invention provides a configuration information loading method, device, equipment and medium based on configuration word transmission, the method includes: receiving a configuration loading instruction, reading the first configuration word stored in the chip memory and the second configuration word stored in the internal memory; if the configuration word is read successfully, verifying and updating the first configuration word and the second configuration word according to the verification result, parsing the first configuration word to obtain configuration parameters and generating a configuration loading instruction in combination with the status code corresponding to the verification result and sending it to the chip core for configuration information loading. The above method extracts and processes the attribute configuration information related to a specific vehicle model, and loads it into the chip core in the form of global variables, so that the correct configuration information can be loaded during the boot phase, which improves the accuracy and efficiency of configuration information loading and avoids abnormalities during the boot process. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0025] Figure 1 A method flow chart of a configuration information loading method based on configuration word transfer provided by an embodiment of the present invention;

[0026] Figure 2 A schematic diagram of an application scenario of a configuration information loading method based on configuration word transfer provided in an embodiment of the present invention;

[0027] Figure 3 A schematic block diagram of a configuration information loading device based on configuration word transfer provided by an embodiment of the present invention;

[0028] Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0031] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0032] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0033] See also Figure 1 and Figure 2 As shown in the figure, the embodiment of the present invention provides a configuration information loading method based on configuration word transmission, which is applied to the controller 101 of the vehicle terminal 10 and is executed by the application software installed in the controller 101. Figure 2As shown, the vehicle terminal 10 is also equipped with a chip core 102, a chip memory 103 and a memory 104. The controller 101 establishes network connections with the chip core 102, the chip memory 103 and the memory 104 to realize the transmission of data information. The vehicle terminal is a terminal device installed in the car for display and control. The user can view the content displayed on the vehicle terminal, and the user can also input corresponding control information through buttons and touch screens to control the vehicle terminal. The controller 101 is a SOC (System on Chip) configured on the vehicle side 10, and the controller 101 has data processing and instruction sending functions; the chip core 102 is a core (such as an MCU chip) configured on the vehicle side 10, and the chip core 102 can be used to control the operation of the vehicle side; the chip memory 103 is a memory used to store data information that the chip core 102 needs to process, and the chip core 102 can exchange information with the chip memory 103, and the chip core 102 can quickly read the data information stored therein from the chip memory 103 and process it; the memory 104 is a memory used to temporarily store data information, and the memory 104 can exchange information with the chip memory 103, and the chip core 102 can slowly read the data information stored therein from the memory 104 and process it; and the storage space of the memory 104 is larger than that of the chip core 102, and the memory 104 can be a UFS (Universal Flash Storage) memory. In order to meet the actual use requirements of the vehicle terminal 10, other components such as buttons, touch screens, speakers, etc. can be configured on the vehicle terminal 10. Figure 2 Other components are not marked. Figure 1 As shown, the method includes steps S110 to S160.

[0034] S110: If a configuration loading instruction is received, read the first configuration word stored in the chip memory and the second configuration word stored in the internal memory.

[0035] If a configuration loading instruction is received, the first configuration word stored in the chip memory and the second configuration word stored in the memory are read. The controller can receive a configuration loading instruction, wherein the configuration loading instruction can be input by a user or sent to the controller by the chip core. If the controller receives a configuration loading instruction, the controller reads the first configuration word stored in the chip memory and simultaneously reads the second configuration word stored in the memory. The first configuration word is also the data information configured offline by the chip core (such as data information related to machine-configure-data-mcu). If the first configuration word is not read successfully, the controller will set the read operation status code op-mcustatus; if the first configuration word is read successfully, the controller will clear the read operation status code op-mcustatus.

[0036] Furthermore, the controller reads the data information of the boot_para partition configuration in the memory (such as data information related to machine-configure-data-storage). If the second configuration word cannot be read successfully, the read operation status code op-ufsstatus is set; if the second configuration word is read successfully, the read operation status code op-ufsstatus is cleared.

[0037] S120: Determine whether the configuration word is read successfully according to the first configuration word and the second configuration word.

[0038] Whether the configuration word is read successfully is determined based on the first configuration word and the second configuration word. Further, whether the configuration word is read successfully can be determined based on the read operation status code of the first configuration word and the read operation status code of the second configuration word; if the first configuration word or the second configuration word is read successfully, it can be determined that the configuration word is read successfully; if both the first configuration word and the second configuration word are read unsuccessfully, it can be determined that the configuration word is read unsuccessfully.

[0039] In a specific embodiment, step S120 includes sub-steps: determining whether the first configuration word is read successfully to obtain a first determination result; determining whether the second configuration word is read successfully to obtain a second determination result; if both the first determination result and the second determination result are no, determining that the configuration word is read unsuccessfully; if the first determination result or the second determination result is yes, determining that the configuration word is read successfully.

[0040] Specifically, it is possible to determine whether the first configuration word is read successfully to obtain a first determination result. Specifically, it is possible to determine whether the read operation status code op-mcustatus of the first configuration word is cleared or set to determine whether the first configuration word is read successfully. Similarly, it is possible to determine whether the read operation status code op-ufsstatus of the second configuration word is cleared or set to obtain a second determination result of whether the first configuration word is read successfully.

[0041] If both the first judgment result and the second judgment result are negative, it is determined that the configuration word reading is unsuccessful; otherwise, it is determined that the configuration word reading is successful.

[0042] In a specific embodiment, after step S120, the method further includes: if the configuration word reading fails, reconfiguring the first configuration word according to a pre-stored configuration file; and rewriting the first configuration word into the memory.

[0043] If the configuration word reading fails, the first configuration word is reconfigured according to the pre-stored configuration file, that is, the corresponding configuration information is read from the configuration file and a value is assigned to the first configuration word, thereby reconfiguring the first configuration word. The reconfigured first configuration word is written into the memory.

[0044] S130: If the configuration word is read successfully, verify the first configuration word and the second configuration word according to a preset verification rule to obtain a corresponding verification result.

[0045] If the configuration word is read successfully, the first configuration word and the second configuration word are verified according to the preset verification rules to obtain the corresponding verification result. If the configuration word is read successfully, it indicates that at least one configuration word has a corresponding assignment, and the first configuration word and the second configuration word can be verified according to the verification rules to obtain the verification result.

[0046] In a specific embodiment, step S130 includes the following sub-steps: determining whether the first configuration word and the second configuration word are both read successfully, and determining whether the initialization parameter is zero; if both are read successfully and the initialization parameter is zero, obtaining a rewritten verification result; if both are read successfully and the initialization parameter is not zero, performing a difference verification on the first configuration word and the second configuration word according to the verification rule to obtain a verification result of whether there is a difference; if the first configuration word is not read successfully and the initialization parameter is zero, obtaining a reconfiguration verification result; if the first configuration word is not read successfully and the initialization parameter is not zero, obtaining a reassigned verification result; if the second configuration word is not read successfully, obtaining a rewritten verification result.

[0047] Specifically, it can be determined whether the first configuration word and the second configuration word are both read successfully, and whether the initialization parameter is zero; if the initialization parameter init-flag is zero, it indicates that the vehicle terminal has not been initialized, and if the initialization parameter init-flag is not zero, it indicates that the vehicle terminal has been initialized.

[0048] If both the first configuration word and the second configuration word are read successfully and the initialization parameter is zero, the first configuration word needs to be rewritten into the UFS memory, and the verification result obtained is rewriting, and the status code ops-status corresponding to the verification result is assigned to 0x00. If both configuration words are read successfully and the initialization parameter is not zero, the first configuration word and the second configuration word are checked for differences according to the verification rule, and the status code ops-status corresponding to the verification result is assigned to 0x00, and the assignments in the first configuration word and the assignments in the second configuration word are formatted according to the data format in the verification rule to adjust the format of the assignments in the first configuration word and the second configuration word to be consistent, for example, the format type of the numerical value in the data format is hexadecimal, and the format type of the character in the data format is uppercase. After the format adjustment, it is judged whether the assignments of the same items in the first configuration word and the second configuration word are the same. If the assignments of each item in the two groups of configuration words are the same, a verification result that there is no difference is obtained; if the assignments of any item in the two groups of configuration words are different, a verification result that there is a difference is obtained.

[0049] If the first configuration word is not read successfully and the initialization parameter is zero, a reconfigured verification result is obtained, and the status code ops-status corresponding to the verification result is assigned to 0x01. If the first configuration word is not read successfully and the initialization parameter is not zero, a reassigned verification result is obtained, and the status code ops-status corresponding to the verification result is assigned to 0x01.

[0050] If the second configuration word is not read successfully, a rewritten verification result is obtained.

[0051] S140: Update the second configuration word and the first configuration word according to the verification result.

[0052] The second configuration word and the first configuration word are updated according to the verification result. Two groups of configuration words can be updated according to the verification result, that is, the assignment of the configuration words is updated.

[0053] In a specific embodiment, step S140 includes sub-steps: if the verification result is a difference, reassigning the second configuration word according to the first configuration word; if the verification result is reconfiguration, clearing the first configuration word and reconfiguring the first configuration word according to a pre-stored configuration file; if the verification result is assignment configuration, reassigning the first configuration word according to the second configuration word; if the verification result is rewriting, rewriting the first configuration word into the memory.

[0054] If the verification result shows that there is a difference, the second configuration word is reassigned according to the first configuration word, that is, the assignment of the second configuration word is updated to the assignment of the first configuration word, and the first configuration word is written into the memory.

[0055] If the verification result is reconfiguration, the first configuration word is cleared and reconfigured according to the pre-stored configuration file; if the verification result is assignment configuration, the first configuration word is reassigned according to the second configuration word, that is, the assignment of the first configuration word is updated to the assignment of the second configuration word; if the verification result is rewriting, the first configuration word is rewritten into the memory.

[0056] In a specific embodiment, after rewriting the first configuration word into the memory, the method further includes: determining whether the first configuration word is successfully written into the memory, so as to set a status code corresponding to the verification result according to the writing determination result.

[0057] Further, it is determined whether the first configuration word is successfully written into the UFS memory. If the writing is unsuccessful, the corresponding status code is set to 0x07 according to the writing determination result; if the writing is successful, the corresponding status code is set to 0x02 according to the writing determination result.

[0058] S150: Perform configuration analysis on the first configuration word to obtain corresponding configuration parameters.

[0059] The first configuration word is parsed to obtain corresponding configuration parameters. The first configuration word is parsed to obtain key-value pairs from the first configuration word as corresponding configuration parameters.

[0060] S160: Generate a corresponding configuration loading instruction according to the status code corresponding to the verification result and the configuration parameters, and send the instruction to the chip core to load the configuration information.

[0061] Generate a corresponding configuration loading instruction based on the status code corresponding to the verification result and the configuration parameters and send it to the chip core to load the configuration information. Generate a configuration loading instruction corresponding to the configuration parameters based on the status code corresponding to the verification result, and send the configuration loading instruction to the chip core, and the chip core loads the configuration information according to the configuration loading instruction; specifically, the driver in the chip core loads the corresponding functional module according to the configuration loading instruction, and the chip core exports the relevant configuration information to the factory mode application through the proc / sys / node; at the same time, the current configuration information is recorded as a static variable or a global variable. The factory mode application adds a property page, obtains the corresponding configuration information through the proc / sys / node, and displays it to the local client. When used for wake-up, each driver reloads the corresponding function according to the configuration information obtained at startup.

[0062] In a specific embodiment, step S160 includes sub-steps: configuring a corresponding execution priority according to the status code; generating a corresponding configuration loading instruction according to the execution priority and the configuration parameters and sending the instruction to the chip core.

[0063] Specifically, the execution priority corresponding to the status code configuration can be used, and a configuration loading instruction can be generated according to the execution priority and configuration parameters, and the generated configuration loading instruction includes the execution priority and configuration parameters. The generated configuration loading instruction is sent to the chip core, and the chip core executes the configuration loading instruction according to the execution priority in the configuration loading instruction and loads the configuration information. Loading the configuration information means loading the configuration parameters in the configuration loading instruction into the corresponding functional module.

[0064] In the configuration information loading method based on configuration word transmission disclosed in the above embodiment, the method includes: receiving a configuration loading instruction, reading the first configuration word stored in the chip memory and the second configuration word stored in the memory; if the configuration word is read successfully, performing a check and updating the first configuration word and the second configuration word according to the check result, parsing the first configuration word to obtain configuration parameters and generating a configuration loading instruction in combination with the status code corresponding to the check result and sending it to the chip core for configuration information loading. The above method extracts and processes the attribute configuration information related to a specific vehicle model, and loads it into the chip core in the form of global variables, so that the correct configuration information can be loaded during the boot phase, which improves the accuracy and efficiency of configuration information loading and avoids abnormalities during the boot process.

[0065] The embodiment of the present invention further provides a configuration information loading device based on configuration word transmission, which can be configured in the controller 101 of the vehicle terminal 10, and is used to execute any embodiment of the configuration information loading method based on configuration word transmission. Figure 3 , Figure 3 A schematic block diagram of a configuration information loading device based on configuration word transfer provided in an embodiment of the present invention.

[0066] like Figure 3 As shown, the configuration information loading device 100 based on configuration word transfer includes a configuration word reading unit 110 , a reading judgment unit 120 , a checking unit 130 , an updating unit 140 , a parsing unit 150 and an instruction sending unit 160 .

[0067] The configuration word reading unit 110 is used to read the first configuration word stored in the chip memory and the second configuration word stored in the internal memory if a configuration loading instruction is received.

[0068] The read determination unit 120 is used to determine whether the configuration word is read successfully according to the first configuration word and the second configuration word.

[0069] The verification unit 130 is used to verify the first configuration word and the second configuration word according to a preset verification rule to obtain a corresponding verification result if the configuration word is read successfully.

[0070] The updating unit 140 is configured to update the second configuration word and the first configuration word according to the verification result.

[0071] The parsing unit 150 is used to perform configuration parsing on the first configuration word according to the status code corresponding to the verification result to obtain corresponding configuration parameters.

[0072] The instruction sending unit 160 is used to generate a corresponding configuration loading instruction according to the status code corresponding to the verification result and the configuration parameters and send the instruction to the chip core to load the configuration information.

[0073] The configuration information loading device based on configuration word transmission provided in the embodiment of the present invention applies the above-mentioned configuration information loading method based on configuration word transmission, and reads the first configuration word stored in the chip memory and the second configuration word stored in the memory upon receiving the configuration loading instruction; if the configuration word is read successfully, a check is performed and the first configuration word and the second configuration word are updated according to the check result, the first configuration word is parsed to obtain the configuration parameter and the configuration loading instruction is generated in combination with the status code corresponding to the check result and sent to the chip core for configuration information loading. The above-mentioned method extracts and processes the attribute configuration information related to a specific vehicle model, and loads it into the chip core in the form of global variables, so that the correct configuration information can be loaded during the boot phase, which improves the accuracy and efficiency of configuration information loading and avoids abnormalities during the boot process.

[0074] The above configuration information loading device based on configuration word transmission can be implemented in the form of a computer program. The computer program can be implemented in a computer program such as Figure 4 Runs on the computer device shown.

[0075] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a controller for executing a configuration information loading method based on configuration word transfer to implement configuration information loading.

[0076] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a communication interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .

[0077] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a configuration information loading method based on configuration word transmission, wherein the storage medium 503 can be a volatile storage medium or a non-volatile storage medium.

[0078] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0079] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the configuration information loading method based on the configuration word transfer.

[0080] The communication interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will appreciate that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0081] The processor 502 is used to run a computer program 5032 stored in the memory to implement the corresponding functions in the above configuration information loading method based on configuration word transfer.

[0082] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.

[0083] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0084] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the configuration information loading method based on configuration word transfer are implemented.

[0085] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0086] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.

[0087] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0088] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.

[0090] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A configuration information loading method based on configuration word transmission, characterized in that: The method is applied in a controller, and the controller establishes a network connection with a chip core, a chip memory, and a memory to realize the transmission of data information. The method includes: If a configuration loading instruction is received, reading a first configuration word stored in the chip memory and a second configuration word stored in the memory; Determining whether the configuration word is read successfully according to the first configuration word and the second configuration word; If the configuration word is read successfully, the first configuration word and the second configuration word are verified according to a preset verification rule to obtain a corresponding verification result; updating the second configuration word and the first configuration word according to the verification result; Performing configuration analysis on the first configuration word to obtain corresponding configuration parameters; A corresponding configuration loading instruction is generated according to the status code corresponding to the verification result and the configuration parameters and sent to the chip core to load the configuration information.

2. The configuration information loading method based on configuration word transfer according to claim 1, characterized in that: The step of judging whether the configuration word is read successfully according to the first configuration word and the second configuration word includes: Determine whether the first configuration word is read successfully, and obtain a first determination result; Determine whether the second configuration word is read successfully, and obtain a second determination result; If both the first judgment result and the second judgment result are negative, it is determined that the configuration word reading is unsuccessful; If the first judgment result or the second judgment result is yes, it is determined that the configuration word is read successfully.

3. The configuration information loading method based on configuration word transfer according to claim 1 or 2, characterized in that: The verifying the first configuration word and the second configuration word according to the preset verification rule to obtain corresponding verification results includes: Determine whether the first configuration word and the second configuration word are both read successfully, and determine whether the initialization parameter is zero; If all reads are successful and the initialization parameter is zero, a rewritten verification result is obtained; If both are read successfully and the initialization parameter is not zero, performing a difference check on the first configuration word and the second configuration word according to the check rule to obtain a check result of whether there is a difference; If the first configuration word is not read successfully and the initialization parameter is zero, obtaining a reconfiguration verification result; If the first configuration word is not read successfully and the initialization parameter is not zero, obtaining a re-assigned verification result; If the second configuration word is not read successfully, a rewritten verification result is obtained.

4. The configuration information loading method based on configuration word transfer according to claim 3 is characterized in that: The updating of the second configuration word and the first configuration word according to the verification result includes: If the verification result shows that there is a difference, reassigning the second configuration word according to the first configuration word; If the verification result is reconfiguration, clear the first configuration word and reconfigure the first configuration word according to a pre-stored configuration file; If the verification result is an assignment configuration, reassigning the first configuration word according to the second configuration word; If the verification result is rewriting, the first configuration word is rewritten into the memory.

5. The configuration information loading method based on configuration word transfer according to claim 4, characterized in that: After rewriting the first configuration word into the memory, the method further includes: It is determined whether the first configuration word is successfully written into the memory, so as to set a status code corresponding to the verification result according to the writing determination result.

6. The configuration information loading method based on configuration word transfer according to claim 1, characterized in that: After determining whether the configuration word is read successfully according to the first configuration word and the second configuration word, the method further includes: If the configuration word fails to be read, reconfigure the first configuration word according to a pre-stored configuration file; Rewrite the first configuration word into the memory.

7. The configuration information loading method based on configuration word transfer according to claim 1, characterized in that: The generating a corresponding configuration loading instruction according to the status code corresponding to the verification result and the configuration parameter and sending the instruction to the chip core includes: Configure the corresponding execution priority according to the status code; A corresponding configuration loading instruction is generated according to the execution priority and the configuration parameters and sent to the chip core.

8. A configuration information loading device based on configuration word transmission, characterized in that: The configuration information loading device based on configuration word transfer is used to execute the configuration information loading method based on configuration word transfer according to any one of claims 1 to 7, the device is configured in a controller, the controller establishes a network connection with a chip core, a chip memory and a memory to realize the transmission of data information, and the device includes: A configuration word reading unit, configured to read the first configuration word stored in the chip memory and the second configuration word stored in the memory if a configuration loading instruction is received; A reading judgment unit, used for judging whether the configuration word is read successfully according to the first configuration word and the second configuration word; A verification unit, configured to verify the first configuration word and the second configuration word according to a preset verification rule to obtain a corresponding verification result if the configuration word is read successfully; an updating unit, configured to update the second configuration word and the first configuration word according to the verification result; A parsing unit, configured to perform configuration parsing on the first configuration word according to a status code corresponding to the verification result to obtain corresponding configuration parameters; The instruction sending unit is used to generate a corresponding configuration loading instruction according to the status code corresponding to the verification result and the configuration parameters and send the instruction to the chip core to load the configuration information.

9. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the steps of the configuration information loading method based on configuration word transfer described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the configuration information loading method based on configuration word transfer as described in any one of claims 1 to 7 are implemented.