WO2017004908A1 - Communication method and apparatus for intelligent platform management interface device, and communication device - Google Patents
Communication method and apparatus for intelligent platform management interface device, and communication device Download PDFInfo
- Publication number
- WO2017004908A1 WO2017004908A1 PCT/CN2015/092233 CN2015092233W WO2017004908A1 WO 2017004908 A1 WO2017004908 A1 WO 2017004908A1 CN 2015092233 W CN2015092233 W CN 2015092233W WO 2017004908 A1 WO2017004908 A1 WO 2017004908A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- specified data
- microcontroller
- ipmi
- response
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000004044 response Effects 0.000 claims abstract description 50
- 238000012795 verification Methods 0.000 claims abstract description 25
- 238000012545 processing Methods 0.000 claims description 7
- 238000009877 rendering Methods 0.000 claims description 2
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims 12
- 238000012360 testing method Methods 0.000 abstract description 8
- 230000005540 biological transmission Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/407—Bus networks with decentralised control
- H04L12/413—Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection [CSMA-CD]
- H04L12/4135—Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection [CSMA-CD] using bit-wise arbitration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/24—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using dedicated network management hardware
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Definitions
- the present invention relates to the field of communications, and in particular to a communication method and device, and a communication device for an intelligent platform management interface device.
- the Intelligent Platform Management Interface is an open standard hardware management interface specification that defines a specific method for the embedded management subsystem to communicate.
- the IPMI communication protocol is similar to the two-wire serial bus (Inter-Integrated Circuit, I2C) communication protocol in hardware implementation. It also uses two lines of data line SDA and clock signal line SCL, plus a GND line.
- the I2C communication protocol is implemented according to the main read master write mode, that is, when the communication card communicates with the I2C device, the communication card is communicated as a host whether it is a read operation or a write operation.
- the IPMI communication protocol is different from the I2C protocol, and the IPMI communication protocol is implemented according to the main transmission and receiving method. The communication card operates as a host when transmitting data to the IPMI device.
- the communication card When the communication card receives data from the IPMI, the communication card needs to be changed to receive data from the slave. It is because of the master-slave switching that most of the I2C communication cards sold in the market cannot implement the master-slave switching function. If you want to test the communication of the IPMI device, you need to resort to the system. Due to the large size of the system, the operation is complicated and the startup time is slow.
- the main purpose of the embodiments of the present invention is to provide a communication method, a device, and a communication device for an intelligent platform management interface device, so as to at least solve the problem that the communication test of the IPMI device by the system is complicated and the startup time is slow.
- a communication method of an intelligent platform management interface device including: a microcontroller acquires, from a host computer, specified data for instructing an IPMI device to trigger operation of an intelligent platform management interface device; The controller parses and verifies the specified data, and forwards the specified data to the IPMI device after the verification succeeds; the microcontroller receives data of the IPMI device in response to the specified data; The controller transmits data in response to the specified data to the host computer, wherein the host computer presents data in response to the specified data to a user.
- the acquiring, by the microcontroller, the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device includes: the microcontroller receiving an instruction that the user forwarded by the upper computer triggers the IPMI device to perform an operation.
- the controller converts the instructions into digitalized designated data.
- the parsing the specified data by the microcontroller comprises: the microcontroller re-encoding the specified data.
- the sending, by the microcontroller, data in response to the specified data to the upper computer includes: the microcontroller verifying data in response to the specified data; the microcontroller is After the verification is successful, the data in response to the specified data is parsed, and the parsed data in response to the specified data is sent to the upper computer.
- a communication device for managing an intelligent platform management interface device which is applied to a microcontroller side, and includes: an obtaining module, configured to acquire, from the upper computer, an instruction to trigger the intelligent platform management interface device.
- the specified data of the IPMI device operation the processing module is configured to parse and verify the specified data, and forward the specified data to the IPMI device after the verification succeeds;
- the receiving module is configured to receive the IPMI device in response to
- the sending module is configured to send data responsive to the specified data to the upper computer, wherein the upper computer presents the data in response to the specified data to the user.
- the obtaining module includes: a receiving unit, configured to receive an instruction that the user forwarded by the upper computer triggers the IPMI device to perform an operation; and an encoding unit configured to encode the instruction into a digitized specified data .
- the processing module is further configured to re-encode the specified data.
- the sending module includes: a checking unit configured to perform verification on data in response to the specified data; and a rendering unit configured to perform data in response to the specified data after the verification is successful Parsing, and transmitting the parsed data in response to the specified data to the upper computer.
- a communication device of an intelligent platform management interface device including: a host computer and a microcontroller; and the host computer is configured to acquire an IPMI device for triggering an intelligent platform management interface. Designating data for operation, and transmitting the specified data to the microcontroller; the microcontroller, configured to parse and verify the specified data, and forwarding the specified data to the An IPMI device, configured to receive data of the IPMI device in response to the specified data, and send data responsive to the specified data to the upper computer; the upper computer further sets To present data in response to the specified data to the user.
- the device includes: a power supply circuit; the power supply circuit is configured to provide power to the microcontroller, and provide a communication interface between the microcontroller and the host computer.
- the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device is obtained by using the micro control, and then parsed and verified, and then sent to the IPMI device, and then received by the IPMI device in response to the specified data.
- the data is sent to the host computer, and the data transmission and reception with the IPMI device is realized by using the microcontroller, which solves the complicated communication test of the IPMI device by the system in the related art, and the startup time is slow. problem.
- FIG. 1 is a flowchart of a communication method of an intelligent platform management interface device according to an embodiment of the present invention
- FIG. 2 is a structural block diagram of a communication device of an intelligent platform management interface device according to an embodiment of the present invention
- FIG. 3 is a block diagram 1 of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention
- FIG. 4 is a block diagram 2 of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of a communication device of an intelligent platform management interface device according to an embodiment of the present invention.
- FIG. 7 is a flow chart of a method of implementing an IPMI device communication in accordance with an alternate embodiment of the present invention.
- FIG. 1 is a flowchart of a communication method of an intelligent platform management interface device according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps. :
- Step S102 The microcontroller acquires, from the host computer, specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface device;
- Step S104 The microcontroller parses and verifies the specified data, and forwards the designated data to the IPMI device after the verification succeeds;
- Step S106 The microcontroller receives data of the IPMI device in response to the specified data.
- Step S108 The microcontroller sends data in response to the specified data to the host computer, wherein the host computer presents the data in response to the specified data to the user.
- step S102 to step S108 of the embodiment the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device is obtained by using the micro control, and then parsed and verified, and then sent to the IPMI device, thereby receiving the response of the IPMI device.
- the data of the specified data is sent to the host computer, thereby realizing the data transmission and reception with the IPMI device by using the microcontroller, and solving the complicated technical test of the IPMI device by the system in the related art. , the problem of slow startup time.
- Step S11 The microcontroller receives an instruction that the user forwarded by the host computer triggers the IPMI device to perform an operation
- Step S12 encoding the instruction for the controller into digital designated data.
- the microcontroller parses and verifies the manner in which the microcontroller in the specified data parses the specified data, ie, the microcontroller re-encodes the specified data.
- the microcontroller receives the data sent by the host computer, and after receiving the transmitted data, The data is verified; after confirming that the data is received correctly, the data is parsed, and the valid data to be delivered is packaged and re-encoded; in the process, the microprocessor is equivalent to setting itself to the host mode, in the verification After the parsing is complete, the microcontroller begins sending data to the IPMI device.
- the manner in which the microcontroller involved in the embodiment sends data in response to the specified data to the upper computer can be implemented as follows:
- Step S22 The microcontroller performs verification on the data in response to the specified data.
- Step S23 After the verification succeeds, the microcontroller parses the data in response to the specified data, and sends the parsed data in response to the specified data to the upper computer.
- the microcontroller is equivalent to being set to the slave mode, that is, after all the data is transmitted, the microcontroller waits for the IPMI to transmit data. After the microcontroller receives the data sent by the IPMI device, the data is packaged, and after the packet is completed, the check code is added and sent to the upper computer. Finally, the data is presented to the user by the host computer.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- a storage medium such as ROM/RAM, disk
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
- a communication device of the intelligent platform management interface device is further provided, and the device is used to implement the foregoing embodiments and optional implementation manners, and details are not described herein.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 2 is a structural block diagram of a communication device of an intelligent platform management interface device according to an embodiment of the present invention.
- the device is applied to a microcontroller side, and the device includes: an obtaining module 22, configured to acquire, from the upper computer, an indicator for triggering intelligent platform management.
- the specified data of the interface device IPMI device operation; the processing module 24 is coupled to the acquisition module 22, configured to parse and verify the specified data, and forward the designated data to the IPMI device after the verification succeeds; the receiving module 26, and the processing module 24 a coupling connection, configured to receive data of the IPMI device in response to the specified data; the sending module 28, coupled to the receiving module 26, configured to send data in response to the specified data to the host computer, wherein the host computer is responsive to the specified data The data is presented to the user.
- the processing module 24 is further configured to re-encode the specified data.
- FIG. 3 is a block diagram of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention.
- the acquiring module 22 includes: a receiving unit 32 configured to receive a user triggered IPMI forwarded by a host computer. The device performs an operation instruction; the encoding unit 34 is coupled to the receiving unit 32 and configured to encode the instruction into digitized designated data.
- the sending module 28 includes: a verification unit 42 configured to perform data in response to specified data.
- the verification unit 44 is coupled to the verification unit 42 and configured to parse the data in response to the specified data after the verification is successful, and send the parsed data in response to the specified data to the host computer.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
- FIG. 5 is a schematic diagram of a communication device of the intelligent platform management interface device according to an embodiment of the present invention. As shown in FIG. 5, the device includes: Machine 52, microcontroller 54;
- the upper computer 52 is configured to acquire specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface, and send the designated data to the microcontroller;
- the microcontroller 54 is configured to parse and verify the specified data, and forward the designated data to the IPMI device after the verification succeeds;
- the microcontroller 54 is further configured to receive data of the IPMI device in response to the specified data, and send the data in response to the specified data to the upper computer;
- the host computer 52 is further arranged to present data in response to the specified data to the user.
- the device further includes: a power supply circuit; the power supply circuit is configured to provide power to the microcontroller, and provides a communication interface between the microcontroller and the host computer.
- the object of the present invention is to solve the defects or deficiencies of the prior art mentioned above.
- This patent takes IPMI communication as an example, starts from changing the way of sending and receiving, and changes the master-slave mode of the communication card to realize IPMI data transmission and receive. It is very convenient and fast to use.
- FIG. 6 is an IPMI slave device communication device according to an optional embodiment of the present invention. As shown in FIG. 6, the device is controlled by a host computer and a micro controller. And peripheral circuit components;
- the software of the upper computer is written by human-computer interaction software using a high-level programming language, and human-computer interaction is performed, and finally data encoding and sending and reading back data are received and parsed.
- the microcontroller is configured to receive data sent by the host computer and data returned by the IPMI device, and complete interaction between the host computer and the IPMI device data.
- the microcontroller receives the data sent by the host computer, and after receiving the transmitted data, the data is verified. After confirming that the data is received correctly, the data is parsed. The valid data to be delivered is packaged and re-encoded.
- the microprocessor itself is set to host mode and begins sending data to the IPMI device. When all data has been sent, the microcontroller sets itself to slave mode, waiting for IPMI to send data to the microcontroller.
- the microcontroller packages the data and adds a check code to the host computer after the package is completed.
- the superior opportunity to verify the received data to ensure that the received data is correct, and to parse the received data, in the most intuitive form in front of the operator. In turn, IPMI communication is implemented.
- the power supply circuit, the external circuit is to provide power for the microcontroller, and provide a communication interface with the host computer, so that the microcontroller can work normally.
- the communication method of the optional embodiment may be: the operator wants to query the working state of the IPMI device, and assumes that the query command is 0X01.
- the host computer sends 0X01 to the microcontroller.
- the microcontroller After receiving the command, the microcontroller first needs to verify the data. After determining that the data is correct, the data is ready to be sent to the IPMI. In this case, the microcontroller needs to be set. In the host mode, the data is then sent to the IPMI device. After the data transmission is completed, the microcontroller needs to immediately switch itself to the slave mode to wait for the IPMI device to return data. After receiving the 0X01 command, IPMI will report its status data to the microcontroller. After receiving the data, the microcontroller will process the data and send it to the host computer. After receiving the data, the host computer will confirm the correctness of the data and parse it. The data is finally presented to the user in the most intuitive form.
- FIG. 7 is a flowchart of a method for implementing IPMI device communication according to an optional embodiment of the present invention. As shown in FIG. 7, the steps of the method include:
- Step S702 Micro control initialization
- Step S704 The microcontroller waits for the host computer to send data.
- Step S706 The micro control receives the data encoded by the upper computer
- Step S708 The microcontroller processes the data; when the data is correct, step S710 is performed, and when the data is incorrect, step S704 is performed;
- Step S710 The microcontroller sends the data as an IPMI device.
- Step S712 The microcontroller performs master-slave switching
- Step S714 The microcontroller receives the data reported by the IPMI device.
- Step S716 The microcontroller sends data to the host computer.
- the process of sending the communication is: the initial state of the microcontroller is in a waiting state, and the upper computer software interaction interface provides an operator input interface.
- the communication card first checks the received data after receiving the data. If the verification fails, the communication card will discard the received frame data and return to the waiting state. After the verification is passed, the microcontroller parses the received data and sends the valid data to the IPMI device. After the data is sent, the microcontroller will immediately switch to slave mode and wait for the IPMI device to return data. After receiving the data, the microcontroller packages the microcontroller and sends it to the host computer. After the host computer receives the data, the data is parsed, and finally the real analog quantity is presented to the operator. This completes the transmission and reception of one frame of data.
- the test for the IPMI communication protocol is small in size, fast in speed, and simple in operation; in addition, the data reported by the IPMI device can be directly converted into actual values; full digital control is adopted.
- Solution data transmission from the host computer to the data analysis of the microcontroller and master-slave switching Now digital, making IPMI device communication more accurate and fast.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- Step S1 The microcontroller acquires, from the host computer, specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface device;
- Step S2 The microcontroller parses and verifies the specified data, and forwards the specified data to the IPMI device after the verification succeeds;
- Step S3 The microcontroller receives data of the IPMI device in response to the specified data
- Step S4 The microcontroller sends data in response to the specified data to the host computer, wherein the host computer presents the data in response to the specified data to the user.
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- a mobile hard disk e.g., a hard disk
- magnetic memory e.g., a hard disk
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device is obtained by using the micro control, and then parsed and verified, and then sent to the IPMI device, and then received by the IPMI device in response to the specified data.
- Data, and the data is sent to the host computer, thereby implementing data transmission and reception with the IPMI device by using a microcontroller, and solving the related technology through the system to the IPMI device.
- the line communication test is complicated and the startup time is slow.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The present invention provides a communication method and apparatus for an intelligent platform management interface (IPMI) device, and a communication device. The method comprises: a microcontroller acquires, from an upper computer, specified data for indicating triggering of operation of an IPMI device; the microcontroller parses and verifies the specified data, and forwards the specified data to the IPMI device after verification succeeds; the microcontroller receives data, in response to the specified data, of the IPMI device; and the microcontroller sends the data to the upper computer in response to the specified data, wherein the upper computer presents the data to a user in response to the specified data. The present invention resolves the problems of complicated communication test on an IPMI device by a system and long starting time in the related art.
Description
本发明涉及通信领域,具体而言,涉及一种智能平台管理接口设备的通讯方法及装置、通讯设备。The present invention relates to the field of communications, and in particular to a communication method and device, and a communication device for an intelligent platform management interface device.
智能平台管理接口(Intelligent Platform Management Interface,简称为IPMI)是一种开放标准的硬件管理接口规格,定义了嵌入式管理子系统进行通信的特定方法。IPMI通讯协议在硬件实现上与两线式串行总线(Inter-Integrated Circuit,简称为I2C)通讯协议类似,也是采用数据线SDA和时钟信号线SCL两根总线,外加一根GND线的方式。I2C通讯协议是按照主读主写的方式实现的,即通讯卡在与I2C设备进行通讯时,无论是读操作还是写操作通讯卡都作为主机进行通讯。而IPMI通讯协议则与I2C协议不同,IPMI通讯协议是按照主发从收的方式实现的。通讯卡在向IPMI设备发送数据时是作为主机进行操作的,当通讯卡要从IPMI接收数据时,则需要通讯卡变为从机接收数据。正是由于要进行主从切换,所以导致市面上销售的大部分I2C通讯卡都无法实现主从切换功能。如果想要对IPMI设备进行通讯测试,就需要借助于系统,由于系统体积大,操作复杂,启动时间慢。The Intelligent Platform Management Interface (IPMI) is an open standard hardware management interface specification that defines a specific method for the embedded management subsystem to communicate. The IPMI communication protocol is similar to the two-wire serial bus (Inter-Integrated Circuit, I2C) communication protocol in hardware implementation. It also uses two lines of data line SDA and clock signal line SCL, plus a GND line. The I2C communication protocol is implemented according to the main read master write mode, that is, when the communication card communicates with the I2C device, the communication card is communicated as a host whether it is a read operation or a write operation. The IPMI communication protocol is different from the I2C protocol, and the IPMI communication protocol is implemented according to the main transmission and receiving method. The communication card operates as a host when transmitting data to the IPMI device. When the communication card receives data from the IPMI, the communication card needs to be changed to receive data from the slave. It is because of the master-slave switching that most of the I2C communication cards sold in the market cannot implement the master-slave switching function. If you want to test the communication of the IPMI device, you need to resort to the system. Due to the large size of the system, the operation is complicated and the startup time is slow.
针对相关技术中通过系统对IPMI设备进行通讯测试作复杂,启动时间慢的问题,目前尚未提出有效的解决方案。In view of the complexity of the communication test of the IPMI device by the system in the related art, the startup time is slow, and no effective solution has been proposed yet.
发明内容Summary of the invention
本发明实施例的主要目的在于提供一种智能平台管理接口设备的通讯方法及装置、通讯设备,以至少解决相关技术中通过系统对IPMI设备进行通讯测试作复杂,启动时间慢的问题。The main purpose of the embodiments of the present invention is to provide a communication method, a device, and a communication device for an intelligent platform management interface device, so as to at least solve the problem that the communication test of the IPMI device by the system is complicated and the startup time is slow.
根据本发明实施例的一个方面,提供了一种智能平台管理接口设备的通讯方法,包括:微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;所述微控制器解析并校验所述指定数据,在校验成功后将所述指定数据转发给所述IPMI设备;所述微控制器接收所述IPMI设备响应于所述指定数据的数据;所述微控制器将响应于所述指定数据的数据发送给所述上位机,其中,所述上位机将响应于所述指定数据的数据呈现给用户。
According to an aspect of the embodiments of the present invention, a communication method of an intelligent platform management interface device is provided, including: a microcontroller acquires, from a host computer, specified data for instructing an IPMI device to trigger operation of an intelligent platform management interface device; The controller parses and verifies the specified data, and forwards the specified data to the IPMI device after the verification succeeds; the microcontroller receives data of the IPMI device in response to the specified data; The controller transmits data in response to the specified data to the host computer, wherein the host computer presents data in response to the specified data to a user.
可选地,微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据包括:所述微控制器接收所述上位机转发的用户触发所述IPMI设备执行操作的指令;所述为控制器对所述指令进行编码转化成数字化的指定数据。Optionally, the acquiring, by the microcontroller, the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device includes: the microcontroller receiving an instruction that the user forwarded by the upper computer triggers the IPMI device to perform an operation. The controller converts the instructions into digitalized designated data.
可选地,所述微控制器解析所述指定数据包括:所述微控制器对所述指定数据进行重新编码。Optionally, the parsing the specified data by the microcontroller comprises: the microcontroller re-encoding the specified data.
可选地,所述微控制器将响应于所述指定数据的数据发送给所述上位机包括:所述微控制器对响应于所述指定数据的数据进行校验;所述微控制器在校验成功后,对响应于所述指定数据的数据进行解析,并将解析后的响应于所述指定数据的数据发送给所述上位机。Optionally, the sending, by the microcontroller, data in response to the specified data to the upper computer includes: the microcontroller verifying data in response to the specified data; the microcontroller is After the verification is successful, the data in response to the specified data is parsed, and the parsed data in response to the specified data is sent to the upper computer.
根据本发明实施例的另一个方面,提供管理一种智能平台管理接口设备的通讯装置,应用于微控制器侧,包括:获取模块,设置为从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;处理模块,设置为解析并校验所述指定数据,在校验成功后将所述指定数据转发给所述IPMI设备;接收模块,设置为接收所述IPMI设备响应于所述指定数据的数据;发送模块,设置为将响应于所述指定数据的数据发送给所述上位机,其中,所述上位机将响应于所述指定数据的数据呈现给用户。According to another aspect of the embodiments of the present invention, a communication device for managing an intelligent platform management interface device is provided, which is applied to a microcontroller side, and includes: an obtaining module, configured to acquire, from the upper computer, an instruction to trigger the intelligent platform management interface device. The specified data of the IPMI device operation; the processing module is configured to parse and verify the specified data, and forward the specified data to the IPMI device after the verification succeeds; the receiving module is configured to receive the IPMI device in response to And the sending module is configured to send data responsive to the specified data to the upper computer, wherein the upper computer presents the data in response to the specified data to the user.
可选地,所述获取模块包括:接收单元,设置为接收所述上位机转发的用户触发所述IPMI设备执行操作的指令;编码单元,设置为对所述指令进行编码转化成数字化的指定数据。Optionally, the obtaining module includes: a receiving unit, configured to receive an instruction that the user forwarded by the upper computer triggers the IPMI device to perform an operation; and an encoding unit configured to encode the instruction into a digitized specified data .
可选地,所述处理模块,还设置为对所述指定数据进行重新编码。Optionally, the processing module is further configured to re-encode the specified data.
可选地,所述发送模块包括:校验单元,设置为对响应于所述指定数据的数据进行校验;呈现单元,设置为在校验成功后,对响应于所述指定数据的数据进行解析,并将解析后的响应于所述指定数据的数据发送给所述上位机。Optionally, the sending module includes: a checking unit configured to perform verification on data in response to the specified data; and a rendering unit configured to perform data in response to the specified data after the verification is successful Parsing, and transmitting the parsed data in response to the specified data to the upper computer.
根据本发明实施例的再一个方面,提供了一种智能平台管理接口设备的通讯设备,包括:上位机、微控制器;所述上位机,设置为获取用于指示触发智能平台管理接口IPMI设备操作的指定数据,并将所述指定数据发送给所述微控制器;所述微控制器,设置为解析并校验所述指定数据,在校验成功后将所述指定数据转发给所述IPMI设备;所述微控制器,还设置为接收所述IPMI设备响应于所述指定数据的数据,并将响应于所述指定数据的数据发送给所述上位机;所述上位机,还设置为将响应于所述指定数据的数据呈现给用户。According to still another aspect of the embodiments of the present invention, a communication device of an intelligent platform management interface device is provided, including: a host computer and a microcontroller; and the host computer is configured to acquire an IPMI device for triggering an intelligent platform management interface. Designating data for operation, and transmitting the specified data to the microcontroller; the microcontroller, configured to parse and verify the specified data, and forwarding the specified data to the An IPMI device, configured to receive data of the IPMI device in response to the specified data, and send data responsive to the specified data to the upper computer; the upper computer further sets To present data in response to the specified data to the user.
可选地,所述设备包括:供电电路;所述供电电路,设置为为所述微控制器提供电源,并提供所述微控制器与所述上位机之间的通讯接口。
Optionally, the device includes: a power supply circuit; the power supply circuit is configured to provide power to the microcontroller, and provide a communication interface between the microcontroller and the host computer.
在本发明实施例中,采用微控制将获取的用于指示触发智能平台管理接口设备IPMI设备操作的指定数据,进行解析和校验之后发送给IPMI设备,进而接收IPMI设备响应于该指定数据的数据,并交该数据发送给上位机,从而通过采用微控制器来实现与IPMI设备之间的数据发送与接收,解决了相关技术中通过系统对IPMI设备进行通讯测试作复杂,启动时间慢的问题。In the embodiment of the present invention, the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device is obtained by using the micro control, and then parsed and verified, and then sent to the IPMI device, and then received by the IPMI device in response to the specified data. The data is sent to the host computer, and the data transmission and reception with the IPMI device is realized by using the microcontroller, which solves the complicated communication test of the IPMI device by the system in the related art, and the startup time is slow. problem.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的智能平台管理接口设备的通讯方法的流程图;1 is a flowchart of a communication method of an intelligent platform management interface device according to an embodiment of the present invention;
图2是根据本发明实施例的智能平台管理接口设备的通讯装置结构框图;2 is a structural block diagram of a communication device of an intelligent platform management interface device according to an embodiment of the present invention;
图3是根据本发明实施例的智能平台管理接口设备的通讯装置的可选结构框图一;3 is a block diagram 1 of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention;
图4是根据本发明实施例的智能平台管理接口设备的通讯装置的可选结构框图二;4 is a block diagram 2 of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention;
图5是根据本发明实施例的智能平台管理接口设备的通讯设备的示意图;5 is a schematic diagram of a communication device of an intelligent platform management interface device according to an embodiment of the present invention;
图6是根据本发明可选实施例的实现IPMI从设备通讯装置;6 is an implementation of an IPMI slave device communication device in accordance with an alternative embodiment of the present invention;
图7是根据本发明可选实施例的实现IPMI设备通讯方法的流程图。7 is a flow chart of a method of implementing an IPMI device communication in accordance with an alternate embodiment of the present invention.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
在本实施例中提供了一种智能平台管理接口设备的通讯方法,图1是根据本发明实施例的智能平台管理接口设备的通讯方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a communication method of an intelligent platform management interface device is provided. FIG. 1 is a flowchart of a communication method of an intelligent platform management interface device according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps. :
步骤S102:微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;Step S102: The microcontroller acquires, from the host computer, specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface device;
步骤S104:微控制器解析并校验指定数据,在校验成功后将指定数据转发给IPMI设备;
Step S104: The microcontroller parses and verifies the specified data, and forwards the designated data to the IPMI device after the verification succeeds;
步骤S106:微控制器接收IPMI设备响应于指定数据的数据;Step S106: The microcontroller receives data of the IPMI device in response to the specified data.
步骤S108:微控制器将响应于指定数据的数据发送给上位机,其中,上位机将响应于指定数据的数据呈现给用户。Step S108: The microcontroller sends data in response to the specified data to the host computer, wherein the host computer presents the data in response to the specified data to the user.
在本实施例的步骤S102至步骤S108中,采用微控制将获取的用于指示触发智能平台管理接口设备IPMI设备操作的指定数据,进行解析和校验之后发送给IPMI设备,进而接收IPMI设备响应于该指定数据的数据,并交该数据发送给上位机,从而通过采用微控制器来实现与IPMI设备之间的数据发送与接收,解决了相关技术中通过系统对IPMI设备进行通讯测试作复杂,启动时间慢的问题。In step S102 to step S108 of the embodiment, the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device is obtained by using the micro control, and then parsed and verified, and then sent to the IPMI device, thereby receiving the response of the IPMI device. The data of the specified data is sent to the host computer, thereby realizing the data transmission and reception with the IPMI device by using the microcontroller, and solving the complicated technical test of the IPMI device by the system in the related art. , the problem of slow startup time.
对于本实施例中的涉及到的微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据的方式,在本实施例的可选实施方式中,可以通过如下方式来实现:For the manner in which the microcontroller involved in the embodiment obtains the specified data for triggering the operation of the IPMI device of the intelligent platform management interface device from the host computer, in an optional implementation manner of this embodiment, the following manner may be adopted. achieve:
步骤S11:微控制器接收上位机转发的用户触发IPMI设备执行操作的指令;Step S11: The microcontroller receives an instruction that the user forwarded by the host computer triggers the IPMI device to perform an operation;
步骤S12:为控制器对指令进行编码转化成数字化的指定数据。Step S12: encoding the instruction for the controller into digital designated data.
而在本实施例的另一个可选实施方式中,微控制器解析并校验指定数据中的该微控制器解析指定数据的方式,也就是微控制器对指定数据进行重新编码。In yet another alternative embodiment of the present embodiment, the microcontroller parses and verifies the manner in which the microcontroller in the specified data parses the specified data, ie, the microcontroller re-encodes the specified data.
也就是说该步骤S11和步骤S12,以及微控制器对指定数据的解析和校验的方式,在本实施例中是:微控制器接收上位机发送的数据,在接收完发送数据后,对数据进行校验;在确认数据接收无误后,对数据进行解析,并将要下发的有效数据进行打包即重新编码;在该过程中该微处理器相当于自身设定为主机模式,在校验解析完成后,该微控制器开始向IPMI设备发送数据。That is to say, the steps S11 and S12, and the manner in which the microcontroller analyzes and verifies the specified data. In this embodiment, the microcontroller receives the data sent by the host computer, and after receiving the transmitted data, The data is verified; after confirming that the data is received correctly, the data is parsed, and the valid data to be delivered is packaged and re-encoded; in the process, the microprocessor is equivalent to setting itself to the host mode, in the verification After the parsing is complete, the microcontroller begins sending data to the IPMI device.
而在本实施例的再一个可选实施方式中,对于本实施例中涉及到的微控制器将响应于指定数据的数据发送给上位机的方式,可以通过如下方式来实现:In still another alternative embodiment of the present embodiment, the manner in which the microcontroller involved in the embodiment sends data in response to the specified data to the upper computer can be implemented as follows:
步骤S22:微控制器对响应于指定数据的数据进行校验;Step S22: The microcontroller performs verification on the data in response to the specified data.
步骤S23:微控制器在校验成功后,对响应于指定数据的数据进行解析,并将解析后的响应于指定数据的数据发送给上位机。Step S23: After the verification succeeds, the microcontroller parses the data in response to the specified data, and sends the parsed data in response to the specified data to the upper computer.
在该步骤S22和步骤S23中,该微控制器相当于是设定为从机模式,即当发送完所有数据后,微控制器等待IPMI发送数据。而在微控制器接收到IPMI设备发送的数据后,对数据进行打包,并在打包完成后添加校验码发送给上位机。最后由上位机将该数据呈现给用户。In this step S22 and step S23, the microcontroller is equivalent to being set to the slave mode, that is, after all the data is transmitted, the microcontroller waits for the IPMI to transmit data. After the microcontroller receives the data sent by the IPMI device, the data is packaged, and after the packet is completed, the check code is added and sent to the upper computer. Finally, the data is presented to the user by the host computer.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施
例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand the implementation according to the above
The method of the example can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
在本实施例中还提供了一种智能平台管理接口设备的通讯装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a communication device of the intelligent platform management interface device is further provided, and the device is used to implement the foregoing embodiments and optional implementation manners, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的智能平台管理接口设备的通讯装置结构框图,该装置应用于微控制器侧,该装置包括:获取模块22,设置为从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;处理模块24,与获取模块22耦合连接,设置为解析并校验指定数据,在校验成功后将指定数据转发给IPMI设备;接收模块26,与处理模块24耦合连接,设置为接收IPMI设备响应于指定数据的数据;发送模块28,与接收模块26耦合连接,设置为将响应于指定数据的数据发送给上位机,其中,上位机将响应于指定数据的数据呈现给用户。2 is a structural block diagram of a communication device of an intelligent platform management interface device according to an embodiment of the present invention. The device is applied to a microcontroller side, and the device includes: an obtaining module 22, configured to acquire, from the upper computer, an indicator for triggering intelligent platform management. The specified data of the interface device IPMI device operation; the processing module 24 is coupled to the acquisition module 22, configured to parse and verify the specified data, and forward the designated data to the IPMI device after the verification succeeds; the receiving module 26, and the processing module 24 a coupling connection, configured to receive data of the IPMI device in response to the specified data; the sending module 28, coupled to the receiving module 26, configured to send data in response to the specified data to the host computer, wherein the host computer is responsive to the specified data The data is presented to the user.
可选地,处理模块24,还设置为对指定数据进行重新编码。Optionally, the processing module 24 is further configured to re-encode the specified data.
图3是根据本发明实施例的智能平台管理接口设备的通讯装置的可选结构框图一,如图3所示,该获取模块22包括:接收单元32,设置为接收上位机转发的用户触发IPMI设备执行操作的指令;编码单元34,与接收单元32耦合连接,设置为对指令进行编码转化成数字化的指定数据。FIG. 3 is a block diagram of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention. As shown in FIG. 3, the acquiring module 22 includes: a receiving unit 32 configured to receive a user triggered IPMI forwarded by a host computer. The device performs an operation instruction; the encoding unit 34 is coupled to the receiving unit 32 and configured to encode the instruction into digitized designated data.
图4是根据本发明实施例的智能平台管理接口设备的通讯装置的可选结构框图二,如图4所示,发送模块28包括:校验单元42,设置为对响应于指定数据的数据进行校验;呈现单元44,与校验单元42耦合连接,设置为在校验成功后,对响应于指定数据的数据进行解析,并将解析后的响应于指定数据的数据发送给上位机。4 is a block diagram 2 of an optional structure of a communication device of an intelligent platform management interface device according to an embodiment of the present invention. As shown in FIG. 4, the sending module 28 includes: a verification unit 42 configured to perform data in response to specified data. The verification unit 44 is coupled to the verification unit 42 and configured to parse the data in response to the specified data after the verification is successful, and send the parsed data in response to the specified data to the host computer.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本实施例还提供了一种智能平台管理接口设备的通讯设备,图5是根据本发明实施例的智能平台管理接口设备的通讯设备的示意图,如图5所示,该设备包括:上位
机52、微控制器54;The embodiment also provides a communication device of the intelligent platform management interface device. FIG. 5 is a schematic diagram of a communication device of the intelligent platform management interface device according to an embodiment of the present invention. As shown in FIG. 5, the device includes:
Machine 52, microcontroller 54;
上位机52,设置为获取用于指示触发智能平台管理接口IPMI设备操作的指定数据,并将指定数据发送给微控制器;The upper computer 52 is configured to acquire specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface, and send the designated data to the microcontroller;
微控制器54,设置为解析并校验指定数据,在校验成功后将指定数据转发给IPMI设备;The microcontroller 54 is configured to parse and verify the specified data, and forward the designated data to the IPMI device after the verification succeeds;
微控制器54,还设置为接收IPMI设备响应于指定数据的数据,并将响应于指定数据的数据发送给上位机;The microcontroller 54 is further configured to receive data of the IPMI device in response to the specified data, and send the data in response to the specified data to the upper computer;
上位机52,还设置为将响应于指定数据的数据呈现给用户。The host computer 52 is further arranged to present data in response to the specified data to the user.
可选地,该设备还包括:供电电路;该供电电路,设置为为微控制器提供电源,并提供微控制器与上位机之间的通讯接口。Optionally, the device further includes: a power supply circuit; the power supply circuit is configured to provide power to the microcontroller, and provides a communication interface between the microcontroller and the host computer.
下面结合本发明实施例的可选实施例对本发明进行举例说明;The present invention is exemplified in the following with reference to an optional embodiment of the embodiments of the present invention;
本发明的目的在于,针对上述现有技术存在的缺陷或不足,本专利以IPMI通讯为实例,从改变发送和接收的方式入手,通过改变通讯卡的主从模式,从而实现IPMI的数据发送与接收。使用起来非常方便和快捷。The object of the present invention is to solve the defects or deficiencies of the prior art mentioned above. This patent takes IPMI communication as an example, starts from changing the way of sending and receiving, and changes the master-slave mode of the communication card to realize IPMI data transmission and receive. It is very convenient and fast to use.
本可选实施例提供了一种实现IPMI从设备通讯方法和装置,图6是根据本发明可选实施例的实现IPMI从设备通讯装置,如图6所示,该装置由上位机、微控制、外围电路组成;The optional embodiment provides an IPMI slave device communication method and apparatus, and FIG. 6 is an IPMI slave device communication device according to an optional embodiment of the present invention. As shown in FIG. 6, the device is controlled by a host computer and a micro controller. And peripheral circuit components;
该上位机的软件由人机交互软件使用高级编程语言进行编写,并进行人机交互,最终实现数据的编码和下发及回读数据的接收和解析。The software of the upper computer is written by human-computer interaction software using a high-level programming language, and human-computer interaction is performed, and finally data encoding and sending and reading back data are received and parsed.
微控制器,设置为接收上位机发送的数据和IPMI设备返回的数据,并且完成上位机与IPMI设备数据的交互。首先,微控制器接收上位机发送的数据,在接收完发送数据后,对数据进行校验。在确认数据接收无误后,对数据进行解析。并将要下发的有效数据进行打包即重新编码。其次,微处理器自身设定为主机模式,开始向IPMI设备发送数据。当发送完所有数据后,微控制器将自身设定为从机模式,等待IPMI发送数据给微控制器。再次,微控制器在接收到IPMI设备发送的数据后,对数据进行打包,并在打包完成后添加校验码发送给上位机。最后,上位机会将接收到的数据进行校验,保证接收数据的正确,并将接收到的数据进行解析,以最直观的形态表现在操作人员面前。进而实现IPMI通讯。The microcontroller is configured to receive data sent by the host computer and data returned by the IPMI device, and complete interaction between the host computer and the IPMI device data. First, the microcontroller receives the data sent by the host computer, and after receiving the transmitted data, the data is verified. After confirming that the data is received correctly, the data is parsed. The valid data to be delivered is packaged and re-encoded. Second, the microprocessor itself is set to host mode and begins sending data to the IPMI device. When all data has been sent, the microcontroller sets itself to slave mode, waiting for IPMI to send data to the microcontroller. Once again, after receiving the data sent by the IPMI device, the microcontroller packages the data and adds a check code to the host computer after the package is completed. Finally, the superior opportunity to verify the received data, to ensure that the received data is correct, and to parse the received data, in the most intuitive form in front of the operator. In turn, IPMI communication is implemented.
供电电路,外部电路的作用是为微控制器提供电源,提供与上位机的通讯接口,使微控制器可以正常工作。
The power supply circuit, the external circuit is to provide power for the microcontroller, and provide a communication interface with the host computer, so that the microcontroller can work normally.
在本可选实施例的一个应用场景中,本可选实施例的通讯方法可以是:操作人员想查询IPMI设备的工作状态,假设查询命令为0X01。上位机下发0X01给微控制器,微控制器在接收到这个命令后,首先要对这个数据进行校验,确定该数据正确后,准备下发数据给IPMI,此时需要设定微控制器为主机模式,然后开始下发数据给IPMI设备,在完成数据发送后,微控制器需要马上将自身切换为从机模式,以等待IPMI设备返回数据。IPMI接收到0X01命令后,会将自身的状态数据上报给微控制器,微控制器接收到数据后将数据处理后发给上位机,上位机接到数据后,确认数据的正确性后,解析数据,最后以最直观的形式呈现在使用者面前。In an application scenario of the optional embodiment, the communication method of the optional embodiment may be: the operator wants to query the working state of the IPMI device, and assumes that the query command is 0X01. The host computer sends 0X01 to the microcontroller. After receiving the command, the microcontroller first needs to verify the data. After determining that the data is correct, the data is ready to be sent to the IPMI. In this case, the microcontroller needs to be set. In the host mode, the data is then sent to the IPMI device. After the data transmission is completed, the microcontroller needs to immediately switch itself to the slave mode to wait for the IPMI device to return data. After receiving the 0X01 command, IPMI will report its status data to the microcontroller. After receiving the data, the microcontroller will process the data and send it to the host computer. After receiving the data, the host computer will confirm the correctness of the data and parse it. The data is finally presented to the user in the most intuitive form.
图7是根据本发明可选实施例的实现IPMI设备通讯方法的流程图,如图7所示,该方法的步骤包括:FIG. 7 is a flowchart of a method for implementing IPMI device communication according to an optional embodiment of the present invention. As shown in FIG. 7, the steps of the method include:
步骤S702:微控制初始化;Step S702: Micro control initialization;
步骤S704:微控制器等待上位机发送数据;Step S704: The microcontroller waits for the host computer to send data.
步骤S706:微控制接收上位机编码后的数据;Step S706: The micro control receives the data encoded by the upper computer;
步骤S708:微控制器处理数据;在数据正确时执行步骤S710,在数据错误时,执行步骤S704;Step S708: The microcontroller processes the data; when the data is correct, step S710 is performed, and when the data is incorrect, step S704 is performed;
步骤S710:微控制器发送数据为IPMI设备;Step S710: The microcontroller sends the data as an IPMI device.
步骤S712:微控制器进行主从切换;Step S712: The microcontroller performs master-slave switching;
步骤S714:微控制器接收IPMI设备上报的数据;Step S714: The microcontroller receives the data reported by the IPMI device.
步骤S716:微控制器发送数据给上位机。Step S716: The microcontroller sends data to the host computer.
也就是说,该通讯发送的过程是:初始状态微控制器处于等待状态,上位机软件交互界面提供操作人员输入接口。当上位机发送数据给通讯卡,通讯卡在接收到数据后首先对接收的数据进行校验,如果校验不通过,通讯卡将丢弃接收的这帧数据,重新回到等待状态。校验通过后,微控制器对接收的数据进行解析,并将有效数据下发给IPMI设备。下发数据后,微控制器将马上转为从机模式,等待IPMI设备返回数据。微控制器接收到数据后将微控制器进行打包,然后发送给上位机。上位机接收到数据后,将数据进行解析,最后已真实的模拟量展现在操作人员面前。至此完成一帧数据的发送与接收。That is to say, the process of sending the communication is: the initial state of the microcontroller is in a waiting state, and the upper computer software interaction interface provides an operator input interface. When the host computer sends data to the communication card, the communication card first checks the received data after receiving the data. If the verification fails, the communication card will discard the received frame data and return to the waiting state. After the verification is passed, the microcontroller parses the received data and sends the valid data to the IPMI device. After the data is sent, the microcontroller will immediately switch to slave mode and wait for the IPMI device to return data. After receiving the data, the microcontroller packages the microcontroller and sends it to the host computer. After the host computer receives the data, the data is parsed, and finally the real analog quantity is presented to the operator. This completes the transmission and reception of one frame of data.
通过本可选实施例的通讯方法和装置,使得用于IPMI通讯协议的测试,体积小、速度快、操作简单;此外,还可以直接将IPMI设备上报的数据转换成实际值;采用全数字化控制方案,从上位机的数据传输到微控制器的数据解析以及主从切换全部实
现数字化,使得IPMI设备通讯方式更加精确、快速。Through the communication method and device of the alternative embodiment, the test for the IPMI communication protocol is small in size, fast in speed, and simple in operation; in addition, the data reported by the IPMI device can be directly converted into actual values; full digital control is adopted. Solution, data transmission from the host computer to the data analysis of the microcontroller and master-slave switching
Now digital, making IPMI device communication more accurate and fast.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
步骤S1:微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;Step S1: The microcontroller acquires, from the host computer, specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface device;
步骤S2微控制器解析并校验指定数据,在校验成功后将指定数据转发给IPMI设备;Step S2: The microcontroller parses and verifies the specified data, and forwards the specified data to the IPMI device after the verification succeeds;
步骤S3:微控制器接收IPMI设备响应于指定数据的数据;Step S3: The microcontroller receives data of the IPMI device in response to the specified data;
步骤S4:微控制器将响应于指定数据的数据发送给上位机,其中,上位机将响应于指定数据的数据呈现给用户。Step S4: The microcontroller sends data in response to the specified data to the host computer, wherein the host computer presents the data in response to the specified data to the user.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
在本发明实施例中,采用微控制将获取的用于指示触发智能平台管理接口设备IPMI设备操作的指定数据,进行解析和校验之后发送给IPMI设备,进而接收IPMI设备响应于该指定数据的数据,并交该数据发送给上位机,从而通过采用微控制器来实现与IPMI设备之间的数据发送与接收,解决了相关技术中通过系统对IPMI设备进
行通讯测试作复杂,启动时间慢的问题。
In the embodiment of the present invention, the specified data for indicating the operation of the IPMI device triggered by the intelligent platform management interface device is obtained by using the micro control, and then parsed and verified, and then sent to the IPMI device, and then received by the IPMI device in response to the specified data. Data, and the data is sent to the host computer, thereby implementing data transmission and reception with the IPMI device by using a microcontroller, and solving the related technology through the system to the IPMI device
The line communication test is complicated and the startup time is slow.
Claims (10)
- 一种智能平台管理接口设备的通讯方法,包括:A communication method for an intelligent platform management interface device, comprising:微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;The microcontroller acquires, from the host computer, specified data for instructing the IPMI device to trigger the operation of the intelligent platform management interface device;所述微控制器解析并校验所述指定数据,在校验成功后将所述指定数据转发给所述IPMI设备;The microcontroller parses and verifies the specified data, and forwards the specified data to the IPMI device after the verification succeeds;所述微控制器接收所述IPMI设备响应于所述指定数据的数据;The microcontroller receives data of the IPMI device in response to the specified data;所述微控制器将响应于所述指定数据的数据发送给所述上位机,其中,所述上位机将响应于所述指定数据的数据呈现给用户。The microcontroller transmits data in response to the specified data to the host computer, wherein the host computer presents data in response to the specified data to a user.
- 根据权利要求1所述的方法,其中,微控制器从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据包括:The method of claim 1, wherein the obtaining, by the microcontroller from the host computer, the specified data for indicating the operation of the intelligent platform management interface device IPMI device comprises:所述微控制器接收所述上位机转发的用户触发所述IPMI设备执行操作的指令;The microcontroller receives an instruction that the user forwarded by the upper computer triggers the IPMI device to perform an operation;所述为控制器对所述指令进行编码转化成数字化的指定数据。The controller converts the instructions into digitized designated data.
- 根据权利要求1所述的方法,其中,所述微控制器解析所述指定数据包括:The method of claim 1, wherein the parsing the specified data by the microcontroller comprises:所述微控制器对所述指定数据进行重新编码。The microcontroller re-encodes the specified data.
- 根据权利要求1所述的方法,其中,所述微控制器将响应于所述指定数据的数据发送给所述上位机包括:The method of claim 1, wherein the transmitting, by the microcontroller, data in response to the specified data to the host computer comprises:所述微控制器对响应于所述指定数据的数据进行校验;The microcontroller verifies data responsive to the specified data;所述微控制器在校验成功后,对响应于所述指定数据的数据进行解析,并将解析后的响应于所述指定数据的数据发送给所述上位机。After the verification succeeds, the microcontroller parses the data in response to the specified data, and sends the parsed data in response to the specified data to the upper computer.
- 一种智能平台管理接口设备的通讯装置,应用于微控制器侧,包括:A communication device for an intelligent platform management interface device is applied to a microcontroller side, including:获取模块,设置为从上位机获取用于指示触发智能平台管理接口设备IPMI设备操作的指定数据;Obtaining a module, configured to obtain, from the host computer, specified data for instructing an IPMI device to trigger an operation of the intelligent platform management interface device;处理模块,设置为解析并校验所述指定数据,在校验成功后将所述指定数据转发给所述IPMI设备;a processing module, configured to parse and verify the specified data, and forward the specified data to the IPMI device after the verification succeeds;接收模块,设置为接收所述IPMI设备响应于所述指定数据的数据;a receiving module, configured to receive data of the IPMI device in response to the specified data;发送模块,设置为将响应于所述指定数据的数据发送给所述上位机,其中, 所述上位机将响应于所述指定数据的数据呈现给用户。a sending module, configured to send data in response to the specified data to the upper computer, where The host computer presents data in response to the specified data to the user.
- 根据权利要求5所述的装置,其中,所述获取模块包括:The apparatus of claim 5, wherein the obtaining module comprises:接收单元,设置为接收所述上位机转发的用户触发所述IPMI设备执行操作的指令;a receiving unit, configured to receive an instruction that the user forwarded by the upper computer triggers the IPMI device to perform an operation;编码单元,设置为对所述指令进行编码转化成数字化的指定数据。A coding unit is arranged to encode the instructions into digitized designated data.
- 根据权利要求6所述的装置,其中,The apparatus according to claim 6, wherein所述处理模块,还设置为对所述指定数据进行重新编码。The processing module is further configured to re-encode the specified data.
- 根据权利要求6所述的装置,其中,所述发送模块包括:The apparatus of claim 6, wherein the transmitting module comprises:校验单元,设置为对响应于所述指定数据的数据进行校验;a verification unit configured to verify data responsive to the specified data;呈现单元,设置为在校验成功后,对响应于所述指定数据的数据进行解析,并将解析后的响应于所述指定数据的数据发送给所述上位机。And a rendering unit configured to parse the data in response to the specified data after the verification succeeds, and send the parsed data in response to the specified data to the upper computer.
- 一种智能平台管理接口设备的通讯设备,包括:上位机、微控制器;A communication device for an intelligent platform management interface device, comprising: a host computer and a microcontroller;所述上位机,设置为获取用于指示触发智能平台管理接口IPMI设备操作的指定数据,并将所述指定数据发送给所述微控制器;The upper computer is configured to acquire specified data for instructing operation of the intelligent platform management interface IPMI device, and send the specified data to the microcontroller;所述微控制器,设置为解析并校验所述指定数据,在校验成功后将所述指定数据转发给所述IPMI设备;The microcontroller is configured to parse and verify the specified data, and forward the specified data to the IPMI device after the verification succeeds;所述微控制器,还设置为接收所述IPMI设备响应于所述指定数据的数据,并将响应于所述指定数据的数据发送给所述上位机;The microcontroller is further configured to receive data of the IPMI device in response to the specified data, and send data responsive to the specified data to the host computer;所述上位机,还设置为将响应于所述指定数据的数据呈现给用户。The host computer is further configured to present data responsive to the specified data to a user.
- 根据权利要求9所述的设备,其中,所述设备包括:供电电路;The device of claim 9, wherein the device comprises: a power supply circuit;所述供电电路,设置为所述微控制器提供电源,并提供所述微控制器与所述上位机之间的通讯接口。 The power supply circuit is configured to provide power to the microcontroller and provide a communication interface between the microcontroller and the host computer.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510395771.X | 2015-07-07 | ||
CN201510395771.XA CN106341295B (en) | 2015-07-07 | 2015-07-07 | Communication method and device of intelligent platform management interface equipment and communication equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017004908A1 true WO2017004908A1 (en) | 2017-01-12 |
Family
ID=57684731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/092233 WO2017004908A1 (en) | 2015-07-07 | 2015-10-19 | Communication method and apparatus for intelligent platform management interface device, and communication device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106341295B (en) |
WO (1) | WO2017004908A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115858292A (en) * | 2022-12-09 | 2023-03-28 | 北京卓讯科信技术有限公司 | IPMI management method and system based on MCU |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203012702U (en) * | 2012-12-19 | 2013-06-19 | 加弘科技咨询(上海)有限公司 | Remotely controlled intelligent management device |
CN103729947A (en) * | 2014-01-13 | 2014-04-16 | 青岛海信智能商用系统有限公司 | POS system having self-checking function and self-checking method thereof |
US20140215489A1 (en) * | 2013-01-25 | 2014-07-31 | American Megatrends, Inc. | Interface specific and parallel ipmi message handling at baseboard management controller |
CN203931024U (en) * | 2014-01-13 | 2014-11-05 | 青岛海信智能商用系统有限公司 | A kind of POS system with remote control function |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262405B (en) * | 2008-04-11 | 2012-10-31 | 华南理工大学 | High-speed secure virtual private network channel based on network processor and its realization method |
CN102346717B (en) * | 2010-08-04 | 2015-02-04 | 研祥智能科技股份有限公司 | Intelligent platform management interface (IPMI) message transmission device, system and computer equipment |
US9043527B2 (en) * | 2013-01-04 | 2015-05-26 | American Megatrends, Inc. | PCI express channel implementation in intelligent platform management interface stack |
US20140280469A1 (en) * | 2013-03-14 | 2014-09-18 | American Megatrends, Inc. | Method and apparatus for remote management of computer system using handheld device |
US9298524B2 (en) * | 2013-03-22 | 2016-03-29 | Insyde Software Corp. | Virtual baseboard management controller |
-
2015
- 2015-07-07 CN CN201510395771.XA patent/CN106341295B/en active Active
- 2015-10-19 WO PCT/CN2015/092233 patent/WO2017004908A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203012702U (en) * | 2012-12-19 | 2013-06-19 | 加弘科技咨询(上海)有限公司 | Remotely controlled intelligent management device |
US20140215489A1 (en) * | 2013-01-25 | 2014-07-31 | American Megatrends, Inc. | Interface specific and parallel ipmi message handling at baseboard management controller |
CN103729947A (en) * | 2014-01-13 | 2014-04-16 | 青岛海信智能商用系统有限公司 | POS system having self-checking function and self-checking method thereof |
CN203931024U (en) * | 2014-01-13 | 2014-11-05 | 青岛海信智能商用系统有限公司 | A kind of POS system with remote control function |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115858292A (en) * | 2022-12-09 | 2023-03-28 | 北京卓讯科信技术有限公司 | IPMI management method and system based on MCU |
Also Published As
Publication number | Publication date |
---|---|
CN106341295B (en) | 2020-12-22 |
CN106341295A (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3110068B1 (en) | Device management method | |
CN104636924B (en) | Secure payment method, server and system | |
CN110572305A (en) | Smart home equipment binding method and system, smart home equipment and mobile terminal | |
CN106775434A (en) | A kind of implementation method of NVMe networkings storage, terminal, server and system | |
CN107025203B (en) | First board card, second board card and equipment | |
CN107943722A (en) | It is a kind of that the method and system for passing screen are realized based on USB device | |
CN204759403U (en) | System based on data pass realization equipment internal module thoroughly and upgrade | |
CN103812695A (en) | Software debugging method and device for SFP (small form pluggable) ONU (optical network unit) | |
US9491166B2 (en) | Apparatus and method for authenticating smart card | |
CN112188277A (en) | Screen projection control method and device, electronic equipment and computer program medium | |
CN111538515A (en) | Method, device and equipment for upgrading electric energy meter program | |
CN103092648B (en) | A kind of image upgrade method, system and subscriber equipment and personal computer | |
CN111181776B (en) | MODBUS RTU-based data acquisition method, device and system | |
CN116737640A (en) | Information acquisition method, device, equipment and storage medium | |
CN111181781A (en) | Vdbench test configuration method, system, terminal and storage medium | |
CN111756858A (en) | Remote development processing system, method and device of embedded equipment | |
CN107277163B (en) | Equipment remote mapping method and device | |
WO2017004908A1 (en) | Communication method and apparatus for intelligent platform management interface device, and communication device | |
CN109189419A (en) | System upgrading method, device and system, server and client | |
CN109164874B (en) | Information processing method and electronic equipment | |
CN107809418B (en) | Autonomous binding method and system for LoRa terminal equipment | |
CN108197062B (en) | Method, system, equipment and medium for realizing communication between single chip microcomputer and terminal equipment | |
CN103970572A (en) | Server component upgrading method, device and system | |
US20130132600A1 (en) | Apparatus and method of a portable terminal for performing communication with a device supporting media transfer protocol | |
CN105630654B (en) | System and method for the IP address for showing BMC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15897564 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15897564 Country of ref document: EP Kind code of ref document: A1 |