CN107315666A - A kind of method of test I2C communication stabilities, apparatus and system - Google Patents

A kind of method of test I2C communication stabilities, apparatus and system Download PDF

Info

Publication number
CN107315666A
CN107315666A CN201710485290.7A CN201710485290A CN107315666A CN 107315666 A CN107315666 A CN 107315666A CN 201710485290 A CN201710485290 A CN 201710485290A CN 107315666 A CN107315666 A CN 107315666A
Authority
CN
China
Prior art keywords
measured
bmc
smc
communication
current
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
CN201710485290.7A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710485290.7A priority Critical patent/CN107315666A/en
Publication of CN107315666A publication Critical patent/CN107315666A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Monitoring And Testing Of Exchanges (AREA)

Abstract

The invention provides a kind of method of checking I2C communication stabilities, apparatus and system, this method includes:Determine testing time;The test instruction of the correspondence testing time is sent to SMC to be measured, so that the SMC to be measured is acquired when receiving the test instruction each time by corresponding I2C buses to the I2C interconnection informations at least one corresponding BMC to be measured;The SMC to be measured is obtained each time by collection result of the corresponding I2C buses to BMC collections to be measured each described;For the corresponding collection results each time of BMC to be measured each described, judge in the corresponding current collection results of current BMC to be measured with the presence or absence of the corresponding I2C interconnection informations;According to judged result, determine that the I2C between the SMC to be measured and the current BMC to be measured communicates and whether stablize.This programme is capable of determining that the I2C communication stabilities between SMC and BMC.

Description

