WO2022148302A1 - 一种信息交互方法、系统、设备及计算机可读存储介质 - Google Patents

一种信息交互方法、系统、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022148302A1
WO2022148302A1 PCT/CN2021/143271 CN2021143271W WO2022148302A1 WO 2022148302 A1 WO2022148302 A1 WO 2022148302A1 CN 2021143271 W CN2021143271 W CN 2021143271W WO 2022148302 A1 WO2022148302 A1 WO 2022148302A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
extended
basic
field
receiver
Prior art date
Application number
PCT/CN2021/143271
Other languages
English (en)
French (fr)
Inventor
候志立
Original Assignee
苏州浪潮智能科技有限公司
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 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2022148302A1 publication Critical patent/WO2022148302A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Definitions

  • the present application relates to the field of computer technology, and more particularly, to an information interaction method, system, device, and computer-readable storage medium.
  • the purpose of this application is to provide an information interaction method, which can solve the technical problem of how to improve the applicability of information interaction to a certain extent.
  • the present application also provides an information interaction system, device and computer-readable storage medium.
  • An information interaction method, applied to an information sender, includes:
  • the basic information is encapsulated to obtain the basic information field
  • the extended information is encapsulated to obtain an extended information field
  • the basic information includes interaction information pre-agreed between the information sender and the information receiver;
  • the extended information includes interaction information that is not pre-agreed between the information sender and the information receiver.
  • the method further includes:
  • extended information field response information indicates that the information receiver has the interactive function of the extended information, marking the extended information as the basic information
  • response information of the extended information field indicates that the information receiver does not have the interactive function of the extended information, it is forbidden to send the extended information to the information receiver.
  • the method further includes:
  • the structure information of the extended information is added to the basic information structure.
  • the adding the structure information of the extended information to the basic information structure includes:
  • the addition information includes addition information of adding the structure information of the extended information in the basic information structure.
  • the extended information structure includes structure information of the added information
  • the said extended information is encapsulated according to the preset extended information structure to obtain the extended information field, including:
  • the extended information and the added information are encapsulated to obtain an extended information field.
  • the added information includes offset information of the extended information in the basic information structure, a command word for configuring the extended information, a command word for acquiring the extended information, and a command word for sending the extended information. logo.
  • An information interaction method, applied to an information receiver includes:
  • the information sender obtains the target information to be sent; determines the basic information and the extended information in the target information; encapsulates the basic information according to the basic information structure to obtain the the basic information field; encapsulate the extended information according to the extended information structure to obtain the extended information field; the basic information includes the interaction information pre-agreed by the information sender and the information receiver; The extended information includes interaction information that is not pre-agreed by the information sender and the information receiver.
  • An information exchange system applied to an information sender, includes:
  • a first acquisition module used for acquiring target information to be sent
  • a first determining module configured to determine basic information and extended information in the target information
  • a first encapsulation module configured to encapsulate the basic information according to a preset basic information structure to obtain a basic information field
  • a second encapsulation module configured to encapsulate the extended information according to a preset extended information structure to obtain an extended information field
  • a first sending module configured to send the basic information field and the extended information field to an information receiver
  • the basic information includes interaction information pre-agreed between the information sender and the information receiver;
  • the extended information includes interaction information that is not pre-agreed between the information sender and the information receiver.
  • An information interaction device comprising:
  • the processor is configured to implement the steps of any of the above information interaction methods when executing the computer program.
  • a computer-readable storage medium storing a computer program in the computer-readable storage medium, when the computer program is executed by a processor, implements the steps of any one of the above information interaction methods.
  • An information interaction method provided by this application is applied to an information sender to obtain target information to be sent; basic information and extended information are determined in the target information; basic information is encapsulated according to a preset basic information structure, Obtain the basic information field; encapsulate the extended information according to the preset extended information structure to obtain the extended information field; send the basic information field and the extended information field to the information receiver; wherein, the basic information includes the information sender and the information receiver The interaction information pre-agreed by the information sender; the extended information includes the interaction information that is not pre-agreed by the information sender and the information receiver.
  • the information sender sends the basic information and the extended information to the information receiver separately through the data structure, so that the information receiver can process the basic information and the extended information separately.
  • the information exchange mode is flexible and convenient for information expansion, and has good applicability. .
  • the information interaction system, device and computer-readable storage medium provided by the present application also solve the corresponding technical problems.
  • FIG. 2 is a schematic structural diagram of an information interaction system provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an information interaction device according to an embodiment of the present application.
  • FIG. 4 is another schematic structural diagram of an information interaction device provided by an embodiment of the present application.
  • FIG. 1 is a flowchart of an information interaction method provided by an embodiment of the present application.
  • An information interaction method provided by an embodiment of the present application, applied to an information sender, may include the following steps:
  • Step S101 Acquire target information to be sent.
  • the information sender can first obtain the target information to be sent.
  • the target information can be information generated by the information sender under external triggers, or information directly received by the information sender, etc. This application does not make specific details here. limited. And the type of target information can also be determined according to actual needs.
  • Step S102 Determine basic information and extended information in the target information; the basic information includes interaction information pre-agreed by the information sender and the information receiver; and the extended information includes interaction information not pre-agreed by the information sender and the information receiver.
  • the basic information is the interaction information pre-agreed by the information sender and the information receiver. If the information receiver pre-agreed to exchange information, the information receiver must be able to exchange basic information, but not necessarily extended information. Therefore, it is necessary to determine the basic information and extended information in the target information, so that the basic information and extended information can be processed accordingly. deal with.
  • Step S103 Encapsulate the basic information according to a preset basic information structure to obtain a basic information field.
  • the information sender and the information receiver can pre-set the basic information structure to exchange basic information according to the basic information structure, that is, the information sender can perform basic information processing according to the preset basic information structure. Encapsulate to get basic information fields.
  • a corresponding basic information structure and the like may be set according to the type of information.
  • Step S104 Encapsulate the extended information according to the preset extended information structure to obtain the extended information field.
  • the information sender does not know whether the information receiver can exchange extended information with itself, the information sender needs to send the extended information to the information receiver so that the information receiver can process the extended information, so the information sender needs to communicate with the information receiver.
  • the information receiver presets an extended information structure for transmitting extended information.
  • the information sender can encapsulate the extended information according to the preset extended information structure to obtain the extended information field.
  • Step S105 Send the basic information field and the extended information field to the information receiver.
  • the information sender after the information sender obtains the basic information field and the extended information field, it can send the basic information field and the extended information field to the information receiver, so that the information receiver can communicate with the information sender according to the basic information field and the extended information field.
  • information exchange after obtaining the basic information field and the extended information field, the information receiver can unpack the basic information field according to the preset basic information structure to obtain the basic information; according to the preset extended information structure, Decapsulate the extended information field to obtain extended information; determine whether it has the interactive function of extended information, if so, exchange basic information and extended information with the information sender; if not, only exchange basic information with the information sender. In this way, the information interaction function can be expanded without affecting the basic information exchanged between the information sender and the information receiver.
  • An information interaction method provided by this application is applied to an information sender to obtain target information to be sent; basic information and extended information are determined in the target information; basic information is encapsulated according to a preset basic information structure, Obtain the basic information field; encapsulate the extended information according to the preset extended information structure to obtain the extended information field; send the basic information field and the extended information field to the information receiver; wherein, the basic information includes the information sender and the information receiver The interaction information pre-agreed by the information sender; the extended information includes the interaction information that is not pre-agreed by the information sender and the information receiver.
  • the information sender sends the basic information and the extended information to the information receiver separately through the data structure, so that the information receiver can process the basic information and the extended information separately.
  • the information exchange mode is flexible and convenient for information expansion, and has good applicability. .
  • the information sender after the information sender sends the basic information field and the extended information field to the information receiver, it can also receive the extended information field response information sent by the information receiver; parse the extended information field response information; If the extended information field response information indicates that the information receiver has the interactive function of the extended information, the extended information will be marked as basic information; Send extended information.
  • the information receiver after the information receiver obtains the basic information and extended information, it can generate corresponding extended information field response information according to whether it has the extended information interaction function and send it to the information sender; correspondingly, the information sender needs to Parse the extended information field response information. If the extended information field response information indicates that the information receiver has the interactive function of the extended information, the extended information is marked as the basic information. If the extended information field response information indicates that the information receiver does not have the interactive function of the extended information , it is forbidden to send extended information to the information receiver, so as to prevent the information sender and the information receiver from repeatedly sending extended information.
  • the information sender after the information sender marks the extended information as basic information, it can also add structure information of the extended information to the basic information structure, so that the basic information structure can be directly applied to the information receiver to interact with the extended information subsequently.
  • the information sender may agree with the information receiver on the addition information of the extended information in the basic information structure. For example, the information sender may determine the addition information, send it to the information receiver, and receive the response result of the addition information sent by the information receiver. ; If the response result of the added information indicates that the added information is agreed, then the structural information of the extended information is added in the basic information structure according to the added information; wherein, the added information includes the added information of the structural information of the extended information in the basic information structure. .
  • structure information for adding information can be set in the extended information structure.
  • the information sender expands the information structure according to the preset.
  • the addition information of the structure information for adding the extended information in the basic information structure can be determined; according to the extended information structure, the extended information and the added information are encapsulated to obtain the extended information information field.
  • the information receiver determines that it has the extended information interaction function, it can also mark the extended information as basic information, and add the corresponding structure of the extended information in the basic information structure according to the added information, and then can follow the added information.
  • the basic information structure interacts with the information sender to expand the information.
  • the added information may include offset information of the extended information in the basic information structure, a command word for configuring the extended information, a command word for acquiring the extended information, an identifier for sending the extended information, and the like.
  • BMC baseboard management controller, baseboard management controller
  • BIOS Basic Input Output System, basic input output system
  • the BIOS classifies the asset information that needs to be interacted with, such as CPU (Central Processing Unit, central processing unit) asset information, PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) asset information, memory asset information, onboard hard disk Asset information, BIOS/ME version information, TPM (Total Productive Maintenance) asset information, etc.;
  • CPU Central Processing Unit, central processing unit
  • PCIE peripheral component interconnect express, high-speed serial computer expansion bus standard
  • memory asset information such as onboard hard disk Asset information, BIOS/ME version information, TPM (Total Productive Maintenance) asset information, etc.
  • TPM Total Productive Maintenance
  • BIOS and BMC define a basic information structure that matches the type.
  • the basic information structure can include the device type of the PCIE device, on-board silk screen, bus number ,dev number, func number, etc.
  • the basic information structure can be as follows:
  • the BIOS and BMC define the extended information structure.
  • the definition of the extended information structure can be as follows:
  • the overall structure of the information exchange between the BIOS and the BMC can be as follows:
  • the BIOS processes PCIE_BASE_DATA according to the basic information; if the extended information needs to be sent to the BMC, the PCIE_EXTEND_DATA is processed according to the extended information.
  • the SubdeviceID field is expanded after ucDeviceID, occupying 2 bytes, then in the array element defined by PCIE_EXTEND_DATA, blInUsed Set to TRUE, ucNetFn, ucSetCmd and ucGetCmd are set to query this field and configure the netfn and command word required for this field;
  • BIOS sends PCIE_BASE_DATA and PCIE_EXTEND_DATA to BMC;
  • the BMC parses the basic information according to the structure of PCIE_DATA, determines that there is extended information in PCIE_EXTEND_DATA and has the function of exchanging extended information, fills the extended information to the position specified by PCIE_BASE_DATA according to the offset, and constructs a new basic information structure after expansion.
  • FIG. 2 is a schematic structural diagram of an information interaction system provided by an embodiment of the present application.
  • An information interaction system provided by the embodiment of the present application, applied to an information sender, may include:
  • the first obtaining module 101 is used to obtain target information to be sent;
  • a first determining module 102 configured to determine basic information and extended information in the target information
  • the first encapsulation module 103 is configured to encapsulate the basic information according to the preset basic information structure to obtain the basic information field;
  • the second encapsulation module 104 is configured to encapsulate the extended information according to a preset extended information structure to obtain an extended information field;
  • the first sending module 105 is configured to send the basic information field and the extended information field to the information receiver;
  • the basic information includes interaction information pre-agreed by the information sender and the information receiver;
  • the extended information includes interaction information that is not pre-agreed by the information sender and the information receiver.
  • An information interaction system provided by the embodiment of the present application, which is applied to an information sender, may further include:
  • the first receiving module is used for receiving the extended information field response information sent by the information receiver after the first sending module sends the basic information field and the extended information field to the information receiver;
  • the first parsing module is used for parsing the extended information field response information; if the extended information field response information represents that the information receiver has the interactive function of extended information, the extended information is marked as basic information; if the extended information field response information represents the information receiver If there is no interactive function of extended information, it is forbidden to send extended information to the information receiver.
  • An information interaction system provided by the embodiment of the present application, which is applied to an information sender, may further include:
  • the first adding module is used for adding the structure information of the extended information to the basic information structure after the first parsing module marks the extended information as basic information.
  • An information interaction system provided by an embodiment of the present application is applied to an information sender, and the first adding module may include:
  • the first receiving unit is used to receive the response result of adding information sent by the information receiver; if the response result of adding information represents approval to add information, then add the structure information of the extended information in the basic information structure according to the adding information; wherein, the adding information Addition information including structure information that adds extended information to the basic information structure.
  • An information interaction system provided by an embodiment of the present application is applied to an information sender, and the expanded information structure may include structure information for adding information;
  • the second encapsulation module may include:
  • a first determining unit configured to determine the addition information of the structure information for adding the extended information in the basic information structure
  • the first encapsulation unit is configured to encapsulate the extended information and the added information according to the extended information structure to obtain the extended information field.
  • An information interaction system provided by an embodiment of the present application is applied to an information sender, and the added information includes offset information of the extended information in the basic information structure, a command word for configuring the extended information, a command word for obtaining the extended information, and sending the extended information. Identification of information.
  • An information interaction system provided by an embodiment of the present application, applied to an information receiver may include:
  • the second receiving module is used to receive the basic information field and the extended information field sent by the information sender;
  • the first decapsulation module is used to decapsulate the basic information field according to the preset basic information structure to obtain the basic information
  • the second unpacking module is used for unpacking the extended information field according to the preset extended information structure to obtain the extended information
  • the first judging module is used for judging whether it has the interactive function of extending information, if so, it will exchange basic information and extended information with the information sender; if not, it will exchange basic information with the information sender.
  • the present application also provides an information interaction device and a computer-readable storage medium, both of which have the corresponding effects of the information interaction method provided by the embodiments of the present application.
  • FIG. 3 is a schematic structural diagram of an information interaction device provided by an embodiment of the present application.
  • An information interaction device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
  • the basic information is encapsulated to obtain the basic information field
  • the extended information is encapsulated to obtain the extended information field
  • the basic information includes interaction information pre-agreed by the information sender and the information receiver;
  • the extended information includes interaction information that is not pre-agreed by the information sender and the information receiver.
  • An information interaction device includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201.
  • the processor 202 executes the computer program, the following steps are implemented: sending the basic information field and the extended information field to the information After the receiver, receive the extended information field response information sent by the information receiver; parse the extended information field response information; if the extended information field response information indicates that the information receiver has the interactive function of the extended information, the extended information is marked as basic information; The extended information field response information indicates that the information receiver does not have the interactive function of the extended information, so it is forbidden to send the extended information to the information receiver.
  • An information interaction device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201.
  • the processor 202 executes the computer program, the following steps are implemented: after marking the extended information as basic information, in the basic
  • the structure information of the extended information is added to the information structure.
  • An information interaction device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201.
  • the processor 202 executes the computer program, the following steps are implemented: receiving a response result of adding information sent by an information receiver; If the addition information response result indicates that the addition information is approved, then the structure information of the extended information is added in the basic information structure according to the addition information; wherein the addition information includes the addition information of adding the structure information of the extended information in the basic information structure.
  • An information interaction device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201.
  • the processor 202 executes the computer program, the following steps are implemented: the expanded information structure includes structure information for adding information ; Determine the addition information of the structure information for adding the extended information in the basic information structure; encapsulate the extended information and the added information according to the extended information structure to obtain the extended information field.
  • An information interaction device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201.
  • the processor 202 executes the computer program, the following steps are implemented: adding information including extended information in a basic information structure offset information, command word for configuring extended information, command word for acquiring extended information, and identifier for sending extended information.
  • An information interaction device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • a computer program is stored in the memory 201.
  • the processor 202 executes the computer program, the following steps are implemented: receiving the basic information field sent by the information sender and expanding the information field; according to the preset basic information structure, unpack the basic information field to obtain the basic information; according to the preset extended information structure, unpack the extended information field to obtain the extended information; determine whether it has the extension The information interaction function, if yes, exchange basic information and extended information with the information sender; if not, exchange basic information with the information sender.
  • another information interaction device may further include: an input port 203 connected to the processor 202 for transmitting externally input commands to the processor 202 ; an input port 203 connected to the processor 202
  • the display unit 204 is used for displaying the processing result of the processor 202 to the outside world; the communication module 205 connected with the processor 202 is used for realizing the communication between the information interaction device and the outside world.
  • the display unit 204 can be a display panel, a laser scanning display, etc.; the communication mode adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, Bluetooth low energy communication technology, communication technology based on IEEE802.11s.
  • HML mobile high-definition link technology
  • USB universal serial bus
  • HDMI high-definition multimedia interface
  • WiFi wireless fidelity technology
  • Bluetooth communication technology Bluetooth low energy communication technology
  • communication technology based on IEEE802.11s IEEE802.11s.
  • a computer-readable storage medium provided by an embodiment of the present application, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
  • the basic information is encapsulated to obtain the basic information field
  • the extended information is encapsulated to obtain the extended information field
  • the basic information includes interaction information pre-agreed by the information sender and the information receiver;
  • the extended information includes interaction information that is not pre-agreed by the information sender and the information receiver.
  • a computer-readable storage medium provided by an embodiment of the present application.
  • a computer program is stored in the computer-readable storage medium.
  • the following steps are implemented: after the basic information field and the extended information field are sent to the information receiver , receive the extended information field response information sent by the information receiver; parse the extended information field response information; if the extended information field response information indicates that the information receiver has the interactive function of the extended information, the extended information is marked as basic information; if the extended information field The response information indicates that the information receiver does not have the interactive function of extended information, so it is forbidden to send extended information to the information receiver.
  • a computer-readable storage medium provided by an embodiment of the present application.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, the following steps are implemented: after the extended information is marked as basic information, the basic information structure is Structure information for adding extended information in .
  • a computer-readable storage medium provided by an embodiment of the present application, a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: receiving a response result of adding information sent by an information receiver; The response result indicates that the addition of information is approved, and the structure information of the extended information is added in the basic information structure according to the addition information; wherein the addition information includes the addition information of the structure information of the extended information in the basic information structure.
  • a computer-readable storage medium provided by an embodiment of the present application, a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: the expanded information structure includes the structure information of the added information; The addition information of the structure information of the extension information is added in the basic information structure; according to the extension information structure, the extension information and the addition information are encapsulated to obtain the extension information field.
  • a computer-readable storage medium provided by an embodiment of the present application, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: the added information includes the offset of the extended information in the basic information structure. information, command word for configuring extended information, command word for acquiring extended information, and identifier for sending extended information.
  • a computer-readable storage medium provided by an embodiment of the present application, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: basic information fields and extended information fields sent by an information sender are received; According to the preset basic information structure, unpack the basic information field to obtain the basic information; according to the preset extended information structure, unpack the extended information field to obtain the extended information; determine whether it has the interaction of the extended information function, if yes, exchange basic information and extended information with the information sender; if not, exchange basic information with the information sender.
  • the computer-readable storage medium referred to in this application includes random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs , or any other form of storage medium known in the art.
  • RAM random access memory
  • ROM read only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disks, removable disks, CD-ROMs , or any other form of storage medium known in the art.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种信息交互方法、系统、设备及计算机可读存储介质,应用于信息发送方,获取待发送的目标信息;在目标信息中确定出基础信息及扩充信息;按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段;按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段;将基础信息字段及扩充信息字段发送至信息接收方;其中,基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。本申请中,信息发送方通过数据结构体将基础信息及扩充信息分开发送至信息接收方,使得信息接收方可以单独处理基础信息及扩充信息,信息交互方式灵活且便于进行信息扩展,适用性好。

