[go: up one dir, main page]

CN107992372A - A kind of chassis information exchange method, system, equipment and computer-readable storage medium - Google Patents

A kind of chassis information exchange method, system, equipment and computer-readable storage medium Download PDF

Info

Publication number
CN107992372A
CN107992372A CN201711329684.XA CN201711329684A CN107992372A CN 107992372 A CN107992372 A CN 107992372A CN 201711329684 A CN201711329684 A CN 201711329684A CN 107992372 A CN107992372 A CN 107992372A
Authority
CN
China
Prior art keywords
information
chassis
main program
chassis information
solicited message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711329684.XA
Other languages
Chinese (zh)
Inventor
王军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711329684.XA priority Critical patent/CN107992372A/en
Publication of CN107992372A publication Critical patent/CN107992372A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of chassis information exchange method, system, equipment and computer-readable storage medium, and applied to SES softwares, wherein this method includes:Receive the solicited message that main program equipment is sent;Target information corresponding with solicited message is managed in chassis information memory space;Management result is sent to main program equipment;Realize and perform management of the main program equipment to chassis information by SES softwares, realize chassis information in the shared of SES softwares and main program equipment room, improve rate of interaction of the chassis information in SES softwares and main program equipment room.In conclusion a kind of chassis information exchange method provided by the invention solves the technical problem for the rate of interaction for how improving chassis information to a certain extent.A kind of chassis information interactive system, equipment and computer-readable storage medium provided by the invention also solve corresponding technical problem.

Description

一种机箱信息交互方法、系统、设备及计算机存储介质A chassis information interaction method, system, device and computer storage medium

技术领域technical field

本发明涉及机箱管理技术领域,更具体地说,涉及一种机箱信息交互方法、系统、设备及计算机存储介质。The present invention relates to the technical field of chassis management, and more specifically, to a chassis information interaction method, system, equipment and computer storage medium.

背景技术Background technique

在机箱管理中,关于机箱的设备信息、特性信息、生产信息等机箱信息需要提供给主程序设备及SES(SCSI Enclosure Eervice,SCSI外设服务程序)程序设备,然而,现有技术中并没有一套行之有效的方法来为主程序设备或SES程序设备提供机箱信息,使得机箱信息的交互速率较低。In enclosure management, enclosure information such as equipment information, feature information, and production information about the enclosure needs to be provided to the main program equipment and SES (SCSI Enclosure Eervice, SCSI peripheral service program) program equipment. However, there is no one in the prior art. An effective method is adopted to provide the chassis information for the main program device or the SES program device, so that the interaction rate of the chassis information is low.

综上所述,如何提高机箱信息的交互速率是目前本领域技术人员亟待解决的问题。To sum up, how to increase the exchange rate of chassis information is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本发明的目的是提供一种机箱信息交互方法,其能在一定程度上解决如何提高机箱信息的交互速率的技术问题。本发明还提供了一种机箱信息交互系统、设备及计算机存储介质。The purpose of the present invention is to provide a chassis information interaction method, which can solve the technical problem of how to improve the interaction rate of chassis information to a certain extent. The invention also provides a chassis information interaction system, equipment and computer storage medium.

为了实现上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:

一种机箱信息交互方法,应用于SES程序设备,包括:A chassis information interaction method, applied to SES program equipment, comprising:

接收主程序设备发送的请求信息;Receive the request information sent by the main program device;

在机箱信息存储空间中管理与所述请求信息对应的目标信息;managing target information corresponding to the request information in the chassis information storage space;

发送管理结果至所述主程序设备。sending the management result to the main program device.

优选的,所述接收主程序设备发送的请求信息,包括:Preferably, said receiving the request information sent by the main program device includes:

接收主程序设备发送的请求命令。Receive the request command sent by the master program device.

优选的,所述在机箱信息存储空间中管理与所述请求信息对应的目标信息,包括:Preferably, the managing the target information corresponding to the request information in the chassis information storage space includes:

在机箱信息存储器中管理与所述请求信息对应的目标信息。Target information corresponding to the request information is managed in the chassis information storage.

优选的,所述在机箱信息存储器中管理与所述请求信息对应的目标信息,包括:Preferably, the managing the target information corresponding to the request information in the chassis information storage includes:

在机箱信息EEPROM中管理与所述请求信息对应的目标信息。Object information corresponding to the request information is managed in the enclosure information EEPROM.

优选的,所述接收主程序设备发送的请求信息,包括:Preferably, said receiving the request information sent by the main program device includes:

接收主程序设备发送的读取请求信息;Receive the read request information sent by the main program device;

所述在机箱信息存储空间中管理与所述请求信息对应的目标信息,包括:The managing the target information corresponding to the request information in the chassis information storage space includes:

在机箱信息存储空间中获取与所述获取请求信息对应的目标信息。The target information corresponding to the acquisition request information is acquired in the chassis information storage space.

