CN111209030A - Firmware configuration method and device - Google Patents

Firmware configuration method and device Download PDF

Info

Publication number
CN111209030A
CN111209030A CN201911355570.1A CN201911355570A CN111209030A CN 111209030 A CN111209030 A CN 111209030A CN 201911355570 A CN201911355570 A CN 201911355570A CN 111209030 A CN111209030 A CN 111209030A
Authority
CN
China
Prior art keywords
firmware
information
preset
hardware
belongs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911355570.1A
Other languages
Chinese (zh)
Inventor
罗沛
徐光峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uditech Co Ltd
Original Assignee
Uditech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uditech Co Ltd filed Critical Uditech Co Ltd
Priority to CN201911355570.1A priority Critical patent/CN111209030A/en
Publication of CN111209030A publication Critical patent/CN111209030A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a firmware configuration method, which comprises the following steps: when the firmware is powered on and operated, acquiring a firmware identification and firmware information of the firmware; determining configuration parameter information corresponding to a firmware identifier based on a corresponding relation between a preset firmware identifier and preset configuration parameter information; and acquiring firmware configuration parameters corresponding to the firmware information from the configuration parameter information, and configuring the firmware based on the firmware configuration parameters. According to the scheme, when the same hardware module or the same series of hardware modules are used for different models or are installed at different positions of the same model, different firmware does not need to be adopted. The firmware can be configured only by acquiring the firmware configuration parameters corresponding to different types or different parts, so that the production cost and the management cost of the firmware version are reduced.

Description

