CN115586981B - Method, system, computer and storage medium for preventing SIO signal loss - Google Patents

Method, system, computer and storage medium for preventing SIO signal loss Download PDF

Info

Publication number
CN115586981B
CN115586981B CN202211486812.2A CN202211486812A CN115586981B CN 115586981 B CN115586981 B CN 115586981B CN 202211486812 A CN202211486812 A CN 202211486812A CN 115586981 B CN115586981 B CN 115586981B
Authority
CN
China
Prior art keywords
value
preset register
sio
register value
board card
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
CN202211486812.2A
Other languages
Chinese (zh)
Other versions
CN115586981A (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 NORCO INTELLIGENT TECHNOLOGY CO LTD
Original Assignee
SHENZHEN NORCO INTELLIGENT 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 NORCO INTELLIGENT TECHNOLOGY CO LTD filed Critical SHENZHEN NORCO INTELLIGENT TECHNOLOGY CO LTD
Priority to CN202211486812.2A priority Critical patent/CN115586981B/en
Publication of CN115586981A publication Critical patent/CN115586981A/en
Application granted granted Critical
Publication of CN115586981B publication Critical patent/CN115586981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • 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/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • 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

Abstract

The present application relates to the field of SIO peripheral board cards, and in particular, to a method, a system, a computer, and a storage medium for preventing loss of an SIO signal. The method is applied to an input-output system and comprises the following steps: when entering the initialization phase, the decay period value of the SIO signal is read. And when the attenuation period value is larger than 0, reading the chip ID value of the extrapolated expansion board card. When reading the chip ID value fails, the first preset register value is increased by one. And when the first preset register value is larger than the decay period value, clearing the first preset register value. Initializing external equipment for externally plugging the expansion board card, and then entering the next stage until an operating system is entered. The purpose that the SIO signal can be prevented from losing is improved, and the stability and reliability of signal transmission between the extrapolation extension SIO integrated circuit board and the mainboard are improved.

Description

Method, system, computer and storage medium for preventing SIO signal loss
Technical Field
The present application relates to the field of SIO peripheral board cards, and in particular, to a method, a system, a computer, and a storage medium for preventing loss of an SIO signal.
Background
In the fields of industrial control and the like, the number of SIO chips required on a mainboard is different due to different requirements of different clients on the number of serial ports. Because a SIO chip typically has only 2-8 serial ports, if 10 or 20 serial ports are required, 2 to 10 SIO chips are required on a motherboard. If all the chips are added to one mainboard, the product is single, and when the number of required serial ports is small, the resource is wasted; when the number of the required serial ports is more, the requirements are not met, the requirements of various customers cannot be met, and the utilization rate of the chip is maximized. Therefore, people can solve the problem by adding the function of externally connecting the chip. The method needs to be provided with a group of SIO chip interfaces to match with peripheral expansion SIO boards, so that a plurality of types of extrapolation expansion SIO boards with different serial port numbers can be compatible to meet different customer requirements. However, in the using process, as the main board and the external-extension SIO board card need to be connected with each other by using the plug pins, the communication line is long, so that the SIO signal on the extension card is easy to attenuate and lose, and thus, the abnormal use of functions can occur after the SIO signal enters the system.
Disclosure of Invention
In view of the above, the present application provides a method, system, computer, and storage medium for preventing loss of an SIO signal.
The embodiment of the application provides a method for preventing loss of an SIO signal, which is applied to an input and output system and comprises the following steps:
reading the attenuation period value of the SIO signal after entering an initialization stage;
when the attenuation period value is larger than 0, reading the chip ID value of the extrapolation expansion board card;
when reading the chip ID value fails, adding one to a first preset register value;
when the first preset register value is larger than the decay period value, clearing the first preset register value;
initializing external equipment of the extrapolation expansion board card, and then entering the next stage until entering an operating system.
Further, in the method for preventing loss of the SIO signal, the method further includes:
and when the ID value of the chip is successfully read, clearing the first preset register value and initializing the external equipment of the extrapolation expansion board card.
Further, in the method for preventing loss of the SIO signal, the method further includes:
and when reading the chip ID value fails, adding one to a second preset register value for accumulating the total lost times.
Further, in the above method for preventing loss of an SIO signal, the method further includes:
and when the attenuation period value is not more than 0, clearing the first preset register value and the second preset register value, and initializing external equipment of the extrapolation expansion board card.
Further, in the above method for preventing loss of an SIO signal, the method further includes:
and when the attenuation period value is not more than 0, clearing the first preset register value and initializing the external equipment of the extrapolation expansion board card.
Further, in the above method for preventing loss of an SIO signal, the method further includes:
and when the first preset register value is not larger than the decay period value, performing cold restart.
Further, in the above method for preventing loss of SIO signals, the method includes:
the decay period value of the SIO signal is any one of 2-5.
Another embodiment of the present application further provides a system for preventing loss of an SIO signal, including:
the first reading unit is used for reading the attenuation period value of the SIO signal after entering the initialization stage;
the second reading unit is used for reading the chip ID value of the extrapolated expansion board card when the attenuation period value is larger than 0;
the computing unit is used for adding one to a first preset register value when reading the ID value of the chip fails;
a clearing unit, configured to clear the first preset register value when the first preset register value is greater than the decay period value;
and the initialization unit is used for initializing the external equipment of the extrapolation expansion board card and then entering the next stage until the operating system is entered.
Another embodiment of the present application further provides a computer, including a storage unit and a processing unit, where the storage unit stores a computer program, and the processing unit executes the steps of the method for preventing loss of an SIO signal as described above by calling the computer program stored in the storage unit.
Another embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, which is suitable for being loaded by a processor to execute the steps of the method for preventing SIO signal loss as described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a method for preventing SIO signal loss, which performs cold restart on a BIOS and initializes an externally plugged expansion board card by accessing a signal attenuation cycle number for reading the SIO, a chip ID value for accessing the externally plugged expansion board card and a reading failure frequency, so as to achieve the purpose of preventing the SIO signal loss, thereby not only improving the stable reliability of signal transmission between the externally plugged expansion SIO board card and a mainboard, but also reducing the risk caused by signal loss when a client uses the externally plugged expansion SIO board card, and reducing the cost of mainboard production and upgrading. In addition, the method can be used for expanding the mainboard related to the SIO board card to achieve the same effect.
Drawings
In order to more clearly explain the technical solutions of the present application, the drawings needed to be used in the embodiments are briefly introduced below, and it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of protection of the present application. Like components are numbered similarly in the various figures.
FIG. 1 illustrates a first flow diagram of a method of preventing loss of SIO signals according to some embodiments of the present application;
FIG. 2 illustrates a second flow diagram of a method of preventing loss of SIO signals according to some embodiments of the present application;
FIG. 3 illustrates a third flow diagram of a method of preventing loss of an SIO signal according to some embodiments of the present application;
FIG. 4 illustrates a fourth flowchart of a method of preventing loss of an SIO signal according to some embodiments of the present application;
FIG. 5 illustrates a fifth flowchart of a method of preventing loss of an SIO signal according to some embodiments of the present application;
fig. 6 illustrates a schematic diagram of a system for preventing SIO signal loss according to some embodiments 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 of the embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
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.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Generally, a computer operates before a Basic Input/Output System (BIOS) is executed by turning on a power supply, that is, pressing a power switch on the computer. When the power switch is pressed, the CPU is activated, then searches the first instruction address of the BIOS, such as 0xFFFFFFF0, and then executes the corresponding operation of the BIOS. In the BIOS executing process, firstly, a working environment to be executed by BIOS codes is established, then chips (including a south bridge, a north bridge, an SIO chip and the like) on a memory and a mainboard and/or chips with an external expansion card are initialized, external devices (including a mouse keyboard, a serial port parallel port, a network card, a hard disk, a display device and the like) are initialized, and finally, control right is given to an operating system for the next operation. The BIOS is a bridge or interface between computer hardware and software, can provide a bottommost hardware control program for a computer, and has the functions of executing power-on self-test, system booting and the like. How much the performance of the motherboard depends on the BIOS on the motherboard.
Super Input/Output (SIO) chips provide control processing functions for the quasi I/O interfaces on the motherboard. The term "super" as used herein means that it integrates processing functions such as a PS/2 (Personal System 2, PS/2) keyboard and mouse, a serial port, a parallel port, and a temperature control, and is generally mounted on a computer Bus such as an LPC Bus (LPC), and is very high in application to a plurality of SIO in the industrial control field.
In the BIOS, operations such as accessing the SIO are required, and in order to meet the requirements of various clients, the SIO is set as an external connection, and since a line is long, a signal loss phenomenon is likely to occur in a signal transmission process.
Therefore, the present application proposes a method for preventing loss of SIO signals.
Referring to fig. 1, a flowchart of a method for preventing SIO signal loss according to an embodiment of the present application is shown. The method for preventing loss of the SIO signal is exemplarily applied to the BIOS.
In some embodiments, as shown in fig. 1, the method for preventing loss of SIO signals is applied to an input output system, and the method may include:
s101, after entering the initialization stage, reading the decay period value of the SIO signal.
S201, when the attenuation period value is larger than 0, reading the chip ID value of the extrapolation expansion board card.
Specifically, first, the motherboard powers on and then enters the BIOS, and the BIOS enters a Security Phase (SEC) stage in which the BIOS performs four tasks.
And the task one receives and processes a system restarting signal, a system power-on signal, a system restarting signal and an abnormal signal in the system operation process.
Task two, initializing the temporary storage area: when the system runs in the SEC phase, only the CPU and internal resources of the CPU are initialized, and various external devices and memories are not initialized. The system therefore requires a portion of temporary memory, commonly referred to as temporary RAM, for storage of code and data, which can only be located within the CPU.
Task three, the SEC phase is the root of the trusted system: as a first part of the system startup, only SEC can be trusted by the system, and later stages have a trusted basis. Therefore, in most cases, the SEC re-transfers control to the Pre-EFI Initialization phase (Pre-EFI Initialization, PEI) before verifying that PEI is authentic.
And a fourth task, transmitting system parameters to the next stage: all work of the SEC phase is prepared for the PEI phase, the most important is to transfer the control right of the system to the PEI, and the operation information of the SEC phase is reported to the PEI. The SEC reports information to the PEI by passing the following information as parameters to the PEI's portal. The reporting signal comprises the current state of the system, and the PEI judges the current health condition of the system, the address and the size of a bootable Firmware Volume (the PEI judges the available hardware according to the address and the size of the bootable Firmware Volume), the address and the size of a temporary RAM area and the address and the size of a stack according to the state value.
And after the first stage is finished, entering a second-stage PEI initialization stage in advance, reading the attenuation period value of the SIO signal by the system in the stage, and if the attenuation period value of the SIO signal is read to be larger than 0, reading the chip ID value of the extrapolation expansion board card. The extrapolation expansion board card comprises at least one SIO, the number of the SIOs is not unique, and the number of the SIOs is determined according to the use condition and is not limited here.
Specifically, if the read attenuation period value of the SIO signal is 0, it indicates that the extrapolation extension board card is neglected to be lost, and clears a first preset register value corresponding to a first preset register in a Complementary Metal Oxide Semiconductor (CMOS), initializes an external device of the extrapolation extension board card, and allocates resources. The CMOS is a RAM chip capable of being read and written.
Further, if the programmed BIOS firmware has a resource for initializing the corresponding extrapolation expansion board card, but the extrapolation expansion SIO board card is not collocated on the motherboard, the attenuation period value of the SIO signal needs to be set to 0 for ignoring the extrapolation expansion SIO board card to avoid normal power up only after cold restart for many times, so the BIOS firmware generally defaults that the option value is 0, of course, the attenuation period value of the SIO signal is not unique, and can be modified arbitrarily as required, which is not limited herein.
In some embodiments, as shown in fig. 2, the method for preventing loss of the SIO signal further comprises:
s202, when the attenuation period value is not larger than 0, clearing the first preset register value, and initializing external equipment of the extrapolation expansion board card.
Specifically, whether a cold restart instruction needs to be executed is determined by judging the values of a first preset register value corresponding to a first preset register in the CMOS and the attenuation period value of the SIO signal, and if the first preset register value is not greater than the attenuation period value of the SIO signal, the cold restart instruction is executed to reacquire the chip ID value from the first step, and whether reacquisition fails is determined. If the attenuation period value is not greater than 0, the first preset register value and the second preset register value for calculating the loss signal are cleared, the last step is directly executed, namely, the external equipment of the extrapolation extension board card is initialized, and then the next stage is started until the operating system is started.
In some embodiments, the method for preventing SIO signal loss further comprises:
s301, when reading the chip ID value fails, adding one to the first preset register value.
Specifically, whether the signal is lost or not is judged, and the BIOS may be used to read a chip ID value of the add-on expansion board. And if the reading of the chip ID value of the extrapolated extension board card fails, adding one to the first preset register value in the preset register, so as to perform judgment and subsequent operation again when the chip ID value fails to be acquired.
In some embodiments, as shown in fig. 3, the method for preventing loss of the SIO signal further comprises:
s302, when reading the chip ID value fails, adding one to the second preset register value for accumulating the total lost times.
Specifically, if reading the chip ID value of the external extension board card fails, the first preset register value in the preset register is incremented by one, and the second preset register value in the preset register is incremented by one, so as to accumulate the total times of signal loss, facilitate the BIOS developer or maintainer to obtain and determine the problem and perform subsequent maintenance and other operations according to the obtained total times.
When a second preset register is arranged in the CMOS to count the total times of signal loss, when the BIOS enters a PEI stage, if the read attenuation period value is not more than 0, the first preset register value is cleared, meanwhile, the second preset register value is cleared, the external equipment of the external extension board card is initialized, and then the next stage is started until the operating system is entered.
In some embodiments, as shown in fig. 4, the method for preventing loss of the SIO signal further comprises:
and S303, when the ID value of the chip is successfully read, clearing the first preset register value, and initializing external equipment of the extrapolation expansion board card.
Specifically, if the chip ID value of the extrapolation expansion board card is successfully read, it indicates that the signal is not lost, and then the external device of the extrapolation expansion board card is initialized and the resource is allocated.
S401, when the first preset register value is larger than the decay period value, the first preset register value is cleared.
Specifically, if the first preset register value is greater than the attenuation period value of the SIO signal, the first preset register value corresponding to the first preset register in the CMSO is cleared, and the external device of the extrapolation expansion board card is initialized and resources are allocated. And then entering the next stage until the operating system is entered.
In some embodiments, as shown in fig. 5, the method for preventing loss of the SIO signal further includes:
s402, when the first preset register value is not larger than the decay period value, performing cold restart.
Specifically, when the first preset register value is not greater than the decay period value, it indicates that the signal can be re-acquired again, so that a cold restart is required to re-restart the acquisition of the signal, and it is determined whether the signal can be acquired.
S501, initializing external equipment of the extrapolation expansion board card, and then entering the next stage until entering an operating system.
Specifically, in practical use, the following situations may occur, which are described with the decay period value of the SIO signal set by the user being 1:
in the first situation, if the motherboard is not connected with the external extension board card, the BIOS firmware determines that the external extension board card fails to be read and executes a cold restart, and the external extension board card is lost after the BIOS reenters the determination, but the first preset register value corresponding to the first preset register in the CMOS is greater than the attenuation period value of the SIO signal after being added with 1 again, and the cold restart instruction is not executed again, but the system is smoothly entered, so that the situation that the system cannot be started without the external extension board card or the board card being damaged after the option is modified to the default value is avoided.
And secondly, if the mainboard has an external extension board card, but the chip ID value of the external extension board card is read again after the external extension board card is failed to be captured and a cold restart instruction is executed once, and when the external extension board card is successfully captured, the step is skipped to enter the system successfully.
And thirdly, if the mainboard has an external extension board card, but the chip ID value of the external extension board card is read again after the external extension board card is failed to be captured and a cold restart instruction is executed once, and if the external extension board card fails, if the external extension board card enters the system, the attenuation period value of the SIO signal needs to be increased to improve the stability and reliability of the SIO signal. For example, when the decay period of the SIO signal is 1, the system will go to the next stage if the cold restart fails again after the second time, which may cause the system to malfunction. However, if the attenuation period value of the SIO signal is set to 2, after the cold restart for the second time, if the cold restart fails again, the chip ID value is obtained once, and if the cold restart fails for the third time, the above steps are skipped to directly enter the next stage, that is, there are many opportunities for the cold restart. When the decay period value of the SIO signal is larger, the chip ID value is allowed to be acquired more frequently, so that the system is more stable.
Further, after the external device of the add-out expansion board performs initialization resource allocation, the BIOS enters a Driver Execution Environment (DXE) Execution phase. Since memory is already normally used in this phase, the DXE phase can perform a lot of complex tasks. The DXE phase is similar from a programming perspective to the PEI phase. The DXE phase functions include performing most of the initialization work for the system, providing system tables, boot services, and runtime services.
When the DXE phase is completed, a Boot Device Selection (BDS) phase is performed. The functions of the BDS phase include executing boot policies (primary functions), initializing console devices, loading necessary device drivers, and loading and executing boot items according to system settings.
After the DXE phase is executed, the BIOS passes control to the operating system.
Optionally, all the CMOS chips may be other memory chips, which is not limited herein.
Alternatively, in the above method for preventing loss of the SIO signal, the attenuation period value of the SIO signal is any one of 2 to 5. The decay period value is also related to the number of external boards, and is not limited herein, depending on the situation.
The embodiment of the application provides a method for preventing SIO signal loss, which performs cold restart on a BIOS and initializes an externally plugged expansion board card by accessing a signal attenuation cycle number for reading the SIO, a chip ID value for accessing the externally plugged expansion board card and a reading failure frequency, so as to achieve the purpose of preventing the SIO signal loss, thereby not only improving the stable reliability of signal transmission between the externally plugged expansion SIO board card and a mainboard, but also reducing the risk caused by signal loss when a client uses the externally plugged expansion SIO board card, and reducing the cost of mainboard production and upgrading. In addition, the method can be used for expanding the mainboard related to the SIO board card to achieve the same effect.
In another embodiment of the present application, a system 600 for preventing loss of an SIO signal is further provided, as shown in fig. 6, the system 600 includes:
the first reading unit 601 is used for reading the decay period value of the SIO signal after entering the initialization phase.
The second reading unit 602 is configured to read the chip ID value of the extrapolated expansion board card when the decay period value is greater than 0.
The calculating unit 603 is configured to increment the first preset register value by one when reading the chip ID value fails.
A clearing unit 604, configured to clear the first preset register value when the first preset register value is greater than the decay period value.
The initialization unit 605 is configured to initialize external devices of the add-in expansion board, and then enter the next stage until the operating system is entered.
Another embodiment of the present application further provides a computer, which includes a storage unit and a processing unit, wherein the storage unit stores a computer program, and the processing unit executes the steps of the method for preventing SIO signal loss as described above by calling the computer program stored in the storage unit.
Another embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the method for preventing SIO signal loss as described above.
It is understood that the method steps of the present embodiment correspond to the method for preventing SIO signal loss in the above embodiment, wherein the alternatives of the above method for preventing SIO signal loss are also applicable to the present embodiment and will not be described repeatedly here.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (7)

1. A method for preventing loss of SIO signal, applied to an input-output system, comprising:
reading the attenuation period value of the SIO signal after entering an initialization stage;
when the attenuation period value is larger than 0, reading the chip ID value of the extrapolation expansion board card;
when the decay period value is not more than 0, clearing a first preset register value and a second preset register value, and initializing external equipment of the extrapolation expansion board card, wherein when the decay period value is 0, the condition that the extrapolation expansion board card is lost is ignored;
when reading the chip ID value fails, adding one to a first preset register value, and adding one to a second preset register value, wherein the second preset register value is used for accumulating the total loss times;
when the ID value of the chip is successfully read, clearing the first preset register value, and initializing external equipment of the extrapolation expansion board card;
determining whether a cold restart is required to be performed by judging the magnitude of the first preset register value and the decay period value;
when the first preset register value is larger than the decay period value, clearing the first preset register value;
initializing external equipment of the extrapolation expansion board card, and then entering the next stage until entering an operating system.
2. The method of preventing SIO signal loss of claim 1, further comprising:
and when the attenuation period value is not more than 0, clearing the first preset register value and initializing the external equipment of the extrapolation expansion board card.
3. The method of preventing SIO signal loss of claim 1, further comprising:
and when the first preset register value is not larger than the decay period value, performing cold restart.
4. The method of preventing SIO signal loss of claim 1, comprising:
the decay period value of the SIO signal is any one of 2-5.
5. A system for preventing loss of a SIO signal, comprising:
the first reading unit is used for reading the attenuation period value of the SIO signal after entering the initialization stage;
the second reading unit is used for reading the chip ID value of the extrapolated expansion board card when the attenuation period value is larger than 0; when the decay period value is not more than 0, clearing a first preset register value and a second preset register value, and initializing external equipment of the extrapolation expansion board card, wherein when the decay period value is 0, the condition that the extrapolation expansion board card is lost is ignored;
the computing unit is used for adding one to a first preset register value and adding one to a second preset register value when reading the ID value of the chip fails, wherein the second preset register value is used for accumulating the total number of lost times; when the ID value of the chip is successfully read, clearing the first preset register value, and initializing external equipment of the extrapolation expansion board card; determining whether a cold restart is required to be performed by judging the magnitude of the first preset register value and the decay period value;
a clearing unit, configured to clear the first preset register value when the first preset register value is greater than the decay period value;
and the initialization unit is used for initializing the external equipment of the extrapolation expansion board card and then entering the next stage until the operating system is entered.
6. A computer, comprising a storage unit in which a computer program is stored and a processing unit that executes the steps of the method for preventing loss of an SIO signal according to any one of claims 1 to 4 by calling the computer program stored in the storage unit.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program adapted to be loaded by a processor for performing the steps of the method for preventing SIO signal loss according to any of claims 1 to 4.
CN202211486812.2A 2022-11-25 2022-11-25 Method, system, computer and storage medium for preventing SIO signal loss Active CN115586981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211486812.2A CN115586981B (en) 2022-11-25 2022-11-25 Method, system, computer and storage medium for preventing SIO signal loss

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211486812.2A CN115586981B (en) 2022-11-25 2022-11-25 Method, system, computer and storage medium for preventing SIO signal loss

Publications (2)

Publication Number Publication Date
CN115586981A CN115586981A (en) 2023-01-10
CN115586981B true CN115586981B (en) 2023-03-14

Family

ID=84783238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211486812.2A Active CN115586981B (en) 2022-11-25 2022-11-25 Method, system, computer and storage medium for preventing SIO signal loss

Country Status (1)

Country Link
CN (1) CN115586981B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5962930A (en) * 1997-11-26 1999-10-05 Intel Corporation Method and apparatus for detecting supply power loss
CN101630182A (en) * 2009-08-19 2010-01-20 浪潮电子信息产业股份有限公司 Computer system capable of configuring SIO
TW201616273A (en) * 2014-10-30 2016-05-01 鴻海精密工業股份有限公司 System and method for recovering BIOS data of a computer
CN105929794B (en) * 2016-04-13 2018-08-21 上海柏楚电子科技有限公司 A kind of industrial network extended method of plug and play
CN111309659B (en) * 2020-01-21 2021-08-13 北京工业大学 Pluggable module-based LoRa multichannel communication extension method
CN113946148B (en) * 2021-09-29 2023-11-10 浙江零跑科技股份有限公司 MCU chip awakening system based on multi-ECU cooperative control
CN114510374A (en) * 2021-12-31 2022-05-17 中电科技(北京)股份有限公司 Automatic recovery system and method for peripheral mounting failure

Also Published As

Publication number Publication date
CN115586981A (en) 2023-01-10

Similar Documents

Publication Publication Date Title
US7430662B2 (en) Techniques for initializing a device on an expansion card
US6336185B1 (en) Use of other processors during BIOS boot sequence to minimize boot time
US20060184717A1 (en) Integrated circuit capable of flash memory storage management
US7581037B2 (en) Effecting a processor operating mode change to execute device code
US11275618B2 (en) Method, device and medium for allocating resource based on type of PCI device
US7127603B2 (en) System and method for manufacture of information handling systems with selective option ROM executions
US20060265581A1 (en) Method for switching booting devices of a computer
CN111709032A (en) Method, system, equipment and medium for realizing PFR function on multiple partitions
CN109408122A (en) A kind of equipment starting method, electronic equipment and computer storage medium
WO2010090636A1 (en) Electronic device with overlapped boot task fetches and boot task execution
CN115756984A (en) Memory test method, device, equipment and storage medium
US10491736B2 (en) Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS
US7428609B2 (en) Method and system to partition hardware resources between operating systems
CN115586981B (en) Method, system, computer and storage medium for preventing SIO signal loss
US10198270B2 (en) Dynamic hardware configuration via firmware interface at computing device boot
CN116450046A (en) Cloud disk implementation method and device, intelligent network card, server and storage medium
US7577814B1 (en) Firmware memory management
CN111258617B (en) Electronic equipment
US10824471B2 (en) Bus allocation system
CN112667544A (en) Method, device, system and medium for controlling mainboard slot enabling
CN107480052B (en) Method and device for positioning BIOS (basic input output System) codes during downtime
US20060155978A1 (en) Method for initialising programmable systems
CN113821265B (en) Operating system control method and device, computer mainboard and readable storage medium
US20190087376A1 (en) Hot-plugged pcie device configuration system
US20080222385A1 (en) Parameter setting method and apparatus for network controller

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