Nothing Special   »   [go: up one dir, main page]

CN110007865A - Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing - Google Patents

Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110007865A
CN110007865A CN201910290100.5A CN201910290100A CN110007865A CN 110007865 A CN110007865 A CN 110007865A CN 201910290100 A CN201910290100 A CN 201910290100A CN 110007865 A CN110007865 A CN 110007865A
Authority
CN
China
Prior art keywords
hardware
equipment
hardware data
cpld
machine
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.)
Withdrawn
Application number
CN201910290100.5A
Other languages
Chinese (zh)
Inventor
钱海军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910290100.5A priority Critical patent/CN110007865A/en
Publication of CN110007865A publication Critical patent/CN110007865A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of hardware data acquisition methods, this method comprises: CPLD, which receives the hardware data that PC machine is sent, reads instruction;Wherein, CPLD is located in the mainboard of storage system;Hardware data read requests are parsed, determine target hardware equipment from the hardware device being connected by iic bus with CPLD using parsing result;It establishes and communicates to connect with target hardware equipment, and send hardware data to target hardware equipment and read instruction;The hardware data that target hardware equipment returns is received, and hardware data is sent to PC machine.This method by the controller of storage system without dismantling, adding additional connector, hardware data can be obtained, therefore during being applied to test storage system, debug, detect or monitor by the method for quick obtaining hardware data, treatment effeciency can be promoted.The invention also discloses a kind of hardware data acquisition device, system and readable storage medium storing program for executing, have corresponding technical effect.

Description

Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing
Technical field
The present invention relates to technical field of memory, more particularly to a kind of hardware data acquisition methods, device, equipment, system And readable storage medium storing program for executing.
Background technique
In storage system exploitation design process, diversified low speed bus agreement, such as UART, IIC can be encountered.
Under normal circumstances, developer is to turn UART line by USB, to connect PC machine and storage system, so as to PC machine It can get the hardware data in storage system.But iic bus has been used there are also many places in storage system, if being intended at this time IIC equipment is accessed, the hardware data of IIC equipment is such as obtained, it is necessary to the controller (such as storage mainboard) of storage system is dismantled, Then by special connector by IIC equipment (hardware device being connected using iic bus with storage system, as BBC, BMC, PCH) it is connected with PC and is debugged.In this case, due to being related to dismounting the controller of storage system, dismounting is time-consuming;Separately Also additionally be added to special connector outside, manual plug route needed when needing to convert IIC equipment, obtain hardware data when Between take a long time, further influence test speed.
In conclusion how hardware data in quick obtaining storage system the problems such as, be current those skilled in the art Technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide a kind of hardware data acquisition methods, device, system and readable storage medium storing program for executing, with when PC Machine can rapidly obtain the hardware data of IIC equipment in storage system, further increase test or debugging effect to storage system Rate.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of hardware data acquisition methods, comprising:
CPLD receives the hardware data that PC machine is sent and reads instruction;Wherein, the CPLD is located in the mainboard of storage system;
The hardware data read requests are parsed, using parsing result from pass through iic bus and the CPLD phase Target hardware equipment is determined in the hardware device of connection;
It establishes and communicates to connect with the target hardware equipment, and send the hardware data to the target hardware equipment and read Instruction fetch;
The hardware data that the target hardware equipment returns is received, and the hardware data is sent to the PC machine.
Preferably, the hardware data reading instruction for receiving PC machine and sending, comprising:
It receives the PC machine and reads instruction using the hardware data that UART is sent.
Preferably, Xiang Suoshu target hardware equipment sends data read command, comprising:
The hardware data is read into instruction by IIC agreement and is transmitted to the target hardware equipment.
Preferably, the hardware data is sent to the PC machine, comprising:
The hardware data is transferred to the PC machine by serial data transport protocol.
Preferably, further includes:
Parameter setting request is received, and determines parameter value and hardware objects in the parameter setting request;
The parameter value is sent to the hardware objects.
Preferably, when the parsing result be device id when, using parsing result from pass through iic bus and the CPLD phase Target hardware equipment is determined in the hardware device of connection, comprising:
From the hardware device being connected by iic bus with the CPLD, find out consistent hard with the device id Part equipment is as target hardware equipment.
A kind of hardware data acquisition device is applied in CPLD, comprising:
Command reception module, the hardware data for receiving PC machine transmission read instruction;Wherein, the CPLD is located at storage In the mainboard of system;
Command analysis module, for being parsed to the hardware data read requests, using parsing result from passing through IIC Target hardware equipment is determined in the hardware device that bus is connected with the CPLD;
Forwarding module is instructed, is communicated to connect for being established with the target hardware equipment, and to the target hardware equipment It sends the hardware data and reads instruction;
Hardware data feedback module, the hardware data returned for receiving the target hardware equipment, and by the hardware Data are sent to the PC machine.
Preferably, described instruction receiving module refers to specifically for receiving the hardware data reading that PC machine is sent using UART It enables.
A kind of hardware data acquisition system, comprising:
PC machine with UART and storage equipment, the storage equipment have CPLD and IIC equipment, wherein the CPLD and The IIC is connected, and the PC machine is connected by UART with the CPLD;The PC is sent out by the UART to the CPLD Hardware data is sent to read instruction;The CPLD parses the hardware data read requests, using parsing result from described Target hardware equipment is determined in CCL hardware device, is established and is communicated to connect with the target hardware equipment, and is hard to the target Part equipment sends the hardware data and reads instruction;The target hardware equipment sends hardware data to the CPLD;It is described CPLD receives the hardware data that the target hardware equipment returns, and the hardware data is sent to the PC machine.
Using method provided by the embodiment of the present invention, CPLD receives the hardware data that PC machine is sent and reads instruction;Wherein, CPLD is located in the mainboard of storage system;Hardware data read requests are parsed, using parsing result from passing through iic bus Target hardware equipment is determined in the hardware device being connected with CPLD;It establishes and communicates to connect with target hardware equipment, and to mesh It marks hardware device and sends hardware data reading instruction;The hardware data that target hardware equipment returns is received, and hardware data is sent out Give PC machine.
CPLD would generally be present in the mainboard of storage system as the control chip of storage system, be by CPLD and storage IIC equipment (hardware device being connected by iic bus with CPLD) in system.In this way, PC machine can be with storage system CPLD is connected, so that the IIC equipment for establishing PC machine storage system has communication condition, and realizes the hardware for obtaining IIC equipment Data.Specifically, i.e. CPLD, which receives the hardware data that PC machine is sent, reads instruction, instruction is read to the hardware data and is solved Analysis, determines target hardware equipment.Data read command is sent to target hardware equipment, receives what target hardware equipment returned Hardware data is fed back to PC machine by hardware data, carries out including test, tune to storage system so that PC machine is based on the hardware data Any one of examination, detection and monitoring operation.Due to the hardware data method provided in an embodiment of the present invention for obtaining IIC equipment, nothing The controller of storage system need to be dismantled, without additional connector is added, hardware data can be obtained, therefore working as will be quick The method for obtaining hardware data is applied to during being tested storage system, debugged, detected or being monitored, and can promote processing Efficiency.
Correspondingly, the embodiment of the invention also provides hardware data corresponding with above-mentioned hardware data acquisition methods acquisitions Device, system and readable storage medium storing program for executing, have above-mentioned technique effect, and details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of hardware data acquisition methods in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of hardware data acquisition device in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of hardware data acquisition system in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of flow chart of hardware data acquisition methods in the embodiment of the present invention, this method includes Following steps:
S101, CPLD receive the hardware data that PC machine is sent and read instruction.
Wherein, CPLD is located in the mainboard of storage system.
When any one of being tested storage system, debug, detect and monitor operation, in particular for obtaining storage system It, can be by operating PC machine when the hardware data of the IIC equipment in system, the CPLD into storage system sends hardware data reading and refers to It enables.Specifically, PC machine can pass through UART (the Universal Asynchronous Receiver/ inside PC machine Transmitter, universal asynchronous receiving-transmitting transmitter) to the CPLD of storage system transmission hardware data reading instruction, i.e., CPLD connects It receives PC machine and reads instruction using the hardware data that UART is sent.Wherein, UART is a part of PC machine hardware, by data by serial Make transmission conversion between communication and parallel communications, usually as the interface of connection external equipment.The hardware data reads instruction and can refer to Determine the reading object and Hardware aspects of hardware data, carries setting for IIC equipment in instruction for example, can read in hardware data Standby ID and hardware data type (such as temperature, voltage).
After the hardware data that CPLD receives PC machine transmission reads instruction, the operation of step S102 can be executed.
S102, hardware data read requests are parsed, is connected from by iic bus with CPLD using parsing result Hardware device in determine target hardware equipment.
It should be noted that in embodiments of the present invention, the CPLD in storage system can be with the IIC equipment in storage system It is connected.Since IIC equipment is bus-type connection equipment, and CPLD is mainly by programmable logic macroelement (MC, Macro Cell) the programmable interconnection matrix unit around center forms.Wherein MC structure is more complex, and has complicated I/O unit mutual Link structure, specific circuit structure can be generated as needed by user, completes certain function.It is fixed due to being used inside CPLD The metal wire of length carries out the interconnection of each logical block, so the logic circuit of design has time predictability, avoids segmentation The shortcomings that formula interconnection structure timing is not exclusively predicted.Therefore, CPLD can be interconnected simultaneously with multiple IIC equipment, can also be passed through certainly Adjusting parameter realizes the switching of IIC equipment.It is communicated to connect that is, CPLD can be realized with the IIC in storage system, and CPLD would generally as storage control chip exist on the mainboard of storage system, it is therefore not necessary to additionally add equipment.
After CPLD receives hardware data read requests, hardware data read requests can be parsed, that is, utilizing should The reading object that hardware data read requests carry, determines target hardware equipment.
Specifically, from the hardware device being connected by iic bus with CPLD, being looked into when parsing result is device id It finds out with the consistent hardware device of device id as target hardware equipment.It can be by parsing the carrying of hardware data read requests Device id determines target hardware equipment from multiple IIC equipment of CPLD connection by the device id.Wherein, target hardware is set Standby can be one or more, and specific quantity can be depending on the hardware data acquisition demand in practical application.For example, when needing When obtaining the voltage value of multiple IIC equipment of storage system, the hardware data acquisition request that PC is sent at this time can carry multiple The device id of IIC equipment, in this case, the target hardware equipment determined just are multiple.
S103, communication connection is established with target hardware equipment, and send hardware data to target hardware equipment and read instruction.
After determining target hardware equipment, it can establish and communicate to connect with target hardware equipment, that is, activate CPLD and be somebody's turn to do Connection line between target hardware equipment, makes it have communication capacity.Specifically, on how to activate CPLD and target hardware Communication link between equipment, can be referring specifically to the working principle and conventional application method of iic bus, and details are not described herein.
After establishing the communication connection with target hardware equipment, the communication connection can be utilized, by target hardware data It reads instruction and is sent to the target hardware equipment.Preferably, when the hardware data that PC machine is sent reads instruction as multiple IIC When the hardware data of equipment, then corresponding hardware data can be sent respectively to each target hardware equipment and reads instruction.For example, PC When the hardware data of confidential acquisition is the temperature of BMC and BBU, then temperature acquisition instruction can be sent to BMC and BBU respectively.
It preferably, can be by IIC agreement by hardware data when sending hardware data acquisition instruction to target hardware equipment It reads instruction and is transmitted to target hardware equipment.In this way, can directly be followed using it without changing to target hardware equipment work IIC agreement.
The data that CPLD carrys out UART transmission are placed in memory, such as clock register (clockbuffer), flash memory (Flash Memory).The data are transmitted to IIC equipment by IIC agreement again.Similarly, the IIC data transmitted can be led to It crosses IIC and is transferred to PC machine.
S104, the hardware data that target hardware equipment returns is received, and hardware data is sent to PC machine.
When target hardware equipment receives hardware data reading instruction, hardware data correspondingly is obtained first, then will The hardware data is sent to CPLD.In this way, CPLD can be obtained by way of receiving the hardware data that target hardware equipment is sent PC machine is sent to hardware data, and by hardware data.Preferably, when sending hardware data to PC machine, serial number can be passed through Hardware data is transferred to PC machine according to transport protocol.Specifically, can be communicated by its UART with CPLD, again at PC machine end Due to making transmission conversion between the communication of UART serializable and parallel communications, directly can pass through serial data transport protocol will be hard According to being sent to UART, UART obtains hardware data and then is translated into parallel data passing to PC machine number of packages.PC machine obtains After hardware data, it the operation such as can be tested storage system, debug, detect using the hardware data.
Using method provided by the embodiment of the present invention, CPLD receives the hardware data that PC machine is sent and reads instruction;Wherein, CPLD is located in the mainboard of storage system;Hardware data read requests are parsed, using parsing result from passing through iic bus Target hardware equipment is determined in the hardware device being connected with CPLD;It establishes and communicates to connect with target hardware equipment, and to mesh It marks hardware device and sends hardware data reading instruction;The hardware data that target hardware equipment returns is received, and hardware data is sent out Give PC machine.
CPLD would generally be present in the mainboard of storage system as the control chip of storage system, be by CPLD and storage IIC equipment (hardware device being connected by iic bus with CPLD) in system.In this way, PC machine can be with storage system CPLD is connected, so that the IIC equipment for establishing PC machine storage system has communication condition, and realizes the hardware for obtaining IIC equipment Data.Specifically, i.e. CPLD, which receives the hardware data that PC machine is sent, reads instruction, instruction is read to the hardware data and is solved Analysis, determines target hardware equipment.Data read command is sent to target hardware equipment, receives what target hardware equipment returned Hardware data is fed back to PC machine by hardware data, carries out including test, tune to storage system so that PC machine is based on the hardware data Any one of examination, detection and monitoring operation.Due to the hardware data method provided in an embodiment of the present invention for obtaining IIC equipment, nothing The controller of storage system need to be dismantled, without additional connector is added, hardware data can be obtained, therefore in the system In to storage equipment tested, debugged, detected or monitored during, can promote treatment effeciency.
It should be noted that based on the above embodiment, the embodiment of the invention also provides be correspondingly improved scheme.Excellent It can mutually be referred between step or corresponding steps same with the above-mentioned embodiment involved in choosing/improvement embodiment, it is corresponding beneficial Effect can also be cross-referenced, no longer repeats one by one in preferred/improvement embodiment of this paper.
Preferably, hardware data acquisition methods provided by the embodiment of the present invention can be not necessarily to Additional connectors, can obtain The hardware data of IIC equipment, correspondingly, it is contemplated that usually storage system is carried out needing to set IIC in test or debugging process It is standby to carry out parameter testing.Based on this, the embodiment of the present invention also proposes following parameter setting mode.Parameter setting procedure, comprising:
Step 1: receiving parameter setting request, and determine parameter value and hardware objects in parameter setting request;
Step 2: parameter value is sent to hardware objects.
For ease of description, above-mentioned two step is combined below and is illustrated.
In test or debugging process, when needing to be arranged the parameter of IIC equipment, such as need to be arranged in system herein When the rotation speed of the fan of BBU, parameter setting request can will be sent to CPLD, will be referred in parameter setting request by operating PC machine Determine parameter value and hardware objects.After CPLD receives parameter setting request, parameter setting request is parsed, really Make the parameter value and hardware objects in parameter setting request.Then parameter value is sent to the hardware objects, so as to the hardware Object is based on relevant parameter being adjusted to the parameter value.Certainly, instruction can also be arranged in parameter value and be sent to hardware objects, to adjust The parameter of whole hardware objects.
Embodiment two:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of hardware data acquisition device, the dresses Setting can be applied in CPLD, and hardware data acquisition device described below can be mutual with above-described hardware data acquisition methods To should refer to.
Shown in Figure 2, which comprises the following modules:
Command reception module 101, the hardware data for receiving PC machine transmission read instruction;Wherein, CPLD is located at storage In the mainboard of system;
Command analysis module 102, for being parsed to hardware data read requests, using parsing result from passing through IIC Target hardware equipment is determined in the hardware device that bus is connected with CPLD;
Forwarding module 103 is instructed, is communicated to connect for being established with target hardware equipment, and is hard to target hardware equipment transmission Part data read command;
Hardware data feedback module 104 for receiving the hardware data of target hardware equipment return, and hardware data is sent out Give PC machine.
Using device provided by the embodiment of the present invention, CPLD receives the hardware data that PC machine is sent and reads instruction;Wherein, CPLD is located in the mainboard of storage system;Hardware data read requests are parsed, using parsing result from passing through iic bus Target hardware equipment is determined in the hardware device being connected with CPLD;It establishes and communicates to connect with target hardware equipment, and to mesh It marks hardware device and sends hardware data reading instruction;The hardware data that target hardware equipment returns is received, and hardware data is sent out Give PC machine.
CPLD would generally be present in the mainboard of storage system as the control chip of storage system, be by CPLD and storage IIC equipment (hardware device being connected by iic bus with CPLD) in system.In this way, PC machine can be with storage system CPLD is connected, so that the IIC equipment for establishing PC machine storage system has communication condition, and realizes the hardware for obtaining IIC equipment Data.Specifically, i.e. CPLD, which receives the hardware data that PC machine is sent, reads instruction, instruction is read to the hardware data and is solved Analysis, determines target hardware equipment.Data read command is sent to target hardware equipment, receives what target hardware equipment returned Hardware data is fed back to PC machine by hardware data, carries out including test, tune to storage system so that PC machine is based on the hardware data Any one of examination, detection and monitoring operation.Due to the hardware data device provided in an embodiment of the present invention for obtaining IIC equipment, nothing The controller of storage system need to be dismantled, without additional connector is added, hardware data can be obtained, therefore working as will be quick The device for obtaining hardware data is applied to during being tested storage system, debugged, detected or being monitored, and can promote processing Efficiency.
In a kind of specific embodiment of the invention, command reception module 101 is specifically used for reception PC machine and utilizes UART The hardware data of transmission reads instruction.
In a kind of specific embodiment of the invention, forwarding module 103 is instructed, being specifically used for will be hard by IIC agreement Part data read command is transmitted to target hardware equipment.
In a kind of specific embodiment of the invention, hardware data feedback module 104, specifically for passing through serial data Hardware data is transferred to PC machine by transport protocol.
In a kind of specific embodiment of the invention, further includes:
Hardware parameter setup module for receiving parameter setting request, and determines the parameter value in parameter setting request And hardware objects;Parameter value is sent to hardware objects.
In a kind of specific embodiment of the invention, command analysis module 102 is specifically used for when parsing result being equipment When ID, from the hardware device being connected by iic bus with CPLD, find out with the consistent hardware device of device id as mesh Mark hardware device.
Embodiment three:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of hardware datas to obtain system, hereafter A kind of hardware data of description, which obtains system, can correspond to each other reference with a kind of above-described hardware data acquisition methods.
It should be noted that for ease of description, indicating storage system as described above using storage equipment, and herein In storage equipment and storage system can equivalent replacement.
Referring to FIG. 3, structural schematic diagram of the Fig. 3 for hardware data acquisition system a kind of in the embodiment of the present invention, the system, Include:
There are CPLD (301) and IIC to set for PC machine (200) and storage equipment (300) with (201) UART, storage equipment Standby (302-30n as shown in the figure), wherein CPLD is connected with IIC, and PC machine is connected by UART with CPLD;PC passes through UART Hardware data, which is sent, to CPLD reads instruction;CPLD parses hardware data read requests, hard from CCL using parsing result Target hardware equipment (303) are determined in part equipment, establishes and communicates to connect with target hardware equipment, and are sent out to target hardware equipment Hardware data is sent to read instruction;Target hardware equipment sends hardware data to CPLD;CPLD receives what target hardware equipment returned Hardware data, and hardware data is sent to PC machine.
In system as shown in Figure 3, the process that PC machine obtains the hardware data of IIC equipment in storage equipment is as follows:
PC machine is mainly used for debugging host use.PC machine realizes the switching of IIC by UART transmitting order to lower levels.For example, choosing It selects and accesses that IIC device all the way, and read BBU electricity, temperature, voltage, rotation speed of the fan etc. in storage system by order Parameter.
CPLD is mainly the order for receiving PC machine and sending, and order is parsed, according to the connection pair of command analysis structure The IIC device answered.And relevant IIC switching action is carried out according to the order of UART transmission, it realizes through UART to IIC's Handoff functionality.The data that UART transmission comes are placed in clock buffer by CPLD.Data are transmitted to by IIC agreement again IIC device.The IIC data transmitted equally are transferred to PC machine by IIC.It had both been realized between UART and IIC so mutually Connection.
Device herein refers to the equipment on storage equipment mainboard, such as PCH, BMC, PM8072, realized by IIC and The interaction of data is carried out between control.
Using system provided by the embodiment of the present invention, PC machine and storage equipment with UART, storage equipment have CPLD and IIC equipment, wherein CPLD is connected with IIC, and PC machine is connected by UART with CPLD.By CPLD, can incite somebody to action UART and IIC equipment, which are established, to be communicated to connect, and is so just realized PC machine and is stored the communication connection of equipment.In this system, CPLD would generally be present in the mainboard of storage equipment as the control chip of storage equipment, will be in CPLD and storage equipment IIC equipment (hardware device being connected by iic bus with CPLD).In this way, PC machine can be with the CPLD phase of storage equipment Connection so that the IIC equipment for establishing PC machine storage equipment has communication condition, and realizes the hardware data for obtaining IIC equipment.Tool Body, i.e. CPLD receives the hardware data that PC machine is sent and reads instruction, reads instruction to the hardware data and parses, determines Target hardware equipment.Data read command is sent to target hardware equipment, receives the hardware data that target hardware equipment returns, Hardware data is fed back into PC machine, so as to PC machine be based on the hardware data to storage equipment carry out include test, debugging, detect and Any one of monitoring operation.Due to the hardware data system provided in an embodiment of the present invention for obtaining IIC equipment, set without that will store Standby controller is dismantled, and without additional connector is added, can obtain hardware data, therefore work as in the system to storage Equipment includes any one of test, debugging, detection and monitoring operation, can promote treatment effeciency.
Example IV:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described hardware data acquisition methods.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor The step of hardware data acquisition methods of above method embodiment are realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk The readable storage medium storing program for executing of code.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of hardware data acquisition methods characterized by comprising
CPLD receives the hardware data that PC machine is sent and reads instruction;Wherein, the CPLD is located in the mainboard of storage system;
The hardware data read requests are parsed, are connected from by iic bus with the CPLD using parsing result Hardware device in determine target hardware equipment;
It establishes and communicates to connect with the target hardware equipment, and send the hardware data reading to the target hardware equipment and refer to It enables;
The hardware data that the target hardware equipment returns is received, and the hardware data is sent to the PC machine.
2. hardware data acquisition methods according to claim 1, which is characterized in that the hardware number for receiving PC machine and sending It is instructed according to reading, comprising:
It receives the PC machine and reads instruction using the hardware data that UART is sent.
3. hardware data acquisition methods according to claim 1, which is characterized in that Xiang Suoshu target hardware equipment sends number It is instructed according to reading, comprising:
The hardware data is read into instruction by IIC agreement and is transmitted to the target hardware equipment.
4. hardware data acquisition methods according to claim 1, which is characterized in that be sent to the hardware data described PC machine, comprising:
The hardware data is transferred to the PC machine by serial data transport protocol.
5. hardware data acquisition methods according to claim 1, which is characterized in that further include:
Parameter setting request is received, and determines parameter value and hardware objects in the parameter setting request;
The parameter value is sent to the hardware objects.
6. hardware data acquisition methods according to any one of claims 1 to 4, which is characterized in that when the parsing result When for device id, determine that target is hard from the hardware device being connected by iic bus with the CPLD using parsing result Part equipment, comprising:
From the hardware device being connected by iic bus with the CPLD, finds out and set with the consistent hardware of the device id It is standby to be used as target hardware equipment.
7. a kind of hardware data acquisition device, which is characterized in that be applied in CPLD, comprising:
Command reception module, the hardware data for receiving PC machine transmission read instruction;Wherein, the CPLD is located at storage system Mainboard in;
Command analysis module, for being parsed to the hardware data read requests, using parsing result from passing through iic bus Target hardware equipment is determined in the hardware device being connected with the CPLD;
Forwarding module is instructed, is communicated to connect for being established with the target hardware equipment, and is sent to the target hardware equipment The hardware data reads instruction;
Hardware data feedback module, the hardware data returned for receiving the target hardware equipment, and by the hardware data It is sent to the PC machine.
8. hardware data acquisition device according to claim 7, which is characterized in that described instruction receiving module, it is specific to use Instruction is read using the hardware data that UART is sent in receiving PC machine.
9. a kind of hardware data obtains system characterized by comprising
PC machine with UART and storage equipment, the storage equipment with CPLD and IIC equipment, wherein the CPLD with it is described IIC is connected, and the PC machine is connected by UART with the CPLD;The PC is sent by the UART to the CPLD hard Part data read command;The CPLD parses the hardware data read requests, hard from the CCL using parsing result Target hardware equipment is determined in part equipment, is established and is communicated to connect with the target hardware equipment, and sets to the target hardware Preparation send the hardware data to read instruction;The target hardware equipment sends hardware data to the CPLD;The CPLD connects The hardware data that the target hardware equipment returns is received, and the hardware data is sent to the PC machine.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 6 the step of hardware data acquisition methods.
CN201910290100.5A 2019-04-11 2019-04-11 Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing Withdrawn CN110007865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290100.5A CN110007865A (en) 2019-04-11 2019-04-11 Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290100.5A CN110007865A (en) 2019-04-11 2019-04-11 Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110007865A true CN110007865A (en) 2019-07-12