A kind of method of test I2C communication stabilities, apparatus and system
Technical field
The present invention relates to communication technical field, more particularly to a kind of method of test I2C communication stabilities, device and it is System.
Background technology
SMC (System Management Controller, System Management Controller) is born as the management module of rack Blame the monitoring and management of whole cabinet.SMC is by the way that (Baseboard Management Controller, substrate is managed with BMC Controller) communicated, the monitoring and management to respective nodes can be achieved.Wherein, SMC can be led to by I2C buses and BMC Letter.
The premise that SMC is communicated by I2C buses with BMC is:I2C between SMC and BMC communicates stable.But mesh Before, there is no the scheme tested for the I2C communication stabilities between SMC and BMC, once therefore between SMC and BMC I2C communication it is unstable, then monitoring and management of the SMC for node will be directly influenced, so as to have influence on whole cabinet Operation.
It can be seen that, the I2C communication stabilities how tested between SMC and BMC then turn into current urgent problem to be solved.
The content of the invention
The embodiments of the invention provide a kind of method of test I2C communication stabilities, apparatus and system, it is capable of determining that I2C communication stabilities between SMC and BMC.
In a first aspect, the embodiments of the invention provide a kind of method of test I2C communication stabilities, including:
Determine testing time;
The test instruction of the correspondence testing time is sent to examining system Management Controller SMC, so that the SMC to be measured When receiving the test instruction each time, at least one corresponding substrate management to be measured is controlled by corresponding I2C buses I2C interconnection informations in device BMC processed are acquired;
The SMC to be measured is obtained each time to adopt BMC collections to be measured each described by corresponding I2C buses Collect result;
For the corresponding collection results each time of BMC to be measured each described, judge that current BMC to be measured is corresponding With the presence or absence of the corresponding I2C interconnection informations in current collection result;According to judged result, the SMC to be measured and institute are determined Whether the I2C communications stated between current BMC to be measured stablize.
Preferably,
Further comprise:Pre-set I2C communication stable thresholds;
It is described according to judged result, determine that whether steady the I2C between the SMC to be measured and the current BMC to be measured communicates It is fixed, including:
According to judged result, it is determined that there is the number of the collection result of the corresponding I2C interconnection informations;Using such as Lower calculation formula (1), calculates the I2C between the SMC to be measured and the current BMC to be measured and communicates stationary value;
Wherein, the I2C that λ is characterized between the SMC to be measured and the current BMC to be measured communicates stationary value;M, which is characterized, has phase The number of the collection result for the I2C interconnection informations answered;N characterizes the testing time;
Whether the I2C communications stationary value is judged not less than I2C communication stable thresholds, if it is, being treated described in determining The I2C surveyed between SMC and the current BMC to be measured communicates stable, otherwise, it determines the SMC to be measured and current BMC to be measured Between I2C communication it is unstable.
Preferably,
The I2C interconnection informations, including:Any one or more in BMC to be measured IP address, version information;
Preferably,
It is described to be instructed to the examining system Management Controller SMC tests for sending the correspondence testing time, including:Using pre- The I2C communication tests script first determined is instructed to the examining system Management Controller SMC tests for sending the correspondence testing time;
Preferably,
Judge to whether there is the corresponding I2C interconnection letter in the corresponding current collection results of current BMC to be measured described After breath, further comprise:
Remind instruction if it is, being sent to the current BMC to be measured so that the current BMC to be measured receive it is described During communication information, the I2C communication connections of external user currently between the SMC to be measured are reminded;Otherwise, then currently treated to described Survey BMC and send alarm command, during so that the current BMC to be measured receiving the alarm command, remind external user currently with I2C communication disruptions between the SMC to be measured.
Second aspect, the embodiments of the invention provide a kind of device of test I2C communication stabilities, including:Testing time Determining unit, transmitting element, acquiring unit and I2C communication stability determining units;Wherein,
The testing time determining unit, for determining testing time;
The transmitting element, the test for sending the correspondence testing time to examining system Management Controller SMC refers to Order, so that the SMC to be measured when receiving the test instruction each time, by corresponding I2C buses to accordingly at least I2C interconnection informations in one baseboard management controller BMC to be measured are acquired;
The acquiring unit, for obtaining the SMC to be measured each time by corresponding I2C buses to each institute State the collection result of BMC collections to be measured;
The I2C communication stabilities determining unit, for for BMC to be measured each described it is corresponding each time described in Collection result, judges in the corresponding current collection results of current BMC to be measured with the presence or absence of the corresponding I2C interconnection informations;Root It is judged that whether result, determine that the I2C between the SMC to be measured and the current BMC to be measured communicates and stablize.
Preferably,
Further comprise:Setting unit, for pre-setting I2C communication stable thresholds;
The I2C communication stabilities determining unit, including:Computation subunit and judgment sub-unit;
The computation subunit, the number of the collection result for determining to exist the corresponding I2C interconnection informations; Using formula (1) is calculated as below, calculates the I2C between the SMC to be measured and the current BMC to be measured and communicate stationary value;
Wherein, the I2C that λ is characterized between the SMC to be measured and the current BMC to be measured communicates stationary value;M, which is characterized, has phase The number of the collection result for the I2C interconnection informations answered;N characterizes the testing time;
The judgment sub-unit, for judging the I2C communications stationary value whether not less than the stable threshold of I2C communications Value, if it is, determining that the I2C between the SMC to be measured and the current BMC to be measured communicates stable, otherwise, it determines described to be measured I2C between SMC and the current BMC to be measured communicates unstable.
Preferably,
The I2C interconnection informations, including:Any one or more in BMC to be measured IP address, version information;
Preferably,
The transmitting element, is controlled specifically for being managed using predetermined I2C communication tests script to examining system Device SMC sends the test instruction of the correspondence testing time;
Further comprise:Reminding unit, judges there is phase in the corresponding current collection results of current BMC to be measured for working as During the I2C interconnection informations answered, sent to the current BMC to be measured and remind instruction, so that the current BMC to be measured is received During the communication information, the I2C communication connections of external user currently between the SMC to be measured are reminded;When judging currently to treat When surveying in the corresponding current collection results of BMC in the absence of the corresponding I2C interconnection informations, sent to the current BMC to be measured Alarm command, during so that the current BMC to be measured receiving the alarm command, remind external user currently with it is described to be measured I2C communication disruptions between SMC.
The third aspect, the embodiments of the invention provide a kind of system of test I2C communication stabilities, including:SMC to be measured, At least one BMC to be measured being connected with the SMC to be measured by I2C buses, and the test I2C described in any of the above-described embodiment The device of communication stability, wherein,
The SMC to be measured, for receiving the test instruction that the device of the test I2C communication stabilities is sent;According to institute Test instruction is stated, the I2C interconnection informations at least one described BMC to be measured are acquired by the I2C buses;And will The test I2C is sent to the collection result of BMC collections to be measured each described by the I2C buses each time and communicates steady Qualitatively device;
Each described BMC to be measured, for the collection result for being acquired the SMC to be measured by the I2C buses It is sent to the SMC to be measured.
Preferably,
Further comprise:With the positioning lamp that BMC to be measured is respectively connected with each described;
The device of the test I2C communication stabilities, is further used for judging that currently BMC to be measured is corresponding and currently adopts When collecting in result in the presence of the corresponding I2C interconnection informations, remind and instruct to the current BMC transmissions to be measured;Otherwise, to described Current BMC to be measured sends alarm command;
The current BMC to be measured, is further used for when receiving the prompting instruction, defeated to the corresponding positioning lamp Go out the first level, to light the positioning lamp, and when reaching default time threshold, to the electricity of positioning lamp output second It is flat, to extinguish the positioning lamp, remind the I2C communication connections of external user currently between the SMC to be measured;And when reception During to the alarm command, the first level is exported to the corresponding positioning lamp, to light the positioning lamp, external user is reminded Current I2C communication disruptions between the SMC to be measured;
Each described positioning lamp, for when receiving first level, lighting;When receiving the second electrical level When, extinguish.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable medium, including computer executed instructions, when depositing When storing up computer executed instructions described in the computing device of controller, the storage control is performed described in any of the above-described embodiment Test I2C communication stabilities method.
5th aspect, the embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store computer executed instructions, and the processor is connected with the memory by the bus Connect, when the storage control is run, the computer executed instructions of memory storage described in the computing device, with The method for making the storage control perform the test I2C communication stabilities described in any of the above-described embodiment.
The embodiments of the invention provide a kind of method of test I2C communication stabilities, apparatus and system, to SMC and BMC Between I2C communication stabilities when being tested, it is first determined good testing time, then according to testing time, sent out to SMC to be measured Test is sent to instruct, to cause SMC to be measured when receiving test instruction each time, by I2C buses at least one connected I2C interconnection informations in BMC to be measured are acquired, and obtain collection result, for each BMC to be measured collection each time, If the I2C communication connections between SMC to be measured and BMC to be measured, SMC to be measured can collect I2C interconnection informations, if SMC to be measured with I2C communication disruptions between BMC to be measured, then SMC to be measured will be unable to collect I2C interconnection informations, therefore can pass through judgement afterwards It whether there is I2C interconnection informations in collection result, determine and adopted for each BMC to be measured in the testing time determined After collection, I2C interconnection informations are not contained in the collection result of shared how many times, thus finally can according to the result of judgement, it is determined that Whether the I2C gone out between SMC to be measured and each BMC to be measured communicates stablizes.Therefore this programme be capable of determining that SMC and BMC it Between I2C communication stabilities.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of method flow diagram for test I2C communication stabilities that one embodiment of the invention is provided;
Fig. 2 is a kind of structural representation of the device for test I2C communication stabilities that one embodiment of the invention is provided;
Fig. 3 is a kind of structural representation of the device for test I2C communication stabilities that another embodiment of the present invention is provided;
Fig. 4 is a kind of structural representation of the device for test I2C communication stabilities that another embodiment of the invention is provided;
Fig. 5 is a kind of structural representation of the system for test I2C communication stabilities that one embodiment of the invention is provided;
Fig. 6 is a kind of structural representation of the system for test I2C communication stabilities that another embodiment of the present invention is provided;
Fig. 7 is a kind of method flow diagram for test I2C communication stabilities that another embodiment of the present invention is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of method of test I2C communication stabilities, this method can be wrapped Include following steps:
Step 101:Determine testing time.
Step 102:The test instruction of the correspondence testing time is sent to examining system Management Controller SMC, so that institute SMC to be measured is stated when receiving the test instruction each time, by corresponding I2C buses at least one corresponding base to be measured I2C interconnection informations in board management controller BMC are acquired.
Step 103:The SMC to be measured is obtained each time by corresponding I2C buses to BMC to be measured each described The collection result of collection.
Step 104:For the corresponding collection results each time of BMC to be measured each described, judge current to be measured With the presence or absence of the corresponding I2C interconnection informations in the corresponding current collection results of BMC;According to judged result, it is determined that described treat Whether the I2C surveyed between SMC and the current BMC to be measured communicates stablizes.
In above-described embodiment, when testing the I2C communication stabilities between SMC and BMC, it is first determined good test Number of times, then according to testing time, test instruction is sent to SMC to be measured, to cause SMC to be measured to refer to receiving test each time When making, the I2C interconnection informations at least one connected BMC to be measured are acquired by I2C buses, and obtain collection knot Really, for each BMC to be measured collection each time, if the I2C communication connections between SMC to be measured and BMC to be measured, to be measured SMC can collect I2C interconnection informations, if the I2C communication disruptions between SMC to be measured and BMC to be measured, SMC to be measured will be unable to adopt Collect I2C interconnection informations, therefore can be determined afterwards by judging to whether there is I2C interconnection informations in collection result for every One BMC to be measured does not contain I2C interconnection letters after the testing time collection determined in the collection result of shared how many times Breath, so as to finally can determine that whether steady the I2C between SMC to be measured and each BMC to be measured communicates according to the result of judgement It is fixed.Therefore this programme is capable of determining that the I2C communication stabilities between SMC and BMC.
Whether stablize to determine that the I2C between SMC to be measured and BMC to be measured communicates, in one embodiment of the invention, enter one Step includes:Pre-set I2C communication stable thresholds;The embodiment of the step 104, it may include:According to judged result, It is determined that there is the number of the collection result of the corresponding I2C interconnection informations;Using formula (1) is calculated as below, institute is calculated The I2C between SMC to be measured and the current BMC to be measured is stated to communicate stationary value;
Wherein, the I2C that λ is characterized between the SMC to be measured and the current BMC to be measured communicates stationary value;M, which is characterized, has phase The number of the collection result for the I2C interconnection informations answered;N characterizes the testing time;
Whether the I2C communications stationary value is judged not less than I2C communication stable thresholds, if it is, being treated described in determining The I2C surveyed between SMC and the current BMC to be measured communicates stable, otherwise, it determines the SMC to be measured and current BMC to be measured Between I2C communication it is unstable.
Wherein, I2C communications stable threshold can be set according to the actual requirements.
For example, pre-set I2C communication stable threshold be 95%, it is determined that testing time be 500 times, it is assumed that SMC to be measured In 500 collections that BMC x to be measured to corresponding one is carried out, have 498 collection results exist BMC x to be measured I2C it is mutual Even information, now using formula (1), calculates the I2C communication stationary values between SMC to be measured and BMC x to be measuredDue to 99.6% > 95%, therefore it can determine that between SMC to be measured and BMC x to be measured I2C communications it is stable.
Accurately to test the I2C communication stabilities between SMC to be measured and BMC to be measured, it is determined that testing time it is unsuitable It is too small.
In one embodiment of the invention, the I2C interconnection informations, including:In BMC to be measured IP address, version information Any one or more.
Wherein, the I2C interconnection informations in the present invention are not limited to two kinds that above-described embodiment is provided, and may also include other A variety of possible information.
In one embodiment of the invention, the embodiment of the step 102, it may include:Utilize predetermined I2C Communication test script is instructed to the examining system Management Controller SMC tests for sending the correspondence testing time.
For the ease of realizing test I2C communication stabilities, the script can be run by determining I2C communication test scripts, and Step 102 in above-described embodiment is performed to step 104 using the script.By the form of script be convenient for test SMC and I2C communication stabilities between BMC.
In order that whether test user knows in time and that accurately the I2C between SMC to be measured and BMC to be measured communicates and connects, In one embodiment of the invention, judge to whether there is corresponding institute in the corresponding current collection results of current BMC to be measured described State after I2C interconnection informations, further comprise:
Remind instruction if it is, being sent to the current BMC to be measured so that the current BMC to be measured receive it is described During communication information, the I2C communication connections of external user currently between the SMC to be measured are reminded;Otherwise, then currently treated to described Survey BMC and send alarm command, during so that the current BMC to be measured receiving the alarm command, remind external user currently with I2C communication disruptions between the SMC to be measured.
For example, SMC to be measured has carried out 200 collections to BMC y to be measured altogether, it is assumed that exist in the collection result of the 11st time and treat BMC y I2C interconnection informations are surveyed, because SMC to be measured can collect the I2C interconnection informations by I2C buses, are then illustrated now It is connection that I2C between SMC to be measured and BMC y to be measured, which communicates, to know test user, can be by being sent out to BMC y to be measured Prompting is sent to instruct so that BMC y to be measured such as can cause connected positioning lamp to light 5 seconds, so as to test use by certain mode Family illustrates between the positioning lamp corresponding BMC y and SMC to be measured to be measured when observing that corresponding positioning lamp is lighting extinguishing in 5 seconds I2C communication connections;Assuming that there is no BMC y to be measured I2C interconnection informations in the collection result of the 30th time, due to be measured SMC does not collect the I2C interconnection informations by I2C buses, then illustrates that the I2C between now SMC to be measured and BMC y to be measured leads to Letter is to interrupt, to make test user understand that such a situation, can be by sending alarm command to BMC y to be measured so that treat Certain form that BMC y can be in addition is surveyed, corresponding positioning lamp Chang Liang is such as controlled, so that testing user is observing corresponding positioning Lamp often it is bright when, illustrate the I2C communication disruptions between the positioning lamp corresponding BMC y and SMC to be measured to be measured;If being adopted at the 31st time During collection, the I2C communication recoveries between BMC y to be measured and SMC to be measured are connected, then corresponding positioning lamp occurs as at the 11st time Phenomenon.So, by this form test user can be caused to be clearly understood that specific I2C signal intelligences.
The embodiments of the invention provide a kind of device of test I2C communication stabilities, as shown in Fig. 2 the device can be wrapped Include:Testing time determining unit 201, transmitting element 202, acquiring unit 203 and I2C communication stabilities determining unit 204;Its In,
The testing time determining unit 201, for determining testing time;
The transmitting element 202, the test for sending the correspondence testing time to examining system Management Controller SMC Instruction, so that the SMC to be measured when receiving the test instruction each time, by corresponding I2C buses to accordingly extremely I2C interconnection informations in a few baseboard management controller BMC to be measured are acquired;
The acquiring unit 203, for obtaining the SMC to be measured each time by corresponding I2C buses to each The collection result of the individual BMC collections to be measured;
The I2C communication stabilities determining unit 204, for corresponding each time for BMC to be measured each described The collection result, judges in the corresponding current collection results of current BMC to be measured with the presence or absence of the corresponding I2C interconnection letter Breath;According to judged result, determine that the I2C between the SMC to be measured and the current BMC to be measured communicates and whether stablize.
Whether stablize to determine that the I2C between SMC to be measured and BMC to be measured communicates, in one embodiment of the invention, such as scheme Shown in 3, further comprise:Setting unit 301, for pre-setting I2C communication stable thresholds;
The I2C communication stabilities determining unit 204, including:Computation subunit 2041 and judgment sub-unit 2042;
The computation subunit 2041, for determining in the presence of the collection result of the I2C interconnection informations accordingly Number;Using formula (1) is calculated as below, calculates the I2C between the SMC to be measured and the current BMC to be measured and communicate stationary value;
Wherein, the I2C that λ is characterized between the SMC to be measured and the current BMC to be measured communicates stationary value;M, which is characterized, has phase The number of the collection result for the I2C interconnection informations answered;N characterizes the testing time;
The judgment sub-unit 2042, for judging whether the I2C communications stationary value is stable not less than I2C communications Threshold value, if it is, determining that the I2C between the SMC to be measured and the current BMC to be measured communicates stable, otherwise, it determines described treat The I2C surveyed between SMC and the current BMC to be measured communicates unstable.
In one embodiment of the invention, the I2C interconnection informations, including:In BMC to be measured IP address, version information Any one or more.
In one embodiment of the invention, the transmitting element 402, specifically for utilizing predetermined I2C communication tests Script is instructed to the examining system Management Controller SMC tests for sending the correspondence testing time.
Whether connect in order to which the timely and accurate I2C notified between test user SMC to be measured and each BMC to be measured communicates It is logical, in one embodiment of the invention, as shown in figure 4, further comprising:Reminding unit 401, for current to be measured when judging When there is the corresponding I2C interconnection informations in the corresponding current collection results of BMC, send and remind to the current BMC to be measured Instruction, during so that the current BMC to be measured receiving the communication information, remind external user currently with the SMC to be measured it Between I2C communication connections;It is mutual in the absence of the corresponding I2C in the corresponding current collection results of current BMC to be measured when judging Even during information, alarm command is sent to the current BMC to be measured, so that the current BMC to be measured receives the alarm command When, remind the I2C communication disruptions of external user currently between the SMC to be measured.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiments of the invention provide a kind of system of test I2C communication stabilities, including:SMC to be measured, with it is described to be measured At least one BMC to be measured that SMC is connected by I2C buses, and the test I2C communication stabilities described in any of the above-described embodiment Device, wherein,
The SMC to be measured, for receiving the test instruction that the device of the test I2C communication stabilities is sent;According to institute Test instruction is stated, the I2C interconnection informations at least one described BMC to be measured are acquired by the I2C buses;And will The test I2C is sent to the collection result of BMC collections to be measured each described by the I2C buses each time and communicates steady Qualitatively device;
Each described BMC to be measured, for the collection result for being acquired the SMC to be measured by the I2C buses It is sent to the SMC to be measured.
Specifically, as shown in figure 5, be a kind of system of test I2C communication stabilities, including:Test I2C communication stabilities Device 501, SMC502 to be measured, and 8 BMC503 to be measured being connected by I2C buses with SMC502 to be measured, wherein, it is to be measured SMC is after the test instruction that the device 501 for receiving test I2C communication stabilities is sent, so that it may according to from top to bottom either Order from bottom to up is acquired to BMC503 to be measured I2C interconnection informations successively, if SMC502 to be measured is to be measured with each I2C communication connections between BMC503, then can collect corresponding I2C interconnection informations, if I2C from each BMC503 to be measured Communication disruption, then can not collect corresponding I2C interconnection informations from corresponding BMC503 to be measured, and final test I2C communications are steady The collection result that qualitatively device 501 can be gathered according to BMC502 to be measured, determines that SMC502 to be measured is to be measured with each Whether the I2C communications between BMC503 stablize.
In order to which whether timely and accurate notice test user SMC to be measured connects with the I2C between each BMC to be measured, this In invention one embodiment, further comprise:With the positioning lamp that BMC to be measured is respectively connected with each described;
The device of the test I2C communication stabilities, is further used for judging that currently BMC to be measured is corresponding and currently adopts When collecting in result in the presence of the corresponding I2C interconnection informations, remind and instruct to the current BMC transmissions to be measured;Otherwise, to described Current BMC to be measured sends alarm command;
The current BMC to be measured, is further used for when receiving the prompting instruction, defeated to the corresponding positioning lamp Go out the first level, to light the positioning lamp, and when reaching default time threshold, to the electricity of positioning lamp output second It is flat, to extinguish the positioning lamp, remind the I2C communication connections of external user currently between the SMC to be measured;And when reception During to the alarm command, the first level is exported to the corresponding positioning lamp, to light the positioning lamp, external user is reminded Current I2C communication disruptions between the SMC to be measured;
Each described positioning lamp, for when receiving first level, lighting;When receiving the second electrical level When, extinguish.
Specifically, as shown in fig. 6, be a kind of system of test I2C communication stabilities, including:Test I2C communication stabilities Device 601, SMC602 to be measured, 8 BMC a, b, c, d, e, f, g, h to be measured being connected by I2C buses with SMC602 to be measured, And the positioning lamp 604 being respectively connected with each BMC603 to be measured.By taking BMC f to be measured therein as an example, for BMC f to be measured Certain collection result, when judge be not present corresponding I2C interconnection informations when, test I2C communication stabilities device 601 can Alarm command is sent to the BMC f604 to be measured, so that BMC f control the Chang Liang of positioning lamp 6, the use of test is notified with this Family, the I2C between SMC to be measured and BMC f to be measured, which communicates, occurs in that interruption;If it is mutual to there is corresponding I2C in certain collection result Even during information, I2C interconnection informations can be sent to the BMC f604 to be measured by testing the device 601 of I2C communication stabilities, so that BMC f control positioning lamp 6 light default time threshold, such as 5 seconds, notified with this test user, SMC to be measured with it is to be measured The normal connection of I2C communications between BMC f.
The embodiment of the present invention by taking the system of the test I2C communication stabilities shown in Fig. 6 as an example, will be described in detail below to provide A kind of test I2C communication stabilities method, as shown in fig. 7, this method may include steps of:
Step 701:Predefine testing time 100 times.
The embodiment of the present invention, can be held by the SMC to be measured in Fig. 6 to the I2C interconnection informations in each BMC to be measured Continuous collection.
Step 702:Pre-set I2C communication stable thresholds 95%.
Step 703:Pre-set time threshold 5 seconds.
Step 704:100 test instructions are sent to SMC to be measured, so that SMC to be measured is receiving test instruction each time When, corresponding 8 BMC to be measured IP address is acquired by corresponding I2C buses.
Specifically, after sending test instruction to SMC to be measured for the first time, SMC to be measured can lead to according to order from top to bottom Cross I2C buses BMC to be measured to 8 successively:A, b, c, d, e, f, g, h IP address are acquired, when SMC to be measured this to be measured After BMC h IP address is acquired, then to SMC to be measured send it is secondary test instruct so that SMC to be measured is again to every One BMC to be measured IP address is acquired, until completing 100 collections.
In addition, for ease of realizing the process, a time cycle can be also pre-set, such as 30 seconds, so, can be every 30 Second test instruction is sent to SMC to be measured, and without determining whether this is carried out to last BMC h to be measured IP address again Collection.The time cycle but set should meet SMC to be measured can during this period of time BMC to be measured to 8 IP address enter Collection is gone, while the accuracy in order to improve test so that SMC is lasting to be acquired, therefore the time cycle should nothing The IP address limited close to SMC to be measured BMCs to be measured to 8 is acquired the time used.
Step 705:Obtain the collection knot that SMC to be measured is gathered by corresponding I2C buses to each BMC to be measured each time Really.
For example, by taking the BMC f to be measured in Fig. 6 as an example, such as:
SMC to be measured 1st time is the 6c** of c0 a8 00 to BMC f to be measured collection result by I2C buses;Adopt 9th time Collection result is 00 00 00 00 00**;The collection result of the 31st time is 00 00 00 00 00**;The collection result of the 98th time For the 6c** of c0 a8 00.
Step 706:For each corresponding collection result each time of BMC to be measured, judge that current BMC to be measured is corresponding It whether there is corresponding IP address in current collection result, if it is, performing step 707, otherwise, perform step 708.
By taking corresponding 1st time of the BMC f to be measured 6c** of collection result c0 a8 00 as an example, carry out after decimal system conversion, can To obtain 192.168.0.108, it is seen then that there is its IP address in the collection result that BMC f to be measured currently corresponding 1st time.
Step 707:Sent to current BMC to be measured and remind instruction, so that current BMC to be measured exports high to corresponding positioning lamp Level, lights positioning lamp, and when reaching 5 seconds, low level is exported to positioning lamp, extinguishes positioning lamp, reminds external user current I2C communication connections between SMC to be measured, and perform step 709.
For example, for BMC f to be measured, there is f IP address in the collection result of the 1st time, then can be by being sent to f Remind instruction (such as lighting positioning lamp 5 seconds) so that f controls coupled positioning lamp 6 to light extinguishing after 5 seconds, 5 seconds, so that Bright light situation of the test man according to the positioning lamp is obtained, knows in time and accurately that the I2C between BMC f to be measured and SMC to be measured leads to Letter connection.
Positioning lamp in the embodiment of the present invention be for each node there is provided one, can be with by the state of positioning lamp Know it is currently that I2C connectivity problems are occurred in that at which node.
Step 708:Alarm command is sent to current BMC to be measured, so that current BMC to be measured exports high to corresponding positioning lamp Level, lights positioning lamp, reminds the I2C communication disruptions of external user currently between SMC to be measured.
If for BMC f to be measured, can be by treating when 192.168.0.108 is not present in the collection result of the 31st time Survey BMC f and send alarm command so that positioning lamp Chang Liang, after I2C communication recoveries between BMC f to be measured and BMC to be measured, then When carrying out the 32nd collection, the phenomenon in above-mentioned steps 707 may just occurs, is such as also bright light 5 seconds.
Step 709:It is determined that the number of the collection result in the presence of corresponding IP address.
For example, SMC to be measured for BMC f to be measured 100 gatherer processes in, have in 96 collection results exist it is to be measured BMC f IP address 192.168.0.108.
Step 710:According to the current corresponding results judged each time of BMC to be measured, calculate SMC to be measured with it is currently to be measured I2C communication stationary values between BMC.
According to above-mentioned steps 709, and using calculation formula (1), SMC to be measured and current BMC f to be measured can be calculated Between I2C communication stationary value
Step 711:Judge whether I2C communications stationary value is not less than 95%, if it is, performing step 712, otherwise, hold Row step 713.
Due to the default I2C communications stable thresholds 95% of I2C communication stationary values 96% >, thus may determine that going out to be measured I2C between SMC and current BMC f to be measured communicates stable.
For each other BMC to be measured, identical with the above-mentioned principle for BMC f to be measured, here is omitted.
Step 712:Determine that the I2C between SMC to be measured and current BMC to be measured communicates stable, and terminate current process.
Step 713:Determine that the I2C between SMC to be measured and current BMC to be measured communicates unstable.
The embodiments of the invention provide a kind of computer-readable medium, including computer executed instructions, work as storage control Computing device described in computer executed instructions when, the storage control performs the test described in any of the above-described embodiment The method of I2C communication stabilities.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store computer executed instructions, and the processor is connected with the memory by the bus Connect, when the storage control is run, the computer executed instructions of memory storage described in the computing device, with The method for making the storage control perform the test I2C communication stabilities described in any of the above-described embodiment.
To sum up, each embodiment of the invention at least has the advantages that:
1st, in embodiments of the present invention, when testing the I2C communication stabilities between SMC and BMC, it is first determined Good testing time, then according to testing time, sends test instruction, to cause SMC to be measured to be received each time to SMC to be measured During test instruction, the I2C interconnection informations at least one connected BMC to be measured are acquired by I2C buses, and acquisition is adopted Collect result, for each BMC to be measured collection each time, if the I2C communication connections between SMC to be measured and BMC to be measured, are treated I2C interconnection informations can be collected by surveying SMC, if the I2C communication disruptions between SMC to be measured and BMC to be measured, SMC to be measured will be unable to I2C interconnection informations are collected, therefore can be determined and be directed to by judging to whether there is I2C interconnection informations in collection result afterwards Each BMC to be measured does not contain I2C interconnection after the testing time collection determined in the collection result of shared how many times Information, so as to finally can determine whether the I2C between SMC to be measured and each BMC to be measured communicates according to the result of judgement It is stable.Therefore this programme is capable of determining that the I2C communication stabilities between SMC and BMC.
2nd, in embodiments of the present invention, come to send test instruction to SMC to be measured by using the I2C test scripts of determination Deng, it is possible to achieve the test automated to the I2C communication stabilities between SMC and BMC, so as to improve test SMC The efficiency of I2C communication stabilities between BMC.
3rd, in embodiments of the present invention, for current BMC to be measured current collection result, if judging current collection result In there is I2C interconnection informations, then can be sent to current BMC to be measured and remind instruction, and when judging in current collection result not When there is I2C interconnection informations, then alarm command can be sent to current BMC to be measured, so as to pass through current BMC to be measured so that External user can recognize the real-time I2C signal intelligences between SMC to be measured and each BMC to be measured in time and exactly.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements, But also other key elements including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged Except also there is other identical factor in the process including the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in the storage medium of embodied on computer readable, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of method of test I2C communication stabilities, it is characterised in that including:
Determine testing time;
The test instruction of the correspondence testing time is sent to examining system Management Controller SMC, so that the SMC to be measured is every When once receiving the test instruction, by corresponding I2C buses at least one corresponding baseboard management controller to be measured I2C interconnection informations in BMC are acquired;
The SMC to be measured is obtained each time by collection knot of the corresponding I2C buses to BMC collections to be measured each described Really;
For the corresponding collection results each time of BMC to be measured each described, judge that current BMC to be measured is corresponding current With the presence or absence of the corresponding I2C interconnection informations in collection result;According to judged result, determine that the SMC to be measured works as with described Whether the I2C communications between preceding BMC to be measured stablize.
2. the method for test I2C communication stabilities according to claim 1, it is characterised in that
Further comprise:Pre-set I2C communication stable thresholds;
It is described to determine that the I2C between the SMC to be measured and the current BMC to be measured communicates according to judged result and whether stablize, bag Include:
According to judged result, it is determined that there is the number of the collection result of the corresponding I2C interconnection informations;Utilize following meter Formula is calculated, the I2C between the SMC to be measured and the current BMC to be measured is calculated and communicates stationary value;
<mrow> <mi>&amp;lambda;</mi> <mo>=</mo> <mfrac> <mi>m</mi> <mi>n</mi> </mfrac> <mo>&amp;times;</mo> <mn>100</mn> <mi>%</mi> </mrow>
Wherein, the I2C that λ is characterized between the SMC to be measured and the current BMC to be measured communicates stationary value;M, which is characterized, to be present accordingly The number of the collection result of the I2C interconnection informations;N characterizes the testing time;
Whether the I2C communications stationary value is judged not less than I2C communication stable thresholds, if it is, determining the SMC to be measured I2C between the current BMC to be measured communicates stable, otherwise, it determines between the SMC to be measured and the current BMC to be measured I2C communication it is unstable.
3. according to the method for any described test I2C communication stabilities of claim 1 or 2, it is characterised in that
The I2C interconnection informations, including:Any one or more in BMC to be measured IP address, version information;
And/or,
It is described to be instructed to the examining system Management Controller SMC tests for sending the correspondence testing time, including:Using in advance really Fixed I2C communication tests script is instructed to the examining system Management Controller SMC tests for sending the correspondence testing time;
And/or,
It is described judge in the corresponding current collection results of current BMC to be measured with the presence or absence of the corresponding I2C interconnection informations it Afterwards, further comprise:
Instruction is reminded if it is, being sent to the current BMC to be measured, so that the current BMC to be measured receives the connection During information, the I2C communication connections of external user currently between the SMC to be measured are reminded;Otherwise, then to described current to be measured BMC sends alarm command, during so that the current BMC to be measured receiving the alarm command, reminds external user currently and institute State the I2C communication disruptions between SMC to be measured.
4. a kind of device of test I2C communication stabilities, it is characterised in that including:Testing time determining unit, transmitting element, Acquiring unit and I2C communication stability determining units;Wherein,
The testing time determining unit, for determining testing time;
The transmitting element, the test for sending the correspondence testing time to examining system Management Controller SMC is instructed, with Make the SMC to be measured when receiving the test instruction each time, by corresponding I2C buses to it is corresponding at least one treat The I2C interconnection informations surveyed in baseboard management controller BMC are acquired;
The acquiring unit, for obtaining the SMC to be measured each time by corresponding I2C buses to being treated described in each Survey the collection result of BMC collections;
The I2C communication stabilities determining unit, for for the corresponding collections each time of BMC to be measured each described As a result, judge in the corresponding current collection results of current BMC to be measured with the presence or absence of the corresponding I2C interconnection informations;According to sentencing Whether disconnected result, determine that the I2C between the SMC to be measured and the current BMC to be measured communicates and stablize.
5. the device of test I2C communication stabilities according to claim 4, it is characterised in that
Further comprise:Setting unit, for pre-setting I2C communication stable thresholds;
The I2C communication stabilities determining unit, including:Computation subunit and judgment sub-unit;
The computation subunit, the number of the collection result for determining to exist the corresponding I2C interconnection informations;Utilize It is calculated as below formula, calculates the I2C between the SMC to be measured and the current BMC to be measured and communicate stationary value;
<mrow> <mi>&amp;lambda;</mi> <mo>=</mo> <mfrac> <mi>m</mi> <mi>n</mi> </mfrac> <mo>&amp;times;</mo> <mn>100</mn> <mi>%</mi> </mrow>
Wherein, the I2C that λ is characterized between the SMC to be measured and the current BMC to be measured communicates stationary value;M, which is characterized, to be present accordingly The number of the collection result of the I2C interconnection informations;N characterizes the testing time;
The judgment sub-unit, for judging whether the I2C communications stationary value is not less than I2C communication stable thresholds, such as Fruit is to determine that the I2C between the SMC to be measured and the current BMC to be measured communicate stable, otherwise, it determines the SMC to be measured and I2C communications between the current BMC to be measured are unstable.
6. according to the device of any described test I2C communication stabilities of claim 4 or 5, it is characterised in that
The I2C interconnection informations, including:Any one or more in BMC to be measured IP address, version information;
And/or,
The transmitting element, specifically for utilizing predetermined I2C communication tests script to examining system Management Controller SMC Send the test instruction of the correspondence testing time;
And/or,
Further comprise:Reminding unit, judges exist accordingly in the corresponding current collection results of current BMC to be measured for working as During the I2C interconnection informations, sent to the current BMC to be measured and remind instruction so that the current BMC to be measured receive it is described During communication information, the I2C communication connections of external user currently between the SMC to be measured are reminded;When judging current BMC to be measured When the corresponding I2C interconnection informations are not present in corresponding current collection result, send alarm to the current BMC to be measured and refer to Order, during so that the current BMC to be measured receiving the alarm command, reminds external user currently between the SMC to be measured I2C communication disruptions.
7. a kind of system of test I2C communication stabilities, it is characterised in that including:SMC to be measured, pass through with the SMC to be measured At least one connected BMC to be measured of I2C buses, and any described test I2C communication stabilities of claim 4 to 6 dress Put, wherein,
The SMC to be measured, for receiving the test instruction that the device of the test I2C communication stabilities is sent;Surveyed according to described Examination instruction, is acquired by the I2C buses to the I2C interconnection informations at least one described BMC to be measured;And will be each It is secondary that the test I2C communication stabilities are sent to the collection result of BMC collections to be measured each described by the I2C buses Device;
Each described BMC to be measured, the collection result for being acquired the SMC to be measured by the I2C buses is sent To the SMC to be measured.
8. the system of test I2C communication stabilities according to claim 7, it is characterised in that
Further comprise:With the positioning lamp that BMC to be measured is respectively connected with each described;
The device of the test I2C communication stabilities, is further used for working as and judges the corresponding current collection knots of current BMC to be measured When there is the corresponding I2C interconnection informations in fruit, sent to the current BMC to be measured and remind instruction;Otherwise, to described current BMC to be measured sends alarm command;
The current BMC to be measured, be further used for when receive it is described remind instruction when, to the corresponding positioning lamp output the One level, to light the positioning lamp, and when reaching default time threshold, second electrical level is exported to the positioning lamp, with Extinguish the positioning lamp, remind the I2C communication connections of external user currently between the SMC to be measured;And institute ought be received When stating alarm command, the first level is exported to the corresponding positioning lamp, to light the positioning lamp, reminds external user current With the I2C communication disruptions between the SMC to be measured;
Each described positioning lamp, for when receiving first level, lighting;When receiving the second electrical level, Extinguish.
9. a kind of computer-readable medium, it is characterised in that including computer executed instructions, when the processor of storage control is held During the row computer executed instructions, the storage control perform claim requires the method described in 1 to 3 any one.
10. a kind of storage control, it is characterised in that including:Processor, memory and bus;
The memory is used to store computer executed instructions, and the processor is connected with the memory by the bus, When the storage control is run, the computer executed instructions of memory storage described in the computing device, so that The storage control perform claim requires the method described in 1 to 3 any one.
CN201710485290.7A 2017-06-23 2017-06-23 A kind of method of test I2C communication stabilities, apparatus and system Pending CN107315666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710485290.7A CN107315666A (en) 2017-06-23 2017-06-23 A kind of method of test I2C communication stabilities, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710485290.7A CN107315666A (en) 2017-06-23 2017-06-23 A kind of method of test I2C communication stabilities, apparatus and system