优选的,所述接收主程序设备发送的请求信息,包括:Preferably, said receiving the request information sent by the main program device includes:

接收主程序设备发送的写入请求信息;Receive the write request information sent by the main program device;

所述在机箱信息存储空间中管理与所述请求信息对应的目标信息,包括:The managing the target information corresponding to the request information in the chassis information storage space includes:

在机箱信息存储空间中写入与所述写入请求信息对应的目标信息。Writing target information corresponding to the write request information in the chassis information storage space.

优选的,所述在机箱信息存储空间中写入与所述请求信息对应的目标信息之后,还包括:Preferably, after writing the target information corresponding to the request information in the chassis information storage space, the method further includes:

判断所述目标信息是否是控制信息,若是,则控制与所述目标信息对应的设备进行相应操作,并向所述主程序设备返回控制结果信息。Judging whether the target information is control information, if so, controlling the device corresponding to the target information to perform corresponding operations, and returning control result information to the main program device.

一种机箱信息交互系统,应用于SES程序设备,包括:A chassis information interaction system applied to SES program equipment, including:

接收模块,用于接收主程序设备发送的请求信息;The receiving module is used to receive the request information sent by the main program device;

管理模块,用于在机箱信息存储空间中管理与所述请求信息对应的目标信息;A management module, configured to manage target information corresponding to the request information in the chassis information storage space;

发送模块,用于发送管理结果至所述主程序设备。The sending module is used to send the management result to the main program device.

一种机箱信息交互设备,包括:A chassis information interaction device, comprising:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上任一所述一种机箱信息交互方法的步骤。The processor is configured to implement the steps of any one of the chassis information interaction methods described above when executing the computer program.

一种计算机存储介质,所述计算机存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述一种机箱信息交互方法的步骤。A computer storage medium. A computer program is stored on the computer storage medium. When the computer program is executed by a processor, the steps of any one of the chassis information interaction methods described above are implemented.

本发明提供的一种机箱信息交互方法,应用于SES程序设备,通过让SES程序设备接收主程序设备发送的请求信息,并在机箱信息存储空间中管理与请求信息对应的目标信息,最后发送管理结果至主程序设备;实现了借助SES程序设备执行主程序设备对机箱信息的管理,实现了机箱信息在SES程序设备和主程序设备间的共享,提高了机箱信息在SES程序设备和主程序设备间的交互速率。综上所述,本发明提供的一种机箱信息交互方法在一定程度上解决了如何提高机箱信息的交互速率的技术问题。本发明提供的一种机箱信息交互系统、设备及计算机存储介质也解决了相应的技术问题。A chassis information interaction method provided by the present invention is applied to SES program equipment. By letting the SES program equipment receive the request information sent by the main program equipment, manage the target information corresponding to the request information in the chassis information storage space, and finally send the management Results to the main program device; realize the management of the chassis information by means of the SES program device to execute the main program device, realize the sharing of the chassis information between the SES program device and the main program device, and improve the sharing of the chassis information between the SES program device and the main program device rate of interaction between them. In summary, the chassis information interaction method provided by the present invention solves the technical problem of how to increase the chassis information interaction rate to a certain extent. A chassis information interaction system, equipment and computer storage medium provided by the present invention also solve corresponding technical problems.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本发明实施例提供的一种机箱信息交互方法的流程图;FIG. 1 is a flow chart of a method for interacting chassis information provided by an embodiment of the present invention;

图2为实际应用中SES程序设备应用本发明实施例提供的一种机箱信息交互方法的流程图;Fig. 2 is a flow chart of a method for interacting chassis information provided by the SES program device in an actual application according to an embodiment of the present invention;

图3为实际应用中主程序设备发送SES命令至SES程序设备的方法的流程图;Fig. 3 is the flowchart of the method that main program device sends SES order to SES program device in practical application;

图4为本发明实施例提供的一种机箱信息交互系统的结构示意图;FIG. 4 is a schematic structural diagram of a chassis information interaction system provided by an embodiment of the present invention;

图5为本发明实施例提供的一种机箱信息交互设备的结构示意图。Fig. 5 is a schematic structural diagram of a chassis information interaction device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供的一种机箱信息交互方法,应用于SES程序设备,该方法中各个步骤的动作执行主体可以为本发明实施例提供的一种机箱信息交互系统,而该系统也应用于SES程序设备,为了描述方便,将本发明实施例提供的一种机箱信息交互方法中各个步骤的动作执行主体设为SES程序设备。The chassis information interaction method provided by the embodiment of the present invention is applied to the SES program device, and the action execution subject of each step in the method can be a chassis information interaction system provided by the embodiment of the present invention, and the system is also applied to the SES For the convenience of description, the program device is used as the SES program device as the action execution subject of each step in the chassis information interaction method provided by the embodiment of the present invention.

