CN103248562A - Device mapping method,control terminal and controlled terminal - Google Patents

Device mapping method,control terminal and controlled terminal Download PDF

Info

Publication number
CN103248562A
CN103248562A CN2013101522555A CN201310152255A CN103248562A CN 103248562 A CN103248562 A CN 103248562A CN 2013101522555 A CN2013101522555 A CN 2013101522555A CN 201310152255 A CN201310152255 A CN 201310152255A CN 103248562 A CN103248562 A CN 103248562A
Authority
CN
China
Prior art keywords
control terminal
message
data
rcp
data message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101522555A
Other languages
Chinese (zh)
Other versions
CN103248562B (en
Inventor
文羽中
刘长冬
陈祥春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN TP-LINK TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN TP-LINK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN TP-LINK TECHNOLOGY Co Ltd filed Critical SHENZHEN TP-LINK TECHNOLOGY Co Ltd
Priority to CN201310152255.5A priority Critical patent/CN103248562B/en
Publication of CN103248562A publication Critical patent/CN103248562A/en
Application granted granted Critical
Publication of CN103248562B publication Critical patent/CN103248562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of communication, and provides a device mapping method, a control terminal and a controlled terminal. The method comprises the following steps: the controlled terminal sends a device enumeration request message to the control terminal through an RCP (Remote Control Protocol) data message; the response message, including a supportive device type list, sent by the control terminal, is received by the controlled terminal; according to the supportive device type list, the controlled terminal generates a virtual device corresponding to a device type in the supportive device type list; a device data request message is sent by the controlled terminal through the RCP data message; the response message, sent by the control terminal and including device data generated by a to-be-mapped device of the control terminal, is received by the controlled terminal; and the controlled terminal provides the device data for the virtual device and provides for the upper application via the virtual device. According to the method, the control terminal and the controlled terminal, a certain device on the control terminal can be mapped on the controlled terminal, and the mapped device serves as the control terminal's own device for use, so the method has the advantage of universality.

Description

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:
Figure BDA00003116312500091
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.

Claims (10)

1. the method for a device map is characterized in that, 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.
2. the method for claim 1 is characterized in that, describedly by the control terminal described device data is offered described virtual unit, is offered after the upper layer application by described virtual unit again, and described method also comprises:
After being used virtual unit by the upper layer application of control terminal, controlled the described virtual unit of terminal log-down;
Controlled terminal and passed through the RCP data message to the request message of control terminal transmission cancellation equipment, shone upon to being controlled terminal to be nullified the equipment of being supported by control terminal.
3. the method for claim 1 is characterized in that, the described terminal of being controlled is passed through remote control protocol RCP data message transmitting apparatus enumeration request message to before the control terminal, and described method also comprises:
Quilt is controlled terminal reception control terminal and is controlled the terminal broadcast request message by what the RCP data message sent for searching suitable quilt;
Sent response message by the RCP data message to control terminal by the control terminal;
Received the authentication request information that control terminal sends by the RCP data message by the control terminal;
By the control terminal described authentication request information is authenticated, send response message by the RCP data message to control terminal behind the authentication success.
4. method as claimed in claim 3 is characterized in that, describedly by the control terminal described authentication request information is authenticated, and sends response message by the RCP data message to control terminal behind the authentication success and is specially:
For the authentication request information of the control terminal that receives by the transmission of RCP data message, used the first shared key K s that the first data X after encrypting is decrypted by the control terminal 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 the first shared key K s that second data Y is encrypted, to 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, 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;
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, described method also comprises:
Received the request message that control terminal sends by the RCP data message by the control terminal; 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;
Controlled the terminal use first shared data of key K s and be decrypted, verified 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;
Second unique identifier of sharing key K a and quilt control terminal that to be encrypted afterwards by the control terminal sends response message by the RCP data message to 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.
One kind by control terminal, it is characterized in that, 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.
6. the method for a device map is characterized in that, 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.
7. method as claimed in claim 6, it is characterized in that, described control terminal 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, described method also comprises again:
Control terminal receives by the request message of control terminal by the cancellation equipment of RCP data message transmission;
Control terminal is nullified the equipment of supporting and is shone upon to controlling terminal;
Control terminal is returned the response message of deregistration by the RCP data message to controlling terminal.
8. method as claimed in claim 6 is characterized in that, described control terminal receives by before the device enumeration request message of control terminal by the transmission of RCP data message, and described method also comprises:
Control terminal 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;
Control terminal receives the response message that is sent by the RCP data message by the control terminal;
To being sent authentication request information by the control terminal, the request control connection with by by the control terminal described authentication request information being authenticated, sends response message by the RCP data message to control terminal behind the authentication success to control terminal by the RCP data message.
9. method as claimed in claim 8 is characterized in that, to being sent authentication request information by the control terminal, the request control connection is specially described control terminal by the RCP data message:
Control terminal generates 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;
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, described method also comprises:
Control terminal receives 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 control terminal 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.
10. a control terminal is characterized in that, 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.
CN201310152255.5A 2013-04-27 2013-04-27 A kind of method of device map, control terminal and controlled terminal Active CN103248562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310152255.5A CN103248562B (en) 2013-04-27 2013-04-27 A kind of method of device map, control terminal and controlled terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310152255.5A CN103248562B (en) 2013-04-27 2013-04-27 A kind of method of device map, control terminal and controlled terminal

Publications (2)

Publication Number Publication Date
CN103248562A true CN103248562A (en) 2013-08-14
CN103248562B CN103248562B (en) 2016-08-17

Family

ID=48927791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310152255.5A Active CN103248562B (en) 2013-04-27 2013-04-27 A kind of method of device map, control terminal and controlled terminal

Country Status (1)

Country Link
CN (1) CN103248562B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741464A (en) * 2020-07-22 2020-10-02 深圳Tcl新技术有限公司 Device connection method, master control device, controlled device, control system and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674110A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Method for implementing desktop sharing and control of mobile terminals and mobile terminal
US20120302225A1 (en) * 2006-01-30 2012-11-29 Apple Inc. Remote Control of Electronic Devices
CN102880416A (en) * 2012-08-31 2013-01-16 广东欧珀移动通信有限公司 Remote control unlocking method for mobile equipment in remote control protocol (RCP) communication process
CN102890609A (en) * 2012-09-12 2013-01-23 广东欧珀移动通信有限公司 Method for selecting web pages by using mobile terminal in remote control protocol (RCP) communication process
CN103024011A (en) * 2012-12-03 2013-04-03 广东欧珀移动通信有限公司 Method and system for controlling mobile high-definition link (MHL) playing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120302225A1 (en) * 2006-01-30 2012-11-29 Apple Inc. Remote Control of Electronic Devices
CN101674110A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Method for implementing desktop sharing and control of mobile terminals and mobile terminal
CN102880416A (en) * 2012-08-31 2013-01-16 广东欧珀移动通信有限公司 Remote control unlocking method for mobile equipment in remote control protocol (RCP) communication process
CN102890609A (en) * 2012-09-12 2013-01-23 广东欧珀移动通信有限公司 Method for selecting web pages by using mobile terminal in remote control protocol (RCP) communication process
CN103024011A (en) * 2012-12-03 2013-04-03 广东欧珀移动通信有限公司 Method and system for controlling mobile high-definition link (MHL) playing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741464A (en) * 2020-07-22 2020-10-02 深圳Tcl新技术有限公司 Device connection method, master control device, controlled device, control system and medium

Also Published As

Publication number Publication date
CN103248562B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
EP3605989B1 (en) Information sending method, information receiving method, apparatus, and system
CN109600223B (en) Verification method, activation method, device, equipment and storage medium
CN110266480B (en) Data transmission method, device and storage medium
US20100332845A1 (en) Information processing server, information processing apparatus, and information processing method
US8984295B2 (en) Secure access to electronic devices
US20070254630A1 (en) Methods, devices and modules for secure remote access to home networks
CN104821937A (en) Token acquisition method, device and system
CN106603226B (en) Message transmission encryption and authentication method, sender device and receiver device
CN105682253A (en) Method and equipment for communication establishment, terminal and computer readable storage medium
EP3132342A1 (en) Service authorization using auxiliary device
CN107196917B (en) Service response method and middleware thereof
CN104094267A (en) Method, device, and system for securely sharing media content from a source device
CN112533202B (en) Identity authentication method and device
CN111723889B (en) Code scanning login method, graphic code display method, device, equipment and storage medium
US20170171496A1 (en) Method and Electronic Device for Screen Projection
JP2006065660A (en) Terminal equipment, information delivery server, and information delivery method
KR101867669B1 (en) Distributed white list for security renewability
CN106375990A (en) Encryption and decryption system and encryption and decryption method for private data of mobile phone
CN114553590A (en) Data transmission method and related equipment
CN103281354B (en) A kind of method of remote multi-media control, control terminal and by control terminal
EP2658297A1 (en) Method and system for accessing a service
WO2022041151A1 (en) Device verification method, device, and cloud
CN104462877A (en) Digital resource acquisition method and system under copyright protection
CN109981558B (en) Authentication method, equipment and system of intelligent household equipment
EP2811769A1 (en) Method and system for accessing a service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Shennalu Industrial Science and Technology Park building 24, South 1 layer, 3-5 layer, 1-4 layer 28 North Building

Applicant after: TP-LINK Technologies Co., Ltd.

Address before: 2, 1-6 floor, South District, Pingshan Industrial Zone, Taoyuan street, Nanshan District, Guangdong, Shenzhen 518055, China

Applicant before: Shenzhen TP-Link Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN TP-LINK TECHNOLOGY CO., LTD. TO: TP-LINK TECHNOLOGIES CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant