CN111966378A - Board card version upgrading method, device and medium - Google Patents

Board card version upgrading method, device and medium Download PDF

Info

Publication number
CN111966378A
CN111966378A CN202010831611.6A CN202010831611A CN111966378A CN 111966378 A CN111966378 A CN 111966378A CN 202010831611 A CN202010831611 A CN 202010831611A CN 111966378 A CN111966378 A CN 111966378A
Authority
CN
China
Prior art keywords
target
version
board card
board
level state
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.)
Granted
Application number
CN202010831611.6A
Other languages
Chinese (zh)
Other versions
CN111966378B (en
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.)
Shenzhen KTC Commercial Technology Co Ltd
Original Assignee
Shenzhen KTC Commercial Technology 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 Shenzhen KTC Commercial Technology Co Ltd filed Critical Shenzhen KTC Commercial Technology Co Ltd
Priority to CN202010831611.6A priority Critical patent/CN111966378B/en
Publication of CN111966378A publication Critical patent/CN111966378A/en
Application granted granted Critical
Publication of CN111966378B publication Critical patent/CN111966378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The method comprises the steps of configuring a first corresponding relation between a level state combination of a target detection position and each board card hardware version in advance, configuring a second corresponding relation between each board card hardware version and a plurality of function modules of a software updating package in advance, determining a target board card hardware version corresponding to the target board card hardware version according to the first corresponding relation after reading the level state combination of the target detection position to be detected, and loading the target function module corresponding to the target board card hardware version according to the second corresponding relation. Because the level state combination of the target detection position corresponds to the hardware versions of the board cards one to one, and simultaneously, the hardware versions of the board cards correspond to the plurality of functional modules of the software updating package uniquely, the board cards with different hardware versions do not need to be distinguished by different material codes, and corresponding software does not need to be output aiming at different hardware versions, so that the working efficiency is improved, and the error risk of hardware detection and software matching is reduced.

Description