请参阅图1,图1为本发明实施例提供的一种机箱信息交互方法的流程图。Please refer to FIG. 1 . FIG. 1 is a flow chart of a chassis information interaction method provided by an embodiment of the present invention.

本发明实施例提供的一种机箱信息交互方法,应用于SES程序设备,可以包括以下步骤:A chassis information interaction method provided by an embodiment of the present invention is applied to an SES program device and may include the following steps:

步骤S101:接收主程序设备发送的请求信息。Step S101: Receive request information sent by the main program device.

实际应用中,SES程序设备先接收主程序设备发送的请求信息。这里所说的SES程序设备指的是运行SES程序的设备,这里所说的主程序设备指的是运行主程序的设备。主程序设备发送给SES程序设备的请求信息为,主程序设备对机箱信息的请求信息,比如读取机箱信息、在机箱信息中写入信息等。In practical applications, the SES program device first receives the request information sent by the main program device. The SES program device mentioned here refers to the device running the SES program, and the main program device mentioned here refers to the device running the main program. The request information sent by the main program device to the SES program device is the request information of the main program device for chassis information, such as reading chassis information, writing information in the chassis information, and the like.

步骤S102:在机箱信息存储空间中管理与请求信息对应的目标信息。Step S102: Manage the target information corresponding to the request information in the chassis information storage space.

SES程序设备在接收到请求信息后,便可以在机箱信息存储空间中管理与请求信息对应的目标信息。这里所说的目标信息指的是属于机箱信息中的一部分或全部信息,由于机箱信息包括设备信息、特性信息、生产信息等,主程序设备可能只需对机箱信息中的一部分或全部信息进行处理,这时,机箱信息中的这一部分或全部信息也即目标信息;这里所说的机箱信息存储空间指的是存储机箱信息的存储空间。实际应用中,请求信息会包含目标信息的标识信息,以便SES程序设备能够在机箱信息存储空间中查找到目标信息,目标信息的标识信息可以是目标信息在机箱信息存储空间中的存储地址和字段长度,也可以是目标信息的起始字段和结束字段的组合等,其可以根据实际需要确定。应当指出,实际应用中,SES程序设备在机箱信息存储空间中管理与请求信息对应的目标信息之前,可能需要先将机箱信息存储在预设的存储空间中,当然也可以是外界输入机箱信息至预设的存储空间中。After receiving the request information, the SES program device can manage the target information corresponding to the request information in the chassis information storage space. The target information mentioned here refers to part or all of the chassis information, since the chassis information includes equipment information, characteristic information, production information, etc., the main program device may only need to process part or all of the chassis information , at this time, this part or all of the chassis information is also the target information; the chassis information storage space mentioned here refers to the storage space for storing chassis information. In practical applications, the request information will include the identification information of the target information, so that the SES program device can find the target information in the chassis information storage space, and the identification information of the target information can be the storage address and field of the target information in the chassis information storage space The length can also be a combination of the start field and end field of the target information, etc., which can be determined according to actual needs. It should be pointed out that in practical applications, before the SES program device manages the target information corresponding to the requested information in the chassis information storage space, it may need to store the chassis information in the preset storage space. Of course, the chassis information can also be input from the outside to the in the preset storage space.

步骤S103:发送管理结果至主程序设备。Step S103: Send the management result to the main program device.

SES程序设备根据请求信息对机箱信息存储空间中的目标信息进行管理之后,便可以将管理结果返回至主程序设备,以便主程序设备根据管理结果进行相应操作。这里所说的管理结果可以包括管理是否成功、目标信息的状态、返回给主程序设备的关于目标信息的信息等,管理结果的具体内容可以根据实际需要确定。After the SES program device manages the target information in the chassis information storage space according to the request information, it can return the management result to the main program device, so that the main program device can perform corresponding operations according to the management result. The management result mentioned here may include whether the management is successful, the status of the target information, information about the target information returned to the main program device, etc. The specific content of the management result can be determined according to actual needs.

本发明提供的一种机箱信息交互方法,应用于SES程序设备,通过让SES程序设备接收主程序设备发送的请求信息,并在机箱信息存储空间中管理与请求信息对应的目标信息,最后发送管理结果至主程序设备;实现了借助SES程序设备执行主程序设备对机箱信息的管理,实现了机箱信息在SES程序设备和主程序设备间的共享,提高了机箱信息在SES程序设备和主程序设备间的交互速率。综上所述,本发明提供的一种机箱信息交互方法在一定程度上解决了如何提高机箱信息的交互速率的技术问题。A chassis information interaction method provided by the present invention is applied to SES program equipment. By letting the SES program equipment receive the request information sent by the main program equipment, manage the target information corresponding to the request information in the chassis information storage space, and finally send the management Results to the main program device; realize the management of the chassis information by means of the SES program device to execute the main program device, realize the sharing of the chassis information between the SES program device and the main program device, and improve the sharing of the chassis information between the SES program device and the main program device rate of interaction between them. In summary, the chassis information interaction method provided by the present invention solves the technical problem of how to increase the chassis information interaction rate to a certain extent.