Description

一种信息交互方法、系统、设备及计算机可读存储介质
本申请要求在2021年1月7日提交中国专利局、申请号为202110019418.7、发明名称为“一种信息交互方法、系统、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,更具体地说,涉及一种信息交互方法、系统、设备及计算机可读存储介质。
背景技术
当前,在信息发送方与信息接收方进行信息交互的过程中,由于信息发送方与信息接收方之间的版本差异,可能使得信息发送方与信息接收方之间无法传输新数据,此时信息发送方需要与信息接收方进行数据扩充。比如通过扩充数据结构体的方式来进行数据扩充,也即定义信息发送方与信息接收方之间交互的数据结构,当一方新增需求的时候,则在结构体的最后进行相应的数据扩充。此种方式易于实现信息发送方与信息接收方之间数据的整体性处理,但是缺乏灵活性和易扩展性,适用性差。
综上所述,如何提高信息交互的适用性是目前本领域技术人员亟待解决的问题。
发明内容
本申请的目的是提供一种信息交互方法,其能在一定程度上解决如何提高信息交互的适用性的技术问题。本申请还提供了一种信息交互系统、设备及计算机可读存储介质。
为了实现上述目的,本申请提供如下技术方案:
一种信息交互方法,应用于信息发送方,包括:
获取待发送的目标信息;
在所述目标信息中确定出基础信息及扩充信息;
按照预设的基础信息结构体,对所述基础信息进行封装,得到基础信息字段;
按照预设的扩充信息结构体,对所述扩充信息进行封装,得到扩充信息字段;
将所述基础信息字段及所述扩充信息字段发送至信息接收方;
其中,所述基础信息包括所述信息发送方与所述信息接收方预先约定的交互信息;所述扩充信息包括所述信息发送方未与所述信息接收方预先约定的交互信息。
可选的,所述将所述基础信息字段及所述扩充信息字段发送至信息接收方之后,还包括:
接收所述信息接收方发送的扩充信息字段响应信息;
解析所述扩充信息字段响应信息;
若所述扩充信息字段响应信息表征所述信息接收方具有所述扩充信息的交互功能,则将所述扩充信息标记为所述基础信息;
若所述扩充信息字段响应信息表征所述信息接收方不具有所述扩充信息的交互功能,则禁止向所述信息接收方发送所述扩充信息。
可选的,所述将所述扩充信息标记为所述基础信息之后,还包括:
在所述基础信息结构体中添加所述扩充信息的结构体信息。
可选的,所述在所述基础信息结构体中添加所述扩充信息的结构体信息,包括:
接收所述信息接收方发送的添加信息响应结果;
若所述添加信息响应结果表征同意添加信息,则按照所述添加信息在所述基础信息结构体中添加所述扩充信息的结构体信息;
其中,所述添加信息包括在所述基础信息结构体中添加所述扩充信息的结构体信息的添加信息。
可选的,所述扩充信息结构体包括所述添加信息的结构体信息;
所述按照预设的扩充信息结构体,对所述扩充信息进行封装,得到扩充信息字段,包括:
确定在所述基础信息结构体中添加所述扩充信息的结构体信息的所述添加信息;
按照所述扩充信息结构体,对所述扩充信息及所述添加信息进行封装,得到扩充信息字段。
可选的,所述添加信息包括所述扩充信息在所述基础信息结构体中的偏移信息、配置所述扩充信息的命令字、获取所述扩充信息的命令字、发送所述扩充信息的标识。
一种信息交互方法,应用于信息接收方,包括:
接收信息发送方发送的基础信息字段及扩充信息字段;
按照预设的基础信息结构体,对所述基础信息字段进行解封,得到基础信息;
按照预设的扩充信息结构体,对所述扩充信息字段进行解封,得到扩充信息;
判断自身是否具有所述扩充信息的交互功能,若是,则与所述信息发送方交互所述基础信息及所述扩充信息;若否,则与所述信息发送方交互所述基础信息;
其中,所述信息发送方获取待发送的目标信息;在所述目标信息中确定出所述基础信息及所述扩充信息;按照所述基础信息结构体,对所述基础信息进行封装,得到所述基础信息字段;按照所述扩充信息结构体,对所述扩充信息进行封装,得到所述扩充信息字段;所述基础信息包括所述信息发送方与所述信息接收方预先约定的交互信息;所述扩充信息包括所述信息发送方未与所述信息接收方预先约定的交互信息。
一种信息交互系统,应用于信息发送方,包括:
第一获取模块,用于获取待发送的目标信息;
第一确定模块,用于在所述目标信息中确定出基础信息及扩充信息;
第一封装模块,用于按照预设的基础信息结构体,对所述基础信息进行封装,得到基础信息字段;
第二封装模块,用于按照预设的扩充信息结构体,对所述扩充信息进行封装,得到扩充信息字段;
第一发送模块,用于将所述基础信息字段及所述扩充信息字段发送至信息接收方;
其中,所述基础信息包括所述信息发送方与所述信息接收方预先约定的交互信息;所述扩充信息包括所述信息发送方未与所述信息接收方预先约定的交互信息。
一种信息交互设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上任一所述信息交互方法的步骤。
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述信息交互方法的步骤。
本申请提供的一种信息交互方法,应用于信息发送方,获取待发送的目标信息;在目标信息中确定出基础信息及扩充信息;按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段;按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段;将基础信息字段及扩充信息字段发送至信息接收方;其中,基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。本申请中,信息发送方通过数据结构体将基础信息及扩充信息分开发送至信息接收方,使得信息接收方可以单独处理基础信息及扩充信息,信息交互方式灵活且便于进行信息扩展,适用性好。本申请提供的一种信息交互系统、设备及计算机可读存储介质也解决了相应技术问题。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例提供的一种信息交互方法的流程图;
图2为本申请实施例提供的信息交互系统的结构示意图;
图3为本申请实施例提供的一种信息交互设备的结构示意图;
图4为本申请实施例提供的一种信息交互设备的另一结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
请参阅图1,图1为本申请实施例提供的一种信息交互方法的流程图。
本申请实施例提供的一种信息交互方法,应用于信息发送方,可以包括以下步骤:
步骤S101:获取待发送的目标信息。
实际应用中,信息发送方可以先获取待发送的目标信息,目标信息可以是信息发送方在外界触发下生成的信息,也可以是信息发送方直接接收的信息等,本申请在此不做具体限定。且目标信息的类型等也可以根据实际需要确定。
步骤S102:在目标信息中确定出基础信息及扩充信息;基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。
实际应用中,信息发送方发送给信息接收方的目标信息中可能存在基础信息及扩充信息,基础信息也即信息发送方与信息接收方预先约定的交互信息,扩充信息也即信息发送方未与信息接收方预先约定的交互信息,那么信息接收方一定可以交互基础信息,但不一定交互扩充信息,所以需要在目标信息中确定出基础信息及扩充信息,以便后续对基础信息及扩充信息进行相应处理。
步骤S103:按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段。
实际应用中,信息发送方与信息接收方可以预先设定好基础信息结构体,以便根据基础信息结构体交互基础信息,也即信息发送方可以按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段。
具体应用场景中,为了便于对基础信息进行管理,可以按照信息的类型来设置相应的基础信息结构体等。
步骤S104:按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段。
实际应用中,虽然信息发送方并不知道信息接收方能否与自己交互扩充信息,但信息发送方需要将扩充信息发送至信息接收方,以便信息接收方处理扩充信息,所以信息发送方需与信息接收方预先设定好传输扩充信息的扩 充信息结构体,相应的,信息发送方可以按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段。
步骤S105:将基础信息字段及扩充信息字段发送至信息接收方。
实际应用中,信息发送方在得到基础信息字段及扩充信息字段之后,便可以将基础信息字段及扩充信息字段发送至信息接收方,以便信息接收方根据基础信息字段及扩充信息字段与信息发送方进行信息交互。具体应用场景中,信息接收方在得到基础信息字段及扩充信息字段之后,可以按照预设的基础信息结构体,对基础信息字段进行解封,得到基础信息;按照预设的扩充信息结构体,对扩充信息字段进行解封,得到扩充信息;判断自身是否具有扩充信息的交互功能,若是,则与信息发送方交互基础信息及扩充信息;若否,则只与信息发送方交互基础信息。这样,可以在不影响信息发送方与信息接收方交互基础信息的基础上进行信息交互功能的扩充。
本申请提供的一种信息交互方法,应用于信息发送方,获取待发送的目标信息;在目标信息中确定出基础信息及扩充信息;按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段;按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段;将基础信息字段及扩充信息字段发送至信息接收方;其中,基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。本申请中,信息发送方通过数据结构体将基础信息及扩充信息分开发送至信息接收方,使得信息接收方可以单独处理基础信息及扩充信息,信息交互方式灵活且便于进行信息扩展,适用性好。
本申请实施例提供的信息交互方法中,信息发送方将基础信息字段及扩充信息字段发送至信息接收方之后,还可以接收信息接收方发送的扩充信息字段响应信息;解析扩充信息字段响应信息;若扩充信息字段响应信息表征信息接收方具有扩充信息的交互功能,则将扩充信息标记为基础信息;若扩充信息字段响应信息表征信息接收方不具有扩充信息的交互功能,则禁止向信息接收方发送扩充信息。
也即实际应用中,信息接收方在得到基础信息及扩充信息之后,可以根据自身是否具有扩充信息交互功能来生成相应的扩充信息字段响应信息并发 送至信息发送方;相应的,信息发送方需解析扩充信息字段响应信息,若扩充信息字段响应信息表征信息接收方具有扩充信息的交互功能,则将扩充信息标记为基础信息,若扩充信息字段响应信息表征信息接收方不具有扩充信息的交互功能,则禁止向信息接收方发送扩充信息,以避免信息发送方与信息接收方重复发送扩充信息。
实际应用中,信息发送方将扩充信息标记为基础信息之后,还可以在基础信息结构体中添加扩充信息的结构体信息,以便后续直接应用基础信息结构体与信息接收方交互扩充信息。具体的,信息发送方可以与信息接收方约定扩充信息在基础信息结构体中的添加信息,比如信息发送方可以确定添加信息,并发送至信息接收方,接收信息接收方发送的添加信息响应结果;若添加信息响应结果表征同意添加信息,则按照添加信息在基础信息结构体中添加扩充信息的结构体信息;其中,添加信息包括在基础信息结构体中添加扩充信息的结构体信息的添加信息。
具体应用场景中,为了避免信息发送方多次向信息接收方发送信息,可以在扩充信息结构体中设置添加信息的结构体信息,相应的,信息发送方在按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段的过程中,可以确定在基础信息结构体中添加扩充信息的结构体信息的添加信息;按照扩充信息结构体,对扩充信息及添加信息进行封装,得到扩充信息字段。在此过程中,信息接收方在判定自身具有扩充信息交互功能之后,也可以将扩充信息标记为基础信息,并按照添加信息在基础信息结构体中添加扩充信息的相应结构体,之后便可以按照基础信息结构体与信息发送方交互扩充信息。
具体应用场景中,添加信息可以包括扩充信息在基础信息结构体中的偏移信息、配置扩充信息的命令字、获取扩充信息的命令字、发送扩充信息的标识等。
为了便于理解,现以BMC(baseboard management controller,底板管理控制器)和BIOS(Basic Input Output System,基本输入输出系统)间的信息交互过程为例来对本申请提供的信息交互方法进行描述:
BIOS对需要交互的资产信息分类,比如分类为CPU(Central Processing Unit,中央处理器)资产信息,PCIE(peripheral component interconnect express,高速串行计算机扩展总线标准)资产信息,内存资产信息,板载硬盘资产信息,BIOS/ME版本信息,TPM(Total Productive Maintenance,全员生产维护)资产信息等;
针对每个类型的资产信息,BIOS与BMC定义一个与该类型相匹配的基础信息结构体,以PCIE资产信息为例,基础信息结构体中可以包括PCIE设备的设备类型,板载丝印,bus number,dev number,func number等,基础信息结构体可以如下:
typedef struct
{
UINT8 ucIndex;
UINT8 ucSlot;
UINT16 ucVendorID;
UINT16 ucDeviceID;
UINT8 ucBusNo;
UINT8 ucDevNo;
UINT8 ucFuncNo;
}PCIE_BASE_DATA;
BIOS与BMC定义扩充信息结构体,扩充信息结构体的定义可以如下:
Typedef struct
{
BOOL blInUsed;  //指示该扩充信息是否在用
UINT16 uwOffset; //表示该扩充信息扩充到基础信息结构体中的偏移
UINT8 ucNetFn;   //该扩充信息发送时的netfn
UINT8 ucSetCmd;  //配置该扩充信息需要用到的命令字
UINT8 ucGetCmd;  //获取该扩充信息需要用到的命令字
}PCIE_EXTEND_DATA;
BIOS与BMC间信息交互的总结构体可以如下:
typedef struct
{
PCIE_BASE_DATA stPCIEBaseData;
PCIE_EXTEND_DATA stPCIEExxtendData[20]
}PCIE_DATA;
BIOS依据基础信息对PCIE_BASE_DATA进行处理;若需要向BMC发送扩充信息,则依据扩充信息对PCIE_EXTEND_DATA进行处理,比如在ucDeviceID后面扩充SubdeviceID字段,占用2个字节,则在PCIE_EXTEND_DATA定义的数组元素中,blInUsed置为TRUE,ucNetFn和ucSetCmd及ucGetCmd置为查询该字段和配置该字段需要的netfn和命令字;
BIOS将PCIE_BASE_DATA和PCIE_EXTEND_DATA发送给BMC;
BMC按照PCIE_DATA的结构解析出基础信息,判定PCIE_EXTEND_DATA中存在扩充信息且自身具有扩充信息交互功能时,根据offset将扩充信息填充到PCIE_BASE_DATA指定的位置,构造一个扩充之后的新的基础信息结构体。
请参阅图2,图2为本申请实施例提供的信息交互系统的结构示意图。
本申请实施例提供的一种信息交互系统,应用于信息发送方,可以包括:
第一获取模块101,用于获取待发送的目标信息;
第一确定模块102,用于在目标信息中确定出基础信息及扩充信息;
第一封装模块103,用于按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段;
第二封装模块104,用于按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段;
第一发送模块105,用于将基础信息字段及扩充信息字段发送至信息接收方;
其中,基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。
本申请实施例提供的一种信息交互系统,应用于信息发送方,还可以包括:
第一接收模块,用于第一发送模块将基础信息字段及扩充信息字段发送至信息接收方之后,接收信息接收方发送的扩充信息字段响应信息;
第一解析模块,用于解析扩充信息字段响应信息;若扩充信息字段响应信息表征信息接收方具有扩充信息的交互功能,则将扩充信息标记为基础信息;若扩充信息字段响应信息表征信息接收方不具有扩充信息的交互功能,则禁止向信息接收方发送扩充信息。
本申请实施例提供的一种信息交互系统,应用于信息发送方,还可以包括:
第一添加模块,用于第一解析模块将扩充信息标记为基础信息之后,在基础信息结构体中添加扩充信息的结构体信息。
本申请实施例提供的一种信息交互系统,应用于信息发送方,第一添加模块可以包括:
第一接收单元,用于接收信息接收方发送的添加信息响应结果;若添加信息响应结果表征同意添加信息,则按照添加信息在基础信息结构体中添加扩充信息的结构体信息;其中,添加信息包括在基础信息结构体中添加扩充信息的结构体信息的添加信息。
本申请实施例提供的一种信息交互系统,应用于信息发送方,扩充信息结构体可以包括添加信息的结构体信息;
第二封装模块可以包括:
第一确定单元,用于确定在基础信息结构体中添加扩充信息的结构体信息的添加信息;
第一封装单元,用于按照扩充信息结构体,对扩充信息及添加信息进行封装,得到扩充信息字段。
本申请实施例提供的一种信息交互系统,应用于信息发送方,添加信息包括扩充信息在基础信息结构体中的偏移信息、配置扩充信息的命令字、获取扩充信息的命令字、发送扩充信息的标识。
本申请实施例提供的一种信息交互系统,应用于信息接收方,可以包括:
第二接收模块,用于接收信息发送方发送的基础信息字段及扩充信息字段;
第一解封模块,用于按照预设的基础信息结构体,对基础信息字段进行解封,得到基础信息;
第二解封模块,用于按照预设的扩充信息结构体,对扩充信息字段进行解封,得到扩充信息;
第一判断模块,用于判断自身是否具有扩充信息的交互功能,若是,则与信息发送方交互基础信息及扩充信息;若否,则与信息发送方交互基础信息。
本申请还提供了一种信息交互设备及计算机可读存储介质,其均具有本申请实施例提供的一种信息交互方法具有的对应效果。请参阅图3,图3为本申请实施例提供的一种信息交互设备的结构示意图。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:
获取待发送的目标信息;
在目标信息中确定出基础信息及扩充信息;
按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段;
按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段;
将基础信息字段及扩充信息字段发送至信息接收方;
其中,基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:将基础信息字段及扩充信息字段发送至信息接收方之后,接收信息接收方发送的扩充信息字段响应信息;解析扩充信息字段响应信息;若扩充信息字段响应信息表征信息接收方具有扩充信息的交互功能,则将扩充信息标记为基础信息;若扩充信息字段响应信息表征信息接收方不具有扩充信息的交互功能,则禁止向信息接收方发送扩充信息。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步 骤:将扩充信息标记为基础信息之后,在基础信息结构体中添加扩充信息的结构体信息。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:接收信息接收方发送的添加信息响应结果;若添加信息响应结果表征同意添加信息,则按照添加信息在基础信息结构体中添加扩充信息的结构体信息;其中,添加信息包括在基础信息结构体中添加扩充信息的结构体信息的添加信息。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:扩充信息结构体包括添加信息的结构体信息;确定在基础信息结构体中添加扩充信息的结构体信息的添加信息;按照扩充信息结构体,对扩充信息及添加信息进行封装,得到扩充信息字段。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:添加信息包括扩充信息在基础信息结构体中的偏移信息、配置扩充信息的命令字、获取扩充信息的命令字、发送扩充信息的标识。
本申请实施例提供的一种信息交互设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:接收信息发送方发送的基础信息字段及扩充信息字段;按照预设的基础信息结构体,对基础信息字段进行解封,得到基础信息;按照预设的扩充信息结构体,对扩充信息字段进行解封,得到扩充信息;判断自身是否具有扩充信息的交互功能,若是,则与信息发送方交互基础信息及扩充信息;若否,则与信息发送方交互基础信息。
请参阅图4,本申请实施例提供的另一种信息交互设备中还可以包括:与处理器202连接的输入端口203,用于传输外界输入的命令至处理器202;与处理器202连接的显示单元204,用于显示处理器202的处理结果至外界;与处理器202连接的通信模块205,用于实现信息交互设备与外界的通信。显示单元204可以为显示面板、激光扫描使显示器等;通信模块205所采用的通信方式包括但不局限于移动高清链接技术(HML)、通用串行总线(USB)、 高清多媒体接口(HDMI)、无线连接:无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:
获取待发送的目标信息;
在目标信息中确定出基础信息及扩充信息;
按照预设的基础信息结构体,对基础信息进行封装,得到基础信息字段;
按照预设的扩充信息结构体,对扩充信息进行封装,得到扩充信息字段;
将基础信息字段及扩充信息字段发送至信息接收方;
其中,基础信息包括信息发送方与信息接收方预先约定的交互信息;扩充信息包括信息发送方未与信息接收方预先约定的交互信息。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:将基础信息字段及扩充信息字段发送至信息接收方之后,接收信息接收方发送的扩充信息字段响应信息;解析扩充信息字段响应信息;若扩充信息字段响应信息表征信息接收方具有扩充信息的交互功能,则将扩充信息标记为基础信息;若扩充信息字段响应信息表征信息接收方不具有扩充信息的交互功能,则禁止向信息接收方发送扩充信息。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:将扩充信息标记为基础信息之后,在基础信息结构体中添加扩充信息的结构体信息。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:接收信息接收方发送的添加信息响应结果;若添加信息响应结果表征同意添加信息,则按照添加信息在基础信息结构体中添加扩充信息的结构体信息;其中,添加信息包括在基础信息结构体中添加扩充信息的结构体信息的添加信息。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:扩充信息结构体包括添加信息的结构体信息;确定在基础信息结构体中添加扩充信息的 结构体信息的添加信息;按照扩充信息结构体,对扩充信息及添加信息进行封装,得到扩充信息字段。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:添加信息包括扩充信息在基础信息结构体中的偏移信息、配置扩充信息的命令字、获取扩充信息的命令字、发送扩充信息的标识。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:接收信息发送方发送的基础信息字段及扩充信息字段;按照预设的基础信息结构体,对基础信息字段进行解封,得到基础信息;按照预设的扩充信息结构体,对扩充信息字段进行解封,得到扩充信息;判断自身是否具有扩充信息的交互功能,若是,则与信息发送方交互基础信息及扩充信息;若否,则与信息发送方交互基础信息。
本申请所涉及的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。
本申请实施例提供的信息交互系统、设备及计算机可读存储介质中相关部分的说明请参见本申请实施例提供的信息交互方法中对应部分的详细说明,在此不再赘述。另外,本申请实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 一种信息交互方法,其特征在于,应用于信息发送方,包括:
    获取待发送的目标信息;
    在所述目标信息中确定出基础信息及扩充信息;
    按照预设的基础信息结构体,对所述基础信息进行封装,得到基础信息字段;
    按照预设的扩充信息结构体,对所述扩充信息进行封装,得到扩充信息字段;
    将所述基础信息字段及所述扩充信息字段发送至信息接收方;
    其中,所述基础信息包括所述信息发送方与所述信息接收方预先约定的交互信息;所述扩充信息包括所述信息发送方未与所述信息接收方预先约定的交互信息。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述基础信息字段及所述扩充信息字段发送至信息接收方之后,还包括:
    接收所述信息接收方发送的扩充信息字段响应信息;
    解析所述扩充信息字段响应信息;
    若所述扩充信息字段响应信息表征所述信息接收方具有所述扩充信息的交互功能,则将所述扩充信息标记为所述基础信息;
    若所述扩充信息字段响应信息表征所述信息接收方不具有所述扩充信息的交互功能,则禁止向所述信息接收方发送所述扩充信息。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述扩充信息标记为所述基础信息之后,还包括:
    在所述基础信息结构体中添加所述扩充信息的结构体信息。
  4. 根据权利要求3所述的方法,其特征在于,所述在所述基础信息结构体中添加所述扩充信息的结构体信息,包括:
    接收所述信息接收方发送的添加信息响应结果;
    若所述添加信息响应结果表征同意添加信息,则按照所述添加信息在所述基础信息结构体中添加所述扩充信息的结构体信息;
    其中,所述添加信息包括在所述基础信息结构体中添加所述扩充信息的结构体信息的添加信息。
  5. 根据权利要求4所述的方法,其特征在于,所述扩充信息结构体包括所述添加信息的结构体信息;
    所述按照预设的扩充信息结构体,对所述扩充信息进行封装,得到扩充信息字段,包括:
    确定在所述基础信息结构体中添加所述扩充信息的结构体信息的所述添加信息;
    按照所述扩充信息结构体,对所述扩充信息及所述添加信息进行封装,得到扩充信息字段。
  6. 根据权利要求4所述的方法,其特征在于,所述添加信息包括所述扩充信息在所述基础信息结构体中的偏移信息、配置所述扩充信息的命令字、获取所述扩充信息的命令字、发送所述扩充信息的标识。
  7. 一种信息交互方法,其特征在于,应用于信息接收方,包括:
    接收信息发送方发送的基础信息字段及扩充信息字段;
    按照预设的基础信息结构体,对所述基础信息字段进行解封,得到基础信息;
    按照预设的扩充信息结构体,对所述扩充信息字段进行解封,得到扩充信息;
    判断自身是否具有所述扩充信息的交互功能,若是,则与所述信息发送方交互所述基础信息及所述扩充信息;若否,则与所述信息发送方交互所述基础信息;
    其中,所述信息发送方获取待发送的目标信息;在所述目标信息中确定出所述基础信息及所述扩充信息;按照所述基础信息结构体,对所述基础信息进行封装,得到所述基础信息字段;按照所述扩充信息结构体,对所述扩充信息进行封装,得到所述扩充信息字段;所述基础信息包括所述信息发送方与所述信息接收方预先约定的交互信息;所述扩充信息包括所述信息发送方未与所述信息接收方预先约定的交互信息。
  8. 一种信息交互系统,其特征在于,应用于信息发送方,包括:
    第一获取模块,用于获取待发送的目标信息;
    第一确定模块,用于在所述目标信息中确定出基础信息及扩充信息;
    第一封装模块,用于按照预设的基础信息结构体,对所述基础信息进行封装,得到基础信息字段;
    第二封装模块,用于按照预设的扩充信息结构体,对所述扩充信息进行封装,得到扩充信息字段;
    第一发送模块,用于将所述基础信息字段及所述扩充信息字段发送至信息接收方;
    其中,所述基础信息包括所述信息发送方与所述信息接收方预先约定的交互信息;所述扩充信息包括所述信息发送方未与所述信息接收方预先约定的交互信息。
  9. 一种信息交互设备,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述信息交互方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述信息交互方法的步骤。