Board card version upgrading method, device and medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method, an apparatus, and a medium for upgrading a board version.
Background
With the development of science and technology, the functions of electronic products are continuously optimized and updated. As a core of an electronic product, a board, for example, a board with IIC equipment, needs to be updated iteratively according to market demands. When the hardware version is upgraded, the corresponding software configuration also needs to be adjusted correspondingly according to the change of the function, that is, the board cards of different versions need to be matched with different software configurations, otherwise, the problem that the board card is partially abnormal in function or even completely unusable due to the fact that the hardware version of the board card is not matched with the software configuration version occurs.
The existing method mainly needs to manage and control the matching between the software configuration version and the hardware version by a human way. The general method is that board cards with different hardware versions are distinguished by different material codes, and when software is output, corresponding software is output according to different material codes.
However, depending on manual management and control, the problem of non-adaptation between the software configuration version and the hardware is easy to occur, so that a functional abnormality and even a system crash are easy to occur. In addition, because the board card of each hardware version needs to be adapted by corresponding software, a manual control method is used, so that the workload of software output is large, the efficiency is low, and the management is complex.
Therefore, it is obvious that how to simply and efficiently identify a hardware version and load a corresponding software configuration is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a board version upgrading method, which is used for detecting a hardware version of a board, confirming the hardware version of the board and loading software configuration of corresponding functions so as to solve the problem of abnormal functions or system crash caused by inconsistency of the hardware version and the software version. In addition, the application aims to provide a device and a medium for upgrading the board version.
In order to solve the above technical problem, the present application provides a method for upgrading a board version, including:
pre-configuring a first corresponding relation between the level state combination of the target detection position and the hardware version of each board card; the level state combination uniquely corresponds to each board card hardware version;
pre-configuring a second corresponding relation between each board card hardware version and a plurality of functional modules of the software updating package; the plurality of functional modules of the software updating package are uniquely corresponding to the hardware version of each board card;
reading a level state combination of a detection position of a target to be detected;
determining a target board card hardware version according to the first corresponding relation;
and loading a functional module corresponding to the hardware version of the target board card according to the second corresponding relation.
Preferably, the level state combination of the target detection position is specifically a level state combination corresponding to a device address of the target IIC bus device.
Preferably, the level state combination of the target detection position is specifically the level state combination of a GPIO port of the board card.
Preferably, the reading of the level state combination of the detection position of the target to be detected specifically includes:
selecting the equipment address of the rest one target IIC bus equipment for addressing;
if the response exists, acquiring a level state combination corresponding to the equipment address of the target IIC bus equipment;
if no response exists, judging whether the number of the equipment addresses of the currently addressed target IIC bus equipment exceeds the total number of the equipment addresses of all the target IIC bus equipment;
if not, returning to the step of selecting the equipment address of one of the rest target IIC bus equipment for addressing;
if so, the addressing is ended.
Preferably, if all the device addresses of the target IIC bus device do not respond, the method further includes: the feedback software matches the false signal.
Preferably, the reading of the level state combination of the detection position of the target to be detected specifically includes:
and obtaining the level state combination of the GPIO port of the target board card.
Preferably, if the hardware version of the target board card corresponding to the level state combination of the GPIO port of the target board card is not found, the method further includes: the feedback software matches the false signal.
In order to solve the above technical problem, the present application further provides an upgrade apparatus for a board version, the apparatus including:
the first configuration module is used for configuring a first corresponding relation between the level state combination of the target detection position and the hardware version of each board card in advance; the level state combination uniquely corresponds to each board card hardware version;
the second configuration module is used for pre-configuring a second corresponding relation between each board card hardware version and a plurality of functional modules of the software updating package; the plurality of functional modules of the software updating package are uniquely corresponding to the hardware version of each board card;
the reading module is used for reading the level state combination of the detection position of the target to be detected;
the determining module is used for determining the hardware version of the target board card according to the first corresponding relation;
and the loading module is used for loading the functional module corresponding to the hardware version of the target board card according to the second corresponding relation.
In order to solve the above technical problem, the present application further provides an upgrade apparatus for a board version, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the board card version upgrading method when the computer program is executed.
In order to solve the above technical problem, the present application further provides a readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for upgrading the board version are implemented.
According to the board card version upgrading method provided by the application, the first corresponding relation between the level state combination of the target detection position and the hardware version of each board card is configured in advance, and the second corresponding relation between the hardware version of each board card and the plurality of function modules of the software updating package is configured in advance, so that after the level state combination of the target detection position to be detected is read, the target board card hardware version corresponding to the target board card hardware version is determined according to the first corresponding relation, and the target function module corresponding to the target board card hardware version is loaded according to the second corresponding relation. Because the level state combination of the target detection position corresponds to the hardware versions of the board cards one to one, and simultaneously, the hardware versions of the board cards correspond to a plurality of functional modules of the software update package uniquely, the board cards of different hardware versions do not need to be distinguished by different material codes, and corresponding software does not need to be output aiming at different hardware versions, so that the workload of distinguishing the hardware versions of the board cards from the software output is reduced, the working efficiency is improved, the error risk of hardware detection and software matching is reduced, and the simple and efficient management of the hardware versions of the board cards is facilitated.
In addition, the board card version upgrading device and medium provided by the application correspond to the method, and the effect is the same as that of the method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments 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 that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for upgrading a board version according to an embodiment of the present disclosure;
fig. 2 is a flowchart of S12 provided in the present application;
fig. 3 is a hardware circuit diagram provided in an embodiment of the present application;
FIG. 4 is another hardware circuit diagram provided in an embodiment of the application;
fig. 5 is a structural diagram of an upgrading apparatus for a board version according to an embodiment of the present application;
fig. 6 is a structural diagram of another apparatus for upgrading a board card version according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method, a device and a medium for upgrading a board version.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for upgrading a board version according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:
s10: pre-configuring a first corresponding relation between the level state combination of the target detection position and the hardware version of each board card; and the level state combination uniquely corresponds to the hardware version of each board card.
S11: pre-configuring a second corresponding relation between each board card hardware version and a plurality of functional modules of the software updating package; and the plurality of functional modules of the software updating package are uniquely corresponding to the hardware version of each board card.
S12: and reading the level state combination of the detection position of the target to be detected.
S13: and determining the hardware version of the target board card according to the first corresponding relation.
S14: and loading a functional module corresponding to the hardware version of the target board card according to the second corresponding relation.
The one-to-one corresponding relation between the level state combination of the target detection position and each board card hardware version is configured in advance, and the unique corresponding relation between each board card hardware version and a plurality of function modules of the software updating package is configured in advance, so that when the level state combination of the target detection position to be detected is read, the target board card hardware version can be determined according to the first corresponding relation, and then the function module corresponding to the board card hardware version is loaded according to the second corresponding relation.
It should be additionally noted that the first corresponding relationship between the level state combination of the target detection position and the hardware version of each board card may be embodied by a table, and the first corresponding relationship may be stored in a storage medium such as a memory, a hard disk, or the like. The second corresponding relationship between the hardware version of each board card and the plurality of function modules of the software update package may be represented by a table, and the second corresponding relationship may be stored in a storage medium such as a memory and a hard disk.
According to the board card version upgrading method provided by the application, the first corresponding relation between the level state combination of the target detection position and the hardware version of each board card is configured in advance, and the second corresponding relation between the hardware version of each board card and the plurality of function modules of the software updating package is configured in advance, so that after the level state combination of the target detection position to be detected is read, the target board card hardware version corresponding to the target board card hardware version is determined according to the first corresponding relation, and the target function module corresponding to the target board card hardware version is loaded according to the second corresponding relation. Because the level state combination of the target detection position corresponds to the hardware versions of the board cards one to one, and meanwhile, the hardware versions of the board cards correspond to the plurality of functional modules of the software updating package uniquely, when the hardware is matched with the software, only one software updating package comprising a plurality of functions needs to be output, so that the board cards of different hardware versions do not need to be distinguished by different material codes, and the corresponding software does not need to be output aiming at different hardware versions, thereby reducing the workload of distinguishing the hardware versions of the board cards from the software output, improving the working efficiency, reducing the error risk of hardware detection and software matching, and facilitating the concise and efficient management of the hardware versions of the board cards.
On the basis of the above embodiment, the level state combination of the target detection position is specifically the level state combination corresponding to the device address of the target IIC bus device. Table 1 shows the correspondence between the level state combinations corresponding to the device addresses of the target IIC bus devices and the hardware versions of the respective boards.
TABLE 1
Device address of target IIC bus device Board card edition Resistor combination
90H A1 R6 R7 R8
92H A2 R3 R7 R8
94H A3 R6 R4 R8
96H A4 R3 R4 R8
98H A5 R6 R7 R5
9AH A6 R3 R7 R5
9CH A7 R6 R4 R5
9EH A8 R3 R4 R5
As shown in table 1, when the device address of the target IIC bus device is 90H, the corresponding board hardware version is a 1; when the device address of the target IIC bus device is 9EH, the hardware version of the corresponding board card is A8; when the device address of the target IIC bus device is 96H, the corresponding card hardware version is A4.
It should be additionally noted that the device address of the target IIC device mentioned in this embodiment is a device read address of the target IIC device, which is only a specific implementation manner, and in other implementation manners, the corresponding relationship between the device address and the hardware version of each board card may also be set in a manner of writing an address.
It should be further noted that, in the embodiment, the correspondence between the level state combination corresponding to the device address of the target IIC bus device and the hardware version of each board card is only a specific way to obtain the hardware version of the target board card, and does not represent only this way. In specific implementation, the hardware version of the target board card may be obtained, and the specific manner is not limited.
According to the board card version upgrading method, the corresponding relation between the device address definition of the target IIC bus device and the hardware versions of the board cards is utilized, an interface on the main control board does not need to be occupied, the load of the main control board can be reduced, and the service life of the device is prolonged.
Fig. 2 is a flowchart of S12 according to an embodiment of the present disclosure. On the basis of the foregoing embodiment, as shown in fig. 2, S12 specifically includes:
s20: and selecting the device address of the rest target IIC bus devices for addressing.
S21: and judging whether the addressing has response, if so, entering S22, and if not, entering S23.
S22: and acquiring the level state combination corresponding to the device address of the target IIC bus device.
S23: and judging whether the number of the device addresses of the currently addressed target IIC bus devices exceeds the total number of the device addresses of all the target IIC bus devices, if not, returning to the step S20, and if so, finishing addressing.
Fig. 3 is a circuit diagram for implementing board card hardware version upgrade by the device address of the target IIC bus device. As shown in fig. 3, when the hardware version is detected, after the IIC device is powered by AVD3V3, the resistors R3, R4, R5, R6, R7, and R8 are used to set the device address of the target IIC bus device U1 by setting the high and low states of ADDSEL0, ADDSEL1, and ADDSEL 2. The main control board addresses from the device address 90H of the first target IIC bus device, if there is a response, the version detection is successful, the target board card hardware version a1 can be obtained according to the corresponding relation in table 1, if there is no response, the version detection is failed, and the device address 92H of the next target IIC bus device is used for addressing until the version detection is successful or all IIC bus device addresses are addressed.
It should be additionally noted that the addressing order of the device addresses of the target IIC bus device is not specifically required, and only the device addresses of all the target IIC bus devices need to be searched repeatedly. In a specific implementation, an acknowledgement character ACK may be returned if a response is addressed; an addressing unacknowledged may return an unacknowledged character NACK.
Further, if the device addresses of all the target IIC bus devices do not respond, a signal of a software matching error is fed back to remind a user that the software is not matched with the hardware.
The method for upgrading board card versions provided in this embodiment includes obtaining a corresponding relationship between a level state combination corresponding to a device address of a target IIC bus device and each board card hardware version in advance, when a hardware version is detected, addressing the device address of one of the target IIC bus devices by a main control board, if a response is made, obtaining the level state combination corresponding to the device address of the target IIC bus device, if no response is made, addressing the device address of the next target IIC bus device, and if no response is made to the device addresses of all the target IIC bus devices, feeding back a signal indicating that software matching is wrong. Because the level state combination corresponding to the device address of the target IIC bus device corresponds to the hardware version of each board card one by one, the device address of the target IIC bus device with response is found, and the hardware version of the target board card corresponding to the device address can be found, so that the workload of distinguishing the hardware version of the board card can be reduced, and the working efficiency is improved. In addition, the corresponding relation between the device address definition of the target IIC bus device and the resistor combination is utilized, an interface on the main control board is not required to be occupied, the load of the main control board can be reduced, and the service life of the device is prolonged.
On the basis of the above embodiment, the level state combination of the target detection position is specifically the level state combination of the GPIO port of the board card. And table 2 is a corresponding table of the level state combination of the GPIO ports of the board cards and the hardware versions of the board cards.
TABLE 2
GPIO1 GPIO2 GPIO3 Board card hardware version Resistor combination
0 0 0 A1 R6 R7 R8
0 0 1 A2 R6 R7 R5
0 1 0 A3 R6 R4 R8
0 1 1 A4 R6 R4 R5
1 0 0 A5 R3 R7 R8
1 0 1 A6 R3 R7 R5
1 1 0 A7 R3 R4 R8
1 1 1 A8 R3 R4 R5
As shown in table 2, when the level state combinations of the GPIO1, GPIO2, and GPIO3 ports are 0, and 0, respectively, the hardware version of the corresponding board is a 1; when the level state combinations of the GPIO1 ports, the GPIO2 ports and the GPIO3 ports of the board card are respectively 1, 1 and 1, the hardware version of the corresponding board card is A8; when the level state combinations of the interfaces of the boards GPIO1, GPIO2 and GPIO3 are respectively 1, 0 and 0, the hardware version of the corresponding board is A5.
It should be additionally noted that the implementation of the detection of the hardware version of the board card through the level state combination of the GPIO ports of the board card provided in this embodiment is only a specific implementation manner, but does not represent only this implementation manner, and in the specific implementation, only the correspondence relationship between the hardware version of the board card and the hardware version of the board card needs to be found.
According to the board card version upgrading method provided by the embodiment, the corresponding relation between the level state combination of the GPIO ports of the board cards and the hardware versions of the board cards is utilized, so that the board card hardware inspection process is simpler and more efficient, compared with the method in the embodiment that the corresponding relation between the device address definition of the target IIC bus device and the hardware versions of the board cards is utilized, the target board card hardware versions can be directly determined without cyclic addressing, and the detection efficiency is further improved.
On the basis of the above embodiment, S12 specifically includes: and obtaining the level state combination of the GPIO port of the target board card.
Fig. 4 is a circuit diagram for realizing board hardware version detection through level state combination of a GPIO port of a board. As shown in fig. 4, when detecting the hardware version, after the AVD3V3 is used to supply power to the IIC device, the signal output by the IIC device is obtained from the main control board U2 through the board GPIO1, GPIO2 and GPIO3 ports, and the level state combination of the obtained target board GPIO port can find the corresponding target board hardware version through table 2.
Further, if the target board hardware version corresponding to the level state combination of the target board GPIO port is not found in table 2, a signal indicating that software is matched incorrectly is fed back to remind the user that the software is not matched with the hardware.
In the method for upgrading the board version provided by this embodiment, the corresponding relationship between the level state combination of the GPIO ports of the boards and the hardware versions of the boards is preset, after the main control board is powered on and started up, the main control board acquires the level states of the GPIO1, the GPIO2, and the GPIO3 ports, and the acquired level state combination of the GPIO ports of the boards can determine the hardware version of the target board corresponding to the level state combination through the corresponding relationship. The one-to-one correspondence relationship between the level state combination of the GPIO ports of the board cards and the hardware versions of the board cards is predefined, so that the workload of distinguishing the hardware versions of the board cards can be reduced, and the working efficiency is improved. Meanwhile, compared with the embodiment, the embodiment utilizes the corresponding relation between the level state combination of the GPIO ports of the board cards and the hardware versions of the board cards, so that the inspection process is simpler and more efficient, the target resistance combination can be directly determined without cyclic addressing, and the detection efficiency is further improved.
In the foregoing embodiment, a method for upgrading a board version is described in detail, and the present application also provides an embodiment corresponding to an apparatus for upgrading a board version. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 5 is a structural diagram of an upgrade apparatus for a board version according to an embodiment of the present application. As shown in fig. 5, the apparatus includes, based on the angle of the function module:
a first configuration module 10, configured to pre-configure a first corresponding relationship between a level state combination of a target detection position and hardware versions of each board card; the level state combination uniquely corresponds to the hardware version of each board card;
a second configuration module 11, configured to pre-configure a second corresponding relationship between the hardware version of each board card and the plurality of function modules of the software update package; the software updating package comprises a plurality of functional modules, a plurality of software updating modules and a plurality of board card hardware versions, wherein the plurality of functional modules of the software updating package are uniquely corresponding to the board card hardware versions;
the reading module 12 is used for reading the level state combination of the detection position of the target to be detected;
the determining module 13 is configured to determine a target board card hardware version according to the first corresponding relationship;
and the loading module 14 is configured to load a function module corresponding to the hardware version of the target board card according to the second corresponding relationship.
As a preferred embodiment, the method further comprises the following steps:
and the selecting module is used for selecting the equipment address of the rest one target IIC bus equipment for addressing.
And the response module is used for acquiring the level state combination corresponding to the equipment address of the target IIC bus equipment if the response exists.
And the judging module is used for judging whether the number of the equipment addresses of the currently addressed target IIC bus equipment exceeds the total number of the equipment addresses of all the target IIC bus equipment or not if no response exists.
And the execution module is used for returning to the step of selecting the equipment address of one of the rest target IIC bus equipment for addressing if the total number of the equipment addresses of all the target IIC bus equipment is not exceeded, and ending addressing if the total number of the equipment addresses of all the target IIC bus equipment is exceeded.
Further comprising:
and the acquisition module is used for acquiring the level state combination of the GPIO port of the target board card.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
According to the upgrading device for the board card version, the first corresponding relation between the level state combination of the target detection position and the hardware version of each board card is configured in advance, and the second corresponding relation between the hardware version of each board card and the plurality of function modules of the software updating package is configured in advance, so that after the level state combination of the target detection position to be detected is read, the target board card hardware version corresponding to the target board card hardware version is determined according to the first corresponding relation, and the target function module corresponding to the target board card hardware version is loaded according to the second corresponding relation. Because the level state combination of the target detection position corresponds to the hardware versions of the board cards one to one, and meanwhile, the hardware versions of the board cards correspond to the plurality of functional modules of the software updating package uniquely, when the hardware is matched with the software, only one software updating package comprising a plurality of functions needs to be output, so that the board cards of different hardware versions do not need to be distinguished by different material codes, and the corresponding software does not need to be output aiming at different hardware versions, thereby reducing the workload of distinguishing the hardware versions of the board cards from the software output, improving the working efficiency, reducing the error risk of hardware detection and software matching, and facilitating the concise and efficient management of the hardware versions of the board cards.
Fig. 6 is a structural diagram of another board card version detection provided in the embodiment of the present application, and as shown in fig. 6, based on an angle of a hardware structure, the apparatus includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the method for upgrading the board version in the foregoing embodiments when executing the computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the board version upgrading method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. The data 203 may include, but is not limited to, data involved in the upgrade method of the board version, and the like.
In some embodiments, a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26 are also included.
Those skilled in the art will appreciate that the configuration shown in fig. 6 does not constitute a limitation of the means for upgrading the board version and may include more or fewer components than those shown.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The device for upgrading the board card version provided by the application comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for realizing the steps of the method for upgrading the board card version in the embodiment when executing the computer program. Because the level state combination of the target detection position corresponds to the hardware versions of the board cards one to one, and meanwhile, the hardware versions of the board cards correspond to the plurality of functional modules of the software updating package uniquely, when the hardware is matched with the software, only one software updating package comprising a plurality of functions needs to be output, so that the board cards of different hardware versions do not need to be distinguished by different material codes, and the corresponding software does not need to be output aiming at different hardware versions, thereby reducing the workload of distinguishing the hardware versions of the board cards from the software output, improving the working efficiency, reducing the error risk of hardware detection and software matching, and facilitating the concise and efficient management of the hardware versions of the board cards.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The device for upgrading the board card version comprises a storage medium, and the steps of the method for upgrading the board card version can be realized when a computer program stored in the storage medium runs. Because the level state combination of the target detection position corresponds to the hardware versions of the board cards one to one, and meanwhile, the hardware versions of the board cards correspond to the plurality of functional modules of the software updating package uniquely, when the hardware is matched with the software, only one software updating package comprising a plurality of functions needs to be output, so that the board cards of different hardware versions do not need to be distinguished by different material codes, and the corresponding software does not need to be output aiming at different hardware versions, thereby reducing the workload of distinguishing the hardware versions of the board cards from the software output, improving the working efficiency, reducing the error risk of hardware detection and software matching, and facilitating the concise and efficient management of the hardware versions of the board cards.
The method, the device and the medium for upgrading the board version provided by the application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for upgrading a board version is characterized by comprising the following steps:
pre-configuring a first corresponding relation between the level state combination of the target detection position and the hardware version of each board card; the level state combination uniquely corresponds to each board card hardware version;
pre-configuring a second corresponding relation between each board card hardware version and a plurality of functional modules of the software updating package; the plurality of functional modules of the software updating package are uniquely corresponding to the hardware version of each board card;
reading a level state combination of a detection position of a target to be detected;
determining a target board card hardware version according to the first corresponding relation;
and loading a functional module corresponding to the hardware version of the target board card according to the second corresponding relation.
2. The board card version upgrading method according to claim 1, wherein the level state combination of the target detection position is specifically a level state combination corresponding to a device address of the target IIC bus device.
3. The board card version upgrading method according to claim 1, characterized in that the level state combination of the target detection positions is specifically a level state combination of a GPIO port of the board card.
4. The board card version upgrading method according to claim 2, wherein the reading of the level state combination of the detection positions of the targets to be detected specifically includes:
selecting the address of the rest one of the target IIC bus equipment for addressing;
if the response exists, acquiring a level state combination corresponding to the equipment address of the target IIC bus equipment;
if no response exists, judging whether the number of the equipment addresses of the currently addressed target IIC bus equipment exceeds the total number of the equipment addresses of all the target IIC bus equipment;
if not, returning to the step of selecting the equipment address of one of the rest target IIC bus equipment for addressing;
if so, the addressing is ended.
5. The method for upgrading the board card version according to claim 4, wherein if the device addresses of all the target IIC bus devices do not respond, the method further comprises:
the feedback software matches the false signal.
6. The board card version upgrading method according to claim 3, wherein the reading of the level state combination of the detection positions of the targets to be detected specifically includes:
and obtaining the level state combination of the GPIO port of the target board card.
7. The method for detecting the board version according to claim 6, wherein if the target board hardware version corresponding to the level state combination of the target board GPIO port is not found, the method further comprises:
the feedback software matches the false signal.
8. An upgrade apparatus for a board version, comprising:
the first configuration module is used for configuring a first corresponding relation between the level state combination of the target detection position and the hardware version of each board card in advance; the level state combination uniquely corresponds to each board card hardware version;
the second configuration module is used for pre-configuring a second corresponding relation between each board card hardware version and a plurality of functional modules of the software updating package; the plurality of functional modules of the software updating package are uniquely corresponding to the hardware version of each board card;
the reading module is used for reading the level state combination of the detection position of the target to be detected;
the determining module is used for determining the hardware version of the target board card according to the first corresponding relation;
and the loading module is used for loading the functional module corresponding to the hardware version of the target board card according to the second corresponding relation.
9. An upgrade apparatus for a board version, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for upgrading a board version according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the steps of the method for upgrading a board version according to any one of claims 1 to 7.
CN202010831611.6A 2020-08-18 2020-08-18 Board version upgrading method, device and medium Active CN111966378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010831611.6A CN111966378B (en) 2020-08-18 2020-08-18 Board version upgrading method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010831611.6A CN111966378B (en) 2020-08-18 2020-08-18 Board version upgrading method, device and medium

