CN109933555B - External board card management method - Google Patents

External board card management method Download PDF

Info

Publication number
CN109933555B
CN109933555B CN201910257973.6A CN201910257973A CN109933555B CN 109933555 B CN109933555 B CN 109933555B CN 201910257973 A CN201910257973 A CN 201910257973A CN 109933555 B CN109933555 B CN 109933555B
Authority
CN
China
Prior art keywords
information
external board
state information
board card
dual
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.)
Active
Application number
CN201910257973.6A
Other languages
Chinese (zh)
Other versions
CN109933555A (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.)
Chengdu Srandway Technology Co ltd
Original Assignee
Chengdu Srandway 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 Chengdu Srandway Technology Co ltd filed Critical Chengdu Srandway Technology Co ltd
Priority to CN201910257973.6A priority Critical patent/CN109933555B/en
Publication of CN109933555A publication Critical patent/CN109933555A/en
Application granted granted Critical
Publication of CN109933555B publication Critical patent/CN109933555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an external board card management method, and relates to the technical field of communication. The method comprises the following steps: acquiring state information of an external board card; if the state information is first state information, reading mark information recorded in the dual-port memory; if the reading is successful and the mark information is the first mark information, writing the configuration parameters corresponding to the external board card into the dual-port memory through an AT96 bus, and controlling the external board card to change the first mark information into parameter sending information so that the external board card works according to the configuration parameters; the parameter sending information is used for representing the completion of sending the configuration parameters. According to the method, the external board card is electrified and identified in a software mode, and the function of online plugging and unplugging of the external board card can be realized under the condition that a communication mode is not changed.

Description

