CN104767758A - Command processing method and device - Google Patents

Command processing method and device Download PDF

Info

Publication number
CN104767758A
CN104767758A CN 201510187107 CN201510187107A CN104767758A CN 104767758 A CN104767758 A CN 104767758A CN 201510187107 CN201510187107 CN 201510187107 CN 201510187107 A CN201510187107 A CN 201510187107A CN 104767758 A CN104767758 A CN 104767758A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
operation
instruction
standard
attribute
encoding
Prior art date
Application number
CN 201510187107
Other languages
Chinese (zh)
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

Links

Abstract

The invention provides a command processing method and device. The method comprises the steps that first equipment and second equipment independent of each other agree on the corresponding relation between a standard command code and the command operational attribute in advance, and the first equipment determines the target operation on the second equipment when taken as the transmitting end; the standard command code of the target operation is obtained according to the command operational attribute contained in the target operation and the corresponding relation stipulated in advance; an operation command corresponding to the target operation is established according to the data correlation attribute contained in the target operation and the obtained standard command code; the operating command is sent to the second equipment to enable the second equipment to conduct corresponding operation according to the operation command. According to the scheme, the length of the operating command is reduced so that the operating command can be sent to the receiving end within one data segment, and then operating command processing efficiency is improved.

Description

-种指令处理方法及装置 - kind of instruction processing method and apparatus

技术领域 FIELD

[0001] 本发明设及通信技术领域,特别设及一种指令处理方法及装置。 [0001] Technical Field set and the communication of the present invention, is provided, and one particular method and apparatus for processing instructions.

背景技术 Background technique

[0002] 随着计算机技术及网络通信技术的发展,云计算、云存储越来越走入寻常生活中, 而云计算、云存储的实现需要依赖计算机之间的相互通信。 [0002] With the development of computer technology and network communication technology, cloud computing, cloud storage more and more into the common life, and cloud computing, cloud storage to achieve the need to rely on mutual communication between computers. 计算机之间的通信需要遵守各种协议,该些协议规定了报文的格式W及报文所包括的各个字段。 Need to comply with various communication protocols between computers, the plurality of protocol specifies the format of each field of a message packet and W included. 因此,在独立的两个计算机之间进行通信时,需要根据该两个计算机之间的协议构建报文,W进行通信。 Accordingly, when communicating between two separate computers, the need to build the packet according to a protocol between the two computers, W communications.

[0003] 现有的相互独立的两个设备之间进行通信的过程可W包括;第一设备确定自身作为发送端时对第二设备的目标操作;根据确定的该目标操作所包括的指令操作码、指令操作属性和数据相关属性,W及根据第一设备与第二设备之间的协议,构建该目标操作的操作指令;并将构建的该操作指令发送给第二设备。 [0003] The process of communication between two mutually independent conventional W apparatus may comprise; a first transmission device determines itself as a target of the second end of the device operation; determined according to an instruction of the target operation comprises operation code, data and instruction operation attributes associated attributes, W, and agreement between the first and second devices, constructing the target operation command operation; Construction and operation of the command to the second device. 其中,该操作指令所包括的内容如下表1 所示: Wherein the operation instruction content included in Table 1 below:

[0004]表1 ; [0004] Table 1;

[0005] [0005]

Figure CN104767758AD00041

[0006] 其中,指令操作码用于表征一个二进制形式的指令,例如,01 ;指令操作属性用于表征具体操作,例如,读数据操作;数据相关属性用于表征指令操作属性所对应具体操作的属性信息,例如,读数据操作所读数据的属性信息。 [0006] wherein the instruction operation code for characterizing a binary form of an instruction, e.g., 01; instruction operation used to characterize the properties specific operation, for example, data read operation; data related properties used to characterize the particular instruction operation corresponding to the operation property attribute information, e.g., the attribute information of data read operation to read data.

[0007] 由于当构建的操作指令中所包括数据的长度不同时,当操作指令中指令操作属性所占用空间较大时,例如,10比特,那么可能会将该操作指令分成两个数据段分别进行发送,从而使得处理操作指令的效率较低。 [0007] Since when the operation instruction included in the construction length of the data are different, when the operation instruction operation instruction attribute larger space, e.g., 10 bits, the operation instruction may be divided into two data segments are transmission, so that the process less efficient operation instruction.

发明内容 SUMMARY

