CN105425095B - A kind of wiring test method and device - Google Patents

A kind of wiring test method and device Download PDF

Info

Publication number
CN105425095B
CN105425095B CN201510837229.5A CN201510837229A CN105425095B CN 105425095 B CN105425095 B CN 105425095B CN 201510837229 A CN201510837229 A CN 201510837229A CN 105425095 B CN105425095 B CN 105425095B
Authority
CN
China
Prior art keywords
port
physical port
target
output
physical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510837229.5A
Other languages
Chinese (zh)
Other versions
CN105425095A (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510837229.5A priority Critical patent/CN105425095B/en
Publication of CN105425095A publication Critical patent/CN105425095A/en
Application granted granted Critical
Publication of CN105425095B publication Critical patent/CN105425095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/58Testing of lines, cables or conductors

Abstract

The invention discloses a kind of wiring test method and devices, this method is suitable for server, server is provided at least two nodes, each node is provided at least one CPU and at least one NC plate, each NC plate is provided at least one physical port, this method comprises: obtaining the configuration information for needing to connect the target physical port of two nodes in physical port, the configuration information of target physical port includes the link information that the physical port connected by cable is needed in target physical port;Output port is set by half physical port in target physical port according to link information, and sets input port for the other half physical port in target physical port;From targeted output port output pulse signal;Judge whether to detect pulse signal from target input mouth, target input mouth needs to connect by cable with targeted output port;When being not detected, output is used to prompt the prompt information of terminal block mistake.Testing efficiency can be improved in the embodiment of the present invention.

Description

A kind of wiring test method and device
Technical field
The present invention relates to electronic technology fields, and in particular to a kind of wiring test method and device.
Background technique
With the continuous development of electronic technology, higher and higher to the requirement of server performance.In order to meet to server It is required that the quantity for the central processing unit (Central Processing Unit, CPU) being arranged in server is more and more.With The quantity of the increase of CPU quantity in server, the wiring in CPU is also more and more.Currently, wiring in server is tested It manually completes entirely, so that reducing testing efficiency.
Summary of the invention
The embodiment of the present invention discloses a kind of wiring test method and device, for improving testing efficiency.
First aspect of the embodiment of the present invention discloses a kind of wiring test method, and this method is suitable for server, and server is set It is equipped at least two nodes (node), each node is provided at least one CPU and connects (Node at least one node Connect, NC) plate, each NC plate is provided at least one physical port, and this method may include:
Obtain the configuration information for needing to connect the target physical port of two nodes in the physical port being arranged on NC plate, mesh The configuration information of mark physical port may include the connection letter that the physical port connected by cable is needed in target physical port Breath, i.e. any two physical port connections;
Half physical port in target physical port can be set to output port according to link information, and by target The other half physical port is set as input port in physical port;
From targeted output port output pulse signal, targeted output port is the either output port in output port;
Judge whether to detect pulse signal from target input mouth, target input mouth is to need to pass through in input port The input port that cable is connect with targeted output port;
When not detecting pulse signal from target input mouth, export for prompting ownership goal output port and mesh Mark the prompt information of the wiring error between input port.
In one embodiment, when electric on the server, the target for needing to connect two nodes in physical port is just obtained The configuration information of physical port.
Second aspect of the embodiment of the present invention discloses a kind of wiring test device, which is set to server In, server is provided at least two nodes, and each node is provided at least one central processor CPU and at least one NC Plate, each NC plate are provided at least one physical port, which may include:
Acquiring unit needs to connect the target physical port of two nodes for obtaining in the physical port being arranged on NC plate Configuration information, the configuration information of target physical port include needed in target physical port by cable connect physical port Link information, i.e. any two physical ports connection;
Setting unit, the link information for being obtained according to acquiring unit set half physical port in target physical port It is set to output port, and sets input port for the other half physical port in target physical port;
First output unit, for from targeted output port output pulse signal, targeted output port to be that setting unit is set The either output port in output port set;
Judging unit detects pulse signal from target input mouth for judging whether, target input mouth is setting It needs to connect by cable with the targeted output port of the first output unit output pulse signal in the input port of unit setting Input port;
Second output unit, for output being used to prompt ownership goal defeated when the judging result of judging unit is no The prompt information of wiring error between exit port and target input mouth.
In one embodiment, acquiring unit, specifically for obtaining and needing to connect in physical port when server powers on The configuration information of the target physical port of two nodes.
It, can be automatically by the configuration information of physical port in two physics for needing cable to connect in the embodiment of the present invention A physical port exports pulse information in port, when another physical port in two physical ports for needing cable to connect When pulse signal is not detected, the prompt information of the two physical port wiring errors will be exported, the test of wiring can be improved Efficiency.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of application scenario diagram of wiring test disclosed by the embodiments of the present invention;
Fig. 2 is a kind of flow chart of wiring test method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structure chart of wiring test device disclosed by the embodiments of the present invention;
Fig. 4 is the structure chart of another wiring test device disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention discloses a kind of wiring test method and device, for improving testing efficiency.It carries out individually below It is described in detail.
Embodiment for a better understanding of the present invention is below first described the application scenarios of the embodiment of the present invention.? In the embodiment of the present invention, server is provided at least two nodes, at least one CPU is provided on each node, wherein each The quantity of CPU can be an integer of 1 or 2 times in node, and each node is additionally provided at least one NC plate, is arranged on each NC plate There is at least one physical port.These physical ports can be connect with the CPU for belonging to same node, can also sections different from belonging to Physical port connection in point on NC plate.It wherein, is preparatory in node factory with the line for the CPU for belonging to same node It connects, therefore, there is no need to the connection for considering the physical port of intra-node, it is only necessary to consider the physics between different nodes The connection of port.And the physical port between different nodes is attached by cable, when two physical ports pass through line When cable connects, if being the cable input pulse signal, i.e. this physics by the physical port input for being connected to cable one end Port output pulse signal can detect pulse signal from the physical port of the other end for being connected to this root cable.It please join Fig. 1 is read, Fig. 1 is a kind of application scenario diagram of wiring test disclosed by the embodiments of the present invention.As shown in Figure 1, server is provided with Tetra- nodes of NODE0, NODE1, NODE2 and NODE3, the setting of each node have in each node there are two NC plate and eight CPU Three physical ports needs on one NC plate are connect with the physical port on the NC plate in other nodes.
Referring to Fig. 2, Fig. 2 is a kind of flow chart of wiring test method disclosed by the embodiments of the present invention.As shown in Fig. 2, The wiring test method may comprise steps of.
201, the configuration information for needing to connect the target physical port of two nodes in physical port is obtained.
In the present embodiment, when electric on the server, need to connect two physics in the node that available server includes The configuration information of the target physical port of node, these physical ports are the physical ports in node on NC plate.Target physical end The configuration information of mouth is stored in advance in the server, and the configuration information of target physical port includes needing in target physical port The link information for the physical port to be connected by cable, as the first physical port in node 1 on NC plate 2 needs and node 2 The second physical port connection on middle NC plate 3 etc..
202, output port is set for half physical port in target physical port according to link information, and by target The other half physical port is set as input port in physical port.
It, can be according to link information by object after the configuration information for getting target physical port in the present embodiment Half physical port is set as output port in reason port, and the other half physical port in target physical port is set as inputting Port.Such as: assuming that the quantity for needing to connect the target physical port of two nodes is 8, wherein every two port needs to pass through Single line cable is attached, this 8 physical ports need four cable connections, can be by four physics in 8 physical ports Port is set as output port, four physical ports are set as input port, and is set as in input port (or output port) Physical port be the physical port belonged in different nodes on NC plate.
203, from targeted output port output pulse signal.
In the present embodiment, output port is set for half physical port in target physical port according to link information, with And by after the other half physical port is set as input port in target physical port, pulse letter will be exported from targeted output port Number, targeted output port is the either output port in the output port of setting.
204, judge whether to detect pulse signal from target input mouth, when from target input mouth detect pulse believe Number when, will terminate, when not detecting pulse signal from target input mouth, will execute step 205.
In the present embodiment, after targeted output port output pulse signal, it will judge whether to examine from target input mouth Pulse signal is measured, when detecting pulse signal from target input mouth, shows target input mouth and targeted output port It being connected by cable, wiring connection is correct, will terminate, when not detecting pulse signal from target input mouth, table Improving eyesight mark input port is not connected by cable with targeted output port, wiring connection error, will execute step 205.Its In, target input mouth is the input port for needing to connect by cable with targeted output port in the input port being arranged.
It illustrates, it is assumed that there are four nodes, NC plate 1 to belong to first node for setting in server, and NC plate 2 belongs to the second section Point, NC plate 3 belong to third node, and NC plate 4 belongs to fourth node, and there are three for being connected with other nodes for setting on each NC plate The physical port connect first can set output port for three physical ports on NC plate 1, will need by with these three objects Physical port on other nodes of reason port connection is set as output port, can be successive in order to avoid detection goes wrong From output pulse signal from these three output ports, show to connect upon this detection from corresponding input port detection pulse signal Line is correct, when can't detect, shows wiring error, further, it is also possible to all on NC plate 2, NC plate 3 and NC plate 4 simultaneously Physical port detection, after detecting pulse signal, the end for the input port that the port information of the port is connect with needs Message breath is matched, and when successful match, shows that wiring is correct, when matching unsuccessful, shows wiring error.Later by NC The port that do not detect in plate 2 is set as output port, will be needed in the physical port on NC plate 3 and NC plate 4 on NC plate 2 not The physical port of detection is set as input port, repeats aforesaid operations, until detection finishes.Also available NC plate 1, NC plate 2, NC plate 3 and the physical port for needing to connect by cable on NC plate 4 set output port, by one for half physical port Semi physical port is set as input port, can allow all output ports simultaneously the different pulse signal of output duty cycle, from him Corresponding input port detect pulse signal simultaneously, when the pulse letter that the pulse signal detected and corresponding output port export Number duty ratio it is identical when, show that wiring is correct, can be further improved detection efficiency;Output port can also be allowed to be sequentially output The identical pulse signal of duty ratio, the time interval for exporting each pulse signal is preset time, to guarantee in current output end When mouth output pulse signal, the corresponding input port of output port of an output pulse signal has been detected.Wherein, it inputs Port or output port are the physical ports belonged in different nodes on NC plate.
205, it is used to prompt the prompt of the wiring error between ownership goal output port and target input mouth to believe output Breath.
In the present embodiment, when detecting wiring error, prompt information can be exported, so that user is according to prompt information Which physical port connection error solved.
In the wiring test method described in Fig. 2, cable can be being needed automatically by the configuration information of physical port A physical port exports pulse information in two physical ports of connection, when in two physical ports for needing cable to connect When pulse signal is not detected in another physical port, the prompt information of the two physical port wiring errors will be exported, it can be with Improve the testing efficiency of wiring.
Referring to Fig. 3, Fig. 3 is a kind of structure chart of wiring test device disclosed by the embodiments of the present invention.Wherein, the wiring Test device is set in server, and server is provided at least two nodes, and each node is provided at least one centre Device CPU and at least one NC plate are managed, each NC plate is provided at least one physical port, which can wrap It includes:
Acquiring unit 301 needs to connect the target physicals of two nodes for obtaining in the physical port being arranged on NC plate The configuration information of port, the configuration information of target physical port include the physics for needing to connect by cable in target physical port The link information of port, i.e. any two physical port connections;
Setting unit 302, link information for being obtained according to acquiring unit 301 is by a semi physical in target physical port Port is set as output port, and sets input port for the other half physical port in target physical port;
First output unit 303, for from targeted output port output pulse signal, targeted output port to be setting unit Either output port in the output port of 302 settings;
Judging unit 304 detects that pulse signal, target input mouth are to set from target input mouth for judging whether It sets and needs to export by the target of 303 output pulse signal of cable and the first output unit in the input port of the setting of unit 302 The input port of port connection;
Second output unit 305, for output being used to prompt user when the judging result of judging unit 304 is no The prompt information of wiring error between targeted output port and target input mouth.
As a kind of possible embodiment, acquiring unit 301, specifically for obtaining physics end when server powers on Need to connect the configuration information of the target physical port of two nodes in mouthful.
In the wiring test device described in Fig. 3, cable can be being needed automatically by the configuration information of physical port A physical port exports pulse information in two physical ports of connection, when in two physical ports for needing cable to connect When pulse signal is not detected in another physical port, the prompt information of the two physical port wiring errors will be exported, it can be with Improve the testing efficiency of wiring.
Referring to Fig. 4, Fig. 4 is the structure chart of another wiring test device disclosed by the embodiments of the present invention.Wherein, this connects Line test device is set in server, and server is provided at least two nodes, and each node is provided at least one center Processor CPU and at least one NC plate, each NC plate are provided at least one physical port.As shown in figure 4, wiring test dress Setting 400 may include at least one processor 401, memory 402 and output device 403, in which:
Batch processing code is stored in memory 402, processor 401 is for calling the program stored in memory 402 Code executes following operation:
Obtain the configuration information for needing to connect the target physical port of two nodes in the physical port being arranged on NC plate, mesh The configuration information of mark physical port may include the connection letter that the physical port connected by cable is needed in target physical port Breath, i.e. any two physical port connections;
Half physical port in target physical port can be set to output port according to link information, and by target The other half physical port is set as input port in physical port;
From targeted output port output pulse signal, targeted output port is the either output port in output port;
Judge whether to detect pulse signal from target input mouth, target input mouth is to need to pass through in input port The input port that cable is connect with targeted output port;
Output device 403, for exporting for prompting user when not detecting pulse signal from target input mouth The prompt information of wiring error between targeted output port and target input mouth.
In a kind of possible embodiment, processor 401 obtains to be needed to connect two in the physical port being arranged on NC plate The mode of the configuration information of the target physical port of a node specifically:
When electric on the server, just obtain the target physical port for needing to connect two nodes in physical port matches confidence Breath.
In the wiring test device described in Fig. 4, cable can be being needed automatically by the configuration information of physical port A physical port exports pulse information in two physical ports of connection, when in two physical ports for needing cable to connect When pulse signal is not detected in another physical port, the prompt information of the two physical port wiring errors will be exported, it can be with Improve the testing efficiency of wiring.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
It is provided for the embodiments of the invention wiring test method above and device is described in detail, it is used herein A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (4)

1. a kind of wiring test method, which is characterized in that the method is suitable for server, and the server is provided at least two A node, each node are provided at least one central processor CPU and connect NC plate at least one node, each described NC plate is provided at least one physical port, which comprises
Obtain the configuration information for needing to connect the target physical port of two nodes in the physical port, the target physical end The configuration information of mouth includes the link information that the physical port connected by cable is needed in the target physical port;
Output port is set by half physical port in the target physical port according to the link information, and will be described The other half physical port is set as input port in target physical port;
From targeted output port output pulse signal, the targeted output port is any output end in the output port Mouthful, wherein the duty ratio of the pulse signal of different target output port output is different;
Judge whether to detect corresponding pulse signal from target input mouth, the target input mouth is the input port The middle input port for needing to connect by cable with the targeted output port;
When not detecting corresponding pulse signal from target input mouth, it is used to prompt target described in user to export output The prompt information of wiring error between port and the target input mouth.
2. the method according to claim 1, wherein described obtain in the physical port needs to connect two sections The configuration information of target physical port of point includes:
When the server powers on, the configuration for needing to connect the target physical port of two nodes in the physical port is obtained Information.
3. a kind of wiring test device, which is characterized in that the wiring test device is set in server, and the server is set At least two nodes are equipped with, each node is provided at least one central processor CPU and connects NC at least one node Plate, each NC plate are provided at least one physical port, and the wiring test device includes:
Acquiring unit needs to connect the configuration information of the target physical port of two nodes for obtaining in the physical port, The configuration information of the target physical port includes the physical port for needing to connect by cable in the target physical port Link information;
Setting unit, link information for being obtained according to the acquiring unit is by a semi physical end in the target physical port Mouth is set as output port, and sets input port for the other half physical port in the target physical port;
First output unit, for from targeted output port output pulse signal, the targeted output port to be that the setting is single Either output port in the output port of member setting, wherein the duty ratio of the pulse signal of different target output port output It is different;
Judging unit detects corresponding pulse signal from target input mouth for judging whether, the target input mouth It is the input port that needs to connect by cable with the targeted output port in the input port of setting unit setting;
Second output unit, for being used to prompt mesh described in user for output when the judging result of the judging unit is no Mark the prompt information of the wiring error between output port and the target input mouth.
4. device according to claim 3, which is characterized in that the acquiring unit is specifically used for when on the server When electric, the configuration information for needing to connect the target physical port of two nodes in the physical port is obtained.
CN201510837229.5A 2015-11-26 2015-11-26 A kind of wiring test method and device Active CN105425095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510837229.5A CN105425095B (en) 2015-11-26 2015-11-26 A kind of wiring test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510837229.5A CN105425095B (en) 2015-11-26 2015-11-26 A kind of wiring test method and device

Publications (2)

Publication Number Publication Date
CN105425095A CN105425095A (en) 2016-03-23
CN105425095B true CN105425095B (en) 2019-02-12

Family

ID=55503427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510837229.5A Active CN105425095B (en) 2015-11-26 2015-11-26 A kind of wiring test method and device

Country Status (1)

Country Link
CN (1) CN105425095B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108646126B (en) * 2018-04-16 2024-01-12 常州科研试制中心有限公司 Line sequence detection device
CN111123167B (en) * 2019-12-27 2022-04-05 潍柴动力股份有限公司 Method, device, system and equipment for detecting signal line of crankshaft sensor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080010791A (en) * 2006-07-28 2008-01-31 버스텍 주식회사 Web-based monitoring module, hardware system including the same and monitoring method of web-based monitoring module
JP2008304363A (en) * 2007-06-08 2008-12-18 Canon Inc Cable connection detecting device
CN102447590A (en) * 2010-10-13 2012-05-09 无锡江南计算技术研究所 Method, device and system for testing exchange board circuit
CN103036700A (en) * 2011-09-29 2013-04-10 广达电脑股份有限公司 Server cluster and control mechanism thereof
CN103491459A (en) * 2013-09-30 2014-01-01 北京星网锐捷网络技术有限公司 Electronic distributing frame system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080010791A (en) * 2006-07-28 2008-01-31 버스텍 주식회사 Web-based monitoring module, hardware system including the same and monitoring method of web-based monitoring module
JP2008304363A (en) * 2007-06-08 2008-12-18 Canon Inc Cable connection detecting device
CN102447590A (en) * 2010-10-13 2012-05-09 无锡江南计算技术研究所 Method, device and system for testing exchange board circuit
CN103036700A (en) * 2011-09-29 2013-04-10 广达电脑股份有限公司 Server cluster and control mechanism thereof
CN103491459A (en) * 2013-09-30 2014-01-01 北京星网锐捷网络技术有限公司 Electronic distributing frame system

Also Published As

Publication number Publication date
CN105425095A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US11706891B2 (en) Perceptible indicators of wires being attached correctly to controller
CN110658400B (en) Embedded test method, microcontroller and system
CN108092854B (en) Test method and device for train-level Ethernet equipment based on IEC61375 protocol
CN106681903B (en) Method and device for generating test case
CN106330604B (en) A kind of method and device of port connectivity test
CN109800119A (en) A kind of product function test method and device
EP3179321B1 (en) System and method for testing configuration and operation of i/o devices
WO2022022717A1 (en) Test method and device
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN105425095B (en) A kind of wiring test method and device
CN108111367A (en) Performance test methods and device
KR102353517B1 (en) System and method for testing a radio frequency transceiver by controlling test flow via an induced interrupt
CN109428778B (en) Mainboard network connectivity test method and device
US20090248348A1 (en) Reducing Test Time By Downloading Switching Sequences To An Enhanced Switch Unit
CN110417567A (en) A kind of configuration method and device of internet of things equipment
TW201522999A (en) System for testing slots according to test vectors and method thereof
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN110968004B (en) Cable test system based on FPGA prototype verification development board
CN110261758B (en) Device under test verification device and related product
CN116684343A (en) Automatic test method, device, system, equipment and medium for switch
CN103888314A (en) Method verifying states of finite-state machine on basis of UIO sequence method
CN115616372A (en) Fault injection test method and system
CN110059390B (en) Device under test verification device and related product
CN113009246A (en) PSE equipment detection device and PSE equipment detection method
CN105279031A (en) Information processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211224

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.