PCT/CN2021/143271 2021-01-07 2021-12-30 一种信息交互方法、系统、设备及计算机可读存储介质 WO2022148302A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110019418.7 2021-01-07
CN202110019418.7A CN112732606A (zh) 2021-01-07 2021-01-07 一种信息交互方法、系统、设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2022148302A1 true WO2022148302A1 (zh) 2022-07-14

Family

ID=75589607

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143271 WO2022148302A1 (zh) 2021-01-07 2021-12-30 一种信息交互方法、系统、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112732606A (zh)
WO (1) WO2022148302A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732606A (zh) * 2021-01-07 2021-04-30 苏州浪潮智能科技有限公司 一种信息交互方法、系统、设备及计算机可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6345288B1 (en) * 1989-08-31 2002-02-05 Onename Corporation Computer-based communication system and method using metadata defining a control-structure
CN101686445A (zh) * 2008-09-23 2010-03-31 上海粱江通信系统有限公司 一种在通信网上获取短消息并插入附加信息的方法
CN102104846A (zh) * 2010-09-30 2011-06-22 上海粱江通信系统股份有限公司 一种在通信网上获取短消息并插入发送方身份信息的方法
CN102739723A (zh) * 2011-04-16 2012-10-17 镇江佳得信息技术有限公司 快速交换电子名片的方法及系统
CN110489438A (zh) * 2019-08-27 2019-11-22 奇安信科技集团股份有限公司 一种客户行为信息处理方法及装置
CN111510720A (zh) * 2020-04-24 2020-08-07 深圳市即构科技有限公司 实时流媒体数据的传输方法、电子装置及服务器
CN112732606A (zh) * 2021-01-07 2021-04-30 苏州浪潮智能科技有限公司 一种信息交互方法、系统、设备及计算机可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6345288B1 (en) * 1989-08-31 2002-02-05 Onename Corporation Computer-based communication system and method using metadata defining a control-structure
CN101686445A (zh) * 2008-09-23 2010-03-31 上海粱江通信系统有限公司 一种在通信网上获取短消息并插入附加信息的方法
CN102104846A (zh) * 2010-09-30 2011-06-22 上海粱江通信系统股份有限公司 一种在通信网上获取短消息并插入发送方身份信息的方法
CN102739723A (zh) * 2011-04-16 2012-10-17 镇江佳得信息技术有限公司 快速交换电子名片的方法及系统
CN110489438A (zh) * 2019-08-27 2019-11-22 奇安信科技集团股份有限公司 一种客户行为信息处理方法及装置
CN111510720A (zh) * 2020-04-24 2020-08-07 深圳市即构科技有限公司 实时流媒体数据的传输方法、电子装置及服务器
CN112732606A (zh) * 2021-01-07 2021-04-30 苏州浪潮智能科技有限公司 一种信息交互方法、系统、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN112732606A (zh) 2021-04-30