本发明实施例提供的一种机箱信息交互方法中,步骤S101接收主程序设备发送的请求信息,具体可以为:In a chassis information interaction method provided by an embodiment of the present invention, step S101 receives the request information sent by the main program device, which may specifically be:

接收主程序设备发送的请求命令。Receive the request command sent by the master program device.

为了提高SES程序设备接收主程序设备发送的请求信息的速率,实际应用中,可以设置主程序设备以命令的形式发送请求信息,比如,可以借助主程序设备和SES程序设备间的receive diagnostic命令和send diagnostic命令来实现主程序设备和SES程序设备间的信息交互。In order to increase the rate at which the SES program device receives the request information sent by the main program device, in practical applications, the main program device can be set to send request information in the form of commands, for example, the receive diagnostic command and The send diagnostic command is used to realize the information exchange between the main program device and the SES program device.

本发明实施例提供的一种机箱信息交互方法中,步骤S102在机箱信息存储空间中管理与请求信息对应的目标信息,具体可以为:In a chassis information interaction method provided in an embodiment of the present invention, step S102 manages the target information corresponding to the requested information in the chassis information storage space, which may specifically be:

在机箱信息存储器中管理与请求信息对应的目标信息。Target information corresponding to the request information is managed in the chassis information storage.

为了方便存储机箱信息,实际应用中,可以借助存储器来存储机箱信息。In order to store the chassis information conveniently, in practical applications, the chassis information may be stored by means of a memory.

本发明实施例提供的一种机箱信息交互方法中,在机箱信息存储器中管理与请求信息对应的目标信息,具体可以为:In a chassis information interaction method provided by an embodiment of the present invention, the target information corresponding to the request information is managed in the chassis information storage, which may specifically be:

在机箱信息EEPROM中管理与请求信息对应的目标信息。Object information corresponding to the request information is managed in the chassis information EEPROM.

为了保证机箱信息在设备掉电后不会意外丢失,实际应用中,可以使用EEPROM(Electrically Erasable Programmable read only memory,电可擦可编程只读存储器)来存储机箱信息。In order to ensure that the chassis information will not be accidentally lost after the device is powered off, in practical applications, EEPROM (Electrically Erasable Programmable read only memory, Electrically Erasable Programmable Read Only Memory) can be used to store chassis information.

本发明实施例提供的一种机箱信息交互方法中,接收主程序设备发送的请求信息,具体可以为:In a chassis information interaction method provided by an embodiment of the present invention, receiving the request information sent by the main program device may specifically be:

接收主程序设备发送的读取请求信息;Receive the read request information sent by the main program device;

相应的,在机箱信息存储空间中管理与请求信息对应的目标信息,具体可以为:Correspondingly, the target information corresponding to the requested information is managed in the chassis information storage space, which may specifically be:

在机箱信息存储空间中获取与读取请求信息对应的目标信息。The target information corresponding to the read request information is acquired in the chassis information storage space.

实际应用中,主程序设备可能需要读取目标信息,这时,SES程序设备可以先接收主程序设备发送的读取请求信息,然后在机箱信息存储空间中获取与读取请求信息对应的目标信息,最后将获取的目标信息返回至主程序设备。In practical applications, the main program device may need to read the target information. At this time, the SES program device can first receive the read request information sent by the main program device, and then obtain the target information corresponding to the read request information in the chassis information storage space , and finally return the obtained target information to the main program device.

本发明实施例提供的一种机箱信息交互方法中,接收主程序设备发送的请求信息,具体可以为:In a chassis information interaction method provided by an embodiment of the present invention, receiving the request information sent by the main program device may specifically be:

接收主程序设备发送的写入请求信息;Receive the write request information sent by the main program device;

相应的,在机箱信息存储空间中管理与请求信息对应的目标信息,具体可以为:Correspondingly, the target information corresponding to the requested information is managed in the chassis information storage space, which may specifically be:

在机箱信息存储空间中写入与写入请求信息对应的目标信息。The target information corresponding to the write request information is written in the chassis information storage space.

实际应用中,主程序设备可能需要在机箱信息存储空间中写入目标信息,这时,SES程序设备可以先接收主程序设备发送的写入请求信息,写入请求信息中包含目标信息,接着在机箱信息存储空间中写入与写入请求信息对应的目标信息,最后将目标信息的写入结果返回至主程序设备。In practical applications, the main program device may need to write target information in the chassis information storage space. At this time, the SES program device can first receive the write request information sent by the main program device, and the write request information contains the target information, and then The target information corresponding to the write request information is written into the chassis information storage space, and finally the writing result of the target information is returned to the main program device.

