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

CN104765664A - PCI (Peripheral Component Interface) equipment detection system and method - Google Patents

PCI (Peripheral Component Interface) equipment detection system and method Download PDF

Info

Publication number
CN104765664A
CN104765664A CN201410008903.4A CN201410008903A CN104765664A CN 104765664 A CN104765664 A CN 104765664A CN 201410008903 A CN201410008903 A CN 201410008903A CN 104765664 A CN104765664 A CN 104765664A
Authority
CN
China
Prior art keywords
configuration file
pci
standard configuration
pci equipment
electronic installation
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.)
Pending
Application number
CN201410008903.4A
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201410008903.4A priority Critical patent/CN104765664A/en
Publication of CN104765664A publication Critical patent/CN104765664A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a PCI (Peripheral Component Interface) equipment detection system and method. The method comprises the following steps: establishing a standard configuration file of PCI equipment connected under standard configuration for an electronic device in a preset format; acquiring equipment information of all PCI equipment currently connected to a PCI bus of the electronic device; converting the acquired equipment information into a corresponding to-be-detected configuration file according to the preset format of the standard configuration file; comparing the to-be-detected configuration file with the standard configuration file to determine a part different from the to-be-detected configuration file in the standard configuration file; outputting detailed information of the PCI equipment currently lost by the electronic device according to the part different from the to-be-detected configuration file in the standard configuration file. By using the system and the method, the currently lost PCI equipment of the electronic device can be conveniently, quickly and accurately determined.

Description

PCI device detection system and method
Technical field
The present invention relates to a kind of PCI device detection system and method.
Background technology
Equipment in current electronic installation (such as, server and storer) gets more and more, and hardware configuration becomes increasingly complex.Before carrying out more deep apparatus function test to them, we are necessary whether first test all devices successfully installing by the such of anticipation.All equipment nearly all carry in pci bus, therefore to the detection of these equipment, namely for the detection of PCI equipment.At present, the test carried out has multiple, as entirety travels through out all equipment, draws the sum of equipment, contrasts with the sum of standard, or draws the last simple comparison standard configuration table of data by traversal equipment.But, once certain or some equipment make mistakes cause system normally to start after can not normally identify, namely lost, in system, the Bus number of some equipment PCI also can correspondingly change, the result drawn like this is the report equipment of makeing mistakes or losing from just, accurately can not draw equipment and the particular location of all loss.
Summary of the invention
In view of above content, be necessary to provide a kind of PCI device detection system and method, the feature utilizing PCI device bus to distribute sets up specific configuration file, to detect the PCI equipment of all loss fast and accurately.
Described PCI equipment detection method, be applied on electronic installation, the method comprises: foundation step: the standard configuration file of the PCI equipment connected for the configuration of electronic installation Criterion is lower with the form preset; Obtaining step: obtain the facility information that electronic installation is currently connected to all PCI equipment of pci bus; Switch process: according to the preset format of standard configuration file, is converted to corresponding configuration file to be measured by the facility information of above-mentioned acquisition; Comparing module: above-mentioned configuration file to be measured and standard configuration file are compared, determines parts different from configuration file to be measured in described standard configuration file; Export step: according to parts different from configuration file to be measured in above-mentioned standard configuration file, export the details of the PCI equipment of the current loss of electronic installation.
Described PCI device detection system, is applied on electronic installation, and this system comprises: creation module, for the standard configuration file of the form preset for the lower PCI equipment connected of electronic installation Criterion configuration; Acquisition module, is currently connected to the facility information of all PCI equipment of pci bus for obtaining electronic installation; Modular converter, for the preset format according to standard configuration file, is converted to corresponding configuration file to be measured by the facility information of above-mentioned acquisition; Comparing module, for above-mentioned configuration file to be measured and standard configuration file being compared, determines parts different from configuration file to be measured in described standard configuration file; Output module, for according to parts different from configuration file to be measured in above-mentioned standard configuration file, exports the details of the PCI equipment of the current loss of electronic installation.
Compared to prior art, the feature that PCI device detection system of the present invention and method utilize PCI device bus to distribute, set up a specific standard configuration file in advance, when carrying out equipment Inspection to electronic installation of the same type, can according to the comparison result of the configuration file to be measured of current acquisition and standard configuration file, accurately draw the more detailed information of PCI equipment of all loss, realize detecting the PCI equipment of all loss fast and accurately.
Accompanying drawing explanation
Fig. 1 is the configuration diagram of PCI device detection system of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of PCI device detection system of the present invention preferred embodiment.
Fig. 3 is the process flow diagram of PCI equipment detection method of the present invention preferred embodiment.
Main element symbol description
Electronic installation 1
Memory storage 10
Detection system 20
Processor 30
PCI equipment 40
Display device 50
Creation module 200
Acquisition module 201
Modular converter 202
Comparing module 203
Output module 204
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be PCI(Peripheral Component Interconnect of the present invention, Peripheral Component Interconnect standard) configuration diagram of device detection system preferred embodiment.Described PCI device detection system 20(is hereinafter referred to as " detection system 20 ") run in electronic installation 1.Described electronic installation 1 can be that the computing machine, server etc. comprising memory storage 10 and processor 30 has data and store and the equipment of processing capacity.
The processor 30 of described electronic installation 1 is connected with multiple PCI equipment 40 by pci bus (not shown).Described PCI equipment can be video card, sound card, network interface card etc.In addition, described electronic installation 1 can also comprise or an external display device 50, for the visualized data etc. of display electronics assemblies 1.
Described detection system 20 is for converting the configuration file to be measured of preset format to by the information of the current PCI equipment 40 be connected with processor 30, by this configuration file to be measured and the standard configuration file preset are compared, thus the PCI equipment 40 of electronic installation 1 is detected, and test result is shown by display device 50.
As shown in Figure 2, be the functional block diagram of PCI device detection system of the present invention preferred embodiment.Described PCI device detection system 20 comprises creation module 200, acquisition module 201, modular converter 202, comparing module 203 and output module 204.Module alleged by the present invention has been the program segment of a specific function, is more suitable for describing software implementation in the chips, therefore all describes with module in software description below the present invention than program.
As shown in Figure 3, be the process flow diagram of PCI equipment detection method of the present invention preferred embodiment.Should understand, PCI equipment detection method of the present invention is not limited to step in process flow diagram shown in Fig. 3 and order.According to different embodiments, the step in process flow diagram shown in Fig. 3 can increase, remove or change order.
Step S100, the standard configuration file of PCI equipment of described creation module 200 in advance for connecting under the configuration of electronic installation 1 Criterion in memory storage 10.Described standard configuration can refer to same model or batch electronic installation 1 need to install the configuration of all PCI equipment 40 in advance.Described standard configuration file adopts the form preset to create, and is stored in the position of presetting of memory storage 10.
In this preferred embodiment, the facility information of all PCI equipment 40 that the electronic installation 1 that first described creation module 200 utilizes default order (such as general utility tool order lspci) to travel through to obtain standard configuration connects, such as, some facility informations are: 09:00.0 " PCI bridge " " PLX Technology, Inc. " " Device 8624 " – rca ..., the said equipment information comprises the Bus number of this equipment, device number, function number, trade name, the information such as device name, described creation module 200 removes the Bus number of the said equipment information, retain out of Memory, obtain the key message of this PCI equipment, such as: " PCI bridge " " PLX Technology, Inc. " " Device 8624 "-rca ..., .The key message of the PCI equipment that each line item in described standard configuration file is corresponding.Wherein, the order of the key message of the PCI equipment in described standard configuration file is identical with the sequencing that all devices is traversed.
Step S101, when needing to detect the PCI equipment 40 of electronic installation 1, described acquisition module 201 obtains the facility information being currently connected to all PCI equipment of pci bus.Described acquisition module 201 can utilize default order traversal to obtain the facility information of current the connected PCI equipment of electronic installation 1 under test pattern equally.
Step S102, the facility information of above-mentioned acquisition is converted to corresponding configuration file to be measured by described modular converter 202.Described modular converter 202 according to the preset format of standard configuration file, will remove the Bus number of each PCI equally in each facility information of above-mentioned acquisition, obtain the key message corresponding to this PCI equipment, to obtain corresponding configuration file to be measured.
Step S103, above-mentioned configuration file to be measured and standard configuration file are compared by described comparing module 203, and whether the configuration file to be measured described in judgement is consistent with standard configuration file.Described comparing module 203 utilizes the command tools comparison process of diff command tools or Similarity algorithm, judges that whether configuration file to be measured is identical with the information in standard configuration file.When judging that configuration file to be measured is consistent with standard configuration file, enter step S104; When judging configuration file to be measured and standard configuration file is inconsistent, enter step S105.
Step S104, described output module 204 shows the information of testing and passing through on the display device 50.Described output module 204 also can export tests the voice prompt that passes through to point out user, and flow process terminates.
Step S105, described comparing module 203, according to above-mentioned comparison result, determines parts different from configuration file to be measured in described standard configuration file.The feature of distributing according to PCI device bus and experimental data are learnt, as long as each PCI equipment 40 is fixed at the physical location of pci bus, this each PCI equipment is traversed and the order of distribution bus is exactly fixing.After some device losses, only have Bus number to change, wherein the functions of the equipments of equipment are number constant, and the relative position between equipment is constant.Therefore, described comparing module 203 just can obtain parts different from configuration file to be measured in standard configuration file exactly.
Step S106, described output module 204, according to parts different from configuration file to be measured in above-mentioned standard configuration file, exports the details of the PCI equipment 40 of the current loss of electronic installation 1.Described output module 204 can extract successively in standard configuration file with the device number in the key message of the PCI equipment of configuration file different piece to be measured, function number, trade name, device name, and to be shown in display device 50.
Finally it should be noted that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a PCI equipment detection method, be applied on electronic installation, it is characterized in that, the method comprises:
Foundation step: the standard configuration file of the PCI equipment connected for the configuration of electronic installation Criterion is lower with the form preset;
Obtaining step: obtain the facility information that electronic installation is currently connected to all PCI equipment of pci bus;
Switch process: according to the preset format of standard configuration file, is converted to corresponding configuration file to be measured by the facility information of above-mentioned acquisition;
Comparing module: above-mentioned configuration file to be measured and standard configuration file are compared, determines parts different from configuration file to be measured in described standard configuration file; And
Export step: according to parts different from configuration file to be measured in above-mentioned standard configuration file, export the details of the PCI equipment of the current loss of electronic installation.
2. PCI equipment detection method as claimed in claim 1, it is characterized in that, the method also comprises, and when described configuration file to be measured is consistent with standard configuration file, exports the prompting tested and pass through.
3. PCI equipment detection method as claimed in claim 1, it is characterized in that, installed the electronic installation of all PCI equipment in advance by traversal in described foundation step, obtain the facility information of all PCI equipment that electronic installation under standard configuration connects, and the key message therefrom extracting each PCI equipment is to create standard configuration file, wherein said key message refers to other facility informations removing Bus number.
4. PCI equipment detection method as claimed in claim 3, it is characterized in that, the key message of the PCI equipment that each line item is corresponding in described standard configuration file, and the order be arranged in standard configuration file of the key message of each PCI equipment is identical with the sequencing that this each PCI equipment is traversed.
5. PCI equipment detection method as claimed in claim 1, it is characterized in that, described output step by extract in standard configuration file with the device number in the key message of the PCI equipment of configuration file different piece to be measured, function number, trade name, device name, and be shown in the display device of electronic installation, to export the details of the PCI equipment of the current loss of electronic installation.
6. a PCI device detection system, runs on electronic installation, it is characterized in that, this system comprises:
Creation module, for the standard configuration file of the form preset for the lower PCI equipment connected of electronic installation Criterion configuration;
Acquisition module, is currently connected to the facility information of all PCI equipment of pci bus for obtaining electronic installation;
Modular converter, for the preset format according to standard configuration file, is converted to corresponding configuration file to be measured by the facility information of above-mentioned acquisition;
Comparing module, for above-mentioned configuration file to be measured and standard configuration file being compared, determines parts different from configuration file to be measured in described standard configuration file; And
Output module, for according to parts different from configuration file to be measured in above-mentioned standard configuration file, exports the details of the PCI equipment of the current loss of electronic installation.
7. PCI device detection system as claimed in claim 6, is characterized in that, described output module, also for when described configuration file to be measured is consistent with standard configuration file, exports the prompting tested and pass through.
8. PCI device detection system as claimed in claim 6, it is characterized in that, described creation module installs the electronic installation of all PCI equipment in advance by traversal, obtain the facility information of all PCI equipment that electronic installation under standard configuration connects, and the key message therefrom extracting each PCI equipment is to create standard configuration file, wherein said key message refers to other facility informations removing Bus number.
9. PCI device detection system as claimed in claim 8, it is characterized in that, the key message of the PCI equipment that each line item is corresponding in described standard configuration file, and the order be arranged in standard configuration file of the key message of each PCI equipment is identical with the sequencing that this each PCI equipment is traversed.
10. PCI device detection system as claimed in claim 6, it is characterized in that, described output module by extract in standard configuration file with the device number in the key message of the PCI equipment of configuration file different piece to be measured, function number, trade name, device name, and be shown in the display device of electronic installation, to export the details of the PCI equipment of the current loss of electronic installation.
CN201410008903.4A 2014-01-08 2014-01-08 PCI (Peripheral Component Interface) equipment detection system and method Pending CN104765664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410008903.4A CN104765664A (en) 2014-01-08 2014-01-08 PCI (Peripheral Component Interface) equipment detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410008903.4A CN104765664A (en) 2014-01-08 2014-01-08 PCI (Peripheral Component Interface) equipment detection system and method