External board card management method
Technical Field
The invention relates to the technical field of communication, in particular to an external board card management method.
Background
In the existing measurement and control system, the AT96 bus is used for communication, and the reliability and the stability of the system are verified. Because the AT96 bus does not have the function of identifying the external board card by hot plug, when the function is needed in engineering practice, the old board card and hardware in the measurement and control system can only be redesigned, and other bus communication modes are used for solving the problem that the measurement and control system does not have the function of identifying the external board card by hot plug. However, the replacement of other bus communication modes results in a great deal of work such as software and hardware redesign of the measurement and control system, and meanwhile, a great deal of resources are required to be invested to verify the reliability and stability of the new communication mode.
Disclosure of Invention
The invention aims to provide an external board card management method, which can realize the online plugging and unplugging function of an external board card by carrying out power-on identification on the external board card in a software mode without replacing an AT96 bus communication mode.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
in a first aspect, an embodiment of the present invention provides an external board management method, which is applied to a CPU, where the CPU is electrically connected to an external board through an AT96 bus, the external board includes a dual-port memory, and the method includes: acquiring state information of an external board card; if the state information is first state information, reading mark information recorded in the dual-port memory; if the reading is successful and the mark information is the first mark information, writing the configuration parameters corresponding to the external board card into the dual-port memory through an AT96 bus, and controlling the external board card to change the first mark information into parameter sending information so that the external board card works according to the configuration parameters; the parameter sending information is used for representing the completion of sending the configuration parameters.
In a second aspect, an embodiment of the present invention provides an external board management method, which is applied to an external board, where the external board is electrically connected to a CPU through an AT96 bus, and the external board includes a dual-port memory, and the method includes: carrying out self-inspection on hardware of the external board card; if the hardware self-check of the external board card passes, writing first mark information into the dual-port memory; when the first mark information is changed into parameter sending information, reading configuration parameters from the dual-port memory, and working according to the configuration parameters; the configuration parameters are that the CPU is written into the dual-port memory when the state information of the external board card is the first state information, and the parameter sending information is used for representing that the sending of the configuration parameters is completed.
The external board card management method provided by the embodiment of the invention has the beneficial effects that: the CPU reads the mark information recorded in the dual-port memory by acquiring the state information of the external board card if the state information is first state information; if the reading is successful and the flag information is the first flag information, the configuration parameters corresponding to the external board card are written into the dual-port memory through the AT96 bus, and the external board card is controlled to change the flag information into parameter sending information, so that the external board card works according to the configuration parameters. The external board card is managed in a software mode, and the function of online plugging and unplugging of the external board card can be met under the condition that an old AT96 bus communication mode is not replaced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic view of an application environment of an external board management method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first external board management method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a second external board management method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a third external board management method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a fourth external board management method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a fifth external board management method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a sixth external board management method according to an embodiment of the present invention.
Icon: 1-a CPU; 2, external board card; 3-AT96 bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like, indicate orientations or positional relationships that are based on the orientations or positional relationships shown in the drawings, or the orientations or positional relationships that the products of the present invention conventionally put into use, or the orientations or positional relationships that the persons skilled in the art conventionally understand, are only used for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the equipment or elements referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically connected or connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Referring to fig. 1, an application environment schematic diagram of an external board management method according to an embodiment of the present invention is shown, where the external board management method is applied to a measurement and control system based on AT96 bus 3 communication, the measurement and control system includes a CPU1, an external board 2, and an AT96 bus 3, and the CPU1 is electrically connected to the external board 2 through the AT96 bus 3. The external board management method is applied to the CPU1 and the external board 2.
In this embodiment, the CPU1 may be an integrated circuit chip having signal processing capabilities. The CPU1 executes various functional applications and data processing by running application software thereon, such as the external board management method provided by the embodiment of the present invention.
The external board 2 includes a dual-port memory (not shown), hardware (not shown), and firmware software (not shown), and the firmware software starts to start running after the external board 2 is powered on, and implements the external board management method provided by the embodiment of the present invention. The dual-port memory can be divided into a plurality of sub-regions from the aspect of logic function.
The external board card 2 may be provided with a plurality of different types of board cards or the same type of board cards. The CPU1 performs power-on identification with the plurality of external boards 2 through the AT96 bus 3, and exchanges data after the power-on identification. Specifically, the external board 2 may be a 485 communication board, an analog acquisition card, or the like.
It will be appreciated that the configuration shown in FIG. 1 is merely illustrative and that the instrumentation system may include more or fewer components than shown in FIG. 1 or may have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Specifically, referring to fig. 2, fig. 2 is a schematic flow chart of an external board management method according to an embodiment of the present invention, where the external board management method is applied to a CPU1, and the method includes the following steps;
step S101, acquiring the state information of the external board card.
It will be appreciated that the application software in the CPU1 reads status information that identifies the "available status" of the external board 2. This status information may be stored in memory onboard the CPU1 or in external memory connected to the CPU 1. And the status information may exist in the form of an integer.
Step S102, if the status information is the first status information, reading the flag information recorded in the dual-port memory.
In the present embodiment, the first status information indicates that the "available status" of the external board 2 is "unavailable", and may be stored in the form of an integer 0 in the memory of the CPU1 itself or in the external memory connected to the CPU 1.
In this embodiment, when the state information acquired by the application software of the CPU1 is the first state information, that is, the "available state" of the external board 2 is "unavailable", the application software of the CPU1 reads the flag information recorded in the dual-port memory through the AT96 bus 3.
Step S103, if the reading is successful and the mark information is the first mark information, writing the configuration parameters corresponding to the external board card into the dual-port memory, and controlling the external board card to change the first mark information into parameter sending information so that the external board card works according to the configuration parameters; the parameter sending information is used for representing the completion of sending the configuration parameters.
In this embodiment, when the application software of the CPU1 can successfully read the flag information recorded in the dual-port memory, and the flag information flag is the first flag information, the application software of the CPU1 writes the configuration parameters corresponding to the external board 2 into the dual-port memory of the external board 2 through the AT96 bus 3, and controls the external board 2 to change the first flag information into parameter sending information. The first flag information may be marked as "waiting for configuration data", the external board card 2 may write the first flag information in the dual-port memory after the hardware self-test of the external board card passes, or may directly write the first flag information in the dual-port memory after the external board card 2 is powered on and started; when the external board card 2 is a 485 communication board card, the configuration parameter may be a transmission speed; when the external board card 2 is an analog acquisition card, the configuration parameters may be in an acquisition mode.
It will be appreciated that the application software of the CPU1 can successfully read the flag information recorded in the dual port memory, indicating that the CPU1 and the external board 2 have successfully established communication. If the flag information is the first flag information, it indicates that the external board card 2 is in a normal operating state. The application software of the CPU1 writes the configuration parameters corresponding to the external board 2 into the dual-port memory of the external board 2 through the AT96 bus 3, which indicates that the CPU1 and the external board 2 have been successfully powered on and identified.
In this embodiment, the specific principle of the CPU1 for recognizing the external board card 2 is as follows: the CPU1 prestores identity information, which corresponds to configuration parameters; acquiring target identity information from the external board card 2; the target identity information is written into the dual-port memory by the external board card 2 when the self-check of the dual-port memory passes; matching the identity information with the target identity information; and if the matching is successful, sending the parameter information corresponding to the identity information to the dual-port memory.
It can be understood that after the application software of the CPU1 obtains the first flag information from the dual-port memory of the external board 2 through the AT96 bus 3, the target identity information of the external board 2 is also obtained from the dual-port memory, and the target identity information is matched with a plurality of pieces of identity information stored in advance, if one of the plurality of pieces of identity information is the same as the target identity information, it indicates that the matching is successful, and the application software of the CPU1 sends the parameter information corresponding to the identity information to the dual-port memory. Namely, each piece of identity information stored in advance in the CPU1 has a one-to-one correspondence with configuration parameters.
Further, as shown in fig. 3, in this embodiment, the method further includes the following steps:
and step S104, changing the state information of the external board card from the first state information to the second state information.
It is understood that when the application software of the CPU1 can successfully read the flag information recorded in the dual port memory, and the flag information is the first flag information, the application software of the CPU1 will change the state information of the external board 2 from the first state information to the second state information. I.e. the integer characterizing the state information is changed from 0 to 1. The second status information indicates that the "available status" of the external board 2 is "available".
Step S105, if the reading is successful and the mark information is the second mark information, reading and storing the fault reason from the dual-port memory; the failure reason is that the external board card is written into the dual-port memory when the hardware self-test fails.
It can be understood that, when the application software of the CPU1 can successfully read the flag information recorded in the dual-port memory, and the flag information is the second flag information, the application software of the CPU1 reads the failure cause from the dual-port memory of the external board 2 through the AT96 bus 3 and stores the failure cause. That is, after the CPU1 and the external board 2 have successfully established communication, but the external board 2 cannot normally operate due to a fault, the application software of the CPU1 does not write the configuration parameters corresponding to the external board 2 into the dual-port memory. However, the CPU1 reads and stores the failure cause from the dual-port memory, so that the user can conveniently check the failure cause of the external board 2 and analyze and process the failure cause. The second flag information may be marked as "board fault", and the external board 2 may write the second flag information in the dual-port memory after the hardware self-check of the external board fails, or may write the second flag information in the dual-port memory when another fault occurs after the external board 2 is powered on and started.
And step S106, changing the state information of the external board card from the first state information to third state information.
It is understood that when the application software of the CPU1 can successfully read the flag information recorded in the dual port memory, and the flag information is the second flag information, the application software of the CPU1 changes the state information of the external board 2 from the first state information to the third state information. I.e. the integer characterizing the status information will change from 0 to 2. The third status information indicates that the "available status" of the external board 2 is "failure".
In step S107, if the reading of the flag information fails, the status information continuation flag is set as the first status information.
It is understood that if the application software of the CPU1 fails to read the flag information recorded in the dual port memory, the status information of the external board 2 is kept as the first status information, that is, the "available status" of the external board 2 is "unavailable". The reasons why the application software of the CPU1 fails to read the flag information recorded in the dual port memory are various. For example, the CPU1 itself has failed in the read function, or the AT96 bus 3 has failed in communication, or the external board 2 has been pulled out.
Referring to fig. 4, the working steps when the status information of the external board card 2 is the second status information are as follows:
step S108, if the status information is the second status information, reading the flag information recorded in the dual-port memory.
In step S109, if the reading is successful and the flag information is the first flag information, the status information of the external board is changed from the second status information to the first status information.
Step S110, if the reading is successful and the flag information is the second flag information, changing the state information of the external board from the second state information to the third state information, and reading and storing the failure reason from the dual-port memory.
Step S111, if the reading of the flag information fails, changing the state information of the external board from the second state information to the first state information.
It is understood that when the state information obtained by the application software of the CPU1 is the second state information, that is, the "available state" of the external board 2 is "available", the application software of the CPU1 reads the flag information recorded in the dual port memory through the AT96 bus 3. If the application software of the CPU1 can successfully read and the flag information is the first flag information, the application software of the CPU1 changes the "available state" of the external board 2 from "available" to "unavailable". If the application software of the CPU1 can be successfully read and the flag information is the second flag information, the application software of the CPU1 changes the "available state" of the external board 2 from "available" to "failure", and simultaneously reads and saves the cause of the failure from the dual-port memory of the external board 2. If the application software of the CPU1 fails to successfully read the flag information recorded in the dual-port memory, the application software of the CPU1 changes the "available state" of the external board 2 from "available" to "unavailable".
Referring to fig. 5, the working steps when the status information of the external board card 2 is the third status information are as follows:
in step S112, if the status information is the third status information, the flag information recorded in the dual-port memory is read.
In step S113, if the reading is successful and the flag information is not the second flag information, the status information of the external board is changed from the third status information to the first status information.
Step S114, if the reading of the flag information fails, the state information of the external board is changed from the third state information to the first state information.
It is understood that when the state information obtained by the application software of the CPU1 is the third state information, that is, the "available state" of the external board 2 is "failure", the application software of the CPU1 reads the flag information recorded in the dual port memory through the AT96 bus 3. If the application software of the CPU1 can successfully read and the flag information is not the second flag information, it indicates that the external board 2 is no longer in the failure state, and the application software of the CPU1 changes the "available state" of the external board 2 from "failure" to "unavailable". I.e., the failure of the external board 2 has been eliminated, the external board 2 can normally communicate with the CPU 1. If the application software of the CPU1 fails to read the flag information recorded in the dual port memory, the application software of the CPU1 changes the "available state" of the external board 2 from "failed" to "unavailable".
In this embodiment, a complete operation of the CPU1 is: the CPU1 operates as several discrete processes and assists in management with the state information of the external board 2. The CPU1 performs initialization first, that is, the CPU1 performs initialization first when being powered on, and the application software of the CPU1 marks the state information of the external board 2 as the first state information. Then, the CPU1 performs the operation again, that is, when the CPU1 operates, the application software of the CPU1 operates according to the first state information of the initialization flag in the first period, and at this time, the application software of the CPU1 executes the step when the state information of the external board 2 is the first state information.
It can be understood that the application software of the CPU1 first reads the flag information recorded in the dual-port memory in the first cycle, and if the reading fails, the status information continuation flag of the external board 2 is the first status information, and then the CPU1 continues to execute the step when the status information of the external board 2 is the first status information in the next cycle; the application software of the CPU1 reads the flag information recorded in the dual-port memory first in the first cycle, and if the reading is successful and the flag information is the first flag information, writes the configuration parameter corresponding to the external board 2 into the dual-port memory through the AT96 bus 3, and controls the external board 2 to change the first flag information into parameter transmission information, and also changes the state information of the external board 2 from the first state information into the second state information, and the CPU1 executes the step of changing the state information of the external board 2 into the second state information in the next cycle; the application software of the CPU1 reads the flag information recorded in the dual-port memory first in the first cycle, and if the reading is successful and the flag information is the second flag information, reads the cause of the failure from the dual-port memory and saves the cause of the failure, and at the same time, changes the state information of the external board 2 from the first state information to the third state information, and the CPU1 executes the step of changing the state information of the external board 2 to the third state information in the next cycle.
It can be seen that the CPU1 is in periodic operation during operation, and except that the first cycle is performed according to the state information of the external board 2 set by initialization, other cycles are performed according to the state information of the external board 2 set by the previous cycle. The method can work according to real-time working conditions through periodic work, has more flexibility, and can ensure the service life of the measurement and control system.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating another external board management method according to an embodiment of the present invention, where the external board management method is applied to an external board 2, and the method includes the following steps:
step S201, perform self-inspection on the hardware of the external board.
It can be understood that, after the external board card 2 is inserted into the AT96 bus 3, the external board card 2 is powered on and started, the firmware software of the external board card 2 starts to run after the external board card 2 is powered on, and the hardware of the external board card 2 is self-checked to detect whether each component in the external board card 2 can normally operate.
Step S202, if the hardware self-test of the external board card passes, writing the first flag information into the dual-port memory.
In this embodiment, the dual-port memory is divided into a plurality of sub-areas, and the dual-port memory includes a flag area, and the flag area occupies a small amount of storage space for storing flag information and parameter transmission information. And when the hardware self-test of the external board card 2 is passed, writing first mark information into the mark area of the dual-port memory.
Step S203, when the first mark information is changed into parameter sending information, reading configuration parameters from the dual-port memory, and working according to the configuration parameters; the configuration parameter is that the CPU1 writes into the dual-port memory when the state information of the external board card is the first state information, and the parameter transmission information is used to represent that the transmission of the configuration parameter is completed.
In this embodiment, the dual-port memory further includes a configuration parameter area, and the configuration parameter area is used for storing the configuration parameters. When the status information of the external board 2 is the first status information, if the application software of the CPU1 can successfully read the first flag information of the flag in the dual-port memory, the application software of the CPU1 writes the configuration parameter corresponding to the external board 2 into the configuration parameter area in the dual-port memory through the AT96 bus 3.
In this embodiment, after the first flag information is stored in the flag area of the dual port memory, the firmware software of the external board 2 continuously detects whether the first flag information is changed to the parameter transmission information. When the firmware software of the external board 2 confirms that the first flag information is changed into the parameter sending information, which indicates that the application software of the CPU1 has successfully written the configuration parameter of the external board 2 into the configuration parameter area in the dual-port memory, the firmware software of the external board 2 reads the configuration parameter from the configuration parameter area in the dual-port memory and operates according to the configuration parameter.
Further, as shown in fig. 7, the method further includes the steps of:
and step S204, if the hardware self-test of the external board card fails, writing second mark information into the dual-port memory, and writing the fault reason into the dual-port memory.
It is understood that the dual port memory further includes a core failure flag area, and the core failure flag area also occupies a small amount of storage space for storing the failure cause. When the hardware self-check of the external board card 2 fails, the second flag information is stored in the flag area of the dual-port memory, and meanwhile, the fault reason is written into the core fault flag area of the dual-port memory, so that the external board card 2 also stops starting.
Step S205, a self-check is performed on the dual-port memory.
It can be understood that after the firmware software of the external board card 2 starts to run after the external board card 2 is powered on, the firmware software of the external board card 2 can also perform self-check on the dual-port memory, and detect whether the read-write function of the dual-port memory is normal, so as to ensure that the external board card 2 and the CPU1 can normally communicate and work.
Step S206, if the self-check is successful, writing the target identity information into the dual-port memory so that the CPU1 can obtain the target identity information and match the target identity information with the identity information, and if the matching is successful, sending the parameter information corresponding to the identity information to the dual-port memory.
In this embodiment, the dual-port memory further includes a board ID area, and the board ID area only occupies a small amount of storage space and is used for storing the target identity information of the external board 2.
When the firmware software of the external board card 2 performs self-checking on the dual-port memory successfully, the firmware software of the external board card 2 initializes the dual-port memory to an initial state, and writes target identity information identifying the identity of the external board card 2 in the board card ID area. So that the application software of the CPU1 obtains the target identity information, determines the configuration parameters of the external board 2 according to the target identity information, and sends the configuration parameters corresponding to the external board 2 to the configuration parameter area of the dual-port memory.
In this embodiment, if the firmware software of the external board 2 fails to perform the self-check on the dual-port memory, the external board 2 will stop starting.
In summary, by the external board management method executed by the CPU and the external board, the CPU and the external board can be identified in a software manner, and the function of online plugging and unplugging of the external board can be satisfied without replacing the old AT96 bus communication manner. The method is simple in principle, clear and easy to understand, easy to maintain and use, suitable for the measurement and control system with the ultra-long service life, capable of avoiding the situation that the original technical personnel cannot be found in the middle and later periods of the service life and the technical support is lacked, and beneficial for the new technical personnel to quickly intervene to carry out the technical support, so that the service life guarantee is provided for the measurement and control system.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An external board management method is applied to a CPU (central processing unit), the CPU is electrically connected with an external board through an AT96 bus, the external board comprises a dual-port memory, and the method comprises the following steps:
acquiring state information of the external board card;
if the state information is first state information, reading mark information recorded in the dual-port memory; the first state information is used for representing that the external board card is unavailable;
if the reading is successful and the mark information is first mark information, writing configuration parameters corresponding to the external board card into the dual-port memory through the AT96 bus, and controlling the external board card to change the first mark information into parameter sending information so that the external board card can work according to the configuration parameters; wherein, the parameter sending information is used for representing the completion of the sending of the configuration parameters; the first mark information is waiting configuration data; and changing the state information of the external board card from the first state information to second state information, wherein the second state information is used for representing that the external board card is available.
2. The method according to claim 1, wherein, if the status information is the first status information, the step of reading the flag information recorded in the dual-port memory further includes, after the step of reading the flag information, the step of:
if the reading is successful and the mark information is the second mark information, reading and storing the fault reason from the dual-port memory; the failure reason is that the external board card is written into the dual-port memory when the hardware self-test fails; and the second mark information is the fault of the board card.
3. The method according to claim 2, wherein the step of, if the reading is successful and the flag information is the second flag information, further comprises:
and changing the state information of the external board card from the first state information to third state information, wherein the third state information is used for representing the fault of the external board card.
4. The method according to claim 1, wherein the CPU pre-stores identity information, the identity information corresponds to configuration parameters, and the step of writing the configuration parameters corresponding to the external board into the dual-port memory includes:
acquiring target identity information from the external board card; the target identity information is written into the dual-port memory when the external board card passes the self-check of the dual-port memory;
matching the identity information with the target identity information;
and if the matching is successful, sending configuration parameters corresponding to the identity information to the dual-port memory.
5. The method according to claim 1, wherein, if the status information is the first status information, the step of reading the flag information recorded in the dual-port memory further includes, after the step of reading the flag information, the step of:
and if reading the mark information fails, marking the state information as the first state information continuously.
6. The external board management method according to claim 1, further comprising:
if the state information is second state information, reading the mark information recorded in the dual-port memory;
if the reading is successful and the mark information is the first mark information, changing the state information of the external board card from the second state information to the first state information;
if the reading is successful and the mark information is second mark information, changing the state information of the external board card from the second state information to third state information, and reading and storing the fault reason from the dual-port memory; the second mark information is a board card fault; the third state information is used for representing the fault of the external board card;
and if reading the mark information fails, changing the state information of the external board card from the second state information to the first state information.
7. The external board management method according to claim 1, further comprising:
if the state information is third state information, reading the mark information recorded in the dual-port memory; the third state information is used for representing the fault of the external board card;
if the reading is successful and the mark information is not the second mark information, changing the state information of the external board card from the third state information to the first state information; the second mark information is a board card fault;
and if reading the mark information fails, changing the state information of the external board card from the third state information to the first state information.
8. An external board management method is applied to an external board, the external board is electrically connected with a CPU through an AT96 bus, the external board comprises a dual-port memory, and the method comprises the following steps:
carrying out self-inspection on the hardware of the external board card;
if the hardware self-check of the external board card passes, writing first mark information into the dual-port memory; when the CPU obtains the state information of the external board card as the first state information and successfully reads the first mark information, the CPU changes the state information of the external board card from the first state information to the second state information; the first state information is used for representing that the external board card is unavailable; the first mark information is waiting configuration data; the second state information is used for representing that the external board card is available;
when the first mark information is changed into parameter sending information, reading configuration parameters from the dual-port memory, and working according to the configuration parameters; the configuration parameters are written into the dual-port memory by the CPU when the state information of the external board card is first state information, and the parameter sending information is used for representing that the sending of the configuration parameters is completed.
9. The method of claim 8, wherein the CPU pre-stores identity information, the identity information corresponding to configuration parameters, the method further comprising:
self-checking the dual-port memory;
and if the self-checking is successful, writing target identity information into the dual-port memory so that the CPU can acquire the target identity information and match the target identity information with the identity information, and if the matching is successful, sending parameter information corresponding to the identity information to the dual-port memory.
10. The method according to claim 8, wherein the step of performing self-test on the hardware of the external board further includes:
if the hardware self-test of the external board card fails, writing second mark information into the dual-port memory, and writing a fault reason into the dual-port memory; and the second mark information is the fault of the board card.
CN201910257973.6A 2019-04-01 2019-04-01 External board card management method Active CN109933555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910257973.6A CN109933555B (en) 2019-04-01 2019-04-01 External board card management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910257973.6A CN109933555B (en) 2019-04-01 2019-04-01 External board card management method

