CN110990316A - Method and programmable logic circuit for outputting hot-swap device status - Google Patents

Method and programmable logic circuit for outputting hot-swap device status Download PDF

Info

Publication number
CN110990316A
CN110990316A CN201911050667.1A CN201911050667A CN110990316A CN 110990316 A CN110990316 A CN 110990316A CN 201911050667 A CN201911050667 A CN 201911050667A CN 110990316 A CN110990316 A CN 110990316A
Authority
CN
China
Prior art keywords
hot plug
lower computer
programmable logic
logic circuit
plug equipment
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
CN201911050667.1A
Other languages
Chinese (zh)
Other versions
CN110990316B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911050667.1A priority Critical patent/CN110990316B/en
Publication of CN110990316A publication Critical patent/CN110990316A/en
Application granted granted Critical
Publication of CN110990316B publication Critical patent/CN110990316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method for outputting the state of hot-plug equipment, which comprises the following steps: when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit detects the current hot plug equipment state of the lower computer; and outputting the detected current hot plug equipment state of the lower computer by the programmable logic circuit. Corresponding programmable logic circuits are also disclosed. The programmable logic circuit can rapidly scan the hot plug equipment state of the lower computer, so that the current hot plug equipment state of the lower computer can be accurately output according to the hot plug equipment state data detected by the programmable logic circuit.

Description