Similar Documents

Publication Publication Date Title
US9009373B2 (en) Method for implementing audio transmission and mobile terminal
US20170264692A1 (en) Remote Management for a Computing device
US11972247B2 (en) Software upgrading method, apparatus, and system
CN105635943B (zh) 低功耗蓝牙信标数据交互装置、信标装置及方法
US8665753B2 (en) Simultaneous setup of a wireless network adapter and a network host device
WO2017032112A1 (zh) 一种与无中央处理器单板通讯的方法及通讯设备
WO2022148302A1 (zh) 一种信息交互方法、系统、设备及计算机可读存储介质
EP4191355A1 (en) Uds-based communication method, ecu and upper computer
CN105188056A (zh) 一种WiFi设备与接入点的连接方法及装置
CN103957198A (zh) 一种传感数据接收转换方法及系统
JP6665190B2 (ja) ネットワーク共有実施方法及び装置
CN113760811B (zh) 数控系统多种现场总线的混联总线协议架构及其通信方法
US10235325B2 (en) Control path to enable at least one of two data paths for a network device
WO2021142849A1 (zh) 安全域的配置、发现和加入方法及装置、电子设备
WO2020097919A1 (zh) 一种功率回退方法、终端设备及存储介质
WO2023104054A1 (zh) 网络处理模块、数据处理方法、网络节点和存储介质
US20030185185A1 (en) Wireless local area network access controller and related method
US9853832B2 (en) Wireless ethernet network controlling method and wireless ethernet network system
US11765226B2 (en) Method for provisioning internet of things device and internet of things device
US20220052902A1 (en) Method for managing remote device through management device
CN112367362B (zh) 一种数据处理方法、装置、设备及计算机存储介质
WO2018133828A1 (zh) 用于客户端的数据处理方法和装置
WO2022001317A1 (zh) 芯片仿真方法、装置、设备、系统及存储介质
CN108928213B (zh) 控制面板的参数配置方法、控制面板及被控设备
JP3647827B2 (ja) 無線印刷インターフェース・キットおよび方法

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: 21917341

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: 21917341

Country of ref document: EP

Kind code of ref document: A1