CN109933557A - A kind of generation method and device of I2C topological diagram - Google Patents

A kind of generation method and device of I2C topological diagram Download PDF

Info

Publication number
CN109933557A
CN109933557A CN201910218046.3A CN201910218046A CN109933557A CN 109933557 A CN109933557 A CN 109933557A CN 201910218046 A CN201910218046 A CN 201910218046A CN 109933557 A CN109933557 A CN 109933557A
Authority
CN
China
Prior art keywords
equipment
bus
topological diagram
main equipment
scanned
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
CN201910218046.3A
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.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN201910218046.3A priority Critical patent/CN109933557A/en
Publication of CN109933557A publication Critical patent/CN109933557A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

This application discloses a kind of generation methods of I2C topological diagram, it is able to respond in the instruction for the I2C topological diagram for generating main equipment, the I2C bus of main equipment is scanned to determine the slave equipment being located in the I2C bus, the I2C topological diagram of main equipment is finally generated according to the equipment scanned.It can be seen that, this method can read the slave equipment being connected in I2C bus using the scanning function of I2C bus, so that it is determined that from the connection relationship of equipment and main equipment I2C bus, and generate I2C topological diagram, in order to server, user is checked, the difficulty for greatly reducing test or using.In addition, effect corresponds to the above method present invention also provides the generating means and server system of a kind of I2C topological diagram.

Description