Method and programmable logic circuit for outputting hot-swap device status
Technical Field
The invention relates to the field of equipment control, in particular to a method for outputting hot plug equipment state and a programmable logic circuit.
Background
In modern industrial devices, hot plug devices are widely used in industrial devices because they can be flexibly plugged and unplugged to meet immediate needs. Because the demands of users that industrial equipment needs to meet are increasing, a plurality of industrial equipment are often adopted to form a matrix of the industrial equipment, and in addition, the industrial equipment is possibly arranged at a position which is not suitable for long-term stay of personnel and is far away from the personnel, so a control end equipment (such as a touch screen and the like) is often arranged at a long-term office place of the personnel, the control end equipment is used as an upper computer to control the industrial equipment to execute some operations, and in this case, the industrial equipment is used as a lower computer to receive a control instruction of the upper computer and express state data of the lower computer and execute the operations according to the control instruction. However, since the hot plug device is inserted into the lower computer, the upper computer often delays greatly when receiving the state of the hot plug device, and therefore the upper computer may output state data expressing the state of the hot plug device of the lower computer to the lower computer based on the received data with large delay, and the lower computer outputs the state of the hot plug device of the lower computer.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for outputting the hot plug device state and a programmable logic circuit, which can correctly output the hot plug device state of a lower computer.
In order to achieve the object of the present invention, an embodiment of the present invention provides a method for outputting a hot plug device status, where the method includes:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit detects the current hot plug equipment state of the lower computer;
and outputting the detected current hot plug equipment state of the lower computer by the programmable logic circuit.
In an optional embodiment, when the programmable logic circuit of the lower computer cannot correctly output the hot-plug device status of the lower computer according to the hot-plug device status data of the lower computer in the register, before the step of detecting, by the programmable logic circuit, the current hot-plug device status of the lower computer, the method further includes:
and when the programmable logic circuit detects that the control bit of the hot plug equipment in the register is not set or detects that the state of the hot plug equipment of the lower computer is changed but the state data of the hot plug equipment in the register is not updated, determining that the programmable logic circuit cannot correctly output the state of the hot plug equipment of the lower computer according to the state data of the hot plug equipment of the lower computer in the register.
In an optional embodiment, the method further comprises:
when the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
In an optional embodiment, the method further comprises:
and when the programmable logic circuit detects that the register sets the control bit for the first time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
In an optional embodiment, the method further comprises:
under the condition that the hot plug equipment state of the lower computer is unchanged within a threshold time period after the programmable logic circuit detects that the last state of the hot plug equipment of the lower computer is changed, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register; or
And under the condition that the programmable logic circuit detects that the hot plug state data in the register is updated within a threshold time period after the programmable logic circuit detects that the last state of the hot plug equipment of the lower computer is changed, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
In order to achieve the object of the present invention, an embodiment of the present invention provides a programmable logic circuit, which includes a memory and a processor;
the memory is to store computer readable instructions;
the processor is used for reading the computer readable instructions to execute the following operations:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, detecting the current hot plug equipment state of the lower computer through the programmable logic circuit;
and outputting the detected current hot plug device state of the lower computer through the programmable logic circuit.
In an alternative embodiment, the processor is configured to read and execute computer readable instructions to perform the following operations:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, before the programmable logic circuit detects the operation of the current hot plug equipment state of the lower computer, when the programmable logic circuit detects that the control position of the hot plug equipment in the register is not set or detects that the hot plug equipment state of the lower computer is changed but the hot plug equipment state data in the register is not updated, the programmable logic circuit is determined to be incapable of correctly outputting the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
In an alternative embodiment, the processor is configured to read and execute computer readable instructions to perform the following operations:
when the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
In an alternative embodiment, the processor is configured to read and execute computer readable instructions to perform the following operations:
and when the programmable logic circuit detects that the register sets the control bit for the first time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
In an alternative embodiment, the processor is configured to read and execute computer readable instructions to perform the following operations:
under the condition that the hot plug equipment state of the lower computer is unchanged within a threshold time period after the programmable logic circuit detects that the last state of the hot plug equipment of the lower computer is changed, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register; or
And under the condition that the programmable logic circuit detects that the hot plug state data in the register is updated within a threshold time period after the programmable logic circuit detects that the last state of the hot plug equipment of the lower computer is changed, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
By the aid of the scheme, the situation that the lower computer cannot correctly output the hot plug equipment state of the lower computer due to the fact that the hot plug equipment state data output by the upper computer and stored in the register are incorrect is avoided. The programmable logic circuit can rapidly scan the hot plug equipment state of the lower computer, so that the current hot plug equipment state of the lower computer can be accurately output according to the hot plug equipment state data detected by the programmable logic circuit.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart of a method for outputting a hot plug device status according to an embodiment of the present invention;
fig. 2 is a block diagram of a programmable logic circuit according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In modern industrial devices, hot plug devices are widely used in industrial devices because they can be flexibly plugged and unplugged to meet immediate needs. Because the demands of users that industrial equipment needs to meet are increasing, a plurality of industrial equipment are often adopted to form a matrix of the industrial equipment, and in addition, the industrial equipment is possibly arranged at a position which is not suitable for long-term stay of personnel and is far away from the personnel, so a control end equipment (such as a touch screen and the like) is often arranged at a long-term office place of the personnel, the control end equipment is used as an upper computer to control the industrial equipment to execute some operations, and in this case, the industrial equipment is used as a lower computer to receive a control instruction of the upper computer and express state data of the lower computer and execute the operations according to the control instruction. However, since the hot plug device is inserted into the lower computer, the upper computer often delays greatly when receiving the state of the hot plug device, and therefore the upper computer may output state data expressing the state of the hot plug device of the lower computer to the lower computer based on the received data with large delay, and the lower computer outputs the state of the hot plug device of the lower computer.
In order to solve the above technical problem, an embodiment of the present invention provides a method for outputting a hot plug device status, as shown in fig. 1, the method includes steps S101 to S103.
And S101, when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, detecting the current hot plug equipment state of the lower computer by the programmable logic circuit.
Here, the lower computer may be a switch, a server, or the like, has an output device, and supports a hot-plug device. The lower computer is provided with a Programmable Logic circuit which can be a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA) or other types of Programmable Logic circuits, and the Programmable Logic circuit is used for controlling the upper and lower electric time sequence control, the communication control, the key detection, the fan rotating speed control, the SFP lighting control and serial port switching, the I2The programmable logic circuit can acquire the number of hot plug devices of the lower computer, the attribute of each hot plug device, and when the hot plug device is inserted into the port of the lower computer and when the hot plug device is extracted from the port of the lower computer. And the programmable logic circuit can output data through a lamp panel, a loudspeaker, a display screen or a data interface of the lower computer. The upper computer can be a PLC, an industrial personal computer and the like. The upper computer is communicated with the lower computer, the lower computer receives the instructions and the data sent by the upper computer, performs operation and outputs the data, the lower computer feeds back the state data of the lower computer to the upper computer, and the upper computer sends the instructions and the data to the lower computer based on the state data of the lower computer fed back by the lower computer. The register stores data transmitted by the upper computer, and the lower computer executes operations and outputs data by querying the data from the register (the output data includes hot plug device status data of the lower computer, and "hot plug device status of the lower computer" refers to an attribute, a number, a function, and a port number and time of insertion or extraction of a hot plug device inserted by the lower computer).
In the scheme provided by the embodiment of the invention, when the programmable logic circuit of the lower computer cannot correctly output the hot plug device state of the lower computer according to the hot plug device state data of the lower computer in the register, the programmable logic circuit detects the current hot plug device state of the lower computer. The programmable logic circuit detects the hot plug equipment state of the local lower computer, so that the programmable logic circuit can quickly or the hot plug equipment state of the lower computer, and the programmable logic circuit can detect to acquire the current hot plug equipment state of the lower computer when the programmable logic circuit cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
And step S103, outputting the detected current hot plug equipment state of the lower computer by the programmable logic circuit.
After the programmable logic circuit detects the current hot plug device state of the lower computer, the programmable logic circuit outputs the detected current hot plug device state of the lower computer. By the method, the condition that the lower computer cannot correctly output the hot plug equipment state of the lower computer due to the fact that the hot plug equipment state data output by the upper computer and stored in the register is incorrect is avoided. The programmable logic circuit can rapidly scan the hot plug equipment state of the lower computer, so that the current hot plug equipment state of the lower computer can be accurately output according to the hot plug equipment state data detected by the programmable logic circuit.
In order to determine whether the programmable logic circuit can correctly output the hot plug device status of the lower computer according to the hot plug device status data of the lower computer in the register, in an optional embodiment, before step S101, the method further includes:
and when the programmable logic circuit detects that the control position of the hot plug equipment in the register is not set or the state change of the hot plug equipment of the lower computer is detected, determining that the programmable logic circuit cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
In this alternative embodiment, the hot-plugged device status of the lower computer that the programmable logic circuit cannot correctly output according to the hot-plugged device status data in the register is listed in two cases:
1. the situation that the lower computer is started but the control bit in the register is not set; the reason for this may be that the upper computer is shut down when the lower computer is already running; the other reason is that the upper computer is just started under the condition that the lower computer is already running, but the upper computer does not input the hot-plugging device state data of the lower computer into the register, and does not set the control position after the hot-plugging device state data of the lower computer is input into the register.
2. And when the lower computer and the upper computer normally run and communicate, the hot plug equipment state of the lower computer is changed, but the hot plug equipment state data in the register is not updated. The upper computer adopts a polling mechanism to obtain various data, so that the hot-plug equipment state data of the lower computer cannot be updated in real time, and the frequency of the hot-plug equipment state polled to the lower computer by the upper computer is lower than the frequency of the programmable logic circuit for detecting the hot-plug equipment state of the lower computer, so that the hot-plug equipment state data in the register may not reflect the current hot-plug equipment state.
Under the two conditions, the programmable logic circuit cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register. Therefore, the programmable logic circuit detects the hot plug device state of the lower computer and outputs the hot plug device state of the lower computer through various output devices of the lower computer. The term "the programmable logic circuit outputs the hot plug device state of the lower computer" as referred to herein means that the programmable logic circuit outputs the hot plug device state of the lower computer through various output devices of the lower computer or through an output device of the programmable logic circuit itself.
Furthermore, contrary to the situation described in the above embodiments of the present invention, in an alternative embodiment, the method further comprises: when the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register. That is, the programmable logic circuit first determines whether the hot-plug device status of the lower computer can be correctly output according to the hot-plug device status data of the lower computer in the register: the programmable logic circuit detects the hot plug equipment state of the lower computer and outputs the detected hot plug equipment state of the lower computer only when the hot plug equipment state data of the lower computer in the register cannot be correctly output; once the upper computer updates the hot plug equipment state data to the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data in the register. The above mode can allow the programmable logic circuit to correctly output the hot plug device state of the lower computer, and simultaneously obtain the data sent by the upper computer to the register as much as possible, so that the data sent by the upper computer to the lower computer is obtained, and the operation of the lower computer according to the data sent by the upper computer is facilitated.
The situation that the programmable logic circuit based on the analysis cannot correctly output the hot plug device state of the lower computer according to the hot plug device state data in the register can be known, and the situation that the programmable logic circuit correctly outputs the hot plug device state of the lower computer according to the hot plug device state data in the register comprises the following steps:
the programmable logic circuit detects that the register first sets the control bit. Thus, in an alternative embodiment, the method further comprises: and when the programmable logic circuit detects that the register sets the control bit for the first time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
The condition that the programmable logic circuit correctly outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data in the register comprises the following steps:
the programmable logic circuit detects that the hot plug device of the lower computer has not changed state after the last state change (the "hot plug device state change" mentioned in the present document includes the situation that the hot plug device has not changed state after being repeatedly plugged and unplugged in a short time) within a threshold time period. Thus, in an alternative embodiment, the method further comprises: and under the condition that the hot plug equipment state of the lower computer is unchanged within a threshold time period after the programmable logic circuit detects the latest state change of the hot plug equipment of the lower computer, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register. Here, the length of the threshold time period is greater than the period of polling the interface of a hot-plug device of the lower computer by the upper computer. The method comprises the steps that timing is started when a programmable logic circuit detects the latest state change of a hot plug device of a lower computer, and when the length of timing reaches a threshold time period, if the programmable logic circuit does not detect that the lower computer has the hot plug device inserted into a port of the lower computer or extracts the hot plug device from the port of the lower computer, the upper computer should already detect the state of the hot plug device of the lower computer after the latest state change, namely the current state of the hot plug device of the lower computer is already detected, so that the upper computer stores the current state data of the hot plug device of the lower computer into a register, and the programmable logic circuit can be determined to correctly output the state of the hot plug device of the lower computer according to the state data of the hot plug device of the lower computer in the register.
In another alternative embodiment, another case where the programmable logic circuit correctly outputs the hot plug device status of the lower computer according to the hot plug device status data in the register includes:
and the programmable logic circuit detects that the hot plug state data in the register is updated within a threshold time period after the last state change of the hot plug equipment of the lower computer is detected. In this case, the hot plug state data in the register is updated in the threshold time period, which indicates that the upper computer has polled the hot plug device state of the lower computer, and the hot plug device state data in the register is updated according to the hot plug device state of the lower computer. The hot plug device state data in the register under the condition can be determined to correctly represent the current hot plug device state of the lower computer, so that the programmable logic circuit can correctly output the hot plug device state of the lower computer under the condition according to the data in the register.
In order to solve the above technical problem, an embodiment of the present invention provides a programmable logic circuit, as shown in fig. 2, including a memory 10 and a processor 20;
memory 10 is used to store computer readable instructions;
the processor 20 is configured to read the computer readable instructions to perform the following operations:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, detecting the current hot plug equipment state of the lower computer through the programmable logic circuit;
and outputting the detected current hot plug device state of the lower computer through the programmable logic circuit.
In an alternative embodiment, processor 20 is configured to read and execute computer readable instructions to perform the following operations:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, before the programmable logic circuit detects the operation of the current hot plug equipment state of the lower computer, when the programmable logic circuit detects that the control position of the hot plug equipment in the register is not set or detects that the hot plug equipment state of the lower computer is changed but the hot plug equipment state data in the register is not updated, the programmable logic circuit is determined to be incapable of correctly outputting the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
In an alternative embodiment, processor 20 is configured to read and execute computer readable instructions to perform the following operations:
when the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
In an alternative embodiment, processor 20 is configured to read and execute computer readable instructions to perform the following operations:
and when the programmable logic circuit detects that the register sets the control bit for the first time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
In an alternative embodiment, processor 20 is configured to read and execute computer readable instructions to perform the following operations:
under the condition that the hot plug equipment state of the lower computer is unchanged within a threshold time period after the programmable logic circuit detects that the last state of the hot plug equipment of the lower computer is changed, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register; or
And under the condition that the programmable logic circuit detects that the hot plug state data in the register is updated within a threshold time period after the programmable logic circuit detects that the last state of the hot plug equipment of the lower computer is changed, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for outputting a hot-plugged device status, comprising:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit detects the current hot plug equipment state of the lower computer;
and outputting the detected current hot plug equipment state of the lower computer by the programmable logic circuit.
2. The method according to claim 1, wherein before the step of detecting the current hot-plugged device status of the lower computer by the programmable logic circuit when the programmable logic circuit of the lower computer cannot correctly output the hot-plugged device status of the lower computer according to the hot-plugged device status data of the lower computer in the register, the method further comprises:
and when the programmable logic circuit detects that the control position of the hot plug equipment in the register is not set or detects that the state of the hot plug equipment of the lower computer is changed but the state data of the hot plug equipment in the register is not updated, determining that the programmable logic circuit cannot correctly output the state of the hot plug equipment of the lower computer according to the state data of the hot plug equipment of the lower computer in the register.
3. The method of claim 1, further comprising:
when the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
4. The method of claim 3, further comprising:
and when the programmable logic circuit detects that the register sets the control bit for the first time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
5. The method of claim 3, further comprising:
under the condition that the hot plug equipment state of the lower computer is unchanged within a threshold time period after the programmable logic circuit detects the latest state change of the hot plug equipment of the lower computer, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register; or
And under the condition that the programmable logic circuit detects that the hot plug state data in the register is updated within the threshold time period after the programmable logic circuit detects that the state of the hot plug equipment of the lower computer is changed for the last time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
6. A programmable logic circuit comprising a memory and a processor;
the memory is to store computer readable instructions;
the processor is configured to read the computer readable instructions to perform the following operations:
when the programmable logic circuit of the lower computer cannot correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, detecting the current hot plug equipment state of the lower computer through the programmable logic circuit;
and outputting the detected current hot plug equipment state of the lower computer through the programmable logic circuit.
7. The apparatus of claim 6, wherein the processor is configured to read and execute the computer-readable instructions to:
when the programmable logic circuit of the lower computer can not correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, before the programmable logic circuit detects the operation of the current hot plug equipment state of the lower computer, the programmable logic circuit detects that the control position of the hot plug equipment is not set or detected in the register when the hot plug equipment state of the lower computer changes but the hot plug equipment state data in the register is not updated, the programmable logic circuit can not correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
8. The apparatus of claim 6, wherein the processor is configured to read and execute the computer-readable instructions to:
when the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register, the programmable logic circuit outputs the hot plug equipment state of the lower computer according to the hot plug equipment state data of the lower computer in the register.
9. The apparatus of claim 8, wherein the processor is configured to read and execute the computer-readable instructions to:
and when the programmable logic circuit detects that the register sets the control bit for the first time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
10. The apparatus of claim 8, wherein the processor is configured to read and execute the computer-readable instructions to:
under the condition that the hot plug equipment state of the lower computer is unchanged within a threshold time period after the programmable logic circuit detects the latest state change of the hot plug equipment of the lower computer, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register; or
And under the condition that the programmable logic circuit detects that the hot plug state data in the register is updated within the threshold time period after the programmable logic circuit detects that the state of the hot plug equipment of the lower computer is changed for the last time, determining that the programmable logic circuit can correctly output the hot plug equipment state of the lower computer according to the data in the register.
CN201911050667.1A 2019-10-31 2019-10-31 Method and programmable logic circuit for outputting hot-swap device status Active CN110990316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911050667.1A CN110990316B (en) 2019-10-31 2019-10-31 Method and programmable logic circuit for outputting hot-swap device status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911050667.1A CN110990316B (en) 2019-10-31 2019-10-31 Method and programmable logic circuit for outputting hot-swap device status