Publications (2)

Publication Number Publication Date
CN109933555A CN109933555A (en) 2019-06-25
CN109933555B true CN109933555B (en) 2021-12-31

Family

ID=66988921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910257973.6A Active CN109933555B (en) 2019-04-01 2019-04-01 External board card management method

Country Status (1)

Country Link
CN (1) CN109933555B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111796835B (en) * 2020-06-19 2022-09-23 南京南瑞继保工程技术有限公司 Data processing method, embedded device and storage medium
CN112882833B (en) * 2021-02-09 2022-06-17 广州思林杰科技股份有限公司 Data acquisition method and device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478440B (en) * 2009-01-22 2011-12-28 中兴通讯股份有限公司 System and method with failure information traceable
CN103034153A (en) * 2012-12-20 2013-04-10 航天科工深圳(集团)有限公司 Intelligent monitoring device and device identifying interior slave plates of intelligent monitoring device
CN104239241B (en) * 2013-06-20 2018-09-11 华为终端有限公司 Data card, data card switching method and device
CN104618136B (en) * 2014-12-25 2018-11-06 曙光信息产业(北京)有限公司 Configuring management method and device for blade server
CN204423251U (en) * 2015-01-27 2015-06-24 沈阳帝信通信股份有限公司 A kind of equipment control board
CN106598902A (en) * 2016-12-09 2017-04-26 积成电子股份有限公司 CPU (Central Processing Unit) control board capable of realizing hot plug of board card and implementation method thereof
CN107154546A (en) * 2017-05-26 2017-09-12 中国核动力研究设计院 A kind of AT96 Bussing connectors
CN109240967A (en) * 2018-09-19 2019-01-18 郑州云海信息技术有限公司 A kind of method and controller of parameter configuration