本发明实施例提供的一种机箱信息交互方法中,在机箱信息存储空间中写入与请求信息对应的目标信息之后,还可以包括:In a chassis information interaction method provided by an embodiment of the present invention, after writing the target information corresponding to the request information in the chassis information storage space, it may further include:

判断目标信息是否是控制信息,若是,则控制与目标信息对应的设备进行相应操作,并向主程序设备返回控制结果信息。Judging whether the target information is control information, if so, controlling the device corresponding to the target information to perform corresponding operations, and returning control result information to the main program device.

实际应用中,主程序设备将要写入至机箱信息存储空间中的目标信息可能是控制设备执行相应操作的信息,这时,SES程序设备在机箱信息存储空间中写入与请求信息对应的目标信息之后,可以先判断目标信息是否是控制信息,若是,则控制与目标信息对应的设备进行相应操作,并向主程序设备返回控制结果信息,这里所说的控制结果信息可以包括与目标信息对应的设备是否执行相应操作、执行结果等。In practical applications, the target information that the main program device will write into the chassis information storage space may be the information that controls the device to perform corresponding operations. At this time, the SES program device writes the target information corresponding to the requested information in the chassis information storage space Afterwards, it is first possible to determine whether the target information is control information, and if so, control the device corresponding to the target information to perform corresponding operations, and return the control result information to the main program device. The control result information mentioned here may include information corresponding to the target information. Whether the device performs the corresponding operation, the execution result, etc.

请参阅图2和图3,图2为实际应用中SES程序设备应用本发明实施例提供的一种机箱信息交互方法的流程图,图3为实际应用中主程序设备发送SES命令至SES程序设备的方法的流程图。图2中的SES命令也即请求信息,字段信息也即目标信息。Please refer to Fig. 2 and Fig. 3, Fig. 2 is a flow chart of the SES program device applying a chassis information interaction method provided by the embodiment of the present invention in practical application, and Fig. 3 is the main program device sending SES commands to the SES program device in practical application flow chart of the method. The SES command in FIG. 2 is also request information, and the field information is also target information.

实际应用中SES程序设备应用本发明实施例提供的一种机箱信息交互方法可以包括以下步骤:In practical applications, the SES program device application method provided by the embodiment of the present invention may include the following steps:

步骤S201:接收主程序设备发送的SES命令,判断SES命令是读取命令,还是写入命令;Step S201: receiving the SES command sent by the main program device, and judging whether the SES command is a read command or a write command;

步骤S202:若是读取命令,则确认要读取的字段信息,字段信息包括字段的偏移地址和长度;Step S202: If it is a read command, confirm the field information to be read, and the field information includes the offset address and length of the field;

步骤S203:发起EEPROM读函数,传入字段的偏移地址和长度,获取字节值,向主程序返回状态和字节值;Step S203: Initiate the EEPROM read function, pass in the offset address and length of the field, obtain the byte value, and return the status and byte value to the main program;

步骤S204:若是写入命令,则确认要写入的字段信息,字段信息包括字节值和偏移地址;Step S204: If it is a write command, confirm the field information to be written, and the field information includes byte value and offset address;

步骤S205:调用EEPROM写函数,将字节值写入字段所在的偏移地址;Step S205: call the EEPROM write function, and write the byte value into the offset address where the field is located;

步骤S206:判断字段信息是否是控制硬件类型的字段,若是,则执行步骤S207:调用硬件驱动,完成相应的硬件操作,向主程序返回状态;若否,则执行步骤S208:向主程序返回状态。Step S206: Determine whether the field information is a field for controlling the hardware type, if so, execute step S207: call the hardware driver, complete the corresponding hardware operation, and return the status to the main program; if not, execute step S208: return the status to the main program .

实际应用中主程序设备发送SES命令至SES程序设备的方法可以包括以下步骤:In practical applications, the method for the master program device to send an SES command to the SES program device may include the following steps:

步骤S301:接收并解析外界发送的控制命令;Step S301: receiving and analyzing the control command sent by the outside world;

步骤S302:当控制命令为需要字段的值时,查找与字段对应的地址和字节长度,执行步骤S303;Step S302: When the control command is the value of the required field, search for the address and byte length corresponding to the field, and execute step S303;

步骤S303:基于读命令发送字段对应的地址和字节长度至SES程序设备,执行步骤S304;Step S303: Based on the address and byte length corresponding to the read command sending field to the SES program device, execute step S304;

步骤S304:等待SES程序设备返回读取字段值和状态;Step S304: Waiting for the SES program device to return the read field value and status;

步骤S305:当控制命令为需要控制外设电路时,查找与字段对应的地址和字节长度,执行步骤S306;Step S305: When the control command needs to control the peripheral circuit, search for the address and byte length corresponding to the field, and execute step S306;