Publications (1)

Publication Number Publication Date
CN104765664A true CN104765664A (en) 2015-07-08

Family

ID=53647509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410008903.4A Pending CN104765664A (en) 2014-01-08 2014-01-08 PCI (Peripheral Component Interface) equipment detection system and method

Country Status (1)

Country Link
CN (1) CN104765664A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446857A (en) * 2015-11-16 2016-03-30 山东超越数控电子有限公司 Fault diagnosis method and system
CN105738723A (en) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 Production line automatic detection method and detection device
CN107220191A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of storage device port configuration method and device
CN107977335A (en) * 2017-10-24 2018-05-01 北京全路通信信号研究设计院集团有限公司 Method and device for accessing resources
CN111949469A (en) * 2019-05-17 2020-11-17 北京京东尚科信息技术有限公司 Method and device for simulating expansion equipment and simulation card
CN112948329A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Method and device for comparing equipment configuration files
CN113282530A (en) * 2021-07-20 2021-08-20 统信软件技术有限公司 Equipment information processing method and system
CN114297015A (en) * 2021-11-29 2022-04-08 苏州浪潮智能科技有限公司 Configuration checking method, system, equipment and medium for server

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446857A (en) * 2015-11-16 2016-03-30 山东超越数控电子有限公司 Fault diagnosis method and system
CN105738723A (en) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 Production line automatic detection method and detection device
CN107220191A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of storage device port configuration method and device
CN107220191B (en) * 2017-05-27 2020-10-20 苏州浪潮智能科技有限公司 Storage device port configuration method and device
CN107977335A (en) * 2017-10-24 2018-05-01 北京全路通信信号研究设计院集团有限公司 Method and device for accessing resources
CN111949469A (en) * 2019-05-17 2020-11-17 北京京东尚科信息技术有限公司 Method and device for simulating expansion equipment and simulation card
CN112948329A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Method and device for comparing equipment configuration files
CN112948329B (en) * 2019-12-11 2024-05-14 中盈优创资讯科技有限公司 Device configuration file comparison method and device
CN113282530A (en) * 2021-07-20 2021-08-20 统信软件技术有限公司 Equipment information processing method and system
CN114297015A (en) * 2021-11-29 2022-04-08 苏州浪潮智能科技有限公司 Configuration checking method, system, equipment and medium for server
CN114297015B (en) * 2021-11-29 2024-01-16 苏州浪潮智能科技有限公司 Configuration checking method, system, equipment and medium of server