Publications (2)

Publication Number Publication Date
CN110990316A true CN110990316A (en) 2020-04-10
CN110990316B CN110990316B (en) 2021-10-01

Family

ID=70082953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911050667.1A Active CN110990316B (en) 2019-10-31 2019-10-31 Method and programmable logic circuit for outputting hot-swap device status

Country Status (1)

Country Link
CN (1) CN110990316B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984570A (en) * 2020-07-14 2020-11-24 深圳市优必选科技股份有限公司 Device hot plug detection method and device
CN113114536A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 Switch data transmission method and system
CN114020670A (en) * 2021-10-28 2022-02-08 郑州云海信息技术有限公司 PCIE card management method, system, equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6125417A (en) * 1997-11-14 2000-09-26 International Business Machines Corporation Hot plug of adapters using optical switches
US6526466B1 (en) * 1999-11-12 2003-02-25 Xilinx, Inc. Method and system for PLD swapping
CN1584790A (en) * 2004-06-11 2005-02-23 Ut斯达康通讯有限公司 Pick up device and method for data in plugable optical modular inner memory
CN1678087A (en) * 2004-03-31 2005-10-05 迈普(四川)通信技术有限公司 Single-plate hot-plug-pull controlling method and board with hot plug-pull controlling module
JP2008227911A (en) * 2007-03-13 2008-09-25 D & M Holdings Inc Video signal output device and video signal output method
CN201514263U (en) * 2009-09-23 2010-06-23 伊玛精密电子(苏州)有限公司 Flow capacity calibration monitoring device
CN101867500A (en) * 2010-05-21 2010-10-20 浙江工业大学 Method and system for realizing embedded type common plug-and-play device status monitoring adaptive network structure
CN201673497U (en) * 2010-05-28 2010-12-15 深圳华北工控股份有限公司 Hot plug protection device of computer peripherals
CN102662701A (en) * 2012-03-28 2012-09-12 中兴通讯股份有限公司 Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN104915315A (en) * 2015-06-30 2015-09-16 硅谷数模半导体(北京)有限公司 Signal state detection method and device
CN205788054U (en) * 2016-05-25 2016-12-07 芯发威达电子(上海)有限公司 A kind of motherboard for smart machine and there is the smart machine of this motherboard
CN106897243A (en) * 2017-02-25 2017-06-27 郑州云海信息技术有限公司 Modified server and storage device
US20180136943A1 (en) * 2016-11-14 2018-05-17 Intel Corporation Configurable client hardware
CN108255764A (en) * 2018-01-24 2018-07-06 郑州云海信息技术有限公司 A kind of circuit and its control method of hot-swappable clock board
CN108280000A (en) * 2017-12-29 2018-07-13 惠州市德赛西威汽车电子股份有限公司 A kind of full-automatic test system of external equipment hot plug

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6125417A (en) * 1997-11-14 2000-09-26 International Business Machines Corporation Hot plug of adapters using optical switches
US6526466B1 (en) * 1999-11-12 2003-02-25 Xilinx, Inc. Method and system for PLD swapping
CN1678087A (en) * 2004-03-31 2005-10-05 迈普(四川)通信技术有限公司 Single-plate hot-plug-pull controlling method and board with hot plug-pull controlling module
CN1584790A (en) * 2004-06-11 2005-02-23 Ut斯达康通讯有限公司 Pick up device and method for data in plugable optical modular inner memory
JP2008227911A (en) * 2007-03-13 2008-09-25 D & M Holdings Inc Video signal output device and video signal output method
CN201514263U (en) * 2009-09-23 2010-06-23 伊玛精密电子(苏州)有限公司 Flow capacity calibration monitoring device
CN101867500A (en) * 2010-05-21 2010-10-20 浙江工业大学 Method and system for realizing embedded type common plug-and-play device status monitoring adaptive network structure
CN201673497U (en) * 2010-05-28 2010-12-15 深圳华北工控股份有限公司 Hot plug protection device of computer peripherals
CN102662701A (en) * 2012-03-28 2012-09-12 中兴通讯股份有限公司 Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN104915315A (en) * 2015-06-30 2015-09-16 硅谷数模半导体(北京)有限公司 Signal state detection method and device
CN205788054U (en) * 2016-05-25 2016-12-07 芯发威达电子(上海)有限公司 A kind of motherboard for smart machine and there is the smart machine of this motherboard
US20180136943A1 (en) * 2016-11-14 2018-05-17 Intel Corporation Configurable client hardware
CN106897243A (en) * 2017-02-25 2017-06-27 郑州云海信息技术有限公司 Modified server and storage device
CN108280000A (en) * 2017-12-29 2018-07-13 惠州市德赛西威汽车电子股份有限公司 A kind of full-automatic test system of external equipment hot plug
CN108255764A (en) * 2018-01-24 2018-07-06 郑州云海信息技术有限公司 A kind of circuit and its control method of hot-swappable clock board

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BADRISH CHANDRAMOULI等: ""Faster: A Concurrent Key-Value Store with In-Place Updates"", 《ACM》 *
石瑞: ""隔离式多通道数据采集控制设备的研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984570A (en) * 2020-07-14 2020-11-24 深圳市优必选科技股份有限公司 Device hot plug detection method and device
CN113114536A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 Switch data transmission method and system
CN114020670A (en) * 2021-10-28 2022-02-08 郑州云海信息技术有限公司 PCIE card management method, system, equipment and storage medium
CN114020670B (en) * 2021-10-28 2024-04-26 郑州云海信息技术有限公司 PCIE card management method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN110990316B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN110990316B (en) Method and programmable logic circuit for outputting hot-swap device status
EP3234788B1 (en) DATA TRANSMISSION USING PCIe PROTOCOL VIA USB PORT
US10503683B2 (en) Service redirect over USB Type-C
CN109144922B (en) Data transmission device and method thereof
CN114866424B (en) Server management method, device, system, electronic equipment and readable storage medium
CN108920397B (en) Device identification method and device, storage medium and electronic device
CN109298266B (en) Test system, test method, test apparatus, and storage medium
CN110581885A (en) Method, device and equipment for determining equipment synchronization and storage medium
CN105629926A (en) Event generation management for an industrial controller
EP3553897A1 (en) Adaptor, device identifying method and device identifying apparatus
CN107506323B (en) Hot plug processing method and device
CN104572375A (en) Method and device for diagnosing computer through display interface
EP2827255A1 (en) Operation mode configuring method and device for multi-processor system
CN115981971A (en) Lighting method of server hard disk and server
CN114090360A (en) Server debugging device, method and medium thereof
CN115269474A (en) Server and PCIe hot plug control method, device and medium thereof
CN114116415B (en) Hard disk backboard, hard disk lighting control system, method, device and medium
CN105589823A (en) Method, apparatus and circuit for realizing USB (universal serial bus) interface multiplexing MHL (mobile high-definition link)
CN115221092A (en) Method, device and equipment for determining distributable bus of PCI-E card and storage medium
CN115630011A (en) Method and device for realizing I2C bus communication of master and slave equipment by using CPLD
CN107728721B (en) Card slot, and method and device for positioning abnormal source
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN111124970B (en) Daughter board hot plug method and device
CN103079094B (en) The communication means of set top box main chip and front panel and Set Top Box
CN115426237B (en) Method for realizing KVM function based on IPMI, BMC and storage 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