Publications (1)

Publication Number Publication Date
CN107315666A true CN107315666A (en) 2017-11-03

Family

ID=60179619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710485290.7A Pending CN107315666A (en) 2017-06-23 2017-06-23 A kind of method of test I2C communication stabilities, apparatus and system

Country Status (1)

Country Link
CN (1) CN107315666A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136081A (en) * 2011-12-05 2013-06-05 鸿富锦精密工业(深圳)有限公司 Testing device and testing method of data center server stability
CN103186439A (en) * 2011-12-27 2013-07-03 鸿富锦精密工业(深圳)有限公司 Server test system and server stability test method
US20150193336A1 (en) * 2014-01-06 2015-07-09 Hon Hai Precision Industry Co., Ltd. Computing device and method for recording system event logs of computing device
CN106201804A (en) * 2016-07-28 2016-12-07 浪潮电子信息产业股份有限公司 The device of a kind of measuring and calculation mainboard, method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136081A (en) * 2011-12-05 2013-06-05 鸿富锦精密工业(深圳)有限公司 Testing device and testing method of data center server stability
CN103186439A (en) * 2011-12-27 2013-07-03 鸿富锦精密工业(深圳)有限公司 Server test system and server stability test method
US20150193336A1 (en) * 2014-01-06 2015-07-09 Hon Hai Precision Industry Co., Ltd. Computing device and method for recording system event logs of computing device
CN106201804A (en) * 2016-07-28 2016-12-07 浪潮电子信息产业股份有限公司 The device of a kind of measuring and calculation mainboard, method and system