Publications (2)

Publication Number Publication Date
CN111966378A true CN111966378A (en) 2020-11-20
CN111966378B CN111966378B (en) 2024-01-09

Family

ID=73389623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010831611.6A Active CN111966378B (en) 2020-08-18 2020-08-18 Board version upgrading method, device and medium

Country Status (1)

Country Link
CN (1) CN111966378B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377418A (en) * 2021-05-10 2021-09-10 宇龙计算机通信科技(深圳)有限公司 File loading method, storage medium and equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19940902C1 (en) * 1999-08-27 2001-06-21 Wolfgang Runge IC circuit testing device has stored IC circuit type and/or use data fed to display when tested IC is found to be faulty
US6651190B1 (en) * 2000-03-14 2003-11-18 A. Worley Independent remote computer maintenance device
KR20150061348A (en) * 2013-11-27 2015-06-04 삼성전기주식회사 Method and Apparatus for setting up device address for I2C communication
CN104899164A (en) * 2014-03-04 2015-09-09 瑞萨集成电路设计(北京)有限公司 Address addressing method for integrated circuit bus and integrated circuit bus equipment and system
CN105718281A (en) * 2015-07-29 2016-06-29 中科创达软件科技(深圳)有限公司 Touch screen firmware upgrading method and device
CN107066276A (en) * 2017-04-17 2017-08-18 中国电子科技集团公司第三十四研究所 The method that a kind of FPGA device Remote configuration in communication equipment updates
CN107704285A (en) * 2017-09-27 2018-02-16 中国科学院微电子研究所 Multi-version configuration chip, system and method for field programmable gate array
CN207067969U (en) * 2017-08-08 2018-03-02 龙芯中科技术有限公司 System configuration device and electronic equipment based on hardware platform
CN108958765A (en) * 2018-06-12 2018-12-07 新华三技术有限公司 Upgrade the method and device of optical module firmware
US20200249938A1 (en) * 2017-09-19 2020-08-06 Samsung Electronics Co., Ltd. Apparatus and method for managing software updates of electronic devices

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19940902C1 (en) * 1999-08-27 2001-06-21 Wolfgang Runge IC circuit testing device has stored IC circuit type and/or use data fed to display when tested IC is found to be faulty
US6651190B1 (en) * 2000-03-14 2003-11-18 A. Worley Independent remote computer maintenance device
KR20150061348A (en) * 2013-11-27 2015-06-04 삼성전기주식회사 Method and Apparatus for setting up device address for I2C communication
CN104899164A (en) * 2014-03-04 2015-09-09 瑞萨集成电路设计(北京)有限公司 Address addressing method for integrated circuit bus and integrated circuit bus equipment and system
CN105718281A (en) * 2015-07-29 2016-06-29 中科创达软件科技(深圳)有限公司 Touch screen firmware upgrading method and device
CN107066276A (en) * 2017-04-17 2017-08-18 中国电子科技集团公司第三十四研究所 The method that a kind of FPGA device Remote configuration in communication equipment updates
CN207067969U (en) * 2017-08-08 2018-03-02 龙芯中科技术有限公司 System configuration device and electronic equipment based on hardware platform
US20200249938A1 (en) * 2017-09-19 2020-08-06 Samsung Electronics Co., Ltd. Apparatus and method for managing software updates of electronic devices
CN107704285A (en) * 2017-09-27 2018-02-16 中国科学院微电子研究所 Multi-version configuration chip, system and method for field programmable gate array
CN108958765A (en) * 2018-06-12 2018-12-07 新华三技术有限公司 Upgrade the method and device of optical module firmware

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何冰, 曾立波, 尹邦胜: ""I2C总线在嵌入式系统中的应用"", 《现代电子技术》, no. 16, pages 39 - 40 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377418A (en) * 2021-05-10 2021-09-10 宇龙计算机通信科技(深圳)有限公司 File loading method, storage medium and equipment