[000引有鉴于此,本发明提供一种指令处理方法及装置,W解决现有技术中处理操作指令的效率较低的问题。 [000 cited Accordingly, the present invention provides a method and apparatus for processing instructions, W less efficient to solve problems of the prior art instruction processing operation.

[0009] 本发明提供了一种指令处理方法,相互独立的第一设备与第二设备,预先约定标准指令编码与指令操作属性的对应关系,包括: [0009] The present invention provides a method for instruction processing, independent of the first and second devices, prearranged correspondence between the standard instruction and instruction operation encoding attributes, comprising:

[0010] 所述第一设备确定自身作为发送端时对所述第二设备的目标操作; [0010] The first device determines itself as a target of the second end of the transmission operation of the device;

[0011] 根据所述目标操作所包括的指令操作属性,W及预先约定的所述对应关系,获取所述目标操作的标准指令编码; [0011] The operational attribute operation instruction included in the target, W, and agreed in advance the correspondence, access to standard operation of the target instruction code;

[0012] 根据所述目标操作中所包括的数据相关属性W及获取的所述标准指令编码,构建所述目标操作对应的操作指令; [0012] The instruction code included in the operation target data W and said standard related properties acquired, constructing the target operation command corresponding to the operation;

[0013] 将所述操作指令发送给所述第二设备,W使所述第二设备根据所述操作指令进行相应操作。 [0013] transmits the operation instruction to the second device, W so that the second device corresponding operation according to the operation instruction.

[0014] 优选地, [0014] Preferably,

[0015] 进一步包括;在所述目标操作包括一个W上的操作时,将所述一个W上的操作归一化为一个标准操作,归一化后的所述标准操作包括所述一个W上的操作所包括的指令操作属性; [0015] further comprising; the target operating comprises operating on a W when the operation of a W on a normalized into a standard operation, the normal operation after the normalizing comprises on a W the instruction operation comprises operation properties;

[0016] 进一步包括;根据所述标准操作所包括的指令操作属性,建立所述标准操作所包括的指令操作属性与标准指令编码的对应关系。 [0016] further comprising; operational attribute operation according to an instruction included in said standard, the standard operating instructions to establish the corresponding relationship between the attributes included with the standard operating instructions encoded.

[0017] 优选地,所述预先约定标准指令编码与指令操作属性的对应关系,包括: [0017] Preferably, the instruction code pre-agreed with the standard correspondence between the attribute instruction operation, comprising:

[0018] 利用宏定义的#define标识符字符串的形式实现所述标准指令编码与指令操作属性的对应关系:在所述第一设备作为发送端时,所述标准指令编码与指令操作属性的对应关系包括;#define指令操作属性标准指令编码;在所述第一设备作为接收端时,所述标准指令编码与指令操作属性的对应关系包括;#define标准指令编码指令操作属性。 [0018] Utilizing the #define macro definition identifier string of standard instructions implementing the instruction operation encoding correspondence relationship attribute: as the first device in the transmitting end, the standard instruction and instruction operation encoding attribute the corresponding relationship comprising; #define instruction operation instruction coding attribute criteria; in the first device as a receiving end, the standard instruction and instruction operation encoding properties include a correspondence relationship; #define instruction operation instruction encoding standard properties.

[0019] 优选地,所述预先约定标准指令编码与指令操作属性的对应关系,包括: [0019] Preferably, the instruction code pre-agreed with the standard correspondence between the attribute instruction operation, comprising:

[0020] 利用数组下标的形式实现所述标准指令编码与指令操作属性的对应关系;所述标准指令编码与指令操作属性的对应关系包括;指令操作属性。 [0020] implementing the standard instruction corresponding to the instruction operation encoding attribute relationship by the subject in the form of an array; a correspondence relationship with the standard instructions encoded instruction operation attribute comprising; instruction operation properties.

[0021] 优选地,进一步包括: [0021] Preferably, further comprising:

[0022] 所述第一设备在作为接收端时,接收所述第二设备发送的操作指令; [0022] When the first device as a receiver, receiving the operation command sent by the second device;

[0023] 解析该操作指令包括标准指令编码和数据相关属性; [0023] The parse operation instruction comprises instruction code and data related to the standard properties;

[0024] 根据预先约定的所述对应关系,获取该操作指令中包括的标准指令编码所对应的指令操作属性; [0024] The corresponding relationship between the pre-agreed, standard instruction fetch instructions encoded in the instruction operation comprises operation corresponding attribute;

[0025] 根据获取的该指令操作属性,W及该操作指令中包括的数据相关属性,执行该指令操作属性所对应的操作。 [0025] The data related to the attributes of the attribute instruction operation, W, and the acquired operation instruction included in the attribute to execute the operation corresponding to the operation instruction.

[0026] 本发明还提供了一种指令处理装置,包括: [0026] The present invention further provides an instruction processing apparatus, comprising:

[0027] 握手单元,用于预先与对端设备约定标准指令编码与指令操作属性的对应关系; [002引确定单元,用于确定自身作为发送端时对所述对端设备的目标操作; [0027] handshaking means for properties in advance a correspondence relationship with the peer device and the command code agreed standard instruction operation; [002 primer determination means for determining itself as a target of the transmission side end of the operation of the device;

[0029] 获取单元,用于根据所述目标操作所包括的指令操作属性,W及预先约定的所述对应关系,获取所述目标操作的标准指令编码; [0029] acquiring unit, the operation for the target operation command according to the attribute included, W, and agreed in advance the correspondence, access to standard operation of the target instruction code;

[0030] 构建单元,用于根据所述目标操作中所包括的数据相关属性W及获取的所述标准指令编码,构建所述目标操作对应的操作指令; [0030] The construction unit, according to an instruction of the operation target included in the attribute data relating to W, and the acquired encoding standard, constructing the target operation command corresponding to the operation;

[0031] 发送单元,用于将所述操作指令发送给所述对端设备,W使所述对端设备根据所述操作指令进行相应操作。 [0031] The transmitting unit for transmitting the operation command to the peer device, W so that the ends of the device on according to the operation instruction.

[0032] 优选地,进一步包括: [0032] Preferably, further comprising:

[0033] 归一化单元,用于在所述目标操作包括一个W上的操作时,将所述一个W上的操作归一化为一个标准操作,归一化后的所述标准操作包括所述一个W上的操作所包括的指令操作属性; [0033] The normalization unit for the target operation comprises operating on a W when the operation of a W on a normalized into a standard operation, the normal operation after the normalization comprises said instruction operation on the operation included a W attributes;

[0034] 建立单元,用于根据所述标准操作所包括的指令操作属性,建立所述标准操作所包括的指令操作属性与标准指令编码的对应关系。 [0034] establishing unit configured to operate according to an instruction of the standard operational attributes included, the standard operating instructions to establish the corresponding relationship between the operation attribute comprising the instruction code of the standard.

[0035] 优选地,所述握手单元,用于利用宏定义的#define标识符字符串的形式实现所述标准指令编码与指令操作属性的对应关系;在自身作为发送端时,所述标准指令编码与指令操作属性的对应关系包括;#define指令操作属性标准指令编码;在自身作为接收端时,所述标准指令编码与指令操作属性的对应关系包括;#define标准指令编码指令操作属性。 [0035] Preferably, the handshaking means for using the identifier string form #define macro definitions of standard instructions implementing the instruction operation encoding correspondence relationship attribute; as itself when sending end, the standard instruction encoding correspondence relationship attribute includes instruction operation; #define instruction operation instruction coding attribute criteria; in itself as a receiving end, the standard instruction and instruction operation encoding correspondence relationship attributes including; #define instruction operation instruction encoding standard properties.

[0036] 优选地,所述握手单元,用于利用数组下标的形式实现所述标准指令编码与指令操作属性的对应关系:所述标准指令编码与指令操作属性的对应关系包括;指令操作属性_标准指令编码D [0036] Preferably, the handshaking means for using the subject in the form of an array of standard instructions implementing the instruction operation encoding correspondence relationship attributes: the standard instruction and instruction operation encoding correspondence relationship attributes including; instruction operation attribute _ standard coded instruction D

[0037] 优选地,进一步包括; [0037] Preferably, further comprising;

[003引接收单元,用于自身在作为接收端时,接收所述对端设备发送的操作指令; [Cited receiving unit 003, the operation instruction for itself as the receiving end, the receiving end of the transmission apparatus;

[0039] 解析单元,用于解析该操作指令包括标准指令编码和数据相关属性; [0039] The parsing unit for parsing the operation instruction includes an instruction code and data related to the standard properties;

[0040] 所述获取单元,用于根据预先约定的所述对应关系,获取该操作指令中包括的标准指令编码所对应的指令操作属性; [0040] The obtaining unit, for the corresponding relationship according to the previously agreed, the access to standard operation instruction included in the instruction encoding operation corresponding to the attribute;

[0041] 执行单元,用于根据获取的该指令操作属性,W及该操作指令中包括的数据相关属性,执行该指令操作属性所对应的操作。 [0041] execution unit for operational data Properties, W, and the operation instruction included in the acquired according to the instruction, executes the instruction operation corresponding to the operation attribute.

[0042] 本发明实施例提供了一种指令处理方法及装置,设备之间通过预先约定好标准指令编码与指令操作属性的对应关系,在确定了针对接收端的目标操作时,需要构建向接收端发送的操作指令,由于现有技术中操作指令中所包括的指令操作属性和指令操作码长度较长,因此通过将现有技术中操作指令所包括的指令操作属性和指令操作码修改给标准指令编码,从而减小了操作指令的长度,进而使得操作指令在一个数据段中发送给接收端,从而提高了处理操作指令的效率。 [0042] The embodiment provides a correspondence between an instruction-processing method and apparatus, device operation property by previously agreed well with the standard instruction encoding instruction according to the present invention, when the operation target is determined in the receiving end, the receiving end needs to be built the transmission operation instruction, since the instruction included in the prior art and the operation of the operation instruction opcode attribute longer length, thus modified by the prior art operation instruction included in the instruction operation code to the instruction operation properties and standard instruction encoding, thereby reducing the length of the operation command, thus making the operation instruction transmitted to the receiving end in a data segment, thereby increasing the efficiency of the processing operation instruction.

附图说明 BRIEF DESCRIPTION

[0043] 图1是本发明实施例提供的方法流程图; [0043] FIG. 1 is a method according to an embodiment of the present invention, a flow chart;

[0044] 图2是本发明另一实施例提供的方法流程图; [0044] FIG 2 is a flowchart of a method provided in another embodiment of the present invention;

[0045]图3是本发明实施例提供的装置所在设备的硬件架构图; [0045] FIG. 3 is a schematic diagram of a device with a hardware device according to an embodiment of the present invention;

[0046] 图4是本发明实施例提供的装置结构示意图; [0046] FIG. 4 is a schematic structural diagram of the apparatus embodiment of the present invention;

[0047] 图5是本发明另一实施例提供的装置结构示意图。 [0047] FIG 5 is a configuration diagram of an apparatus according to another embodiment of the present invention.

具体实施方式 Detailed ways

[0048] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。 [0048] The present invention in conjunction with the following drawings in the embodiments, the technical solutions in the embodiments of the present invention will be clearly and completely described. 显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。 Obviously, the described embodiments are merely part of embodiments of the present invention rather than all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0049] 如图1所示,本发明实施例提供了一种指令处理方法,相互独立的第一设备与第二设备,预先约定标准指令编码与指令操作属性的对应关系,该方法可W包括W下步骤: [0化0] 步骤101 ;第一设备确定自身作为发送端时对第二设备的目标操作。 [0049] 1, the embodiment of the present invention provides a method for instruction processing, independent of the first and second devices, prearranged correspondence relationship standard instruction and instruction operation encoding attribute, the method may comprise W W the steps of: [0 of 0] step 101; the first device determines itself as a target operating end of the second transmission device.

[0051]步骤102 ;根据目标操作所包括的指令操作属性,W及预先约定的对应关系,获取目标操作的标准指令编码。 [0051] Step 102; operational attributes, W, and a correspondence relationship previously agreed target according to the instruction included in the operation, the operation of acquiring a target instruction encoding standard.

[0052] 步骤103 ;根据目标操作中所包括的数据相关属性W及获取的标准指令编码,构建目标操作对应的操作指令。 [0052] Step 103; the target operation command code included in the standard attributes for data acquisition and W, building operation instruction corresponding to the operation target.

[0053] 步骤104 ;将操作指令发送给第二设备,W使第二设备根据操作指令进行相应操作。 [0053] Step 104; sends the operation instruction to the second device, W of the second device corresponding operation according to the operation instruction.

[0化4] 根据上述方案,设备之间通过预先约定好标准指令编码与指令操作属性的对应关系,在确定了针对接收端的目标操作时,需要构建向接收端发送的操作指令,由于现有技术中操作指令中所包括的指令操作属性和指令操作码长度较长,因此通过将现有技术中操作指令所包括的指令操作属性和指令操作码修改给标准指令编码,从而减小了操作指令的长度,进而使得操作指令在一个数据段中发送给接收端,从而提高了处理操作指令的效率。 [0 of 4] The correspondence between the above-described embodiment, the device attribute operation by previously agreed well with the standard instructions encoded instructions which, when determining the operation for the target receiving end, it is necessary to build an operation instruction transmitted to the receiving end, since the conventional art operation instruction included in the instruction operation attributes and instruction operation code length is longer, and therefore to modify the standard instructions encoded by the prior art operation instruction included in the instruction operation properties and operation code instructions, thereby reducing the operation instruction length, thereby making the operation instruction transmitted to the receiving end in a data segment, thereby increasing the efficiency of the processing operation instruction. [0化5] 由于现有技术中在发送端对接收端进行目标操作时,往往是通过一个W上的操作指令来完成的,为了减少目标操作的时间,本实施例中,在目标操作包括一个W上的操作时,将一个W上的操作归一化为一个标准操作,归一化后的标准操作包括一个W上的操作所包括的指令操作属性。 [0 of 5] due to the operation of the target receiving end at the transmitting end in the prior art, often through a W on the operation instruction to complete, in order to reduce the operation time of the target, in this embodiment, the target operation comprises W during an operation on the operation on a W normalized to a standard operation, standard operation after normalization operations include instructions on a W included operational attributes. 进一步包括:根据标准操作所包括的指令操作属性,建立标准操作所包括的指令操作属性与标准指令编码的对应关系。 Further comprising: instruction operation according to the properties included in the standard operation, establishing standard operation instruction comprises an operation instruction corresponding relationship between the encoding standard attributes. 该样,发送端在后续对接收端进行目标操作时,通过一个操作指令即可实现目标操作,从而减少了目标操作的时间。 The samples, at the transmitting end to the receiving end when a subsequent target operation, the operation can be realized by a certain operation command, thereby reducing the time target of the operation.

[0056] 由于设备之间在进行操作指令的发送和接收之前,约定了标准指令编码与指令操作属性的对应关系,因此,在接收端接收到发送端发送的操作指令时,需要解析该操作指令包括标准指令编码和数据相关属性;并根据预先约定的对应关系,获取该操作指令中包括的标识指令编码所对应的指令操作属性;根据获取的该指令操作属性,W及该操作指令中包括的数据相关属性,执行该指令操作属性所对应的操作。 [0056] Before sending and receiving an operation instruction is performed between the devices because of agreed standard instructions corresponding to the operation instruction coding attribute relationship, and therefore, when the receiver receives an operation instruction transmitted from the transmitting side, the operation command needs to resolve including standard instruction code and data related properties; and in accordance with a correspondence relationship previously agreed to acquire instructions of the operation instruction comprises an identification command code corresponding to the operational characteristics; operating properties, W, and the operation instruction according to the instruction included in the acquired the data related attributes, the attribute to execute the instruction operation corresponding to the operation. 从而减少了目标操作的时间。 Thereby reducing the time target of the operation. [0化7] 为使本发明的目的、技术方案和优点更加清楚,下面结合附图及具体实施例对本发明作进一步地详细描述。 [0 of 7] To make the objectives, technical solutions, and advantages of the present invention clearer, the following specific embodiments and examples of the present invention will be described in further detail in conjunction with the accompanying drawings.

[0化引如图2所示,本发明实施例提供了一种指令处理方法,该方法可W包括W下步骤: [0化9] 步骤201 ;建立标准指令编码与指令操作属性的对应关系。 [0 of primer 2, the embodiment there is provided a method of processing instructions according to the present invention, the method may comprise W W the steps of: [0 of 9] Step 201; correspondence between the standard instruction and instruction operation encoding attribute .

[0060] 在本实施例中,由于现有技术中两个设备之间在进行操作指令的发送和接收时, 操作指令中所包括的指令操作码和指令操作属性可能占用的长度较长,因此,为了减小设备之间发送接收的操作指令的长度,可W将操作指令所包括指令操作码和指令操作属性修改为一个设定好的标准指令编码。 [0060] In the present embodiment, since the prior art when performing the operation instruction transmitted and received between two devices, an operation instruction included in the instruction code and instruction operation may take longer length attribute, so in order to reduce the length of the transmission operation instruction received between the devices may be W and the operation instruction opcode instruction includes an operation to modify the properties of a good standard instruction set encoding. 其中,标准指令编码可W是一个指令的索引,可W通过数字、字母或其他约定好的编码来表征。 Wherein the standard instruction encoding is an index of an instruction W, W may be characterized by numbers, letters, or other good coding conventions. 例如,W数字来表征标准指令编码为例来说明该对应关系,01-打开文件操作,02-定位数据操作,03-读数据操作,04-写数据操作,等等。 For example, W a digital coding standard instructions to characterize the correspondence will be described as an example, the file open operation 01-, 02- positioning data manipulation, data read operation 03-, 04- writing of data, and the like.

[0061] 在本实施例中,该对应关系可W由一个标准委员会进行设置,使得任何一个设备在与其他设备之间进行操作指令的交互时,能够使用该对应关系来对标准指令编码进行识另IJ。 [0061] In the present embodiment, the correspondence relationship W can be set by a standards committee, such a device when any operation instruction interactions between the other devices, to identify the standard can be encoded using the correspondence instruction another IJ. 或者,该对应关系由相互独立的两个设备之间预先约定好,W保证发送端和接收端对同一个标准指令编码所获知的指令操作属性为同一个。 Alternatively, the correspondence relationship between the two independent devices previously agreed well, W ensure the transmission and reception ends on the same instruction encoding a known standard operation for the same property.

[0062] 在本发明一个实施例中,该对应关系可W利用宏定义的#define标识符字符串的形式实现标准指令编码与指令操作属性的对应关系。 [0062] In one embodiment of the present invention, the correspondence relationship may utilize W form identifier string #define macro instruction encoding for standard definition and the relationship between attributes corresponding to the operation instruction. 其中,由于发送端在构建操作指令时, 需要将指令操作属性修改为标准指令编码,因此,在发送端中可W利用#define指令操作属性标准指令编码的形式来表征该对应关系;相应地,由于接收端在对操作指令进行解析时,需要将标准指令编码转换为指令操作属性,因此,在接收端中可W利用#define标准指令编码指令操作属性来表征该对应关系。 Wherein, since the transmission side in the construction of the operation instructions, the instruction operation for the standard attribute modification command code, and therefore, the transmission side may use #define W instruction operation attribute criteria characterizing the correspondence code in the form of instructions; accordingly, Since the receiving side when the operation instruction parsing, it is necessary to convert the operation instruction is a standard instruction encoding properties, therefore, at the receiving end W can be characterized using the correspondence relationship #define instruction operation encoding standard instructions properties. 当然,一个设备在与另一个设备之间进行操作指令的交互时,可W作为发送端,也可W作为接收端,因此,本实施例对设备中W何种宏定义形式来表征对应关系不作具体限定。 Of course, a device operating at the time of the interactive commands between the other apparatus and, as a transmission side can be W, W may be used as the receiving end, therefore, the present embodiment of the apparatus in the form of W macro definitions which the correspondence relationship is not characterized particularly limited.

[0063] 在本发明一个实施例中,该对应关系可W利用数组下标的形式实现标准指令编码与指令操作属性的对应关系;标准指令编码与指令操作属性的对应关系包括;指令操作属_标准指令编码。 [0063] In one embodiment of the present invention, the correspondence relationship may be W implement standard commands corresponding relationship attribute encoding instruction operation by using the subject in the form of the array; compatibility between the standard instruction encoding instruction operation attribute comprising; instruction operation genus _ standard instruction encoding.

[0064] 需要说明的是,本实施例对该对应关系的表征不仅仅上述两种表现形式,还可W 利用指令操作属性和标准指令编码之间一一对应的形式进行表征,或者其他任何能够表征该对应关系的形式均可W。 [0064] Incidentally, the correspondence relation characterizing embodiment of the present embodiment not only the above-described two forms, W may also use standard instruction and instruction operation properties in the form of correspondence between the encoder characterization, or can be any other the correspondence relationship of the form can be characterized W. 其中,下面W指令操作属性和标准指令编码之间一一对应的形式进行表征为例对该对应关系进行说明: Wherein, following the operation instruction form W-one correspondence between the command code and the standard attributes characterizing the correspondence relation will be described as an example:

[00尉表2; [00 Wei Table 2;

[0066] [0066]

Figure CN104767758AD00081

[0067] 进一步地,由于有一些目标操作需要由多个操作指令来完成,例如,读数据,需要由W下=个操作指令来实现;1、打开文件操作;2、定位数据操作;3、读数据操作。 [0067] Further, since the operation can require some accomplished by a plurality of operation instructions, for example, read data, it needs to be achieved by the operation instruction W = a; 1, open file operation; 2, the positioning operation data; 3, data read operation. 因此,发送端设备和接收端设备需要完成上述=个操作指令的交互才能够完成该目标操作:读数据。 Accordingly, the transmission side device and the receiving device needs to complete the above-described interactive operations = instruction can be completed before the target operation: read data. 针对该需要由多个操作指令来完成的目标操作,为了减少交互次数,可W对该目标操作所包括的一个W上的操作归一化为一个标准操作,其中,归一化后的标准操作包括一个W 上的操作所包括的指令操作属性。 This requires the operation target by a plurality of instructions to complete the operation, in order to reduce the number of interactions, W can be included in the target operating an operation on a normalized W normalized to a standard operation, wherein the standard normalized operation comprising a W instruction operation on the attributes included in the operation. 例如,将上述目标操作所包括的打开、定位、读数据归一化一个一个标准操作读数据操作,并利用标准操作所包括的指令操作属性,建立标准操作所包括的指令操作属性与标准指令编码的对应关系,例如,01-读数据操作。 For example, the above-described target operation comprises an opening, positioning the read data normalizing a standard operation of a data read operation, and the use of standard instructions operations included in the operation property, build instructions standard operation comprises operation properties and standard instruction encoding the correspondence relationship, e.g., 01- data read operation. 那么,在后续设备之间进行读数据操作时,发送端设备只需根据标准指令编码"01"构建操作指令即可,接收端可W根据该标准指令编码"01"完成打开文件操作-定位数据操作-读数据操作的过程。 Then, a data read operation, only the transmission side apparatus constructed according to a standard operation instruction instruction code "01" to the receiving side may be W instruction code "01" to open the file to complete the operation according to the criteria between subsequent device - positioning data operation - during a read data operation. 从而减少了设备间操作指令的交互次数。 Thereby reducing the number of interactions between the operation instruction apparatus.

[0068] 步骤202 ;发送端设备确定针对接收端的目标操作。 [0068] Step 202; transmitting side apparatus determines a target operation for the receiving end.

[0069] 步骤203;根据目标操作所包括的指令操作属性,W及预先约定的对应关系,获取目标操作的标准指令编码。 [0069] Step 203; operational attributes, W, and a correspondence relationship previously agreed target according to the instruction included in the operation, the target operation acquisition instruction encoding standard.

[0070] 其中,目标操作所包括的指令操作属性可W是读数据操作,根据上述对应关系,可W获知读数据操作对应的标准指令编码是01。 [0070] wherein, the target instruction operation comprises operation property W is a data read operation, based on the correspondence relation, W may be learned data read operation corresponding to the instruction code is 01 standard.

[007U步骤204;根据目标操作中所包括的数据相关属性W及获取的标准指令编码,构建目标操作对应的操作指令。 [007U step 204; the target operation command code included in the standard attributes for data acquisition and W, building operation instruction corresponding to the operation target.

[0072] 由于指令操作属性的可能会较长,导致发送端设备需要在一个W上的数据段中构建操作指令,从而减少了指令处理的效率,因此,在本实施例中,可W将现有技术中的指令操作属性修改为标准指令编码,并构建目标操作对应的操作指令,其中,该操作指令如下: [007引表3 ; [0072] Since the attribute may be a long instruction operation, causing the transmission side device needs a data segment in W is build on an operation instruction, thereby reducing the efficiency of instruction processing, therefore, in the present embodiment, W can now be art instruction operation to modify the properties of the standard command code, and construct an operation instruction corresponding to the target operation, wherein the operating instructions are as follows: [table 3 primer 007;

[0074] [0074]

Figure CN104767758AD00091

[0075] 根据上表可知,标准指令编码为一个数字或字母,其占用的长度固定且较短,因此,从而减少了操作指令的长度,进而减少了操作指令占用的网络带宽;W及使得操作指令可W由一个数据段发送给接收端,进而提高了指令处理的效率。 [0075] The above table shows that the standard instructions encoded as a number or letter, which occupies a fixed and short length, thus reducing the length of the operating instructions, thereby reducing the bandwidth occupied by the operation instruction; and W is such that operation W instruction sent to the receiver by a data segment, thereby improving the efficiency of instruction processing.

[0076] 其中,操作指令的长度可W设定为8bit。 [0076] wherein W may be the length of the operation instruction set 8bit.

[0077] 步骤205 ;将操作指令发送给接收端设备。 [0077] Step 205; operation instruction transmitted to the receiving side apparatus.

[007引在本实施例中,发送给接收端设备的操作指令中只包括标准指令编码,不包括具体的指令,减少了操作指令的长度。 [007 incorporated in the present embodiment, the operation instruction sent to the receiver apparatus includes only the standard instruction code, the instruction does not include the specific, reducing the length of the operating instructions.

[0079] 步骤206 ;接收端设备接收发送端设备发送的操作指令,解析该操作指令包括标准指令编码和数据相关属性。 [0079] Step 206; operation instruction receiving device receives the transmission side apparatus transmitting terminal parses the standard instruction comprises an operation instruction code and data related properties.

[0080] 在本实施例中,接收端设备需要对接收到的操作指令进行解析,确定操作指令中包括的标准指令编码"01"和数据相关属性。 [0080] In the present embodiment, the receiving device needs docking resolve the received operation instruction, the operation instruction determination criterion included in the instruction code "01" and the associated data attributes.

[0081] 步骤207;根据预先约定的对应关系,获取该操作指令中包括的标准指令编码所对应的指令操作属性。 [0081] Step 207; according to the correspondence previously agreed, standard instruction fetch instructions encoded in the instruction operation comprises operation corresponding properties.

[0082] 接收端设备根据预先约定的对应关系,获取该操作指令中包括的标准指令编码"01"所对应的指令操作属性"读数据操作"。 [0082] The receiving side apparatus according to the correspondence previously agreed, the access to standard operation instruction included in the instruction code "01" corresponding to the operation of the attribute "read data operation."

[0083] 步骤208 ;根据获取的该指令操作属性,W及该操作指令中包括的数据相关属性, 执行该指令操作属性所对应的操作。 [0083] Step 208; The data relating to attributes of the instruction operation property, W, and the acquired operation instruction included in the attribute to execute the operation corresponding to the operation instruction.

[0084] 在本实施例中,为了实现利用标准指令编码能够使得两个设备能够正常运行,需要将设备中的相关驱动实现指令标准化,W及为了实现兼容性,需要两个设备之间进行握手,W确定使用该标准指令编码进行传输。 [0084] In the present embodiment, in order to achieve using standard enables two devices encoded with instructions to operate properly, the device needs to be driven in the relevant standardization implementable instructions, W, and in order to achieve compatibility between the two devices require a handshake , W is determined using the standard instruction encoding for transmission.

[0085] 其中,本实施例中所述的操作指令可W是ssci指令。 [0085] wherein the operation instruction described in the present embodiment may be W is ssci instruction.

[0086] 如图3、图4所示,本发明实施例提供了一种指令处理装置。 [0086] As shown in FIG. 3, FIG. 4, an embodiment is provided an instruction processing apparatus according to the present invention. 装置实施例可W通过软件实现,也可W通过硬件或者软硬件结合的方式实现。 W apparatus embodiments may be implemented by software, W may also be implemented by means of hardware or a combination of hardware and software. 从硬件层面而言,如图3所示,为本发明实施例指令处理装置所在设备的一种硬件结构图,除了图3所示的处理器、内存、网络接口、W及非易失性存储器之外,实施例中装置所在的设备通常还可W包括其他硬件,如负责处理报文的转发巧片等等。 From the hardware level, shown in Figure 3, an embodiment of the instruction A hardware configuration diagram of the processing apparatus where the apparatus of the present invention, in addition processor shown in FIG 3, memory, network interface, W, and non-volatile memory outside the apparatus in apparatus where the embodiment W may typically include other hardware, such as handles packet forwarding clever like sheet. W软件实现为例,如图4所示,作为一个逻辑意义上的装置,是通过其所在设备的CPU将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。 W software, for example, as shown in FIG. 4, the apparatus as a logical sense, the non-volatile memory is a corresponding computer program instructions readable by the CPU device to which it is running in memory formation. 本实施例提供的指令处理装置40包括: Instructions provided by the processing device 40 of the present embodiment comprises:

[0087] 握手单元401,用于预先与对端设备约定标准指令编码与指令操作属性的对应关系; [0087] handshake unit 401, a correspondence relationship between the attributes agreed beforehand with the peer device and instruction operation instruction encoding standard;

[008引确定单元402,用于确定自身作为发送端时对所述对端设备的目标操作; [008 primer determination unit 402 for determining itself as a target of the transmission side end of the operation of the device;

[0089] 获取单元403,用于根据所述目标操作所包括的指令操作属性,W及预先约定的所述对应关系,获取所述目标操作的标准指令编码; [0089] The obtaining unit 403, according to an instruction for the target operation comprises operation properties, W, and agreed in advance the correspondence, access to standard operation of the target instruction code;

[0090] 构建单元404,用于根据所述目标操作中所包括的数据相关属性W及获取的所述标准指令编码,构建所述目标操作对应的操作指令; [0090] The construction unit 404, in accordance with the instructions included in the operation target data W and related properties of the obtained encoding standard, constructing the target operation command corresponding to the operation;

[0091] 发送单元405,用于将所述操作指令发送给所述对端设备,W使所述对端设备根据所述操作指令进行相应操作。 [0091] The transmitting unit 405, configured to send the operation instruction to the remote device, W so that the ends of the device on according to the operation instruction.

[0092] 在本发明一个实施例中,如图5所示,该装置可W进一步包括: [0092] In one embodiment of the present invention, shown in Figure 5, the apparatus may further comprise W:

[0093] 归一化单元501,用于在所述目标操作包括一个W上的操作时,将所述一个W上的操作归一化为一个标准操作,归一化后的所述标准操作包括所述一个W上的操作所包括的指令操作属性; [0093] The normalization unit 501, the target for the operation on the operation comprises a W when the operation of a W on a normalized into a standard operation, the normal operation after normalization comprises the operation included the W instruction operation attribute;

[0094] 建立单元502,用于根据所述标准操作所包括的指令操作属性,建立所述标准操作所包括的指令操作属性与标准指令编码的对应关系。 [0094] The establishing unit 502 is configured to operate in accordance with the instructions included in the standard operating properties, the standard operating instructions to establish the corresponding relationship between the operation attribute comprising the instruction code of the standard.

[0095] 进一步地,所述握手单元401,用于利用宏定义的#define标识符字符串的形式实现所述标准指令编码与指令操作属性的对应关系;在自身作为发送端时,所述标准指令编码与指令操作属性的对应关系包括;#define指令操作属性标准指令编码;在自身作为接收端时,所述标准指令编码与指令操作属性的对应关系包括;#define标准指令编码指令操作属性。 [0095] Further, the handshaking unit 401, for use in the form identifier string #define macro definitions of standard instructions implementing the instruction operation encoding correspondence relationship attribute; transmitting end in itself as the standard instruction encoding correspondence relationship with attribute includes instruction operation; #define instruction operation instruction coding attribute criteria; in itself as a receiving end, the standard instruction and instruction operation encoding correspondence relationship attributes including; #define instruction operation instruction encoding standard properties.

[0096] 进一步地,所述握手单元401,用于利用数组下标的形式实现所述标准指令编码与指令操作属性的对应关系;所述标准指令编码与指令操作属性的对应关系包括:指令操作_标准指令编码。 [0096] Further, the handshaking unit 401, the standard for implementing the instruction corresponding to the instruction operation encoding attribute relationship by the subject in the form of an array; a correspondence relationship with the standard instructions encoded instruction operation attribute comprising: instruction operation _ instruction encoding standard.

[0097] 进一步包括: [0097] further comprising:

[009引接收单元503,用于自身在作为接收端时,接收所述对端设备发送的操作指令; [009 primer receiving unit 503, an operation command for itself as a receiving end, the receiving end of the transmission apparatus;

[0099] 解析单元504,用于解析该操作指令包括标准指令编码和数据相关属性; [0099] The parsing unit 504, for parsing the operation instruction comprises an instruction code and data related to the standard properties;

[0100] 所述获取单元403,用于根据预先约定的所述对应关系,获取该操作指令中包括的标准指令编码所对应的指令操作属性; [0100] The acquisition unit 403, for the corresponding relationship according to the previously agreed, standard instruction fetch instructions encoded in the instruction operation comprises operation corresponding attribute;

[0101] 执行单元505,用于根据获取的该指令操作属性,W及该操作指令中包括的数据相关属性,执行该指令操作属性所对应的操作。 Property in the operation of [0101] execution unit 505, for operating the associated data Properties, W, and the operation instruction included in the acquired according to the instruction, executes the instruction operation.

[0102] 综上所述,本发明的实施例至少可W实现如下有益效果: [0102] In summary, embodiments of the present invention can be at least W achieve the following advantageous effects:

[0103] 1、设备之间通过预先约定好标准指令编码与指令操作属性的对应关系,在确定了针对接收端的目标操作时,需要构建向接收端发送的操作指令,由于现有技术中操作指令中所包括的指令操作属性和指令操作码长度较长,因此通过将现有技术中操作指令所包括的指令操作属性和指令操作码修改给标准指令编码,从而减小了操作指令的长度,进而使得操作指令在一个数据段中发送给接收端,从而提高了处理操作指令的效率。 [0103] 1, the correspondence relationship between the properties of the device operated by the pre-agreed well with the standard instructions encoded instructions which, when determining the operation target receiving end, it is necessary to build an operation instruction transmitted to the receiving end, since the prior art operation instruction included in the instruction operation attributes and instruction operation code length is longer, and therefore to modify the standard instruction code encoding, thereby reducing the length of an operation instruction by the operation of the prior art operation instruction included in the instruction and instruction operation attributes, and further in such an operation instruction transmitted to the receiving end of a data segment, thereby increasing the efficiency of the processing operation instruction.

[0104] 2、在目标操作包括一个W上的操作时,将一个W上的操作归一化为一个标准操作,归一化后的标准操作包括一个W上的操作所包括的指令操作属性。 [0104] 2, includes an operation on the operation target in a W when the operation on a W normalized to a standard operation, standard operation after normalization operations include instructions on a W included operational attributes. 并根据标准操作所包括的指令操作属性,建立标准操作所包括的指令操作属性与标准指令编码的对应关系。 And operational attributes in accordance with instructions included in the standard operation, establishing standard operation instruction comprises an operation instruction corresponding relationship between the encoding standard attributes. 该样,发送端在后续对接收端进行目标操作时,通过一个操作指令即可实现目标操作,从而减少了目标操作的时间。 The samples, at the transmitting end to the receiving end when a subsequent target operation, the operation can be realized by a certain operation command, thereby reducing the time target of the operation.

[0105] 上述设备内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再寶述。 SUMMARY [0105] information interaction between units inside the apparatus, execution process, since the method embodiments of the present invention based on the same concept, the details see the description in the method embodiment of the present invention embodiment herein described is no longer Po .

[0106] 需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示该些实体或操作之间存在任何该种实际的关系或者顺序。 [0106] Incidentally, herein, relational terms such as first and second and the like are only used to distinguish one entity or operation from another entity or action without necessarily requiring or implying the plurality of entities the presence of any such actual relationship or order between or operations. 而且,术语"包括"、"包含"或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素, 而且还包括没有明确列出的其他要素,或者是还包括为该种过程、方法、物品或者设备所固有的要素。 Further, the term "comprising", "containing" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, article, or apparatus not include only those elements but not expressly listed further comprising the other elements, or further includes inherent species that process, method, article, or apparatus elements. 在没有更多限制的情况下,由语句"包括一个......"限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。 Without more constraints, by the wording "include a ......" defining element does not exclude the existence of additional identical elements in the element comprising a process, method, article, or apparatus.

[0107] 本领域普通技术人员可W理解;实现上述方法实施例的全部或部分步骤可W通过程序指令相关的硬件来完成,前述的程序可W存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括;ROM、RAM、磁碟或者光盘等各种可W存储程序代码的介质中。 [0107] Those of ordinary skill in the art may be appreciated W; all or part of the steps of the above method embodiments may be implemented by a program instructing relevant W to complete the hardware, the program may be stored in a storage medium W computer-readable, the program is executed, the steps of the above-described embodiment of the method; and the storage medium comprising; W may be any medium storing program code ROM, RAM, magnetic disk, optical disk or the like.

[0108] 最后需要说明的是;W上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。 [0108] Finally, it should be noted that; W on merely the preferred embodiment of the present invention, only to illustrate the technical solution of the present invention and are not intended to limit the present invention. 凡在本发明的精神和原则之内所做的任何修改、 等同替换、改进等,均包含在本发明的保护范围内。 Where any modifications within the spirit and principle of the present invention is made of, equivalent replacement, improvement, etc., are included within the scope of the present invention.

Claims (10)

  1. 1. 一种指令处理方法,其特征在于,相互独立的第一设备与第二设备,预先约定标准指令编码与指令操作属性的对应关系,包括: 所述第一设备确定自身作为发送端时对所述第二设备的目标操作; 根据所述目标操作所包括的指令操作属性,以及预先约定的所述对应关系,获取所述目标操作的标准指令编码; 根据所述目标操作中所包括的数据相关属性以及获取的所述标准指令编码,构建所述目标操作对应的操作指令; 将所述操作指令发送给所述第二设备,以使所述第二设备根据所述操作指令进行相应操作。 CLAIMS 1. A method for instruction processing, comprising mutually independent first and second devices, prearranged correspondence between the standard instruction and instruction operation encoding attribute, comprising: when the first device determines itself as a sending end the second operation target device; an operation according to an instruction of the operation target attributes included, and the prearranged correspondence relationship, access to standard operation of the target instruction code; the data of the target included in the operation and related properties of the fetched instruction encoding standard, constructing the target operation command corresponding to an operation; transmitting the operation command to the second device, the second device so that the corresponding operation according to the operation instruction.
  2. 2. 根据权利要求1所述的方法,其特征在于, 进一步包括:在所述目标操作包括一个以上的操作时,将所述一个以上的操作归一化为一个标准操作,归一化后的所述标准操作包括所述一个以上的操作所包括的指令操作属性; 进一步包括:根据所述标准操作所包括的指令操作属性,建立所述标准操作所包括的指令操作属性与标准指令编码的对应关系。 2. The method according to claim 1, characterized in that, further comprising: in the target operation comprises more than one operation, the one or more operating a normalized standard operation, after a normalization of the standard operating instructions comprising said at least one operation comprises an operation attributes; further comprising: an operation according to an instruction of the standard operational attributes included, establishing the standard operation instruction corresponding to the operation attribute comprising the instruction code standard relationship.
  3. 3.根据权利要求1所述的方法,其特征在于,所述预先约定标准指令编码与指令操作属性的对应关系,包括: 利用宏定义的#define标识符字符串的形式实现所述标准指令编码与指令操作属性的对应关系:在所述第一设备作为发送端时,所述标准指令编码与指令操作属性的对应关系包括:#define指令操作属性标准指令编码;在所述第一设备作为接收端时,所述标准指令编码与指令操作属性的对应关系包括:#define标准指令编码指令操作属性。 3. The method according to claim 1, characterized in that the prearranged correspondence between the standard instruction and instruction operation encoding properties, comprising: using a form identifier string #define macro definitions of implementing the standard instruction encoding the correspondence between the attribute instruction operation: in the first device as a transmitting end, the corresponding relationship between the encoding standard instruction instruction operation attribute comprising: #define instruction operation instruction coding attribute criteria; as received at the first device when the end instruction corresponding relationship between the encoding standard instruction operation attribute comprising: #define instruction operation instruction encoding standard properties.
  4. 4.根据权利要求1所述的方法,其特征在于,所述预先约定标准指令编码与指令操作属性的对应关系,包括: 利用数组下标的形式实现所述标准指令编码与指令操作属性的对应关系:所述标准指令编码与指令操作属性的对应关系包括:指令操作属性 4. The method according to claim 1, characterized in that the prearranged correspondence between the standard instruction and instruction operation encoding attribute, comprising: an array using the subject matter realized in the form of a correspondence relationship with the standard instructions encoded instruction operation attribute : the corresponding relationship with the standard instructions encoded instruction operation attribute comprising: instruction operation property
  5. 5.根据权利要求1-4中任一所述的方法,其特征在于,进一步包括: 所述第一设备在作为接收端时,接收所述第二设备发送的操作指令; 解析该操作指令包括标准指令编码和数据相关属性; 根据预先约定的所述对应关系,获取该操作指令中包括的标准指令编码所对应的指令操作属性; 根据获取的该指令操作属性,以及该操作指令中包括的数据相关属性,执行该指令操作属性所对应的操作。 5. The method according to any one of claims 1-4, characterized in that, further comprising: when the first device as a receiver, receives an operation instruction transmitted from the second device; parsing the operation instruction comprises standard attributes associated instruction code and data; pre-agreed according to the corresponding relationship, the access to standard operation instruction included in the instruction encoding operation corresponding attribute; data attribute, and the operation instruction comprises an operation instruction based on the acquired related attributes, operation to execute the instruction operation corresponding to the attribute.
  6. 6. -种指令处理装置,其特征在于,包括: 握手单元,用于预先与对端设备约定标准指令编码与指令操作属性的对应关系; 确定单元,用于确定自身作为发送端时对所述对端设备的目标操作; 获取单元,用于根据所述目标操作所包括的指令操作属性,以及预先约定的所述对应关系,获取所述目标操作的标准指令编码; 构建单元,用于根据所述目标操作中所包括的数据相关属性以及获取的所述标准指令编码,构建所述目标操作对应的操作指令; 发送单元,用于将所述操作指令发送给所述对端设备,以使所述对端设备根据所述操作指令进行相应操作。 6. - kind of instruction processing apparatus, characterized by comprising: handshaking means for properties in advance a correspondence relationship with the peer device and the command code agreed standard instruction operation; determining means for determining itself as the transmitting end end of the target operation device; acquiring unit for correspondence relationship according to the target instruction operation comprises operation properties, and the prearranged to acquire the target encoding standard instruction operation; construction unit, according to the said target data included in the operation and the attributes associated fetched instruction encoding standard, constructing the target operation command corresponding to an operation; transmitting means for transmitting the operation command to the remote device, so that the said peer device corresponding operation according to the operation instruction.
  7. 7. 根据权利要求6所述的装置,其特征在于,进一步包括: 归一化单元,用于在所述目标操作包括一个以上的操作时,将所述一个以上的操作归一化为一个标准操作,归一化后的所述标准操作包括所述一个以上的操作所包括的指令操作属性; 建立单元,用于根据所述标准操作所包括的指令操作属性,建立所述标准操作所包括的指令操作属性与标准指令编码的对应关系。 7. The device according to claim 6, characterized in that, further comprising: a normalization unit for the target operation comprises more than one operation, the operation of one or more normalized to a standard operation, the normalized standard operation instruction includes one or more operational attributes included operation; establishing means for operating according to an instruction of the standard operational attributes included in establishing the operations included in the standard instruction operation corresponding relationship between the properties of the standard instruction encoding.
  8. 8. 根据权利要求6所述的装置,其特征在于,所述握手单元,用于利用宏定义的#define标识符字符串的形式实现所述标准指令编码与指令操作属性的对应关系:在自身作为发送端时,所述标准指令编码与指令操作属性的对应关系包括:#define指令操作属性标准指令编码;在自身作为接收端时,所述标准指令编码与指令操作属性的对应关系包括:#define标准指令编码指令操作属性。 8. The apparatus according to claim 6, wherein said handshaking means for using the identifier string form #define macro definitions of standard instructions implementing the instruction operation encoding correspondence relationship attribute: in itself as the transmitting end, the corresponding relationship between the encoding standard instruction instruction operation attribute comprising: #define instruction operation instruction coding attribute criteria; in itself as a receiving end, the standard instruction and instruction operation encoding correspondence relationship attribute comprises: # standard coded instruction operation instruction define properties.
  9. 9. 根据权利要求6所述的装置,其特征在于,所述握手单元,用于利用数组下标的形式实现所述标准指令编码与指令操作属性的对应关系:所述标准指令编码与指令操作属性的对应关系包括:指令操作属性 9. The apparatus according to claim 6, wherein said handshaking means for using the subject in the form of an array of standard instructions implementing the instruction operation encoding correspondence relationship attributes: the standard instruction and instruction operation encoding properties the correspondence relationship comprising: instruction operation property
  10. 10. 根据权利要求6-9中任一所述的装置,其特征在于,进一步包括: 接收单元,用于自身在作为接收端时,接收所述对端设备发送的操作指令; 解析单元,用于解析该操作指令包括标准指令编码和数据相关属性; 所述获取单元,用于根据预先约定的所述对应关系,获取该操作指令中包括的标准指令编码所对应的指令操作属性; 执行单元,用于根据获取的该指令操作属性,以及该操作指令中包括的数据相关属性, 执行该指令操作属性所对应的操作。 10. An apparatus according to any of claims 6-9, characterized in that, further comprising: a receiving unit configured itself as a receiving end, receiving the operation instruction from the peer device; parsing unit, with and parsing the operation instruction comprises an instruction code and data related to the standard attributes; the obtaining unit, for the corresponding relationship according to the previously agreed, standard instruction fetch instructions encoded in the instruction operation comprises operation corresponding attribute; execution unit, according to the instruction operation attribute data associated attribute, and acquires the operation instruction included in the, execution of the instruction operation corresponding to the operation attribute.
CN 201510187107 2015-04-20 2015-04-20 Command processing method and device CN104767758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510187107 CN104767758A (en) 2015-04-20 2015-04-20 Command processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510187107 CN104767758A (en) 2015-04-20 2015-04-20 Command processing method and device

Publications (1)

Publication Number Publication Date
CN104767758A true true CN104767758A (en) 2015-07-08

Family

ID=53649363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510187107 CN104767758A (en) 2015-04-20 2015-04-20 Command processing method and device

Country Status (1)

Country Link
CN (1) CN104767758A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1565101A (en) * 2001-10-09 2005-01-12 诺基亚有限公司 A method of server initiated synchronization in a synchronization system where the request message from the server has a maximum size
CN101197959A (en) * 2007-12-29 2008-06-11 北京创毅视讯科技有限公司 Terminal control method, system and equipment
CN101867562A (en) * 2009-04-15 2010-10-20 北京华旗资讯数码科技有限公司;北京华旗数码技术实验室有限责任公司 Network digital multimedia player
CN103188092A (en) * 2011-12-28 2013-07-03 中国移动通信集团北京有限公司 Remote equipment control method, remote equipment control device and control server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1565101A (en) * 2001-10-09 2005-01-12 诺基亚有限公司 A method of server initiated synchronization in a synchronization system where the request message from the server has a maximum size
CN101197959A (en) * 2007-12-29 2008-06-11 北京创毅视讯科技有限公司 Terminal control method, system and equipment
CN101867562A (en) * 2009-04-15 2010-10-20 北京华旗资讯数码科技有限公司;北京华旗数码技术实验室有限责任公司 Network digital multimedia player
CN103188092A (en) * 2011-12-28 2013-07-03 中国移动通信集团北京有限公司 Remote equipment control method, remote equipment control device and control server

Similar Documents

Publication Publication Date Title
US20100011012A1 (en) Selective Compression Based on Data Type and Client Capability
CN103281752A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN103281759A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
US20100202451A1 (en) Modified internet protocol (ip) data packet for asynchronous ip communications
CN104243576A (en) Intelligent home system and user terminal and device terminal binding method of intelligent home system
US9037735B1 (en) Establishing websocket protocol extensions
CN102209156A (en) Method of synchronizing contact person information, apparatus thereof and system thereof
CN103051734A (en) Remote voice control method and system for household electrical appliance and communication terminal
CN103298147A (en) Method, device and system for realizing wireless management of mobile terminals on computing device side
US20160156614A1 (en) Provisioning a device over an internet of things
CN103618566A (en) Data processing and communication method and system for wearable electronic device
EP2840455A1 (en) Method, apparatus and system for intelligently controlling device, and plug-and-play device
CN101068415A (en) Mobile terminal machine card matching information logon method and device
CN103593173A (en) Integration development system, integration development method and integration development device for application programs
CN1633125A (en) A method of master-slave equipment communication
CN103237024A (en) Data conversion transmission method between TCP/IP (transmission control protocol/Internet protocol) and NDN (named data networking) protocol
CN1549520A (en) Universal simplified gateway equipment realizing method in intelligent domestic system
CN102594886A (en) Method and device for direct communication between browsers, and communication system
CN103856374A (en) Data transmission method, terminal and home interconnected system
CN104581331A (en) Pairing method and device
CN101730078A (en) Method and device for realizing access point binding of wireless data terminal equipment
US20120191828A1 (en) Method and apparatus of performing remote command dispatching
CN101459492A (en) Data transmission method and system, data sending terminal
US20120191829A1 (en) Method and apparatus of performing remote registry configuration
CN103428227A (en) IP covert communication method based on Huffman encoding

Legal Events

Date Code Title Description
C06 Publication
EXSB Decision made by sipo to initiate substantive examination
WD01