Similar Documents

Publication Publication Date Title
CN105203980B (en) A kind of power quality self-checking system and its self checking method
CN104680905B (en) A kind of teaching process automatic monitoring system and monitoring method for being applied to experimental teaching
CN104965147A (en) Low-voltage-user electric energy meter series detection system and detection method
CN105355021B (en) Long-distance wireless meter-reading system based on ZigBee and its method for testing performance
CN102129061A (en) Automatic wiring detection device and method for three-phase simulation electric energy meter
CN103713215B (en) X-ray tube condition monitoring system and method
CN110658400B (en) Embedded test method, microcontroller and system
CN104391244A (en) Closed loop test method of relay protection apparatus and system thereof
CN115792364B (en) Power consumption calculation method based on standby state analysis
CN108920373B (en) Embedded software debugging system and method thereof
CN109656913A (en) Data acquisition abnormity based on Internet of Things mends trick method
US20230152389A1 (en) Method for Detecting Storage Battery of Vehicle and Battery Detection Device
CN109412902A (en) A kind of intelligent monitoring method of power dispatch data network system, storage equipment, terminal and system
CN105140152B (en) Wafer level packaging single chip microcomputer pin welding detection method
CN105119510A (en) Hybrid cascade multi-level transverter capacitance-voltage balance method and system
CN206818778U (en) Control and protection device on intelligent high reliability electric automobile cable
CN115061079A (en) Electric energy meter metering error online measurement method and batch test system
CN113590393B (en) Intelligent device testing method and device, electronic device and storage medium
CN105652137B (en) A kind of substation&#39;s on-line monitoring and diagnosis method of model identification and device
CN106941434A (en) The detecting system and method for a kind of communication message
CN101252477B (en) Determining method and analyzing apparatus of network fault root
CN111537793B (en) Power consumption testing method and system of mobile terminal
CN211148838U (en) Air conditioner internal unit testing device
CN107315666A (en) A kind of method of test I2C communication stabilities, apparatus and system
CN105182270A (en) Device and method of electric energy meter voltage-withstand test

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171103

RJ01 Rejection of invention patent application after publication