Firmware configuration method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a firmware configuration method and apparatus.
Background
When the same hardware module or the same series of hardware modules are used for different models or are installed at different positions of the same model, the firmware functions may be different. In the prior art, when the same hardware module or the same series of hardware modules are used for different models or installed at different positions of the same model, different firmware and firmware versions are required. This results in excessive firmware versions, which are costly to produce and manage.
Disclosure of Invention
The embodiment of the application provides a firmware configuration method and device, which can solve the problems of excessive firmware versions and excessive production cost and management cost of the firmware versions.
In a first aspect, an embodiment of the present application provides a firmware configuration method, including:
when the firmware is powered on and operated, acquiring a firmware identification and firmware information of the firmware; the firmware information identifies an identity of the firmware;
determining configuration parameter information corresponding to a firmware identifier based on a corresponding relation between a preset firmware identifier and preset configuration parameter information;
acquiring firmware configuration parameters corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information;
configuring the firmware based on the firmware configuration parameters.
Further, the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of the device to which the firmware belongs.
Further, when the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of the device to which the firmware belongs, the acquiring the firmware configuration parameters corresponding to the firmware information from the configuration parameter information includes:
determining firmware configuration parameters corresponding to the position information, the identity code information and the model information based on the corresponding relationship among the preset position information, the preset identity code information and the preset model information and the preset firmware configuration parameters.
Further, when the firmware information includes location information of hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, the acquiring the firmware configuration parameter corresponding to the firmware information from the configuration parameter information includes:
determining hardware identity information of hardware to which the firmware belongs based on the position information, the identity code information and the model information;
and determining firmware configuration parameters corresponding to the hardware identity information based on the corresponding relationship between the preset hardware identity information and the preset firmware configuration parameters.
Further, when the firmware information includes identity code information,
the acquiring the firmware information of the firmware comprises:
acquiring a level signal of an identity recognition circuit corresponding to the firmware;
and identifying the level signal and determining the identity code information corresponding to the level signal.
Further, when the firmware information includes location information of hardware to which the firmware belongs,
before the acquiring the firmware information of the firmware, the method further includes:
acquiring reference position information of hardware to which a preset reference firmware belongs;
and determining the position information of the hardware to which the firmware belongs based on the azimuth information and the reference position information of the hardware to which the firmware belongs relative to the preset reference firmware.
In a second aspect, an embodiment of the present application provides a configuration apparatus of firmware, including:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a firmware identifier and firmware information of firmware when the firmware is powered on and runs; the firmware information identifies an identity of the firmware;
the device comprises a first determining unit, a second determining unit and a judging unit, wherein the first determining unit is used for determining configuration parameter information corresponding to a firmware identification based on the corresponding relation between the preset firmware identification and preset configuration parameter information;
a second obtaining unit, configured to obtain a firmware configuration parameter corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information;
a configuration unit, configured to configure the firmware based on the firmware configuration parameters.
Further, the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of the device to which the firmware belongs.
Further, when the firmware information includes location information of hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, the second obtaining unit is specifically configured to:
determining firmware configuration parameters corresponding to the position information, the identity code information and the model information based on the corresponding relationship among the preset position information, the preset identity code information and the preset model information and the preset firmware configuration parameters.
Further, when the firmware information includes location information of hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, the second obtaining unit is specifically configured to:
determining hardware identity information of hardware to which the firmware belongs based on the position information, the identity code information and the model information;
and determining firmware configuration parameters corresponding to the hardware identity information based on the corresponding relationship between the preset hardware identity information and the preset firmware configuration parameters.
Further, when the firmware information includes identity code information,
the first obtaining unit is specifically configured to:
acquiring a level signal of an identity recognition circuit corresponding to the firmware;
and identifying the level signal and determining the identity code information corresponding to the level signal.
Further, when the firmware information includes location information of hardware to which the firmware belongs,
the firmware configuration device further comprises:
a third obtaining unit, configured to obtain reference position information of a hardware to which the preset reference firmware belongs;
a second determination unit configured to determine location information of the hardware to which the firmware belongs, based on the position information of the hardware to which the firmware belongs with respect to the preset reference firmware and the reference location information.
In a third aspect, an embodiment of the present application provides a firmware configuration device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the firmware configuration method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the configuration method of firmware as described in the first aspect.
In the embodiment of the application, when the firmware is powered on and runs, the firmware identification and the firmware information of the firmware are obtained; determining configuration parameter information corresponding to a firmware identifier based on a corresponding relation between a preset firmware identifier and preset configuration parameter information; and acquiring firmware configuration parameters corresponding to the firmware information from the configuration parameter information, and configuring the firmware based on the firmware configuration parameters. According to the scheme, when the same hardware module or the same series of hardware modules are used for different models or are installed at different positions of the same model, different firmware does not need to be adopted. The firmware can be configured only by acquiring the firmware configuration parameters corresponding to different types or different parts, so that the production cost and the management cost of the firmware version are reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a configuration method of firmware provided in a first embodiment of the present application;
fig. 2 is a schematic flowchart of a refinement of S101 in a configuration method of firmware provided in a first embodiment of the present application;
fig. 3 is a schematic flowchart of a refinement at S103 in a configuration method of firmware provided in a first embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of another firmware configuration method provided in a second embodiment of the present application;
FIG. 5 is a diagram of a configuration device of firmware provided in a third embodiment of the present application;
fig. 6 is a schematic diagram of a configuration device of firmware provided in a fourth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of a firmware configuration method according to a first embodiment of the present application. The main execution body of the firmware configuration method in this embodiment is a device having a firmware configuration function, and may be a mobile terminal, a desktop computer, a server, and the like. The configuration method of the firmware shown in fig. 1 may include:
s101: when the firmware is powered on and operated, acquiring a firmware identification and firmware information of the firmware; the firmware information identifies an identity of the firmware.
Firmware (firmware) is a program written in a flash memory or a programmable read-only memory (prom) in an Application Specific Integrated Circuit (ASIC) or a Programmable Logic Device (PLD), and is colloquially understood as "solidified software", and the firmware mentioned in this embodiment refers to an embedded computer program running on a circuit board. The program is stored on the circuit board, possibly inside the single chip microcomputer or outside the single chip microcomputer. When the same hardware module or the same series of hardware modules are used for different models or are installed at different positions of the same model, the firmware functions may be different. Wherein, different "sites" include but are not limited to: the difference of the spatial positions of actual installation, for example, the automobile rearview mirror control unit is installed at different positions and is respectively used for controlling the left rearview mirror and the right rearview mirror; the logic positions of the circuits are different, for example, a power management unit is used for power management of an automobile air conditioner control panel and power management of a control system.
The method comprises the steps that the equipment detects the firmware powering-on operation, wherein in the equipment, when the firmware is powered-on and operated, the firmware is started, the firmware identification and the firmware information of the firmware are obtained, and the firmware information identifies the identity of the firmware. Each firmware corresponds to a firmware identifier, the firmware identifier may be a serial number of the firmware, and the firmware identifier is used for storing the configuration parameter information in association with the firmware identifier, so that when the firmware identifier is known, the corresponding configuration parameter information may be determined. The firmware information of the firmware identifies the identity of the firmware, that is, the firmware has different functions when being used in different models or being installed in different parts of the same model, that is, has different identities.
Further, the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of the device to which the firmware belongs. The firmware information includes, but is not limited to, location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, model information of a device to which the firmware belongs, and the firmware information may also include other information required for firmware configuration.
When the functions of the firmware are different due to different position information of the hardware to which the firmware belongs, the position information of the hardware to which the firmware belongs can also be used as firmware information to identify the identity of the firmware. The location information of the hardware may be a logical location of the hardware in the corresponding topological relationship. For example, the hardware to which several pieces of firmware in the machine belong are connected to each other in a daisy chain manner to form a linear daisy chain topology: A1-A2-B-C-D-E1-E2-F …. The physical interface for connecting the hardware may be any communication interface, such as an ethernet interface, an RS232 interface, an SPI interface, and the like. In the topology relation, each piece of hardware is respectively connected with two pieces of hardware through two interfaces (only one end node is connected).
When the functions of the firmware are different due to different identity code information of the hardware to which the firmware belongs, the identity code information of the hardware to which the firmware belongs can be used as firmware information to identify the identity of the firmware. The identity code information of the hardware to which the firmware belongs is an identifier for distinguishing the hardware, the identity code information is composed of character strings, and different hardware corresponds to different identity code information.
Further, when the firmware information includes identity code information, S101 may include S1011 to S1012, as shown in fig. 2, S1011 to S1012 are as follows:
s1011: and acquiring a level signal of the identity recognition circuit corresponding to the firmware.
In this embodiment, the hardware to which the firmware belongs has an identification circuit, and the identification circuit is used for identifying the identification code information. For example, two IO pins are preset in the identity recognition circuit, and after the firmware runs, level signals of the two IO pins in the identity recognition circuit are obtained.
S1012: and identifying the level signal and determining the identity code information corresponding to the level signal.
The equipment identifies the level signal to obtain an identification result, the identification result can be in the form of voltage waveform, the equipment is preset with identity code information corresponding to different identification results, and the equipment identifies the level signal to determine the identity code information corresponding to the level signal.
S102: and determining configuration parameter information corresponding to the firmware identification based on the corresponding relation between the preset firmware identification and the preset configuration parameter information.
The device pre-stores the corresponding relationship between the preset firmware identification and the preset configuration parameter information, and the preset configuration parameter information includes the configuration parameters required by the corresponding firmware in different identities, such as the motor direction, the motor current threshold, the limit switch level and other parameters. That is, each firmware corresponds to a configuration parameter information for determining the configuration parameters required by the firmware in different identities. The configuration parameter information should include information for identifying the firmware identity and its corresponding configuration parameters. As shown in the following table, the configuration parameter information may be in the form of a table, in which the model, location, and identity code are firmware information, and identify the firmware identity, and different firmware identities correspond to different configuration parameters.
Figure BDA0002335816710000081
The equipment acquires the firmware identification, and determines the configuration parameter information corresponding to the firmware identification based on the corresponding relation between the preset firmware identification and the preset configuration parameter information.
S103: acquiring firmware configuration parameters corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information.
The equipment acquires the firmware configuration parameters corresponding to the firmware information from the configuration parameter information, wherein the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information. The device determines the firmware configuration parameters corresponding to the firmware information based on the corresponding relationship between the preset firmware information and the preset firmware configuration parameters. For example, when the predetermined firmware information is: the model is model a and identity code 0x01, and the preset configuration parameters corresponding to the preset firmware information are: clockwise in the motor direction, 60% of the duty ratio of the motor control pulse, 1.5A of the motor current threshold and N/A of the limit switch level. When the firmware information is the model a and the identity code 0x01, the configuration parameters corresponding to the firmware information obtained from the configuration parameter information are: clockwise in the motor direction, 60% of the duty ratio of the motor control pulse, 1.5A of the motor current threshold and N/A of the limit switch level.
Further, when the firmware information includes location information of hardware to which the firmware belongs, identity information of a device to which the firmware belongs, and model information of the device to which the firmware belongs, S103 may include: determining firmware configuration parameters corresponding to the position information, the identity code information and the model information based on the corresponding relationship among the preset position information, the preset identity code information and the preset model information and the preset firmware configuration parameters.
In this implementation, the firmware information includes location information of hardware to which the firmware belongs, identity code information of a device to which the firmware belongs, and model information of the device to which the firmware belongs. The device pre-stores the corresponding relationship between the preset position information, the preset identity code information and the preset model information and the preset firmware configuration parameters, namely the preset position information, the preset identity code information and the preset model information correspond to a group of configuration parameters together. The equipment determines firmware configuration parameters corresponding to the position information, the identity code information and the model information based on the corresponding relation among the preset position information, the preset identity code information, the preset model information and the preset firmware configuration parameters.
Further, when the firmware information includes location information of hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, S103 may include S1031 to S1032, as shown in fig. 3, where S1031 to S1032 are specifically as follows:
s1031: and determining hardware identity information of the hardware to which the firmware belongs based on the position information, the identity code information and the model information.
The device prestores the corresponding relation among preset position information, preset identity code information and preset model information and preset hardware identity information, and the hardware identity information is an identity mark of hardware. The equipment determines hardware identity information of hardware to which the firmware belongs, corresponding to the position information, the identity code information and the model information, based on a corresponding relation among preset position information, preset identity code information, preset model information and preset hardware identity information.
As shown in the following table, the hardware identification information corresponding to the model information a, the location information 1, and the identification code information 0x01 is 1.
Figure BDA0002335816710000091
Figure BDA0002335816710000101
S1032: and determining firmware configuration parameters corresponding to the hardware identity information based on the corresponding relationship between the preset hardware identity information and the preset firmware configuration parameters.
The device prestores the corresponding relation between the preset hardware identity information and the preset firmware configuration parameters, and determines the firmware configuration parameters corresponding to the hardware identity information based on the corresponding relation between the preset hardware identity information and the preset firmware configuration parameters.
S104: configuring the firmware based on the firmware configuration parameters.
After the device obtains the firmware configuration parameters, the device configures the firmware based on the firmware configuration parameters and executes the functions corresponding to the firmware configuration parameters.
In the embodiment of the application, when the firmware is powered on and runs, the firmware identification and the firmware information of the firmware are obtained; determining configuration parameter information corresponding to a firmware identifier based on a corresponding relation between a preset firmware identifier and preset configuration parameter information; and acquiring firmware configuration parameters corresponding to the firmware information from the configuration parameter information, and configuring the firmware based on the firmware configuration parameters. According to the scheme, when the same hardware module or the same series of hardware modules are used for different models or are installed at different positions of the same model, different firmware does not need to be adopted. The firmware can be configured only by acquiring the firmware configuration parameters corresponding to different types or different parts, so that the production cost and the management cost of the firmware version are reduced.
Referring to fig. 4, fig. 4 is a schematic flow chart of another firmware configuration method according to a second embodiment of the present application. The main execution body of the firmware configuration method in this embodiment is a device having a firmware configuration function, and may be a mobile terminal, a desktop computer, a server, and the like. In this embodiment, the firmware information includes location information of hardware to which the firmware belongs, and in order to accurately obtain the location information, the difference between this embodiment and the first embodiment is that S201 to S202, S203 to S206 are the same as S101 to S104 in the first embodiment, and S201 to S202 may be executed before S203, as shown in fig. 4, and S201 to S202 are specifically as follows:
s201: and acquiring reference position information of the hardware to which the preset reference firmware belongs.
The location information of the hardware in the device may be a logical location of the hardware in the corresponding topological relationship. For example, the hardware to which several pieces of firmware in the machine belong are connected to each other in a daisy chain manner to form a linear daisy chain topology: A1-A2-B-C-D-E1-E2-F …. The device is preset with reference firmware, the position information of the hardware of the reference firmware is used as reference position information, and other hardware uses the reference position information as reference to determine the position information. For example, in the topological relation a1-a2-B-C-D-E1-E2-F, the position information of C in the network is defined as position No. 0, with the position information of C as reference position information.
S202: and determining the position information of the hardware to which the firmware belongs based on the azimuth information and the reference position information of the hardware to which the firmware belongs relative to the preset reference firmware.
The device determines the position information of the hardware to which the firmware belongs based on the position information and the reference position information of the hardware to which the firmware belongs relative to the preset reference firmware, for example, in the topological relation A1-A2-B-C-D-E1-E2-F, the position information of C is used as the reference position information, and the position information of C in the network is defined as position No. 0. C informs the position information of B connected with the left port as No. 1, and informs the position information of D connected with the right port as No. 1. After receiving the position hip-hop, the B right port informs the A2 connected with the left port that the position information is the self position number-1, namely the position of-2. And D, after receiving the position information, the left port informs the E1 connected with the right port that the position information is the position information of the E1, namely the position 2. By the above operations, a1, a2, … … F can all get their own logical location in the network: -position No. 3, -position No. 2, position No. … … 4.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 5, fig. 5 is a schematic diagram of a configuration apparatus of firmware according to a third embodiment of the present application. The units included are used to perform the steps in the embodiments corresponding to fig. 1-4. Please refer to the related description of the embodiments corresponding to fig. 1 to 4. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, the configuration device 5 of the firmware includes:
a first obtaining unit 510, configured to obtain a firmware identifier and firmware information of a firmware when the firmware is powered on and runs; the firmware information identifies an identity of the firmware;
a first determining unit 520, configured to determine configuration parameter information corresponding to a preset firmware identifier based on a corresponding relationship between the preset firmware identifier and preset configuration parameter information;
a second obtaining unit 530, configured to obtain a firmware configuration parameter corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information;
a configuration unit 540, configured to configure the firmware based on the firmware configuration parameters.
Further, the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of the device to which the firmware belongs.
Further, when the firmware information includes location information of a hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, the second obtaining unit 530 is specifically configured to:
determining firmware configuration parameters corresponding to the position information, the identity code information and the model information based on the corresponding relationship among the preset position information, the preset identity code information and the preset model information and the preset firmware configuration parameters.
Further, when the firmware information includes location information of a hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, the second obtaining unit 530 is specifically configured to:
determining hardware identity information of hardware to which the firmware belongs based on the position information, the identity code information and the model information;
and determining firmware configuration parameters corresponding to the hardware identity information based on the corresponding relationship between the preset hardware identity information and the preset firmware configuration parameters.
Further, when the firmware information includes identity code information,
the first obtaining unit 510 is specifically configured to:
acquiring a level signal of an identity recognition circuit corresponding to the firmware;
and identifying the level signal and determining the identity code information corresponding to the level signal.
Further, when the firmware information includes location information of hardware to which the firmware belongs,
the configuration device 5 of the firmware further comprises:
a third obtaining unit, configured to obtain reference position information of a hardware to which the preset reference firmware belongs;
a second determination unit configured to determine location information of the hardware to which the firmware belongs, based on the position information of the hardware to which the firmware belongs with respect to the preset reference firmware and the reference location information.
Fig. 6 is a schematic diagram of a configuration device of firmware provided in a fourth embodiment of the present application. As shown in fig. 6, the configuration device 6 of the firmware of this embodiment includes: a processor 60, a memory 61, and a computer program 62, such as a configuration program for firmware, stored in the memory 61 and executable on the processor 60. The processor 60 executes the computer program 62 to implement the steps in the above-mentioned method embodiments of data synchronization, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 510 to 540 shown in fig. 5.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the configuration device 6 of the firmware. For example, the computer program 62 may be divided into a first obtaining unit, a first determining unit, a second obtaining unit, and a configuring unit, and each unit has the following specific functions:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a firmware identifier and firmware information of firmware when the firmware is powered on and runs; the firmware information identifies an identity of the firmware;
the device comprises a first determining unit, a second determining unit and a judging unit, wherein the first determining unit is used for determining configuration parameter information corresponding to a firmware identification based on the corresponding relation between the preset firmware identification and preset configuration parameter information;
a second obtaining unit, configured to obtain a firmware configuration parameter corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information;
a configuration unit, configured to configure the firmware based on the firmware configuration parameters.
The configuration device of the firmware may include, but is not limited to, a processor 60, and a memory 61. It will be understood by those skilled in the art that fig. 6 is merely an example of the configuration device 6 of the firmware, and does not constitute a limitation of the configuration device 6 of the firmware, and may include more or less components than those shown, or combine some components, or different components, for example, the configuration device of the firmware may also include an input-output device, a network access device, a bus, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the configuration device 6 of the firmware, for example, a hard disk or a memory of the configuration device 6 of the firmware. The memory 61 may also be an external storage device of the configuration device 6 of the firmware, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which is provided on the configuration device 6 of the firmware. Further, the configuration device 61 of the firmware may also include both an internal storage unit and an external storage device of the configuration device 6 of the firmware. The memory 61 is used to store the computer program and other programs and data required by the configuration device of the firmware. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for configuring firmware, comprising:
when the firmware is powered on and operated, acquiring a firmware identification and firmware information of the firmware; the firmware information identifies an identity of the firmware;
determining configuration parameter information corresponding to a firmware identifier based on a corresponding relation between a preset firmware identifier and preset configuration parameter information;
acquiring firmware configuration parameters corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information;
configuring the firmware based on the firmware configuration parameters.
2. The method of configuring firmware according to claim 1, wherein the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of a device to which the firmware belongs.
3. The method according to claim 2, wherein when the firmware information includes location information of hardware to which the firmware belongs, identity information of the hardware to which the firmware belongs, and model information of a device to which the firmware belongs, the obtaining of the firmware configuration parameters corresponding to the firmware information from the configuration parameter information includes:
determining firmware configuration parameters corresponding to the position information, the identity code information and the model information based on the corresponding relationship among the preset position information, the preset identity code information and the preset model information and the preset firmware configuration parameters.
4. The method according to claim 2, wherein when the firmware information includes location information of hardware to which the firmware belongs, identity code information, and model information of a device to which the firmware belongs, the obtaining of the firmware configuration parameters corresponding to the firmware information from the configuration parameter information includes:
determining hardware identity information of hardware to which the firmware belongs based on the position information, the identity code information and the model information;
and determining firmware configuration parameters corresponding to the hardware identity information based on the corresponding relationship between the preset hardware identity information and the preset firmware configuration parameters.
5. The method of configuring firmware according to claim 2, wherein when the firmware information includes identity code information,
the acquiring the firmware information corresponding to the firmware includes:
acquiring a level signal of an identity recognition circuit of the firmware;
and identifying the level signal and determining the identity code information corresponding to the level signal.
6. The method of configuring firmware according to claim 2, wherein when the firmware information includes location information of hardware to which the firmware belongs,
before the acquiring the firmware information of the firmware, the method further includes:
acquiring reference position information of hardware to which a preset reference firmware belongs;
and determining the position information of the hardware to which the firmware belongs based on the azimuth information and the reference position information of the hardware to which the firmware belongs relative to the preset reference firmware.
7. An apparatus for configuring firmware, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a firmware identifier and firmware information of firmware when the firmware is powered on and runs; the firmware information identifies an identity of the firmware;
the device comprises a first determining unit, a second determining unit and a judging unit, wherein the first determining unit is used for determining configuration parameter information corresponding to a firmware identification based on the corresponding relation between the preset firmware identification and preset configuration parameter information;
a second obtaining unit, configured to obtain a firmware configuration parameter corresponding to the firmware information from the configuration parameter information; the configuration parameter information comprises preset firmware information and preset firmware configuration parameters corresponding to the preset firmware information;
a configuration unit, configured to configure the firmware based on the firmware configuration parameters.
8. The apparatus for configuring firmware according to claim 7, wherein the firmware information includes location information of hardware to which the firmware belongs, identity code information of the hardware to which the firmware belongs, and model information of a device to which the firmware belongs.
9. A configuration device for firmware, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201911355570.1A 2019-12-25 2019-12-25 Firmware configuration method and device Pending CN111209030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911355570.1A CN111209030A (en) 2019-12-25 2019-12-25 Firmware configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911355570.1A CN111209030A (en) 2019-12-25 2019-12-25 Firmware configuration method and device