Also Published As

Publication number Publication date
CN109933555A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN109933555B (en) External board card management method
CN111240238B (en) Chip control system
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN111339010A (en) PCIE (peripheral component interface express) equipment hot plug identification method, system and related components
CN112631877B (en) Device, method, equipment and medium for indicating running state of AI server accelerator card
CN115314416B (en) Network card state automatic detection method and device, electronic equipment and storage medium
CN111115398B (en) Debugging method and device of elevator, debugging terminal and storage medium
US7000836B2 (en) Method of self-testing IC card readers
CN108491299A (en) A kind of signal detection board and the mainboard for signal detection
CN108920338A (en) A kind of method and terminal indicating file system state
CN110825547B (en) PCIE card exception recovery device and method based on SMBUS
CN112214384A (en) Hard disk serial number management method, system, terminal and storage medium
CN107341064B (en) Anti-misplug system based on sub circuit board of vehicle variable flow control unit
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN109145022B (en) Writing method, device and storage medium for network identity of mobile equipment
JP6094685B2 (en) Information processing apparatus and information processing apparatus control program
CN111783162A (en) Data protection implementation method and device and computer equipment
CN112256574A (en) Vehicle diagnosis method and system and related equipment
US20090138692A1 (en) Self describing line cards in network switch
CN110096412A (en) A kind of server monitoring method, device, equipment and medium
JP7400528B2 (en) IC card with self-diagnosis function and IC card self-diagnosis method
CN105353980A (en) Memory data migration method, computer and apparatus
CN113010388B (en) USB flash disk detection method and system
KR101660180B1 (en) Ic card, portable electronic apparatus, and ic card processing apparatus
CN114238232B (en) Intelligent ammeter file reading and writing system, method, equipment 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