A kind of generation method and device of I2C topological diagram
Technical field
This application involves the communications field, in particular to a kind of generation method, device and the server system of I2C topological diagram.
Background technique
Server system architecture is relatively complicated, includes the common buses such as a variety of bus designs, such as JTAG, I2C.Clothes Business device user be difficult to check the topological structure of each bus, to server test, using bring puzzlement.
Summary of the invention
The purpose of the application is to provide generation method, device and the server system of a kind of I2C topological diagram, takes to solve Being engaged in, device framework is more complicated, and the user of server is difficult to obtain server rack composition, thus tests and use band to server Carry out difficult problem.
In order to solve the above technical problems, this application provides a kind of generation methods of I2C topological diagram, comprising:
In response to generating the instruction of the I2C topological diagram of main equipment, the I2C bus of the main equipment is scanned to determine and is located at institute State the slave equipment in I2C bus;
The I2C topological diagram of the main equipment is generated according to the equipment scanned.
Optionally, the I2C bus of the scanning main equipment is to determine the slave equipment being located in the I2C bus, tool Body includes:
The a plurality of I2C bus of the main equipment is scanned, to determine the slave equipment being located in I2C bus described in each item respectively.
Optionally, after the I2C topological diagram for generating the main equipment according to the equipment scanned, further includes:
The I2C topological diagram is shown in default display terminal.
Optionally, the main equipment is BMC.
Optionally, the I2C bus of the scanning main equipment with determine the slave equipment being located in the I2C bus it Afterwards, further includes:
Obtain the facility information from equipment.
Optionally, the facility information includes following any one or any combination: chip model, chip address, chip Manufacturer, chip data information.
In addition, present invention also provides a kind of generating means of I2C topological diagram, comprising:
Scan module: for the instruction of the I2C topological diagram in response to generating main equipment, the I2C for scanning the main equipment is total Line is to determine the slave equipment being located in the I2C bus;
Generation module: for generating the I2C topological diagram of the main equipment according to the equipment scanned.
Optionally, the scan module is specifically used for:
The a plurality of I2C bus of the main equipment is scanned, to determine the slave equipment being located in I2C bus described in each item respectively.
Optionally, described device further include:
Apparatus information acquiring module: for obtaining the facility information from equipment.
Finally, present invention also provides a kind of server system, including main equipment, further include by I2C bus with it is described The slave equipment that main equipment is connected;
Wherein, the main equipment is used to scan the I2C bus of itself in response to the instruction for generating I2C topological diagram with determination Slave equipment in the I2C bus, and I2C topological diagram is generated according to the equipment scanned.
A kind of generation method of I2C topological diagram provided herein is able to respond in the I2C topological diagram for generating main equipment Instruction, scan the I2C bus of main equipment with determine be located at the I2C bus on slave equipment, finally set according to what is scanned The standby I2C topological diagram for generating main equipment.As it can be seen that this method can be read using the scanning function of I2C bus, to be connected to I2C total Slave equipment on line, so that it is determined that from the connection relationship of equipment and main equipment I2C bus, and I2C topological diagram is generated, in order to take Business device user check, the difficulty for greatly reducing test or using.
In addition, present invention also provides the generating means and server system of a kind of I2C topological diagram, effect and above-mentioned side Method is corresponding, and which is not described herein again.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present application or the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this Shen Some embodiments please for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of implementation flow chart of the generation method embodiment one of I2C topological diagram provided herein;
Fig. 2 is a kind of system architecture schematic diagram of the generation method embodiment one of I2C topological diagram provided herein;
Fig. 3 is a kind of implementation flow chart of the generation method embodiment two of I2C topological diagram provided herein;
Fig. 4 is a kind of facility information schematic diagram of the generation method embodiment two of I2C topological diagram provided herein;
Fig. 5 is a kind of functional block diagram of the generating means embodiment of I2C topological diagram provided herein;
Fig. 6 is a kind of system architecture schematic diagram of server system provided herein.
Specific embodiment
The core of the application is to provide generation method, device and the server system of a kind of I2C topological diagram, realizes utilization The scanning function of I2C bus reads the slave equipment in bus and greatly reduces to generate the purpose of I2C topological diagram The difficulty that server is tested or used.
In order to make those skilled in the art more fully understand application scheme, with reference to the accompanying drawings and detailed description The application is described in further detail.Obviously, described embodiments are only a part of embodiments of the present application, rather than Whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall in the protection scope of this application.
A kind of generation method embodiment one of I2C topological diagram provided by the present application is introduced below, it is real referring to Fig. 1 Applying example one includes:
Step S101: the instruction in response to generating the I2C topological diagram of main equipment scans the I2C bus of main equipment with determination Slave equipment in I2C bus.
I2C bus involved in this embodiment refers to the communication bus being directly connected with main equipment, I2C bus be by A kind of simple, bidirectional two-line synchronous serial bus of Philips company exploitation, it only needs both threads that can be connected to always Information is transmitted between device on line, has large number of equipment to support I2C bus in the server, by the information of I2C bus transfer, Server state is obtained, and control instruction is issued according to server real-time status, realizes monitoring management function.
As described above, relating generally to main equipment in the present embodiment and from equipment, principal and subordinate here refers between the two Communication pattern.As an alternative embodiment, above-mentioned main equipment can be BMC (Baseboard Management Controller), BMC can possess an I2C bus, can also possess a plurality of I2C bus, as shown in Fig. 2, in practical application In scene, BMC, will be different total in different I2C from device distribution according to factors such as load capacity, functional attributes from equipment Under line.Specifically, BMC is according to the numerical value from equipment Self address register, differentiation is each from equipment, and to possess from equipment The different addresses I2C.In the actual working process, BMC reads all information from equipment (equipment 1- equipment 9), meanwhile, it can It is each from equipment to send a command to, realize monitoring management function.
Step S102: the I2C topological diagram of main equipment is generated according to the equipment scanned.
As described above, the present embodiment utilizes I2C bus after receiving the order for generating the I2C topological diagram of main equipment To the scanning function from equipment, all under each I2C bus of main equipment are read from equipment, and automatically in monitoring management circle Face generates I2C topological diagram, for checking in machine test or use process.
The present embodiment provides a kind of generation method of I2C topological diagram, is able to respond in the I2C topological diagram for generating main equipment Instruction, scan the I2C bus of main equipment with determine be located at the I2C bus on slave equipment, finally set according to what is scanned The standby I2C topological diagram for generating main equipment.As it can be seen that this method can be read using the scanning function of I2C bus, to be connected to I2C total Slave equipment on line, so that it is determined that from the connection relationship of equipment and main equipment I2C bus, and I2C topological diagram is generated, in order to take Business device user check, the difficulty for greatly reducing test or using.
Start that a kind of generation method embodiment two of I2C topological diagram provided by the present application, embodiment two is discussed in detail below It one realizes based on the above embodiment, and has carried out expansion to a certain extent on the basis of example 1.
Specifically, embodiment two not only reads each from equipment, the facility information from equipment, above equipment are also had read Information may include: chip model, chip address, chip manufacturer, chip data information etc..Referring to Fig. 3, embodiment two is specifically wrapped It includes:
Step S201: the instruction in response to generating the I2C topological diagram of BMC scans a plurality of I2C bus of BMC, with true respectively The slave equipment being positioned in each I2C bus.
Step S202: the facility information from equipment is obtained.
Compared to embodiment one, the present embodiment not only passes through the connection of scanning determining slave equipment and main equipment I2C bus Relationship, each facility information from equipment also read, wherein as shown in figure 4, facility information may include following any one It is or multinomial: equipment identification information, equipment running status, chip model, chip functions, chip address, chip manufacturer, chip data Information etc..
Step S203: the I2C topological diagram of BMC is generated according to the equipment and its facility information scanned.
In the present embodiment, I2C topological diagram not only includes the connection relationship between equipment and main equipment I2C bus, also It can according to actual needs include specific facility information, in order to be provided for user more when showing I2C topological diagram Information.For example, each operating status from equipment can be shown user demand according to, facilitates real-time servicing from equipment, mention High system stability.
Step S204: the I2C topological diagram is shown in default display terminal.
As described above, the I2C topological diagram that the present embodiment is shown can show that removing connection closes according to the actual demand of user Information except system, any one or more information being specifically as follows in above equipment information.As a kind of optional implementation Mode, above-mentioned default display terminal can be monitoring management interface.
In conclusion a kind of generation method of I2C topological diagram provided in this embodiment, is able to respond in generation main equipment The instruction of I2C topological diagram scans the I2C bus of main equipment to determine the slave equipment being located in the I2C bus, and reads each From the facility information of equipment, the I2C topological diagram of main equipment is finally generated according to the equipment and its facility information scanned.As it can be seen that The present embodiment can be in route design, especially comprising being extracted by I2C bus read functions there are many in the route of bus Topological structure, and show I2C topological structure at monitoring management interface.Furthermore, it is possible to read the other information of chip, and according to need Step of seeking common ground is shown in the topological structure.It is compared with existing scheme, the present embodiment is by automaticly inspecting from equipment state, it is ensured that from For equipment under normal operating condition, dynamic realtime shows chip functions, operating status, significantly facilitates user and uses, tests very To safeguard service device.
A kind of generating means embodiment of I2C topological diagram provided by the embodiments of the present application is introduced below, is hereafter retouched A kind of generating means for the I2C topological diagram stated can correspond to each other reference with a kind of above-described generation method of I2C topological diagram.
As described in Figure 5, which includes:
Scan module 501: for the instruction of the I2C topological diagram in response to generating main equipment, the I2C of the main equipment is scanned Bus is to determine the slave equipment being located in the I2C bus;
Generation module 502: for generating the I2C topological diagram of the main equipment according to the equipment scanned.
As an alternative embodiment, the scan module 501 is specifically used for:
The a plurality of I2C bus of the main equipment is scanned, to determine the slave equipment being located in I2C bus described in each item respectively.
As an alternative embodiment, described device further include:
Apparatus information acquiring module 503: for obtaining the facility information from equipment.
A kind of generating means of I2C topological diagram of the present embodiment are for realizing a kind of I2C topology map generalization side above-mentioned Method, therefore the embodiment part of the visible generation method of I2C topological diagram one of above of specific embodiment in the device, For example, scan module 501, generation module 502, are respectively used to step in the generation method for realizing a kind of above-mentioned I2C topological diagram S101, S102.So specific embodiment is referred to the description of corresponding various pieces embodiment, it is not reinflated herein It introduces.
In addition, since a kind of generating means of I2C topological diagram of the present embodiment are for realizing a kind of I2C topological diagram above-mentioned Generation method, therefore its effect is corresponding with the effect of the above method, and which is not described herein again.
In addition, present invention also provides a kind of server systems, as shown in fig. 6, the system includes: main equipment 601, also wrap Include the slave equipment 602 being connected by I2C bus with the main equipment;Wherein, the main equipment 601 is used in response to generating The instruction of I2C topological diagram scans the I2C bus of itself to determine the slave equipment 602 being located in the I2C bus, and according to sweeping The equipment retouched generates I2C topological diagram.
A kind of server system of the present embodiment is somebody's turn to do for realizing a kind of generation method of I2C topological diagram above-mentioned The embodiment part of the visible generation method of I2C topological diagram one of above of the specific embodiment of server system, and its Effect is corresponding with above method embodiment, and which is not described herein again.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Generation method, device and the server system of a kind of I2C topological diagram provided herein have been carried out in detail above It is thin to introduce.Specific examples are used herein to illustrate the principle and implementation manner of the present application, and above embodiments are said It is bright to be merely used to help understand the present processes and its core concept.It should be pointed out that for the ordinary skill of the art For personnel, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improvement It is also fallen into the protection scope of the claim of this application with modification.

Claims (10)

1. a kind of generation method of I2C topological diagram characterized by comprising
In response to generating the instruction of the I2C topological diagram of main equipment, the I2C bus of the main equipment is scanned to determine positioned at described Slave equipment in I2C bus;
The I2C topological diagram of the main equipment is generated according to the equipment scanned.
2. the method as described in claim 1, which is characterized in that the I2C bus of the scanning main equipment is located at determination Slave equipment in the I2C bus, specifically includes:
The a plurality of I2C bus of the main equipment is scanned, to determine the slave equipment being located in I2C bus described in each item respectively.
3. method according to claim 2, which is characterized in that generate the main equipment according to the equipment scanned described After I2C topological diagram, further includes:
The I2C topological diagram is shown in default display terminal.
4. method as claimed in claim 3, which is characterized in that the main equipment is BMC.
5. the method as described in claim 1-4 any one, which is characterized in that total in the I2C of the scanning main equipment Line is to determine after the slave equipment in the I2C bus, further includes:
Obtain the facility information from equipment.
6. method as claimed in claim 5, which is characterized in that the facility information includes following any one or any group It closes: chip model, chip address, chip manufacturer, chip data information.
7. a kind of generating means of I2C topological diagram characterized by comprising
Scan module: in response to generate main equipment I2C topological diagram instruction, scan the I2C bus of the main equipment with Determine the slave equipment being located in the I2C bus;
Generation module: for generating the I2C topological diagram of the main equipment according to the equipment scanned.
8. device as claimed in claim 7, which is characterized in that the scan module is specifically used for:
The a plurality of I2C bus of the main equipment is scanned, to determine the slave equipment being located in I2C bus described in each item respectively.
9. method as claimed in claim 7 or 8, which is characterized in that described device further include:
Apparatus information acquiring module: for obtaining the facility information from equipment.
10. a kind of server system, which is characterized in that further include being connected by I2C bus with the main equipment including main equipment The slave equipment connect;
Wherein, the main equipment is used for the instruction in response to generating I2C topological diagram, scans the I2C bus of itself and is located at determination Slave equipment in the I2C bus, and I2C topological diagram is generated according to the equipment scanned.
CN201910218046.3A 2019-03-21 2019-03-21 A kind of generation method and device of I2C topological diagram Pending CN109933557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910218046.3A CN109933557A (en) 2019-03-21 2019-03-21 A kind of generation method and device of I2C topological diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910218046.3A CN109933557A (en) 2019-03-21 2019-03-21 A kind of generation method and device of I2C topological diagram

Publications (1)

Publication Number Publication Date
CN109933557A true CN109933557A (en) 2019-06-25

Family

ID=66987888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910218046.3A Pending CN109933557A (en) 2019-03-21 2019-03-21 A kind of generation method and device of I2C topological diagram

Country Status (1)

Country Link
CN (1) CN109933557A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784362A (en) * 2019-11-04 2020-02-11 中国南方电网有限责任公司超高压输电公司昆明局 Structure and method for accurately managing control protection system bus in direct current converter station
CN112883523A (en) * 2021-01-29 2021-06-01 深圳市道通科技股份有限公司 Automobile bus topological graph display method, device and equipment
CN112910696A (en) * 2021-01-22 2021-06-04 上海三零卫士信息安全有限公司 Automatic modeling analysis method for network topology
WO2021168773A1 (en) * 2020-02-28 2021-09-02 华为技术有限公司 Communication method and communication apparatus
CN117271246A (en) * 2023-11-22 2023-12-22 深圳市蓝鲸智联科技股份有限公司 I2C equipment debugging method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956592A (en) * 2006-09-08 2007-05-02 华为技术有限公司 Method and system for acquiring topological information of radio network
CN101267315A (en) * 2008-04-18 2008-09-17 清华大学 An irregular topology structure generation method for chip network
CN104978252A (en) * 2014-04-02 2015-10-14 华为技术有限公司 Sensor scanning method and substrate management controller
CN106547501A (en) * 2015-09-18 2017-03-29 北京国双科技有限公司 The display packing and device of information
CN106970890A (en) * 2016-08-31 2017-07-21 上海博达通信科技有限公司 A kind of multistage I2C bus control methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956592A (en) * 2006-09-08 2007-05-02 华为技术有限公司 Method and system for acquiring topological information of radio network
CN101267315A (en) * 2008-04-18 2008-09-17 清华大学 An irregular topology structure generation method for chip network
CN104978252A (en) * 2014-04-02 2015-10-14 华为技术有限公司 Sensor scanning method and substrate management controller
CN106547501A (en) * 2015-09-18 2017-03-29 北京国双科技有限公司 The display packing and device of information
CN106970890A (en) * 2016-08-31 2017-07-21 上海博达通信科技有限公司 A kind of multistage I2C bus control methods

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陆篠华: "数控系统现场总线混联技术研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784362A (en) * 2019-11-04 2020-02-11 中国南方电网有限责任公司超高压输电公司昆明局 Structure and method for accurately managing control protection system bus in direct current converter station
CN110784362B (en) * 2019-11-04 2021-06-22 中国南方电网有限责任公司超高压输电公司昆明局 Method for precisely managing control protection system bus in direct current converter station
WO2021168773A1 (en) * 2020-02-28 2021-09-02 华为技术有限公司 Communication method and communication apparatus
CN112910696A (en) * 2021-01-22 2021-06-04 上海三零卫士信息安全有限公司 Automatic modeling analysis method for network topology
CN112883523A (en) * 2021-01-29 2021-06-01 深圳市道通科技股份有限公司 Automobile bus topological graph display method, device and equipment
WO2022160997A1 (en) * 2021-01-29 2022-08-04 深圳市道通科技股份有限公司 Vehicle bus topological graph display method and apparatus, and device
CN112883523B (en) * 2021-01-29 2024-04-02 深圳市道通科技股份有限公司 Automobile bus topological graph display method, device and equipment
CN117271246A (en) * 2023-11-22 2023-12-22 深圳市蓝鲸智联科技股份有限公司 I2C equipment debugging method

Similar Documents

Publication Publication Date Title
CN109933557A (en) A kind of generation method and device of I2C topological diagram
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
TWI595364B (en) Automatic image recovery method and server system
CN102880532B (en) Cloud technology-based test system and method
CN103616937A (en) Mainboard, PCIE network card and server system
CN111143256A (en) Method and device for reading field replaceable unit information
CN108665272A (en) Block chain data processing method, device, equipment and storage medium
CN109376011A (en) The method and apparatus of resource are managed in virtualization system
CN112286723A (en) Computer room disaster recovery control method, terminal and storage medium
CN101819550A (en) Interface testing system for serial connecting small computer system
CN109725617A (en) A kind of construction method of industrial configuration platform, building system and relevant apparatus
CN115129249A (en) SAS link topology identification management method, system, terminal and storage medium
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN114996067A (en) Configuration method and device of sequence generator suitable for chip verification
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN116560586B (en) Determination method and device of attribute value, storage medium and electronic equipment
CN106708445B (en) Link selecting method and device
CN115576737B (en) Abnormality detection method, abnormality detection device, electronic device, and storage medium
CN114201413A (en) Automatic testing method and system and electronic equipment
CN114238019A (en) Hard disk display method, device, equipment and medium
CN113900718A (en) Method, system and device for decoupling asset information of BMC (baseboard management controller) and BIOS (basic input/output system)
CN114138195A (en) Disk array management method and system and electronic equipment
CN107247673A (en) A kind of memory allocation method and device
CN117251297B (en) Equipment distribution method, electronic equipment and storage medium
CN109918323A (en) Data signals acquisition method, device, equipment and storage medium in integrated circuit

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

Application publication date: 20190625