A kind of method of device map, control terminal and quilt control terminal
Technical field
The invention belongs to the communications field, relate in particular to a kind of method, control terminal of device map and controlled terminal.
Background technology
Video game is a kind of interactive multimedia that is used for amusement, typically refer to the electronic game of using TV to play as display, recreation can utilize the game paddle that is connected to TV to control usually, and wherein TV is controlled terminal, and game paddle is control terminal.Game paddle can comprise a plurality of buttons and joystick usually, and each button and joystick all can be endowed specific function, and by pressing these buttons or rotating joystick, the operator can control the image on the video screen.
Yet video game needs special game paddle (being control terminal) to use, and does not therefore have versatility.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method of device map, and being intended to solve video game needs special control terminal to use, and does not have the problem of versatility.
First aspect provides a kind of method of device map, and described method comprises:
Given control terminal by the control terminal by remote control protocol RCP data message transmitting apparatus enumeration request message, obtain the device type tabulation that control terminal is supported with request;
Received control terminal by the response message of the device type tabulation that comprises support of RCP data message transmission by the control terminal;
Tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal;
Given control terminal by the control terminal by RCP data message transmitting apparatus data request information;
Received control terminal by the response message of the device data of the equipment generation to be mapped that comprises control terminal of RCP data message transmission by the control terminal;
By the control terminal described device data is offered described virtual unit, offer upper layer application by described virtual unit again.
Second aspect, provide a kind of by control terminal, described by control terminal comprise RCP data message sending module, RCP data message receiver module and processor, wherein,
Described RCP data message sending module is given control terminal by remote control protocol RCP data message transmitting apparatus enumeration request message, obtains the device type tabulation that control terminal is supported with request;
Described RCP data message receiver module receives control terminal by the response message of the device type tabulation that comprises support of RCP data message transmission;
Tabulation generates device type corresponding virtual equipment in the device type tabulation with described support to described processor according to the device type of described support, with device map that control terminal is supported to by the control terminal;
Described RCP data message sending module is given control terminal by RCP data message transmitting apparatus data request information;
Described RCP data message receiver module receives control terminal by the response message of the device data of the equipment generation to be mapped that comprises control terminal of RCP data message transmission;
Described processor offers described virtual unit with described device data, offers upper layer application by described virtual unit again.
The third aspect provides a kind of method of device map, and described method comprises:
Control terminal receives the device enumeration request message that is sent by the RCP data message by the control terminal;
Control terminal obtains the device type tabulation of support;
Control terminal sends to by the control terminal by the response message that the RCP data message will comprise the device type tabulation of described support, with by tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal;
Control terminal receives the device data request message that is sent by the RCP data message by the control terminal;
Control terminal obtains the device data of the equipment generation to be mapped of control terminal;
Control terminal sends to by the control terminal by the response message that the RCP data message will comprise described device data, with by by the control terminal described device data being offered described virtual unit, offers upper layer application by described virtual unit again.
Fourth aspect provides a kind of control terminal, and described control terminal comprises RCP data message sending module, RCP data message receiver module and processor, wherein,
Described RCP data message receiver module receives the device enumeration request message that is sent by the RCP data message by the control terminal;
Described processor obtains the device type tabulation of support;
Described RCP data message sending module sends to by the control terminal by the response message that the RCP data message will comprise the device type tabulation of described support, with by tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal;
Described RCP data message receiver module receives the device data request message that is sent by the RCP data message by the control terminal;
Described processor obtains the device data of the equipment generation to be mapped of control terminal;
Described RCP data message sending module sends to by the control terminal by the response message that the RCP data message will comprise described device data, with by by the control terminal described device data being offered described virtual unit, offer upper layer application by described virtual unit again.
In the present invention, because behind the response message of control terminal reception control terminal by the device type tabulation that comprises described support of RCP data message transmission, tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal; Behind the response message that comprise described device data of control terminal reception control terminal by the transmission of RCP data message, controlled terminal described device data is offered described virtual unit, offer upper layer application by described virtual unit again.Therefore can be with certain device map on the control terminal to being controlled on the terminal, the equipment that will be shone upon by the control terminal uses as own equipment own, therefore the method for this device map has versatility, with irrelevant by the upper layer application of control terminal, and interface is unified, conveniently call, have good autgmentability, adapt to the various equipment that may increase of control terminal.
Description of drawings
Fig. 1 is the flow chart of the method for the device map that provides of the embodiment of the invention one.
Fig. 2 is the flow chart of the method for the device map that provides of the embodiment of the invention two.
Fig. 3 is the functional block diagram of being controlled terminal that the embodiment of the invention three provides.
Fig. 4 is the functional block diagram of the control terminal that provides of the embodiment of the invention four.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
For technical solutions according to the invention are described, describe below by specific embodiment.
The specific embodiment of the invention relates to control terminal and by the control terminal, wherein control terminal has equipment to be mapped, is used for the device data that equipment to be mapped generates is sent to by the control terminal; Be used for the device map to be mapped of control terminal is controlled terminal to quilt by the control terminal.
Embodiment one:
See also Fig. 1, the method for the device map that the embodiment of the invention one provides may further comprise the steps:
S101, control terminal by remote control protocol (Remote Control Protocol, RCP) data message transmitting apparatus enumeration request message is given control terminal, obtains the device type that control terminal supported with request and tabulates;
In the embodiment of the invention one, the device type that control terminal is supported comprises information input equipments such as touch-screen, audio frequency apparatus, vibrator, transducer, GPS.
S102, control terminal receive by behind the device enumeration request message of control terminal by the transmission of RCP data message, and control terminal obtains the device type tabulation of support;
S103, control terminal send to by the control terminal by the response message that the RCP data message will comprise the device type tabulation of described support;
After S104, quilt are controlled the response message of terminal reception control terminal by the device type tabulation that comprises described support of RCP data message transmission, tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal;
S105, quilt are controlled terminal and are given control terminal by RCP data message transmitting apparatus data request information;
After S106, control terminal reception were passed through the device data request message of RCP data message transmission by the control terminal, control terminal obtained the device data of the equipment generation to be mapped of control terminal;
S107, control terminal send to by the control terminal by the response message that the RCP data message will comprise described device data;
S108, quilt are controlled terminal described device data is offered described virtual unit after being controlled the response message that comprises described device data of terminal reception control terminal by the transmission of RCP data message, offer upper layer application by described virtual unit again;
In the embodiment of the invention one, the RCP data message comprises RCP header and RCP data, the RCP header comprises type of message, command type and data length, type of message comprises request message and response message, command type comprises the device enumeration order, device parameter order and device data order, type of message in the described device enumeration request message is request message, command type is the device enumeration order, the type of message of the response message that the described device type that comprises described support is tabulated is response message, command type is the device enumeration order, type of message in the described device data request message is request message, command type is the device parameter order, the described type of message that comprises the response message of described device data is response message, and command type is the device data order.
In the embodiment of the invention one, after the S108, described method can also may further comprise the steps:
After being used virtual unit by the upper layer application of control terminal, controlled the described virtual unit of terminal log-down;
Sent the request message of cancellation equipment to control terminal by the RCP data message by the control terminal;
After control terminal reception quilt was controlled the request message of terminal by the described cancellation equipment of RCP data message transmission, the equipment that cancellation is supported was controlled the terminal mapping to quilt, and controlled the response message that terminal is returned deregistration by the RCP data message to quilt.
In the embodiment of the invention one, because behind the response message of control terminal reception control terminal by the device type tabulation that comprises described support of RCP data message transmission, tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal; Behind the response message that comprise described device data of control terminal reception control terminal by the transmission of RCP data message, controlled terminal described device data is offered described virtual unit, offer upper layer application by described virtual unit again.Therefore can be with certain device map on the control terminal to being controlled on the terminal, the equipment that will be shone upon by the control terminal uses as own equipment own, therefore the method for this device map has versatility, with irrelevant by the upper layer application of control terminal, and interface is unified, conveniently call, have good autgmentability, adapt to the various equipment that may increase of control terminal.
Embodiment two:
See also Fig. 2, the method for the device map that the embodiment of the invention two provides is to increase following steps before the S101 in the method for the device map that the embodiment of the invention one provides:
S201, control terminal pass through the RCP data message to the quilt control terminal transmission broadcast request message of global field net, and described broadcast request message is used for searching suitable quilt and controls terminal;
S202, quilt send response message by the RCP data message to control terminal after being controlled the described broadcast request message of terminal reception control terminal by the transmission of RCP data message;
After S203, control terminal receive the response message of quilt control terminal by the transmission of RCP data message, sent authentication request information by the RCP data message to controlling terminal, the request control connection;
S204, quilt authenticate described authentication request information after being controlled the authentication request information of terminal reception control terminal by the transmission of RCP data message, send response message by the RCP data message to control terminal behind the authentication success.
In the embodiment of the invention two, S203 is specially:
Control terminal receives by behind the response message of control terminal by the transmission of RCP data message, generate the first data X at random, use the first shared key K s that the first data X is encrypted, the unique identifier of encrypting the first data X afterwards and control terminal is sent authentication request information by the RCP data message to quilt control terminal, and the described first shared key K s is control terminal and is controlled the terminal cipher key shared; Type of message in the described authentication request information is request message, and command type is authentication command, the unique identifier that preceding 4 bytes of RCP data division are control terminal, and remaining part is for sharing key.
In the embodiment of the invention two, S204 is specially:
After the authentication request information of control terminal reception control terminal by the transmission of RCP data message, use the first shared key K s that the first data X after encrypting is decrypted and obtain the first data X, use the first shared key K s that the first data X+D is encrypted then, wherein D is control terminal and the fixed value of being controlled the terminal agreement; Simultaneously, generate second data Y at random, use first is shared key K s second data Y is encrypted, and will encrypt second data Y afterwards, encrypt the first data X+D afterwards and be sent response message by the RCP data message to control terminal by the unique identifier of control terminal; Type of message in the described response message is response message, command type is authentication command, preceding 4 bytes of RCP data division are by the unique identifier of control terminal, and back 4 bytes are the first data X+D after encrypting, and last 4 bytes are second data Y after encrypting.
In the embodiment of the invention two, after the S204, described method is further comprising the steps of:
S205, control terminal receive by behind the response message of control terminal by the transmission of RCP data message, use the first shared key K s to second data Y after encrypting and encrypt the first data X+D afterwards and be decrypted, calculate the value of the first data X+, second data Y, and then use the first shared result calculated of key K s to be encrypted;
Result calculated after S206, control terminal will be encrypted sends a request message to being controlled terminal by the RCP data message; Type of message in the described request information is request message, and command type is authentication command, the unique identifier that preceding 4 bytes of RCP data division are control terminal, and back 4 bytes are the value of the first data X+, second data Y after encrypting.
After S207, quilt are controlled the request message of terminal reception control terminal by the transmission of RCP data message, use the first shared data of key K s to be decrypted, verify then whether result of calculation is correct, if result of calculation is correct, then generate second at random and share key K a, and use the first shared key K s that the second shared key K a is encrypted;
S208, control terminal second after will encrypting and share key K a and quilt and control the unique identifier of terminal and send response message by the RCP data message to control terminal, wherein, the described second shared key K a is control terminal and is controlled the key that is used for this dialogue that terminal is shared; Type of message in the described response message is response message, and command type is authentication command, and preceding 4 bytes of RCP data division are by the unique identifier of control terminal, and back 4 bytes are shared key K a for second of encryption.
After S208, the RCP data division of all RCP data messages is all shared key K a through second and is encrypted.
In the embodiment of the invention two, described control terminal in the method for the device map that the embodiment of the invention one provides receives by behind the request message of control terminal by the described cancellation equipment of RCP data message transmission, nullify the equipment support to by the mapping of control terminal, and also increase following steps after the step of the response message that is returned deregistration by the control terminal by the RCP data message:
S209, control terminal are finished after the operation of being controlled terminal, and control terminal withdraws from solicited message by the RCP data message to being sent by the control terminal;
S2010: after control that terminal reception is described and withdrawing from solicited message, clear up corresponding resource, and send response message by the RCP data message to control terminal.
In the embodiment of the invention two, the concrete form of RCP data message can be as shown in table 1:
The RCP header |
The RCP data |
Table 1
Wherein, the RCP header format can be as shown in table 2:
Table 2
The meaning of each field is as follows:
The version of Ver:RCP;
Type: type of message, can be divided into 2 classes, comprising:
A, request message, macrodefinition is: REQUEST;
B, response message, macrodefinition is: REPLY;
Cmd: command type, can be divided into 4 classes, comprising:
A, authentication command
B, device enumeration order
C, device parameter order
D, device data order
ErrorCode: type of error, can be divided into 2 classes, comprising:
A, command execution success, macrodefinition is: OK;
B, command execution mistake, macrodefinition is: ERROR;
Length: data length does not comprise header;
Digest: to whole data message calculation check and.
Wherein, the message of RCP data message is divided into four types:
TYPE_AUTH: message identifying.
When authenticating, first byte of data field will be as AUTH_PHASE, the current authentication phase of carrying out of mark.Subsequent byte is filled with the data in corresponding stage according to the description in mutual stage of authentication.
TYPE_DEV_LIST: device enumeration message.
When carrying out device enumeration, the list of devices that returns wraps in data field and lists each equipment successively.Between per two facility informations by character ' 0 ' separate.
TYPE_DEV_PARA: device parameter message.
When carrying out the device parameter request, the data message that returns is indicated device type in first byte of data segment, in thereafter byte according to appointed equipment Parameters data structure pad device parameter.
TYPE_DEV_DATA: device data message.
When the Returning equipment data, the data message that returns is indicated device type in first byte of data segment, fills according to appointed equipment data data structure in byte thereafter.
The RCP data field:
Data length:
RCP comes the length of specified data field by the Length field of header, simultaneously, can fill the ’ 0 ' character of no more than 8 bytes at the afterbody of each data, is 8 integral multiple to guarantee data length.
2. data check:
After the content of data segment is all ready, will be set to the Digest field of header entirely 0, then whole data message is carried out verification, algorithm and IP verification and consistent.
3. data format:
If no specified otherwise, all data formats all are binary data, directly corresponding every data structure.The syllable sequence of every data structure all adopts the network bytes order.
4. data encryption:
In authentication phase, the data field of RCP is plaintext transmission.But after authentication success, the key that all data interactions of RCP will use authentication to consult out is encrypted, to guarantee safety.
In the embodiment of the invention two, because after authentication success, the RCP data division of all RCP data messages all passes through the second shared key K a that consults out and is encrypted, therefore can prevent network intercepting, Replay Attack, password conjecture, follow the tracks of address attack etc., thereby guarantee control terminal and controlled communication between terminals safety.
Embodiment three:
See also Fig. 3, what the embodiment of the invention three provided is comprised by the control terminal: RCP data message sending module 11, RCP data message receiver module 12 and processor 13, wherein,
RCP data message sending module 11 is given control terminal by remote control protocol RCP data message transmitting apparatus enumeration request message, obtains the device type tabulation that control terminal is supported with request;
RCP data message receiver module 12 receives control terminal by the response message of the device type tabulation that comprises support of RCP data message transmission;
Tabulation generates device type corresponding virtual equipment in the device type tabulation with described support to processor 13 according to the device type of described support, with device map that control terminal is supported to by the control terminal;
RCP data message sending module 11 is given control terminal by RCP data message transmitting apparatus data request information;
RCP data message receiver module 12 receives control terminal by the response message of the device data of the equipment generation to be mapped that comprises control terminal of RCP data message transmission;
Processor 13 offers described virtual unit with described device data, offers upper layer application by described virtual unit again.
In the embodiment of the invention three, described processor 13 offers described virtual unit with described device data, is offered after the upper layer application by described virtual unit again, also comprises:
After being used virtual unit by the upper layer application of control terminal, processor 13 is nullified described virtual unit;
RCP data message sending module 11 is controlled terminal mapping to be nullified the equipment of being supported by control terminal to quilt by the request message of RCP data message to control terminal transmission cancellation equipment.
In the embodiment of the invention three, described RCP data message sending module 11 is given before the control terminal by remote control protocol RCP data message transmitting apparatus enumeration request message, also comprises:
RCP data message receiver module 12 receives control terminal and controls the terminal broadcast request message by what the RCP data message sent for searching suitable quilt;
RCP data message sending module 11 sends response message by the RCP data message to control terminal;
RCP data message receiver module 12 receives the authentication request information that control terminal sends by the RCP data message;
13 pairs of described authentication request information of processor authenticate, and RCP data message sending module 11 sends response message by the RCP data message to control terminal behind the authentication success.
In the embodiment of the invention three, 13 pairs of described authentication request information of described processor authenticate, and RCP data message sending module 11 is specially to control terminal transmission response message by the RCP data message behind the authentication success:
For the authentication request information of the control terminal that receives by the transmission of RCP data message, processor 13 uses the first shared key K s that the first data X after encrypting is decrypted and obtains the first data X, use the first shared key K s that the first data X+D is encrypted then, wherein D is control terminal and the fixed value of being controlled the terminal agreement; Simultaneously, generate second data Y at random, use the first shared key K s that second data Y is encrypted, the unique identifier of the first data X+D after second data Y after RCP data message sending module 11 will be encrypted, the encryption and quilt control terminal sends response message by the RCP data message to control terminal, wherein said authentication request information comprises encrypts the first data X afterwards and the unique identifier of control terminal, and the described first shared key K s is control terminal and is controlled the terminal cipher key shared;
In the embodiment of the invention three, 13 pairs of described authentication request information of described processor authenticate, and RCP data message sending module 11, also comprises after control terminal sends response message by the RCP data message behind the authentication success:
RCP data message receiver module 12 receives the request message that control terminal sends by the RCP data message; Wherein, described request message comprises the result calculated after the encryption, result calculated after the described encryption refers to that control terminal uses the first shared key K s to be decrypted encrypting second data Y afterwards and encrypting the first data X+D afterwards, calculate the value of the first data X+, second data Y, and then use first result calculated of sharing after the result calculated of key K s is encrypted;
Processor 13 uses first are shared the data of key K s and are decrypted, and verify then whether result of calculation is correct, if result of calculation is correct, then generates second at random and share key K a, and use the first shared key K s that the second shared key K a is encrypted;
After RCP data message sending module 11 will be encrypted second shared key K a and sent response message by the RCP data message to control terminal by the unique identifier of control terminal, afterwards, the RCP data division of all RCP data messages is all shared key K a through second and is encrypted, wherein, the described second shared key K a is control terminal and is controlled the key that is used for this dialogue that terminal is shared.
In the embodiment of the invention three, the RCP data message comprises RCP header and RCP data, the RCP header comprises type of message, command type and data length, type of message comprises request message and response message, command type comprises the device enumeration order, device parameter order and device data order, type of message in the described device enumeration request message is request message, command type is the device enumeration order, the type of message of the response message that the described device type that comprises described support is tabulated is response message, command type is the device enumeration order, type of message in the described device data request message is request message, command type is the device parameter order, the described type of message that comprises the response message of described device data is response message, and command type is the device data order.
In the embodiment of the invention three, because behind the response message of the RCP data message receiver module reception control terminal of control terminal by the device type tabulation that comprises described support of RCP data message transmission, tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the processor of control terminal, with device map that control terminal is supported to by the control terminal; Behind the response message that comprise described device data of RCP data message receiver module reception control terminal by the transmission of RCP data message of control terminal, processor by the control terminal offers described virtual unit with described device data, offers upper layer application by described virtual unit again.Therefore can be with certain device map on the control terminal to being controlled on the terminal, the equipment that will be shone upon by the control terminal uses as own equipment own, therefore the method for this device map has versatility, with irrelevant by the upper layer application of control terminal, and interface is unified, conveniently call, have good autgmentability, adapt to the various equipment that may increase of control terminal.And because after authentication success, the RCP data division of all RCP data messages all passes through the second shared key K a that consults out and is encrypted, therefore can prevent network intercepting, Replay Attack, password conjecture, follow the tracks of address attack etc., thereby guarantee control terminal and controlled communication between terminals safety.
Embodiment four:
See also Fig. 4, the control terminal that the embodiment of the invention four provides comprises: RCP data message sending module 21, RCP data message receiver module 22 and processor 23, wherein,
RCP data message receiver module 22 receives the device enumeration request message that is sent by the RCP data message by the control terminal;
Processor 23 obtains the device type tabulation of support;
RCP data message sending module 21 sends to by the control terminal by the response message that the RCP data message will comprise the device type tabulation of described support, with by tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal;
RCP data message receiver module 22 receives the device data request message that is sent by the RCP data message by the control terminal;
Processor 23 obtains the device data of the equipment generation to be mapped of control terminal;
RCP data message sending module 21 sends to by the control terminal by the response message that the RCP data message will comprise described device data, with by by the control terminal described device data being offered described virtual unit, offer upper layer application by described virtual unit again.
In the embodiment of the invention four, described RCP data message sending module 21 sends to by the control terminal by the response message that the RCP data message will comprise described device data, by being controlled terminal described device data is offered described virtual unit, offered after the upper layer application by described virtual unit again, also comprise:
RCP data message receiver module 22 receives by the request message of control terminal by the cancellation equipment of RCP data message transmission;
Processor 23 is nullified the equipment of supporting and is shone upon to controlling terminal;
RCP data message sending module 21 is returned the response message of deregistration by the RCP data message to controlling terminal.
In the embodiment of the invention four, described RCP data message receiver module 22 receives by before the device enumeration request message of control terminal by the transmission of RCP data message, also comprises:
RCP data message sending module 21 passes through the RCP data message to the quilt control terminal transmission broadcast request message of global field net, and described broadcast request message is used for searching suitable quilt and controls terminal;
RCP data message receiver module 22 receives the response message that is sent by the RCP data message by the control terminal;
RCP data message sending module 21 is sent authentication request information by the RCP data message to controlling terminal, the request control connection, with by by the control terminal described authentication request information being authenticated, send response message by the RCP data message to control terminal behind the authentication success.
In the embodiment of the invention four, to being sent authentication request information by the control terminal, the request control connection is specially described RCP data message sending module 21 by the RCP data message:
Processor 23 generates the first data X at random, use the first shared key K s that the first data X is encrypted, the unique identifier that RCP data message sending module 21 will be encrypted the first data X afterwards and control terminal sends authentication request information by the RCP data message to quilt control terminal, and the described first shared key K s is control terminal and is controlled the terminal cipher key shared.
In the embodiment of the invention four, describedly by the control terminal described authentication request information is authenticated, behind the authentication success by the RCP data message after control terminal sends response message, also comprise:
RCP data message receiver module 22 receives by behind the response message of control terminal by the transmission of RCP data message, processor 23 uses the first shared key K s to second data Y after encrypting and encrypts the first data X+D afterwards and is decrypted, calculate the value of the first data X+, second data Y, and then use the first shared result calculated of key K s to be encrypted;
Result calculated after RCP data message sending module 21 will be encrypted sends a request message to being controlled terminal by the RCP data message, to share key K a by being generated second by the control terminal, wherein, the described second shared key K a is control terminal and is controlled the key that is used for this dialogue that terminal is shared.
In the embodiment of the invention four, the RCP data message comprises RCP header and RCP data, the RCP header comprises type of message, command type and data length, type of message comprises request message and response message, command type comprises the device enumeration order, device parameter order and device data order, type of message in the described device enumeration request message is request message, command type is the device enumeration order, the type of message of the response message that the described device type that comprises described support is tabulated is response message, command type is the device enumeration order, type of message in the described device data request message is request message, command type is the device parameter order, the described type of message that comprises the response message of described device data is response message, and command type is the device data order.
In the embodiment of the invention four, because the RCP data message sending module of control terminal sends to by the control terminal by the response message that the RCP data message will comprise the device type tabulation of described support, with by tabulation generates device type corresponding virtual equipment in the device type tabulation with described support according to the device type of described support by the control terminal, with device map that control terminal is supported to by the control terminal; The RCP data message sending module of control terminal sends to by the control terminal by the response message that the RCP data message will comprise described device data, with by by the control terminal described device data being offered described virtual unit, offer upper layer application by described virtual unit again.Therefore can be with certain device map on the control terminal to being controlled on the terminal, the equipment that will be shone upon by the control terminal uses as own equipment own, therefore the method for this device map has versatility, with irrelevant by the upper layer application of control terminal, and interface is unified, conveniently call, have good autgmentability, adapt to the various equipment that may increase of control terminal.And because after authentication success, the RCP data division of all RCP data messages all passes through the second shared key K a that consults out and is encrypted, therefore can prevent network intercepting, Replay Attack, password conjecture, follow the tracks of address attack etc., thereby guarantee control terminal and controlled communication between terminals safety.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.