Family

ID=67171142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290100.5A Withdrawn CN110007865A (en) 2019-04-11 2019-04-11 Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110007865A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204508A (en) * 2021-04-25 2021-08-03 山东英信计算机技术有限公司 Complex programmable logic device scanning method and device
CN113204512A (en) * 2021-05-08 2021-08-03 山东英信计算机技术有限公司 Data transmission method, system, medium and equipment based on UART bus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204508A (en) * 2021-04-25 2021-08-03 山东英信计算机技术有限公司 Complex programmable logic device scanning method and device
CN113204512A (en) * 2021-05-08 2021-08-03 山东英信计算机技术有限公司 Data transmission method, system, medium and equipment based on UART bus
CN113204512B (en) * 2021-05-08 2023-03-24 山东英信计算机技术有限公司 Data transmission method, system, medium and equipment based on UART bus

Similar Documents

Publication Publication Date Title
US9639447B2 (en) Trace data export to remote memory using remotely generated reads
US9684583B2 (en) Trace data export to remote memory using memory mapped write transactions
CN109240966A (en) A kind of accelerator card based on CPLD, collecting method and device
CN101882108A (en) Embedded software automatic test system and method thereof
CN101840368A (en) JTAG (Joint Test Action Group) real-time on-chip debug method and system of multicore processor
CN115550291B (en) Switch reset system and method, storage medium, and electronic device
CN105183575A (en) Processor fault diagnosis method, device and system
CN108984354A (en) A kind of server chips debug circuit, adjustment method and server
CN110007865A (en) Hardware data acquisition methods, device, equipment, system and readable storage medium storing program for executing
CN114356671A (en) Board card debugging device, system and method
CN110719147A (en) High-reliability dual-computer hot standby data acquisition method based on LoRa
CN103532728B (en) A kind of method and device resetted to failure dsp chip
CN115454881B (en) Debugging system and debugging method of RISC-V architecture
CN116137603B (en) Link fault detection method and device, storage medium and electronic device
CN117312067A (en) Network card debugging system, method, equipment and storage medium
CN113849355B (en) I2C rate self-adaptive adjustment method, system, terminal and storage medium
CN108021476B (en) Test method and device of interconnection interface and computing equipment
CN111490912A (en) FPGA-based multichannel signal transmission reliability detection system and method
Hossain et al. SPI-SNOOPER: A hardware-software approach for transparent network monitoring in wireless sensor networks
CN113489607B (en) Service processing system, acquisition equipment and convergence equipment
CN103200248B (en) Based on the communication means of the power param eter supervision of embedded system
CN111526067B (en) Network shunt and communication method of network shunt
US20070294590A1 (en) Compression scheme to reduce the bandwidth requirements for continuous trace stream encoding of system performance
CN113655423A (en) High real-time magnetic resonance spectrometer system and management method
CN210804400U (en) Communication management machine and system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190712