Publications (1)

Publication Number Publication Date
CN111209030A true CN111209030A (en) 2020-05-29

Family

ID=70784379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911355570.1A Pending CN111209030A (en) 2019-12-25 2019-12-25 Firmware configuration method and device

Country Status (1)

Country Link
CN (1) CN111209030A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111792532A (en) * 2020-06-24 2020-10-20 中联重科股份有限公司 Multi-controller self-adaptive installation method and equipment
CN111847248A (en) * 2020-06-24 2020-10-30 中联重科股份有限公司 Controller positioning configuration method and device
CN112241141A (en) * 2020-11-12 2021-01-19 上海电气风电集团股份有限公司 Hardware configuration method, system, device and medium of PLC control system
CN112905517A (en) * 2021-03-09 2021-06-04 明峰医疗系统股份有限公司 Variable packet length data acquisition method based on FPGA

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169310A1 (en) * 2013-12-12 2015-06-18 Lenovo (Singapore) Pte, Ltd. Maintaining firmware
CN104778135A (en) * 2015-04-15 2015-07-15 上海与德通讯技术有限公司 Device compatible method and system
CN106055361A (en) * 2016-05-31 2016-10-26 深圳市国鑫恒宇科技有限公司 Integrated firmware implementation method and system based on various different models of BMC (baseboard management controller)
CN106933638A (en) * 2017-03-21 2017-07-07 苏州蜗牛数字科技股份有限公司 A kind of method that different firmwares are loaded according to different product
CN108958837A (en) * 2018-06-29 2018-12-07 深圳市同泰怡信息技术有限公司 A kind of method, system and the medium of dynamic configuration ME firmware
CN109656620A (en) * 2018-12-24 2019-04-19 联想(北京)有限公司 Firmware parameters setting method, device and electronic equipment
CN110175057A (en) * 2019-05-31 2019-08-27 联想(北京)有限公司 A kind of data processing method, electronic equipment and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169310A1 (en) * 2013-12-12 2015-06-18 Lenovo (Singapore) Pte, Ltd. Maintaining firmware
CN104778135A (en) * 2015-04-15 2015-07-15 上海与德通讯技术有限公司 Device compatible method and system
CN106055361A (en) * 2016-05-31 2016-10-26 深圳市国鑫恒宇科技有限公司 Integrated firmware implementation method and system based on various different models of BMC (baseboard management controller)
CN106933638A (en) * 2017-03-21 2017-07-07 苏州蜗牛数字科技股份有限公司 A kind of method that different firmwares are loaded according to different product
CN108958837A (en) * 2018-06-29 2018-12-07 深圳市同泰怡信息技术有限公司 A kind of method, system and the medium of dynamic configuration ME firmware
CN109656620A (en) * 2018-12-24 2019-04-19 联想(北京)有限公司 Firmware parameters setting method, device and electronic equipment
CN110175057A (en) * 2019-05-31 2019-08-27 联想(北京)有限公司 A kind of data processing method, electronic equipment and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111792532A (en) * 2020-06-24 2020-10-20 中联重科股份有限公司 Multi-controller self-adaptive installation method and equipment
CN111847248A (en) * 2020-06-24 2020-10-30 中联重科股份有限公司 Controller positioning configuration method and device
CN111847248B (en) * 2020-06-24 2021-09-10 中联重科股份有限公司 Controller positioning configuration method and device
CN111792532B (en) * 2020-06-24 2021-10-22 中联重科股份有限公司 Multi-controller self-adaptive installation method and equipment
CN112241141A (en) * 2020-11-12 2021-01-19 上海电气风电集团股份有限公司 Hardware configuration method, system, device and medium of PLC control system
CN112241141B (en) * 2020-11-12 2022-08-09 上海电气风电集团股份有限公司 Hardware configuration method, system, device and medium of PLC control system
CN112905517A (en) * 2021-03-09 2021-06-04 明峰医疗系统股份有限公司 Variable packet length data acquisition method based on FPGA