Similar Documents

Publication Publication Date Title
CN104765664A (en) PCI (Peripheral Component Interface) equipment detection system and method
CN109194286B (en) Fault diagnosis method and device for photovoltaic module
CN105301450A (en) Distribution network fault automatic diagnosis method and system
CN105335264A (en) Computer PCIE adapter card function test method based on UEFI
CN105204968A (en) Method and device for detecting fault memory
CN103164553A (en) Signal line check system and method
CN106708736A (en) Production automation testing method and system for communication equipment
CN111488947A (en) Fault detection method and device for power system equipment
CN105372545A (en) A cable error prevention method based on code identification
CN102540995B (en) Produce line flow control system and method
CN112637888B (en) Coverage hole area identification method, device, equipment and readable storage medium
CN107179972A (en) For the method for calculation machine, microcontroller, test equipment and test system
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN103678529A (en) Integration method of wafer test data of multiple times
CN106646021B (en) A kind of Kato detection method and device
CN105068954B (en) The communication means and device of terminal interface
CN104182555A (en) Circuit board wire distribution detection device and circuit board wire distribution detection method
CN107656187B (en) Differential line test information determining method and device
CN116149709A (en) Firmware upgrading method, device, equipment and medium
CN106776182A (en) A kind of automatic identification station and the method for performing correspondence script
CN106886800B (en) Leakage current fault positioning device and method
CN112747946A (en) Equipment structure damage detection method and device
CN111414171A (en) Configuration method, device and equipment of storage optical fiber network and readable storage medium
US10496767B1 (en) System and method for enhanced characterization for system identification of non-linear systems
CN104636863A (en) Testing method and equipment of tool state

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150708