CN103680122B - The self-defined control method and system of remote control equipment - Google Patents
The self-defined control method and system of remote control equipment Download PDFInfo
- Publication number
- CN103680122B CN103680122B CN201310752121.7A CN201310752121A CN103680122B CN 103680122 B CN103680122 B CN 103680122B CN 201310752121 A CN201310752121 A CN 201310752121A CN 103680122 B CN103680122 B CN 103680122B
- Authority
- CN
- China
- Prior art keywords
- code
- control
- user
- user code
- controlled device
- 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.)
- Active
Links
Abstract
The invention discloses a kind of self-defined control method of remote control equipment, the method comprising the steps of:Control device generates the corresponding control data of control instruction received when receiving the control instruction that user sends, and the control data includes command code, user code, guidance code and address code;When receiving the control data that control device is sent, controlled device parses the control data to obtain corresponding user code and command code;Obtained user code is compared the controlled device with prestored user code, to verify whether obtained user code is consistent with prestored user code;The controlled device responds obtained command code when obtained user code is consistent with prestored user code.The present invention also provides a kind of self-defined control system of remote control equipment, it is to avoid the problem of control between the distinct device in the range of the same space produces interference, realizes that control device accurately controls corresponding controlled device.
Description
Technical field
The present invention relates to equipment controlled in wireless field, it is related specifically to the self-defined control method of remote control equipment and is
System.
Background technology
With economic development, the raising of people's living standard, the electric equipment such as air-conditioning, TV, DVD and set top box has compared
Relatively popularize, they are used as controlled device(For example, air-conditioning)Receiving control apparatus(For example, air-conditioning remote control)The control life sent
Order, and the control command received is responded, to complete operation corresponding with control command, between control device and controlled device
Interaction is mainly realized by infrared mode.
At present, there are multiple controlled devices simultaneously among same family, and in the presence of many in same spatial dimension
Individual controlled device(For example, TV and air-conditioning appear in same room with them)Phenomenon it is commonplace.Due to they employ it is red
The outer interactive mode as between controlled device and control device, the remote control of air-conditioning can control electricity in the spatial dimension
Depending on, or the remote control of TV can control air-conditioning so that the control production between the different controlled devices in the range of the same space
Raw interference, it is impossible to realize that control device accurately controls corresponding controlled device(For example, air-conditioning remote control accurately controls sky
Adjust).
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
The main object of the present invention is the self-defined control method and system for providing remote control equipment, it is intended to realize control device
Accurately control corresponding controlled device.
To achieve these goals, the present invention proposes a kind of self-defined control method of remote control equipment, and this method includes step
Suddenly:
Control device generates the corresponding control number of control instruction received when receiving the control instruction that user sends
According to the control data includes command code, user code, guidance code and address code;
When receiving the control data that control device is sent, it is corresponding to obtain that controlled device parses the control data
User code and command code;
Obtained user code and prestored user code are compared the controlled device, with verify obtained user code whether with
Prestored user code is consistent;
The controlled device responds obtained command code when obtained user code is consistent with prestored user code.
Preferably, it is described to include the step of generate the control instruction that receives corresponding control data:
Control device calls vUserCodeConvter (uint input) function to generate according to the control instruction received
Corresponding control data, the control data includes command code, user code, guidance code and address code, wherein, the user code
Code value scope is 0X00-0X0F.
Preferably, when the control device is receiving the control instruction that user sends, generate the control received and refer to
Corresponding control data is made, before the step of control data includes command code and user code, this method also includes:
Control device generates the control instruction received corresponding with logarithm when receiving the matched order that user sends
According to the paired data includes user code to be verified;
Controlled device detecting and the pairing request of receiving control apparatus, the pairing request include user code to be verified;
The controlled device is when receiving the pairing request, into pairing mode, and analyzes the user to be verified
Whether code is in the range of default code value;
The controlled device preserves the user to be verified when the user code to be verified is in the range of default code value
Code is as pairing code, to complete the pairing of the controlled device and control device.
Preferably, the described controlled device analyze the user code to be verified whether the step in the range of default code value
After rapid, this method also includes:
The controlled device points out user's input effective when the user code to be verified is not in the range of default code value
User code, or exit pairing mode.
Preferably, described preservation user code to be verified is as pairing code, to complete the controlled device and control device
Pairing the step of include:
The controlled device is when the user code to be verified is in the range of default code value, the use for pointing out user to be verified
Family code is proved to be successful, and sends the signal for confirming pairing;
The controlled device preserves the user code to be verified as pairing when confirming the signal of pairing described in user response
Code, to complete the pairing of the controlled device and control device.
Present invention further propose that a kind of self-defined control system of remote control equipment, the system includes control device and controlled
Equipment, wherein, the controlled device includes:Processing module, analysis module and respond module,
The control device generates the corresponding control of control instruction received when receiving the control instruction that user sends
Data processed, the control data includes command code, user code, guidance code and address code;
The processing module, for when receiving the control data that control device is sent, parse the control data with
Obtain corresponding user code and command code;
The analysis module, for obtained user code to be compared with prestored user code, to verify obtained user
Whether code is consistent with prestored user code;
The respond module, for when obtained user code is consistent with prestored user code, and responds obtained command code.
Preferably, the control device, for according to the control instruction received, calling vUserCodeConvter
(uint input) function generates corresponding control data, and the control data includes command code, user code, guidance code and address
Code, wherein, the code value scope of the user code is 0X00-0X0F.
Preferably, the controlled device also includes:Sending and receiving module and matching module,
The control device, for when receiving the matched order that user sends, generating the control instruction pair received
The paired data answered, the paired data includes user code to be verified;
The sending and receiving module, the pairing request for detecting and receiving control device to be paired, the pairing request includes
User code to be verified;
The analysis module, for when receiving the pairing request, entering pairing mode by processing module, and divide
The user code to be verified is analysed whether in the range of default code value;
The matching module, for when the user code to be verified is in the range of default code value, preserving this to be tested
The user code of card is as pairing code, to complete the pairing of the controlled device and control device.
Preferably, the controlled device also includes:
Prompting module, for when the user code to be verified is not in the range of default code value, pointing out user input
Effective user code, or pairing mode is exited by processing module.
Preferably, the prompting module, is additionally operable to, when the user code to be verified is in the range of default code value, carry
Show that user's user code to be verified is proved to be successful, and the signal for confirming pairing is sent by sending and receiving module;
The matching module, for when confirming the signal of pairing described in user response, preserving the user code to be verified
As pairing code, to complete the pairing of the controlled device and control device
Compared with the prior art, control device of the present invention generates what is received when receiving the control instruction that user sends
The corresponding control data of control instruction, the control data includes command code, user code, guidance code and address code;When receiving
During the control data that control device is sent, controlled device parses the control data to obtain corresponding user code and command code;
Obtained user code and prestored user code are compared the controlled device, with verify obtained user code whether with prestored user
Code is consistent;The controlled device responds obtained command code when obtained user code is consistent with prestored user code.Avoid same
The problem of control between distinct device in spatial dimension produces interference, realizes that control device is accurately controlled corresponding controlled
Equipment.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the self-defined control method first embodiment of remote control equipment of the present invention;
Fig. 2 is the schematic flow sheet of the self-defined control method second embodiment of remote control equipment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of the self-defined control system first embodiment of remote control equipment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of the self-defined control system second embodiment of remote control equipment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in figure 1, the schematic flow sheet of the self-defined control method first embodiment for remote control equipment of the present invention.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all depart from the scope covered in following technical scheme around the embodiment that inventive concept is built:
Control device generates the corresponding control number of control instruction received when receiving the control instruction that user sends
According to the control data includes command code, user code, guidance code and address code;When receiving the control that control device is sent
During data, controlled device parses the control data to obtain corresponding user code and command code;The controlled device is by obtained use
Family code is compared with prestored user code, to verify whether obtained user code is consistent with prestored user code;The controlled device exists
When obtained user code is consistent with prestored user code, obtained command code is responded.
The step of control device is self-defined to control controlled device is done step-by-step the following is the present embodiment:
Step S11, control device generates the control instruction correspondence received when receiving the control instruction that user sends
Control data, the control data include command code, user code, guidance code and address code;
Step S12, when receiving the control data that control device is sent, controlled device parses the control data to obtain
To corresponding user code and command code.
In the present embodiment, the controlled device is preferably air-conditioning, and the control device is preferably air-conditioning remote control, at this
In invention other embodiment, the controlled device can also be TV, sound equipment etc., and the control device can also be TV remote
Device, remote controller of acoustic device etc..
The signaling form of remote control has the form of several fixations, and (NEC, RCA are only one kind to agreement by such as NEC, RCA
Address) etc..
In the present embodiment, air-conditioning remote control adds to recognize control in the existing remote control data to air-conditioning
The user code of equipment identities, the user code uses 4Bits(4 bits), the code value scope of the user code is 0X00-
0X0F, i.e. 16 kinds of different user codes for having 0000-1111 are set for user.It is user code as user have selected 0X1, then
The corresponding agreement code of overall control data is 0x1**, such as agreement code is 0x15C, i.e., 000101011100.Such as user's selection
User code is 0x4, then the corresponding agreement code of new overall control data is changed into 0x41**, and citing is ibid changed into 0x415C, i.e.,
Agreement code is 0100000101011100.Certain user is also an option that with 12 i.e. 0xC that as pairing code agreement code will be
0xC15C, i.e., 1100000101011100, user also has other more to select.After increase 4Bits user codes, air-conditioning(Quilt
Control equipment)The user's code sending method that can have 0~15 totally 16 kinds of different users code the controlled device of the same space is subject to
Distinguish, reach mutually isolated between controlled device.
Air-conditioning remote control generation control data process be:Air-conditioning remote control is receiving the control instruction that user sends
When, according to the control instruction received, call vUserCodeConvter (uint input) function to generate corresponding control number
According to, the control data includes command code, user code, guidance code and address code, wherein, the code value scope of the user code is
0X00-0X0F.User sends the mode of control instruction to be realized by the button on air-conditioning remote control, and air-conditioning remote control passes through
The keystroke sequence of user recognizes that user needs to set the user code of which kind of mode, for example, user's input keystroke sequence is 1 to 2,
The button for then illustrating the user code that user wants is 12, and corresponding user code is 0xC, and air-conditioning remote control is input to generation from user
The process of corresponding user code or control data is by calling vUserCodeConvter (uint input) functions by user
Input is converted to agreement code to realize generation control data.
The signaling agreement of air-conditioning remote control is by taking RCA signaling agreements as an example, and whole signaling agreement can be divided into two parts:
A, modulating part:
RCA agreements represent logic ' 0 ' and ' 1 ' using the time width between pulse.Time between the pulse of logic ' 1 '
For 2.5ms, the time between logic ' 0 ' is 1.5ms.Pulse itself is that frequency is 56KHz, and time span is 0.5ms;
B, control data part
Control data is made up of user code, guidance code, address code and the part of command code four:User code 4Bits(4 two are entered
Number processed);Guidance code 4ms broad pulse, 4ms low level;Address code 4Bits(4 bits);Command code 8Bits(8
Binary number).
When air-conditioning remote control sends control instruction to air-conditioning, air-conditioning receives the control instruction correspondence that air-conditioning remote control is sent
Control data, and control data is parsed according to uGetUserCode (uchar*protol) function, to obtain corresponding life
Make code and user code;Equally other remote controls are received in air-conditioning remote control(TV remote controller or remote controller of acoustic device etc.)Control
During instruction, air-conditioning receives the corresponding control data of control instruction of other remote controls transmission, and according to uGetUserCode
(uchar*protol) function parses control data, to obtain corresponding command code and user code.
Obtained user code is compared step S13, the controlled device with prestored user code, to verify obtained user
Whether code is consistent with prestored user code;
Step S14, the controlled device responds obtained command code when obtained user code is consistent with prestored user code.
In the present embodiment, the air-conditioning prestores the user code of the remote control matched with it, the air-conditioning receive it is distant
During the corresponding control data of the control instruction that sends of control device, it will be controlled according to uGetUserCode (uchar*protol) function
Data are parsed, to obtain corresponding command code and user code, and the user code that parsing is obtained is compared with prestored user code,
To verify whether the user code that parsing is obtained is consistent with the user code prestored, i.e. whether the control data for analyzing the reception is control
The control data of the air-conditioning is made, air-conditioning judges to receive by fgTestUserCodeMactch (uint usercode) functions
User code it is whether consistent with prestored user code.When the user code that parsing is obtained is consistent with prestored user code, i.e. the control of reception
Data processed is control the control data of the air-conditioning, and the air-conditioning responds obtained command code, with according to the completion pair of the command code of reception
The operation answered, or, variation of parameter, the air-conditioning is by calling vTriggerInputEvent (uchar*cmdcode) function
Trigger control event of the air-conditioning remote control to the air-conditioning;In the user code that parsing is obtained and inconsistent prestored user code, i.e. connect
The control data of the control data of receipts not for the control air-conditioning, for example, it may be the control data or the control number of sound equipment of TV
According to etc., the command code that the air-conditioning refusal respond is obtained.The command code can be control air-conditioning open, close, heighten air-conditioner temperature,
Adjust air-conditioning humidity etc.;Opened, closed according to the command code of reception completion air-conditioning, heightening air-conditioner temperature, adjustment air-conditioning humidity etc.
Operation or variation of parameter.
In other embodiments of the present invention, in order to be able to preferably by the control zone of the controlled device in the range of the same space
Point, when discovery has the user code of different controlled devices identical, user sends the instruction of user's frameshift alteration, and user code is entered
Row change, is changed to different user codes, by the same space by the user code of the different controlled devices with same subscriber code
In the range of controlled device control distinguish, realization corresponding controlled device is accurately controlled by control device.
The present embodiment control device generates the control instruction correspondence received when receiving the control instruction that user sends
Control data, the control data include command code, user code, guidance code and address code;Sent when receiving control device
During the control data come, controlled device parses the control data to obtain corresponding user code and command code;The controlled device will
Obtained user code is compared with prestored user code, to verify whether obtained user code is consistent with prestored user code;The quilt
Control equipment responds obtained command code when obtained user code is consistent with prestored user code.Avoid in the range of the same space
Distinct device between control produce interference the problem of, realize that control device accurately controls corresponding controlled device.
As shown in Fig. 2 the schematic flow sheet of the self-defined control method second embodiment for remote control equipment of the present invention.
Based on above-mentioned first embodiment, before step S11, this method also includes:
Step S15, control device generates the control instruction correspondence received when receiving the matched order that user sends
Paired data, the paired data include user code to be verified;
Step S16, controlled device is detected and receives the pairing request of control device to be paired, and the pairing request includes treating
The user code of checking;
Step S17, the controlled device is when receiving the pairing request, into pairing mode, and analyzes described to be tested
Whether the user code of card is in the range of default code value;
Step S18, the controlled device preserves this to be tested when the user code to be verified is in the range of default code value
The user code of card is as pairing code, to complete the pairing of the controlled device and control device.
In the present embodiment, control device is receiving the matched order that user sends(Control device is with air-conditioning remote control
Exemplified by, the mode for sending matched order can be when button 5s or 10s of user's long-press air-conditioning remote control etc. are more than the time
Triggering or triggered by air-conditioning by 2 of remote control or multiple Macintosh)When, generate the pairing received and refer to
Corresponding paired data is made, the paired data includes user code to be verified, the generating mode and control data of paired data
Generating mode it is identical;When paired data is generated, pairing request is sent to the controlled device, the pairing request includes
The pairing request of user code to be verified, controlled device detecting and receiving control apparatus, the controlled device is set receiving control
During the pairing request that preparation goes out, into pairing mode, and the user code to be verified analyzed the pairing request of reception and included is
It is no in the range of default code value, the controlled device when the user code to be verified is in the range of default code value, point out
User's user code to be verified is proved to be successful, and sends the signal for confirming pairing;The controlled device is in the user to be verified
When code is not in the range of default code value, user is pointed out to input effective user code, or exit pairing mode, controlled device
When can also be that prompting user inputs the validated user code for not receiving user's input in effective user code preset time, exit
Pairing mode, and point out user pairing failure, between the time that the preset time is set in advance for any user such as 5s or 8s
Every validated user code is the user code in the range of default code value.Controlled device is in the pairing confirmed described in user response
During signal, the user code to be verified is preserved as pairing code, to complete the pairing of the controlled device and control device, i.e. should
User code is used as the identifying code that identification is controlled between the control device and controlled device of the successful matching;Controlled device also can be with
It is when not receiving the response for the signal that user matches to the confirmation sent in preset time, to exit pairing mode, it is described pre-
If the time is the time interval that any user such as 5s or 8s is set in advance.Code value in the preset range can be 1010,
The bit binary value of 1100 or 1001 grade 4, it is 0X00-0X0F to preset code value scope.
Each pairing is distinguished by during the pairing of control device and controlled device, adding user code in this implementation
Successful control device and controlled device, so that the control device in the range of the same space is accurate by the checking of user code
Control corresponding controlled device, it is to avoid what is controlled in the range of the same space between each control device and each controlled device is dry
Disturb, improve Consumer's Experience.
As shown in figure 3, the high-level schematic functional block diagram of the self-defined control system first embodiment for remote control equipment of the present invention.
The system includes control device 10 and controlled device 20, wherein, the controlled device 20 includes:Processing module 201, analysis module
202 and respond module 203,
The control device generates the corresponding control of control instruction received when receiving the control instruction that user sends
Data processed, the control data includes command code, user code, guidance code and address code;
The processing module 201, for when receiving the control data that control device is sent, parsing the control data
To obtain corresponding user code and command code
In the present embodiment, the controlled device is preferably air-conditioning, and the control device is preferably air-conditioning remote control, at this
In invention other embodiment, the controlled device can also be TV, sound equipment etc., and the control device can also be TV remote
Device, remote controller of acoustic device etc..
The signaling form of remote control has the form of several fixations, and (NEC, RCA are only one kind to agreement by such as NEC, RCA
Address) etc..
In the present embodiment, air-conditioning remote control adds to recognize control in the existing remote control data to air-conditioning
The user code of equipment identities, the user code uses 4Bits(4 bits), the code value scope of the user code is 0X00-
0X0F, i.e. 16 kinds of different user codes for having 0000-1111 are set for user.It is user code as user have selected 0X1, then
The corresponding agreement code of overall control data is 0x1**, such as agreement code is 0x15C, i.e., 000101011100.Such as user's selection
User code is 0x4, then the corresponding agreement code of new overall control data is changed into 0x41**, and citing is ibid changed into 0x415C, i.e.,
Agreement code is 0100000101011100.Certain user is also an option that with 12 i.e. 0xC that as pairing code agreement code will be
0xC15C, i.e., 1100000101011100, user also has other more to select.After increase 4Bits user codes, air-conditioning(Quilt
Control equipment)The user's code sending method that can have 0~15 totally 16 kinds of different users code the controlled device of the same space is subject to
Distinguish, reach mutually isolated between controlled device.
Air-conditioning remote control generation control data process be:Air-conditioning remote control is receiving the control instruction that user sends
When, according to the control instruction received, call vUserCodeConvter (uint input) function to generate corresponding control number
According to, the control data includes command code, user code, guidance code and address code, wherein, the code value scope of the user code is
0X00-0X0F.User sends the mode of control instruction to be realized by the button on air-conditioning remote control, and air-conditioning remote control passes through
The keystroke sequence of user recognizes that user needs to set the user code of which kind of mode, for example, user's input keystroke sequence is 1 to 2,
The button for then illustrating the user code that user wants is 12, and corresponding user code is 0xC, and air-conditioning remote control is input to generation from user
The process of corresponding user code or control data is by calling vUserCodeConvter (uint input) functions by user
Input is converted to agreement code to realize generation control data.
The signaling agreement of air-conditioning remote control is by taking RCA signaling agreements as an example, and whole signaling agreement can be divided into two parts:
A, modulating part:
RCA agreements represent logic ' 0 ' and ' 1 ' using the time width between pulse.Time between the pulse of logic ' 1 '
For 2.5ms, the time between logic ' 0 ' is 1.5ms.Pulse itself is that frequency is 56KHz, and time span is 0.5ms;
B, control data part
Control data is made up of user code, guidance code, address code and the part of command code four:User code 4Bits(4 two are entered
Number processed);Guidance code 4ms broad pulse, 4ms low level;Address code 4Bits(4 bits);Command code 8Bits(8
Binary number).
When air-conditioning remote control sends control instruction to air-conditioning, air-conditioning receives the control instruction correspondence that air-conditioning remote control is sent
Control data, and control data is parsed according to uGetUserCode (uchar*protol) function, to obtain corresponding life
Make code and user code;Equally other remote controls are received in air-conditioning remote control(TV remote controller or remote controller of acoustic device etc.)Control
During instruction, air-conditioning receives the corresponding control data of control instruction of other remote controls transmission, and according to uGetUserCode
(uchar*protol) function parses control data, to obtain corresponding command code and user code.
The analysis module 202, for obtained user code to be compared with prestored user code, to verify obtained use
Whether family code is consistent with prestored user code;
The respond module 203, for when obtained user code is consistent with prestored user code, and responds obtained order
Code.
In the present embodiment, the air-conditioning prestores the user code of the remote control matched with it, the air-conditioning receive it is distant
During the corresponding control data of the control instruction that sends of control device, it will be controlled according to uGetUserCode (uchar*protol) function
Data are parsed, to obtain corresponding command code and user code, and the user code that parsing is obtained is compared with prestored user code,
To verify whether the user code that parsing is obtained is consistent with the user code prestored, i.e. whether the control data for analyzing the reception is control
The control data of the air-conditioning is made, air-conditioning judges to receive by fgTestUserCodeMactch (uint usercode) functions
User code it is whether consistent with prestored user code.When the user code that parsing is obtained is consistent with prestored user code, i.e. the control of reception
Data processed is control the control data of the air-conditioning, and the air-conditioning responds obtained command code, with according to the completion pair of the command code of reception
The operation answered, or, variation of parameter, the air-conditioning is by calling vTriggerInputEvent (uchar*cmdcode) function
Trigger control event of the air-conditioning remote control to the air-conditioning;In the user code that parsing is obtained and inconsistent prestored user code, i.e. connect
The control data of the control data of receipts not for the control air-conditioning, for example, it may be the control data or the control number of sound equipment of TV
According to etc., the command code that the air-conditioning refusal respond is obtained.The command code can be control air-conditioning open, close, heighten air-conditioner temperature,
Adjust air-conditioning humidity etc.;Opened, closed according to the command code of reception completion air-conditioning, heightening air-conditioner temperature, adjustment air-conditioning humidity etc.
Operation or variation of parameter.
In other embodiments of the present invention, in order to be able to preferably by the control zone of the controlled device in the range of the same space
Point, when discovery has the user code of different controlled devices identical, user sends the instruction of user's frameshift alteration, and user code is entered
Row change, is changed to different user codes, by the same space by the user code of the different controlled devices with same subscriber code
In the range of controlled device control distinguish, realization corresponding controlled device is accurately controlled by control device.The present invention its
In his embodiment, it is also proposed that a kind of control device interacted with controlled device, the control device is used to be sent out according to the instruction of user
Go out the control instruction with corresponding controlled device, the corresponding control data of the control instruction includes user code and command code, with standard
The corresponding controlled device of true control is completed in the corresponding operation of the control instruction, or, variation of parameter.
The present embodiment control device generates the control instruction correspondence received when receiving the control instruction that user sends
Control data, the control data include command code, user code, guidance code and address code;Sent when receiving control device
During the control data come, controlled device parses the control data to obtain corresponding user code and command code;The controlled device will
Obtained user code is compared with prestored user code, to verify whether obtained user code is consistent with prestored user code;The quilt
Control equipment responds obtained command code when obtained user code is consistent with prestored user code.Avoid in the range of the same space
Distinct device between control produce interference the problem of, realize that control device accurately controls corresponding controlled device.
As shown in figure 4, the high-level schematic functional block diagram of the self-defined control system second embodiment for remote control equipment of the present invention.
The controlled device also includes:Sending and receiving module 204, matching module 205 and prompting module 206,
The sending and receiving module 204, the pairing request for detecting and receiving control device to be paired, the pairing request bag
Include user code to be verified;
The analysis module 202, for when receiving the pairing request, entering pairing mode by processing module,
And the user code to be verified is analyzed whether in the range of default code value;
The matching module 205, for when the user code to be verified is in the range of default code value, preserving this and treating
The user code of checking is as pairing code, to complete the pairing of the controlled device and control device.
In the present embodiment, control device is receiving the matched order that user sends(Control device is with air-conditioning remote control
Exemplified by, the mode for sending matched order can be when button 5s or 10s of user's long-press air-conditioning remote control etc. are more than the time
Triggering or triggered by air-conditioning by 2 of remote control or multiple Macintosh)When, generate the pairing received and refer to
Corresponding paired data is made, the paired data includes user code to be verified, the generating mode and control data of paired data
Generating mode it is identical;When paired data is generated, pairing request is sent to the controlled device, the pairing request includes
The pairing request of user code to be verified, controlled device detecting and receiving control apparatus, the controlled device is set receiving control
During the pairing request that preparation goes out, into pairing mode, and the user code to be verified analyzed the pairing request of reception and included is
It is no in the range of default code value, the controlled device when the user code to be verified is in the range of default code value, point out
User's user code to be verified is proved to be successful, and sends the signal for confirming pairing;In the user code to be verified not default
Code value in the range of when, the prompting user of prompting module 206 inputs effective user code, or exits pairing mode, prompting module
206 also can also be that prompting user inputs the validated user code for not receiving user's input in effective user code preset time
When, pairing mode is exited, and point out user's pairing to fail by prompting module 206, the preset time is that 5s or 8s etc. appoints
The time interval that meaning user is set in advance, validated user code is the user code in the range of default code value.Controlled device with
When family responds the signal of the pairing of the confirmation, the user code to be verified is preserved as pairing code, to complete the controlled device
With the pairing of control device, i.e. the user code is used as control identification between the control device and controlled device of the successful matching
Identifying code;Controlled device also can also be the response for not receiving the signal that user matches to the confirmation sent in preset time
When, pairing mode is exited, the preset time is the time interval that any user such as 5s or 8s is set in advance.The default model
Code value in enclosing can be 1010,1100 or 1001 etc. 4 bit binary value, and it is 0X00-0X0F to preset code value scope.
Each pairing is distinguished by during the pairing of control device and controlled device, adding user code in this implementation
Successful control device and controlled device, so that the control device in the range of the same space is accurate by the checking of user code
Control corresponding controlled device, it is to avoid what is controlled in the range of the same space between each control device and each controlled device is dry
Disturb, improve Consumer's Experience.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.Embodiment party more than
The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software
The mode of hardware platform is realized, naturally it is also possible to by hardware, but the former is more preferably embodiment in many cases.It is based on
Such to understand, the part that technical scheme substantially contributes to prior art in other words can be with software product
Form embody, the computer software product is stored in a storage medium(Such as ROM/RAM, magnetic disc, CD)In, including
Some orders are to cause a whole equipment(Can be mobile phone, computer, server, or network equipment etc.)Perform the present invention
Method described in each embodiment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.
Claims (8)
1. the self-defined control method of a kind of remote control equipment, it is characterised in that the method comprising the steps of:
Control device generates the corresponding control data of control instruction received when receiving the control instruction that user sends,
The control data includes command code, user code, guidance code and address code;
When receiving the control data that control device is sent, controlled device parses the control data to obtain corresponding user
Code and command code;
Whether obtained user code is compared the controlled device with prestored user code, to verify obtained user code with prestoring
User code is consistent;
The controlled device responds obtained command code when obtained user code is consistent with prestored user code;
When the control device is receiving the control instruction that user sends, the corresponding control of control instruction received is generated
Data, before the step of control data includes command code and user code, this method also includes:
Control device generates the corresponding paired data of control instruction received when receiving the matched order that user sends,
The paired data includes user code to be verified;
Controlled device detecting and the pairing request of receiving control apparatus, the pairing request include user code to be verified;
The controlled device is when receiving the pairing request, into pairing mode, and analyzes the user code to be verified and be
It is no in the range of default code value;
The controlled device preserves the user code to be verified and made when the user code to be verified is in the range of default code value
To match code, to complete the pairing of the controlled device and control device.
2. the self-defined control method of remote control equipment according to claim 1, it is characterised in that what the generation was received
The step of control instruction corresponding control data, includes:
Control device calls vUserCodeConvter (uint input) function generation correspondence according to the control instruction received
Control data, the control data include command code, user code, guidance code and address code, wherein, the code value of the user code
Scope is 0X00-0X0F.
3. the self-defined control method of remote control equipment according to claim 1, it is characterised in that described controlled device point
Analyse after the step of whether user code to be verified is in the range of default code value, this method also includes:
The controlled device points out user's input is effective to use when the user code to be verified is not in the range of default code value
Family code, or exit pairing mode.
4. the self-defined control method of remote control equipment according to claim 1, it is characterised in that this is to be verified for the preservation
User code include as pairing code, the step of pairing to complete the controlled device and control device:
The controlled device is when the user code to be verified is in the range of default code value, the user code for pointing out user to be verified
It is proved to be successful, and sends the signal for confirming pairing;
The controlled device preserves the user code to be verified as pairing code when confirming the signal of pairing described in user response,
To complete the pairing of the controlled device and control device.
5. the self-defined control system of a kind of remote control equipment, it is characterised in that the system includes control device and controlled device, its
In, the controlled device includes processing module, analysis module and respond module,
The control device generates the corresponding control number of control instruction received when receiving the control instruction that user sends
According to the control data includes command code, user code, guidance code and address code;
The processing module, for when receiving the control data that control device is sent, parsing the control data to obtain
Corresponding user code and command code;
The analysis module, for obtained user code to be compared with prestored user code, be with the user code that checking is obtained
It is no consistent with prestored user code;
The respond module, for when obtained user code is consistent with prestored user code, and responds obtained command code;
The controlled device also includes:Sending and receiving module and matching module,
The control device, for when receiving the matched order that user sends, generating the control instruction received corresponding
Paired data, the paired data includes user code to be verified;
The sending and receiving module, the pairing request for detecting and receiving control device to be paired, the pairing request includes to be tested
The user code of card;
The analysis module, for when receiving the pairing request, entering pairing mode by processing module, and analyze institute
User code to be verified is stated whether in the range of default code value;
The matching module, for when the user code to be verified is in the range of default code value, preserving this to be verified
User code is as pairing code, to complete the pairing of the controlled device and control device.
6. the self-defined control system of remote control equipment according to claim 5, it is characterised in that
The control device, for according to the control instruction received, calling vUserCodeConvter (uint input) letter
The corresponding control data of number generation, the control data includes command code, user code, guidance code and address code, wherein, it is described to use
The code value scope of family code is 0X00-0X0F.
7. the self-defined control system of remote control equipment according to claim 5, it is characterised in that the controlled device is also wrapped
Include:
Prompting module, for when the user code to be verified is not in the range of default code value, pointing out user's input effective
User code, or pairing mode is exited by processing module.
8. the self-defined control system of remote control equipment according to claim 5, it is characterised in that the controlled device also includes
Prompting module;
The prompting module, is additionally operable to when the user code to be verified is in the range of default code value, points out user to be tested
The user code of card is proved to be successful, and the signal for confirming pairing is sent by sending and receiving module;
The matching module, for when confirming the signal of pairing described in user response, preserving the user code conduct to be verified
Code is matched, to complete the pairing of the controlled device and control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310752121.7A CN103680122B (en) | 2013-12-30 | 2013-12-30 | The self-defined control method and system of remote control equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310752121.7A CN103680122B (en) | 2013-12-30 | 2013-12-30 | The self-defined control method and system of remote control equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103680122A CN103680122A (en) | 2014-03-26 |
CN103680122B true CN103680122B (en) | 2017-09-05 |
Family
ID=50317535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310752121.7A Active CN103680122B (en) | 2013-12-30 | 2013-12-30 | The self-defined control method and system of remote control equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103680122B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361741A (en) * | 2014-12-08 | 2015-02-18 | 上海斐讯数据通信技术有限公司 | Remote control system and method |
CN104581331A (en) * | 2015-01-20 | 2015-04-29 | 江苏惠通集团有限责任公司 | Pairing method and device |
CN105185092B (en) * | 2015-06-19 | 2019-04-16 | 深圳Tcl数字技术有限公司 | Terminal control method and system |
CN105323621B (en) * | 2015-09-30 | 2018-06-15 | 北京四达时代软件技术股份有限公司 | A kind of remote controler, keypress function configuration and help function implementation method and set-top box |
CN105869383A (en) * | 2016-04-13 | 2016-08-17 | 北京精益理想科技有限公司 | Infrared data processing method, infrared instruction calling method and infrared instruction calling system |
CN107301765B (en) * | 2016-04-15 | 2021-11-30 | 北京远度互联科技有限公司 | Remote control method, device and terminal |
CN106137581A (en) * | 2016-06-24 | 2016-11-23 | 张学海 | Intelligent stair-climbing wheel chair and implementation method based on rolling code wireless key |
CN106803902B (en) * | 2017-02-14 | 2022-04-12 | 海信视像科技股份有限公司 | Electric quantity display method and display device of infrared remote control device |
CN107396162A (en) * | 2017-08-30 | 2017-11-24 | 深圳市芯智科技有限公司 | A kind of method of set top box compatibility multi-remote-controller |
CN111833584B (en) * | 2019-04-17 | 2022-03-01 | 百度在线网络技术(北京)有限公司 | Device control method, control device, control system, and storage medium |
CN111028502B (en) * | 2019-12-27 | 2021-07-20 | 中煤科工集团重庆研究院有限公司 | Crosstalk preventing method for similar remote control equipment |
CN112270824B (en) * | 2020-10-22 | 2022-06-03 | 尚科宁家(中国)科技有限公司 | Pairing request terminal, random code-based remote control system and control method thereof |
CN112451978A (en) * | 2020-11-23 | 2021-03-09 | 乐聚(深圳)机器人技术有限公司 | Control method, device and equipment of building block and storage medium |
CN113938732A (en) * | 2021-10-18 | 2022-01-14 | 深圳创维-Rgb电子有限公司 | Remote controller command execution method, device, equipment and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3821572A1 (en) * | 1988-06-25 | 1989-12-28 | Graetz Nokia Gmbh | REMOTE CONTROL ARRANGEMENT |
US7603684B1 (en) * | 1998-05-19 | 2009-10-13 | United Video Properties, Inc. | Program guide system with video-on-demand browsing |
CN101257326B (en) * | 2007-02-27 | 2011-11-23 | 深圳Tcl新技术有限公司 | Method and system for matching pair of wireless transmitting kit and wireless receiving kit |
CN101201969A (en) * | 2007-02-28 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method, device and equipment for receiving and processing telecontrol signal |
CN101388139B (en) * | 2007-09-14 | 2011-01-05 | 鸿富锦精密工业(深圳)有限公司 | Electric appliance remote-control system and remote control method |
CN101145276A (en) * | 2007-09-21 | 2008-03-19 | 广州市聚晖电子科技有限公司 | Bidirectional infrared receiver-transmitter area-control method |
CN101714289B (en) * | 2009-10-30 | 2011-11-02 | 罗之洪 | Remote control method and system capable of automatically adjusting frequency and distributing ID |
-
2013
- 2013-12-30 CN CN201310752121.7A patent/CN103680122B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103680122A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103680122B (en) | The self-defined control method and system of remote control equipment | |
US11816980B2 (en) | Method of pairing a remote control | |
CN104185132B (en) | Channel configuration method, intelligent terminal and corresponding system | |
US20150243163A1 (en) | Audio Based Remote Control Functionality | |
CN103941686B (en) | Sound control method and system | |
CN104618316B (en) | Safe verification method, device and system | |
CN104995900B (en) | Link layer information is specified in URL | |
CN105325011A (en) | Mobile device and method for outputting sound wave for control of external device, and external device | |
CN107770007A (en) | Distribution method, apparatus, system and the computer-readable recording medium of home appliance | |
CN106332143A (en) | Method for rapidly configuring a network for smart device | |
CN105024997A (en) | Method and device for associating control terminal with controlled terminal | |
CN107222908A (en) | Intelligent appliance and its with network method, router, intelligent domestic system | |
CN104807130B (en) | The virtual key generation method and system of air conditioner custom parameter | |
CN107124342A (en) | Appliances equipment control method, device, intelligent domestic system and readable storage medium storing program for executing | |
CN105554755A (en) | Wireless network access method and device | |
CN104793508B (en) | Screening control method, the device and system of household electrical appliance | |
CN105722183A (en) | Sharing method and apparatus for Wi-Fi (wireless fidelity) link information | |
US20140355993A1 (en) | Electronic device and storage medium with remote control function, and remote control method | |
US20170118188A1 (en) | Method and system for authenticating user in wireless local area network and terminal device | |
KR101597657B1 (en) | Mobile device and method for outputting sound wave including network access information | |
CN106686639A (en) | Network configuration method and device for intelligent voice interaction equipment, and related equipment | |
CN107438247A (en) | Wireless relay implementation method and device | |
CN109981185A (en) | Data transmission and reception method, apparatus and computer readable storage medium | |
US9092972B2 (en) | Wireless signal access apparatus and method for remotely controlling appliance through the same | |
US20060156353A1 (en) | Remotely-accessible wireless LAN server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |