CN112100115A - Multi-device management method based on Openmmc - Google Patents

Multi-device management method based on Openmmc Download PDF

Info

Publication number
CN112100115A
CN112100115A CN202010819044.2A CN202010819044A CN112100115A CN 112100115 A CN112100115 A CN 112100115A CN 202010819044 A CN202010819044 A CN 202010819044A CN 112100115 A CN112100115 A CN 112100115A
Authority
CN
China
Prior art keywords
command
openmmc
forwarding
host
management method
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.)
Granted
Application number
CN202010819044.2A
Other languages
Chinese (zh)
Other versions
CN112100115B (en
Inventor
包晨鸣
吴少刚
徐锋
谭健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Lemote Information Technology Co ltd
Original Assignee
Jiangsu Lemote 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 Jiangsu Lemote Information Technology Co ltd filed Critical Jiangsu Lemote Information Technology Co ltd
Priority to CN202010819044.2A priority Critical patent/CN112100115B/en
Publication of CN112100115A publication Critical patent/CN112100115A/en
Application granted granted Critical
Publication of CN112100115B publication Critical patent/CN112100115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port
    • 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/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • 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/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Small-Scale Networks (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses an Openmmc-based multi-device management method, which comprises the following specific steps: s1, the host system sends a command to the host Openmmc through the serial port; s2, after receiving the command, the host Openmmc judges the type of the command; s3, when the command is a forwarding command, feeding back to the host system; s4, the host Openmmc forwards the command to the slave Openmmc; s5, the slave computer Openmmc executes the command and feeds back the command to the host computer Openmmc; and S6, feeding back the host system by the host Openmmc through the serial port. The invention improves the monitoring thread and the command function of the Openmmc, and the command forwarding is realized through the improved Openmmc. The invention realizes the control and management of one host computer to a plurality of devices by accessing a plurality of devices or host computers to the I2C bus and by means of the forwarding of commands.

Description

Multi-device management method based on Openmmc
Technical Field
The invention relates to the technical field of computers, in particular to a multi-device management method based on Openmmc.
Background
IPMI is an abbreviation of Intelligent Platform Management Interface (Intelligent Platform Management Interface), which is an industrial standard adopted for managing peripheral devices used in enterprise systems based on an Intel architecture. The Openmmc is open source software based on IPMI, runs on a microcontroller, interacts with a host system through a serial port, and has a single machine management function, and the host system can control the on-off or restarting action of the host system through the Openmmc or acquire the value of a sensor of the host system and the like.
Now, the Openmmc function needs to be expanded, and the transmission and reception of commands are expanded into the forwarding of commands, so as to implement the management of multiple devices, and adapt to more application scenarios.
The reference is a standard in IPMI regarding command transmission and reception.
The structure of data at the time of sending a command and receiving a response is shown in fig. 1, and is hereinafter referred to as a "command structure", and the fields are explained as follows: rsAddr is the responder address, rqAddr is the requester address, netFn and cmd fields are used to specify the function that processes the data, and databytes contains the specific behavior of the command.
Disclosure of Invention
The task of the invention is to provide a multi-device management method based on Openmmc, and the forwarding of commands is realized by means of an IPMI standard and an I2C channel, so that the device control of a slave machine by a host machine is realized.
In order to achieve the above object, the present invention provides a multi-device management method based on Openmmc, which comprises the following specific steps:
s1, the host system sends a command to the host Openmmc through the serial port;
s2, after receiving the command, the host Openmmc judges the type of the command;
s3, when the command is a forwarding command, feeding back to the host system;
s4, the host Openmmc forwards the command to the slave Openmmc;
s5, the slave computer Openmmc executes the command and feeds back the command to the host computer Openmmc;
and S6, feeding back the host system by the host Openmmc through the serial port.
Further, the step S2 determines the command type, specifically, the command type is determined by the netfn and cmd fields in the command, and when netfn =0x 06 and cmd =0x34, the command type is a forwarding command.
Further, the Openmmc includes a monitoring thread and a command processing function.
Further, the monitoring thread includes a receiving monitoring thread and a sending monitoring thread, and the command processing function includes a general command processing function and a forwarding command processing function.
Further, in step S4, the forwarding command is sent to the slave Openmmc, and the specific steps are as follows:
S4A, the receiving monitoring thread of the host Openmmc transmits the forwarding command to the forwarding command processing function;
S4B, the forwarding command processing function obtains the forwarding content from the forwarding command and transmits the forwarding content to the sending monitoring thread;
and S4C, the sending monitoring thread analyzes the forwarding content, reconstructs the command and transmits the command to the slave Openmmc.
Further, the forwarding content is a data field in the forwarding command, and includes a channel selection byte and data of the new command.
Further, the reconfiguration command is to split and fill the data of the new command into the command structure.
Further, the master and the slave are connected by an I2C bus, and the corresponding channel selection byte is I2C.
Further, the data of the new command comprises an I2C address and a control command, the I2C address is an address of a slave machine accessing an I2C bus, and the control command comprises startup and shutdown, restart and acquisition of a sensor value.
Furthermore, the slave machines are N, and all the slave machines are connected to the I2C bus, and the master Openmmc determines the target slave machine for forwarding the command according to the I2C address.
Furthermore, N hosts are connected to the I2C bus, and any one host is selected as a control host, and the other hosts are used as slaves to manage multiple slave devices.
The invention has the beneficial effects that:
1. the monitoring thread of the Openmmc is improved, the Openmmc monitoring thread has the capacity of judging forwarding and implementing forwarding, a forwarding command function is added, the command is analyzed and reconstructed, and the command is forwarded through the improved Openmmc.
2. A plurality of devices or hosts are connected to the I2C bus, and the forwarding of commands is realized through the I2C bus, so that one host controls and manages the plurality of devices.
Drawings
Fig. 1 shows a prior art command structure.
Fig. 2 shows a flow chart of master managing slaves.
Fig. 3 shows a block diagram of an embodiment of the invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Refer to FIG. 1, which is a prior art command structure for understanding the details of the present invention.
Referring to fig. 2, in the preferred embodiment of the present invention, the master device manages the slave device as follows:
s1, the host system sends a command to the host Openmmc through the serial port: the command is divided into a general command and a forwarding command, the general command comprises switching on and off, restarting and acquiring a sensor value, and the forwarding command is to forward the general command to a specific slave;
and S2, after the host Openmmc receives the command, judging the type of the command: when the command is a general command, the host Openmmc executes the command and feeds back a result to the host;
s3, when the command is a forwarding command, feeding back to the host system: the host Openmmc gives a feedback to the host system through the serial port, and informs the host system that a forwarding request has been received through a data field in the command structure;
s4, forwarding a command to the slave Openmmc by the host Openmmc: the host Openmmc analyzes the forwarding command, forms a new general command and sends the new general command to the slave Openmmc;
s5, the slave Openmmc executes the command and feeds back the command to the host Openmmc: the slave Openmmc executes a general command and feeds back an execution result, such as started, shut down, restarted or a sensor and a corresponding value thereof;
s6, the host Openmmc feeds back the host system through the serial port: and the host Openmmc informs the host system of the feedback result of the slave machine, so that the management of the slave machine equipment by the host machine is realized.
Specifically, Openmmc includes a monitoring thread including a receiving monitoring thread and a sending monitoring thread, and a command processing function including a general command processing function and a forwarding command processing function.
Specifically, in the process of transmitting the master command to the slave, the work flow of the master Openmmc is as follows: receiving a command received by a monitoring thread, and judging the command type according to the netfn and cmd fields; when netfn =0x 06 and cmd =0x34, the command type is a forwarding command, and the command is transferred to a forwarding command processing function; when the command is not a forwarding command, the command is transferred to a general command processing function; the forwarding command processing function acquires forwarding contents from a data field of the command, wherein the forwarding contents comprise channel selection bytes and data of a new command, and transmits the data to a sending monitoring thread; and the sending monitoring thread divides and fills the data of the new command into the command structure, and sends the channel specified by the channel selection character to the slave Openmmc.
Specifically, I2C may be selected as a management channel of the master to the slave device, at this time, both the master and the slave access the I2C bus, the corresponding channel selection byte is I2C, the data of the new command includes an I2C address and a general command, the I2C address is an address of the slave access the I2C bus, and the general command includes switching on and off, restarting, and acquiring a sensor value.
Specifically, N slaves may be provided and all access to the I2C bus, and the master Openmmc determines a target slave for forwarding a command according to the I2C address.
Referring to fig. 3, when N hosts are connected to the I2C bus, any one host may be selected as a control host to manage the other devices.
The method has the advantages that the monitoring thread of the Openmmc is improved, the Openmmc has the capacity of judging forwarding and implementing forwarding, a forwarding command function is added, the command is analyzed and reconstructed, and the command is forwarded through the improved Openmmc. A plurality of devices or hosts are connected to the I2C bus, and the forwarding of commands is realized through the I2C bus, so that one host controls and manages the plurality of devices. The actual measurement host system obtains the information of the slave sensor through the forwarding command, and the speed difference between the actual measurement host system and the slave system for directly obtaining the information of the slave system is not large, so that the requirement can be met.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (11)

1. The multi-device management method based on Openmmc is characterized by comprising the following specific steps:
s1, the host system sends a command to the host Openmmc through the serial port;
s2, after receiving the command, the host Openmmc judges the type of the command;
s3, when the command is a forwarding command, feeding back to the host system;
s4, the host Openmmc forwards the command to the slave Openmmc;
s5, the slave computer Openmmc executes the command and feeds back the command to the host computer Openmmc;
and S6, feeding back the host system by the host Openmmc through the serial port.
2. The Openmmc-based multi-device management method of claim 1, wherein: the step S2 is to determine the command type, specifically, the command type is determined by the netfn and cmd fields in the command, and when netfn =0x 06 and cmd =0x34, the command type is a forwarding command.
3. The Openmmc-based multi-device management method of claim 1, wherein: the Openmmc includes a monitor thread and a command processing function.
4. The Openmmc-based multi-device management method of claim 3, wherein: the monitoring thread includes a receiving monitoring thread and a sending monitoring thread, and the command processing function includes a general command processing function and a forwarding command processing function.
5. The Openmmc-based multi-device management method of claim 4, wherein: in step S4, the forwarding command is sent to the slave Openmmc, and the specific steps are as follows:
S4A, the receiving monitoring thread of the host Openmmc transmits the forwarding command to the forwarding command processing function;
S4B, the forwarding command processing function obtains the forwarding content from the forwarding command and transmits the forwarding content to the sending monitoring thread;
and S4C, the sending monitoring thread analyzes the forwarding content, reconstructs the command and transmits the command to the slave Openmmc.
6. The Openmmc-based multi-device management method of claim 5, wherein: the forwarding content is a data field in the forwarding command and comprises a channel selection byte and data of a new command.
7. The Openmmc-based multi-device management method of claim 5, wherein the reconfiguration command is a split-filling of data of a new command into a command structure.
8. The Openmmc-based multi-device management method of claim 6, wherein the master and slave are connected by an I2C bus, and the corresponding channel selection byte is I2C.
9. The Openmmc-based multi-device management method of claim 8, wherein the data of the new command includes an I2C address and a control command, the I2C address is an address of a slave accessing an I2C bus, and the control command includes powering on and powering off, restarting and obtaining a sensor value.
10. The Openmmc-based multi-device management method of claim 9, wherein N slaves have access to an I2C bus, and a master Openmmc determines a target slave to forward a command according to an I2C address.
11. The Openmmc-based multi-device management method of claim 8, wherein N masters are connected to the I2C bus, any one master is selected as a control master, and the other masters are used as slaves to manage multiple slave devices.
CN202010819044.2A 2020-08-14 2020-08-14 Multi-device management method based on Openmmc Active CN112100115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010819044.2A CN112100115B (en) 2020-08-14 2020-08-14 Multi-device management method based on Openmmc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010819044.2A CN112100115B (en) 2020-08-14 2020-08-14 Multi-device management method based on Openmmc

Publications (2)

Publication Number Publication Date
CN112100115A true CN112100115A (en) 2020-12-18
CN112100115B CN112100115B (en) 2023-07-28

Family

ID=73752961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010819044.2A Active CN112100115B (en) 2020-08-14 2020-08-14 Multi-device management method based on Openmmc

Country Status (1)

Country Link
CN (1) CN112100115B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1055341A (en) * 1996-08-12 1998-02-24 Fujitsu Ltd Interface control system
US20150149684A1 (en) * 2013-11-26 2015-05-28 American Megatrends, Inc. Handling two ses sidebands using one smbus controller on a backplane controller
CN105468327A (en) * 2016-01-12 2016-04-06 福建星网锐捷安防科技有限公司 Large screen splicing display method, device and system
CN205430732U (en) * 2016-02-02 2016-08-03 陕西科技大学 Configuration device based on DALI system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1055341A (en) * 1996-08-12 1998-02-24 Fujitsu Ltd Interface control system
US20150149684A1 (en) * 2013-11-26 2015-05-28 American Megatrends, Inc. Handling two ses sidebands using one smbus controller on a backplane controller
CN105468327A (en) * 2016-01-12 2016-04-06 福建星网锐捷安防科技有限公司 Large screen splicing display method, device and system
CN205430732U (en) * 2016-02-02 2016-08-03 陕西科技大学 Configuration device based on DALI system

Also Published As

Publication number Publication date
CN112100115B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US10353728B2 (en) Method, system and device for managing virtual machine software in cloud environment
TWI354207B (en) Apparatus, system, and method for facilitating man
EP2472402B1 (en) Remote management systems and methods for mapping operating system and management controller located in a server
US7765081B2 (en) Systems and methods for a distributed execution environment with per-command environment management
CN105357258B (en) Acceleration management node, acceleration node, client and method
US20080294764A1 (en) Storage medium bearing hba information provision program, hba information provision method and hba information provision apparatus
JP2008097602A (en) System, method, and program for communication management by majority configuration for virtual machine
WO2012106388A1 (en) System and method for managing and detecting server power connections
CN107819640B (en) Monitoring method and device for robot operating system
US20080010608A1 (en) Apparatus and methods for ensuring visibility of display window
CN112100115A (en) Multi-device management method based on Openmmc
JP2023126702A (en) Information processing device and data transfer method
US11314670B2 (en) Method, apparatus, and device for transmitting file based on BMC, and medium
WO2022267646A1 (en) Pod deployment method and apparatus
US20190146851A1 (en) Method, device, and non-transitory computer readable storage medium for creating virtual machine
WO2022061587A1 (en) Edge computing method and system, edge device, and control server
CN110971660B (en) Multi-server control method and device
CN114356348A (en) Running engine system and application thereof
US9733871B1 (en) Sharing virtual tape volumes between separate virtual tape libraries
CN117076409B (en) File sharing method, device, system, electronic equipment and storage medium
WO2014087654A1 (en) Data transmission device, data transmission method, and storage medium
CN105468540A (en) L2 Cache, uniformity implementation method for L2 Cache, and data processing system
US11782702B2 (en) Generation of code for a system
KR20170108414A (en) Smart device executing instruction code for automatically installing or updating software of terminal device and terminal device receiving software through smart device
CN115442560A (en) Method, client, server, device and medium for acquiring multi-path data streams

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
GR01 Patent grant
GR01 Patent grant