步骤S306:基于写命令发送待写入字段对应的地址和字节长度至SES程序设备,执行步骤S307;Step S306: Send the address and byte length corresponding to the field to be written to the SES program device based on the write command, and execute step S307;

步骤S307:等待SES程序设备返回的状态。Step S307: Wait for the status returned by the SES program device.

本发明还提供了一种机箱信息交互系统,其具有本发明实施例提供的一种机箱信息交互方法具有的对应效果。请参阅图4,图4为本发明实施例提供的一种机箱信息交互系统的结构示意图。The present invention also provides a chassis information interaction system, which has the corresponding effect of the chassis information interaction method provided by the embodiment of the present invention. Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a chassis information interaction system provided by an embodiment of the present invention.

本发明实施例提供的一种机箱信息交互系统,应用于SES程序设备,可以包括:A chassis information interaction system provided by an embodiment of the present invention is applied to an SES program device and may include:

接收模块101,用于接收主程序设备发送的请求信息;A receiving module 101, configured to receive request information sent by the main program device;

管理模块102,用于在机箱信息存储空间中管理与请求信息对应的目标信息;A management module 102, configured to manage target information corresponding to the requested information in the chassis information storage space;

发送模块103,用于发送管理结果至主程序设备。The sending module 103 is configured to send the management result to the main program device.

本发明实施例提供的一种机箱信息交互系统中,接收模块可以包括:In a chassis information interaction system provided by an embodiment of the present invention, the receiving module may include:

第一接收单元,用于接收主程序设备发送的请求命令。The first receiving unit is configured to receive a request command sent by the main program device.

本发明实施例提供的一种机箱信息交互系统中,管理模块可以包括:In a chassis information interaction system provided by an embodiment of the present invention, the management module may include:

第一管理单元,用于在机箱信息存储器中管理与所述请求信息对应的目标信息。The first management unit is configured to manage target information corresponding to the request information in the chassis information storage.

本发明实施例提供的一种机箱信息交互系统中,管理模块可以包括:In a chassis information interaction system provided by an embodiment of the present invention, the management module may include:

第二管理单元,用于在机箱信息EEPROM中管理与请求信息对应的目标信息。The second management unit is configured to manage the target information corresponding to the request information in the chassis information EEPROM.

本发明实施例提供的一种机箱信息交互系统中,接收模块可以包括:In a chassis information interaction system provided by an embodiment of the present invention, the receiving module may include:

第二接收单元,用于接收主程序设备发送的读取请求信息;The second receiving unit is configured to receive the read request information sent by the main program device;

相应的,管理模块可以包括:Correspondingly, the management module may include:

第三管理单元,用于在机箱信息存储空间中获取与读取请求信息对应的目标信息。The third management unit is configured to acquire target information corresponding to the read request information in the chassis information storage space.

本发明实施例提供的一种机箱信息交互系统中,接收模块可以包括:In a chassis information interaction system provided by an embodiment of the present invention, the receiving module may include:

第三接收单元,用于接收主程序设备发送的写入请求信息;a third receiving unit, configured to receive the write request information sent by the main program device;

相应的,管理模块可以包括:Correspondingly, the management module may include:

第四管理单元,用于在机箱信息存储空间中写入与写入请求信息对应的目标信息。The fourth management unit is configured to write target information corresponding to the write request information in the chassis information storage space.

本发明实施例提供的一种机箱信息交互系统中,还可以包括:In a chassis information interaction system provided by an embodiment of the present invention, it may further include:

判断模块,用于在管理模块在机箱信息存储空间中写入与请求信息对应的目标信息之后,判断目标信息是否是控制信息,若是,则控制与目标信息对应的设备进行相应操作,并向主程序设备返回控制结果信息。The judging module is used to judge whether the target information is control information after the management module writes the target information corresponding to the request information in the chassis information storage space, and if so, control the equipment corresponding to the target information to perform corresponding operations, and report to the host The program device returns control result information.

本发明还提供了一种机箱信息交互设备及计算机存储介质,其均具有本发明实施例提供的一种机箱信息交互方法具有的对应效果。请参阅图5,图5为本发明实施例提供的一种机箱信息交互设备的结构示意图。The present invention also provides a chassis information interaction device and a computer storage medium, both of which have corresponding effects of the chassis information interaction method provided by the embodiment of the present invention. Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a chassis information interaction device provided by an embodiment of the present invention.

本发明实施例提供的一种机箱信息交互设备,可以包括:A chassis information interaction device provided in an embodiment of the present invention may include:

存储器201,用于存储计算机程序;Memory 201, used to store computer programs;

处理器202,用于执行计算机程序时实现如上任一实施例所描述的一种机箱信息交互方法的步骤。The processor 202 is configured to implement the steps of a chassis information interaction method described in any one of the above embodiments when executing a computer program.