Also Published As

Publication number Publication date
CN111966378B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CA2046356C (en) Method and apparatus for improved initialization of computer system features
KR101332815B1 (en) Apparatus and method for handling the rebooting of mobile terminal
CN106250192A (en) The method for upgrading software of host computer and system
CN114003538A (en) Intelligent network card and identification method thereof
CN111124775A (en) Power-on time sequence abnormality detection method and device, MCU and storage medium
CN107145455B (en) Method for updating SMBIOS static information of whole system
US20160103688A1 (en) Method of Starting Computing System
EP3258761A1 (en) Management system and management method for component mounting line
CN111966378A (en) Board card version upgrading method, device and medium
CN112346768A (en) Multi-chip platform parallel operation upgrading method and device and electronic equipment
US20230350834A1 (en) Method and apparatus for configuring mmioh base address of server system
CN114579147A (en) Burning verification method and device, terminal equipment and storage medium
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
US7937512B1 (en) Method and apparatus for an automatic recovery keyboard for slate tablet computers
US11061689B2 (en) Synchronization method for performing bi-directional data synchronization for bios
CN111124730A (en) Error positioning method and device for server and computer storage medium
CN111049717A (en) Variable acquisition method and equipment
CN114443445B (en) Hard disk lighting method and device, electronic equipment and storage medium
CN113014667B (en) Configuration method, device and equipment of rack server and storage medium
CN111694300B (en) Automatic configuration method and device for control panel input and output ports
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN111813600A (en) Controller recovery method, device, terminal and medium

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
GR01 Patent grant
GR01 Patent grant