Similar Documents

Publication Publication Date Title
CN111209030A (en) Firmware configuration method and device
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN110083628B (en) Addressing method and device for Electronic Control Unit (ECU) of vehicle
CN110597523A (en) Board card firmware burning method, device and system, board card and terminal equipment
CN110062321B (en) Testing method, testing upper computer and testing tool for intelligent sound equipment
CN111813095A (en) Vehicle diagnosis method, device and medium
CN111932179B (en) Battery module storage management method, upper computer and system
CN111708555A (en) Data processing device, method and system
CN113489653A (en) Message sending method and device and computer equipment
CN105573294A (en) New energy automobile electronic control unit ECU based on Internet
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN111049717A (en) Variable acquisition method and equipment
CN110543714A (en) circuit board glue spraying control method and device, storage medium and electronic equipment
CN113655737B (en) Vehicle-mounted electronic controller rapid upgrading system and method transmitted through CAN
CN115905055A (en) Computing device and data acquisition method
CN113037554B (en) Communication protocol adaptation method, device, equipment and storage medium
CN112306040A (en) Vehicle detection method, device, equipment and server
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN110618826A (en) Method and device for updating application program and terminal equipment
CN111361826A (en) Production line control method and device for mobile equipment nameplate and production line equipment
CN111352640A (en) Backboard firmware updating method and system
CN112104766B (en) Diagnostic protocol reconstruction method, device, terminal equipment and storage medium
CN111669104B (en) Motor driving method, device, terminal and storage medium
CN118259987A (en) Control method and device of intelligent teaching equipment, electronic equipment and storage medium
CN114817337B (en) Hardware interface type self-adaptive matching method and related device

Legal Events

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