本发明实施例提供的一种计算机存储介质,计算机存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上任一实施例所描述的一种机箱信息交互方法的步骤。An embodiment of the present invention provides a computer storage medium. A computer program is stored on the computer storage medium. When the computer program is executed by a processor, the steps of a method for interacting with chassis information as described in any of the above embodiments are implemented.

本发明实施例提供的一种机箱信息交互系统、设备及计算机存储介质中相关部分的说明请参见本发明实施例提供的一种机箱信息交互方法中对应部分的详细说明,在此不再赘述。另外,本发明实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。For the description of relevant parts of a chassis information interaction system, equipment, and computer storage medium provided by the embodiment of the present invention, please refer to the detailed description of the corresponding parts in the chassis information interaction method provided by the embodiment of the present invention, and will not be repeated here. In addition, the parts of the technical solutions provided by the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.

对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

  1. A kind of 1. chassis information exchange method, it is characterised in that applied to SES softwares, including:
    Receive the solicited message that main program equipment is sent;
    Target information corresponding with the solicited message is managed in chassis information memory space;
    Management result is sent to the main program equipment.
  2. 2. according to the method described in claim 1, it is characterized in that, the solicited message for receiving main program equipment and sending, bag Include:
    Receive the request command that main program equipment is sent.
  3. 3. according to the method described in claim 1, it is characterized in that, the management in chassis information memory space is asked with described The corresponding target information of information is sought, including:
    Target information corresponding with the solicited message is managed in chassis information memory.
  4. 4. according to the method described in claim 3, it is characterized in that, the management in chassis information memory and the request The corresponding target information of information, including:
    Target information corresponding with the solicited message is managed in chassis information EEPROM.
  5. 5. according to the method described in claim 1, it is characterized in that, the solicited message for receiving main program equipment and sending, bag Include:
    Receive the read requests information that main program equipment is sent;
    The management target information corresponding with the solicited message in chassis information memory space, including:
    Target information corresponding with the read requests information is obtained in chassis information memory space.
  6. 6. according to the method described in claim 1, it is characterized in that, the solicited message for receiving main program equipment and sending, bag Include:
    Receive the write request information that main program equipment is sent;
    The management target information corresponding with the solicited message in chassis information memory space, including:
    Target information corresponding with said write solicited message is write in chassis information memory space.
  7. 7. according to the method described in claim 6, it is characterized in that, the write-in in chassis information memory space is asked with described After seeking the corresponding target information of information, further include:
    Judge whether the target information is control information, if so, then controlling equipment corresponding with the target information to carry out phase It should operate, and control result information is returned to the main program equipment.
  8. A kind of 8. chassis information interactive system, it is characterised in that applied to SES softwares, including:
    Receiving module, for receiving the solicited message of main program equipment transmission;
    Management module, for managing target information corresponding with the solicited message in chassis information memory space;
    Sending module, for sending management result to the main program equipment.
  9. A kind of 9. chassis information interactive device, it is characterised in that including:
    Memory, for storing computer program;
    Processor, a kind of chassis information friendship as described in any one of claim 1 to 7 is realized during for performing the computer program The step of mutual method.
  10. 10. a kind of computer-readable storage medium, it is characterised in that computer program, institute are stored with the computer-readable storage medium State realizing a kind of chassis information exchange method as described in any one of claim 1 to 7 when computer program is executed by processor Step.
CN201711329684.XA 2017-12-13 2017-12-13 A kind of chassis information exchange method, system, equipment and computer-readable storage medium Pending CN107992372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711329684.XA CN107992372A (en) 2017-12-13 2017-12-13 A kind of chassis information exchange method, system, equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711329684.XA CN107992372A (en) 2017-12-13 2017-12-13 A kind of chassis information exchange method, system, equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN107992372A true CN107992372A (en) 2018-05-04

Family

ID=62037880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711329684.XA Pending CN107992372A (en) 2017-12-13 2017-12-13 A kind of chassis information exchange method, system, equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107992372A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491882A (en) * 2018-11-06 2019-03-19 郑州云海信息技术有限公司 A kind of chassis data processing method, system, equipment cabinets and readable storage medium storing program for executing
CN111240932A (en) * 2020-01-09 2020-06-05 苏州浪潮智能科技有限公司 Case management method and device, electronic equipment and storage medium
WO2021109432A1 (en) * 2019-12-06 2021-06-10 苏州浪潮智能科技有限公司 Data transmission method, apparatus, and device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003073279A1 (en) * 2002-02-25 2003-09-04 Loma Linda University System for building interactive calculations on web pages
CN1707436A (en) * 2004-06-04 2005-12-14 深圳市朗科科技有限公司 Method for exchanging data between main machine and equipment
CN101122936A (en) * 2007-09-21 2008-02-13 武汉大学 Embedded Platform Booting on a Trusted Mechanism
CN102298526A (en) * 2011-06-08 2011-12-28 厦门雅迅网络股份有限公司 Mechanism for upgrading programs of peripheral equipment based on single chips without external extended memories
CN102594587A (en) * 2012-01-17 2012-07-18 京信通信系统(中国)有限公司 Embedded WEB debugging and testing maintenance method and debugging and testing maintenance system
CN104881337A (en) * 2015-02-06 2015-09-02 北京飞杰信息技术有限公司 Method for expanding novel functions of SCSI (small computer system interface) cases
CN105630615A (en) * 2015-12-28 2016-06-01 北京元心科技有限公司 Cross-system application control method and intelligent terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003073279A1 (en) * 2002-02-25 2003-09-04 Loma Linda University System for building interactive calculations on web pages
CN1707436A (en) * 2004-06-04 2005-12-14 深圳市朗科科技有限公司 Method for exchanging data between main machine and equipment
CN101122936A (en) * 2007-09-21 2008-02-13 武汉大学 Embedded Platform Booting on a Trusted Mechanism
CN102298526A (en) * 2011-06-08 2011-12-28 厦门雅迅网络股份有限公司 Mechanism for upgrading programs of peripheral equipment based on single chips without external extended memories
CN102594587A (en) * 2012-01-17 2012-07-18 京信通信系统(中国)有限公司 Embedded WEB debugging and testing maintenance method and debugging and testing maintenance system
CN104881337A (en) * 2015-02-06 2015-09-02 北京飞杰信息技术有限公司 Method for expanding novel functions of SCSI (small computer system interface) cases
CN105630615A (en) * 2015-12-28 2016-06-01 北京元心科技有限公司 Cross-system application control method and intelligent terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GRAVEY, P.*;GOSSELIN, S.;GUILLEMONT, C等: "Multiservice optical network: Main concepts and first achievements of the ROM program", 《JOURNAL OF LIGHTWAVE TECHNOLOGY: A JOINT IEEE/OSA PUBLICATION》 *
王景忠,王俊芳,于立佳: "一种实现RS232接口一对多通信的方法", 《无线电工程》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491882A (en) * 2018-11-06 2019-03-19 郑州云海信息技术有限公司 A kind of chassis data processing method, system, equipment cabinets and readable storage medium storing program for executing
CN109491882B (en) * 2018-11-06 2021-10-29 郑州云海信息技术有限公司 A case data processing method, system, equipment case and readable storage medium
WO2021109432A1 (en) * 2019-12-06 2021-06-10 苏州浪潮智能科技有限公司 Data transmission method, apparatus, and device, and storage medium
US12019579B2 (en) 2019-12-06 2024-06-25 Inspur Suzhou Intelligent Technology Co., Ltd. Data transmission method, apparatus, and device, and storage medium
CN111240932A (en) * 2020-01-09 2020-06-05 苏州浪潮智能科技有限公司 Case management method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107305534B (en) Method for simultaneously carrying out kernel mode access and user mode access
US9639459B2 (en) I/O latency and IOPs performance in thin provisioned volumes
CN107209683B (en) Backup image restore
CN107463369A (en) The access device control method and device of a kind of virtual desktop
US11138034B2 (en) Method and apparatus for collecting information, and method and apparatus for releasing memory
US20190004959A1 (en) Methods and devices for managing cache
CN107229415A (en) A data writing method, a data reading method, and related equipment and systems
CN108132890A (en) Rubbish recovering method, device, equipment and the storage medium of storage chip
CN111290836B (en) Virtual machine snapshot creation method, device, storage medium and computer equipment
CN103677878A (en) Method and device for patching
CN107992372A (en) A kind of chassis information exchange method, system, equipment and computer-readable storage medium
CN107391050A (en) A kind of data migration method, system, device and computer-readable recording medium
US20150074368A1 (en) Thin provisioning storage devices in connection with secure delete operations
CN104104705A (en) Access method and device of distributed storage system
JPWO2009066611A1 (en) Data storage system for virtual machine, data storage method, and data storage program
CN110781133B (en) ROW snapshot method, system, equipment and computer readable storage medium
WO2018028218A1 (en) Data writing method and apparatus
US10169062B2 (en) Parallel mapping of client partition memory to multiple physical adapters
US10628078B2 (en) Data access method and related device
CN110248023B (en) Intelligent terminal control method, device, equipment and medium
CN106776046A (en) A kind of SCST reads and writes optimization method and system
CN106202262A (en) A kind of information processing method and electronic equipment
CN102193745B (en) Flash memory storage device, its controller and writing management method
US9507702B2 (en) Method of performing write access by distributing control rights to threads, memory controller and flash memory storage device using the same
US20170083235A1 (en) Device capable of using external volatile memory and device capable of releasing internal volatile memory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180504

RJ01 Rejection of invention patent application after publication