Equipment remote control pairing method, system and device
Technical Field
The invention relates to the technical field of equipment remote control, in particular to a method, a system and a device for equipment remote control pairing.
Background
At present, a mobile control terminal generally comprises a mobile phone, a remote controller and a control panel, and in recent years, the mobile phone control distinguishes App and applet control, and compared with App, the applet is lighter, and along with the addition of the applet, the control terminal has more and more modes, provides more control scenes, and also brings more safety problems;
In the aspect of safety, the pairing and control modes of the remote controller have to be considered, the development of a product is considered in pairing and safety, and the diversity of pairing is also considered, for example, part of equipment is provided with double 8 displays, part of equipment is provided with a voice function, part of equipment leaves are provided with equipment bar codes and equipment two-dimensional codes, the functions of the equipment are not uniform, the information of the equipment leaves are not uniform, different equipment has different pairing modes, for example, the use scene of hanging up is hung up, the pairing through the two-dimensional codes or bar codes is very inconvenient, if the pairing is not verified directly through Bluetooth, the pairing and control are also very unsafe, and how to enable users to safely pair and control is the problem to be solved at present.
Disclosure of Invention
Aiming at the problems of inconvenient pairing and safety caused by the non-uniform pairing mode and diversified pairing scenes of the equipment, the invention provides a remote control pairing method, a remote control pairing system and a remote control pairing device for the equipment.
In order to achieve the purpose, the invention adopts the following technical scheme that the equipment remote control pairing method comprises the following steps:
receiving a pairing request of a remote control end, wherein the pairing request comprises identification information belonging to the remote control end;
Judging whether the identification information has pairing authority or not, wherein the pairing authority is preset;
when the pairing authority is provided, a pairing mode supported by the pairing authority is acquired;
Responding to the selection of the pairing mode, and displaying verification information so that the remote control end inputs the verification information to complete pairing;
and storing the identification information of the remote control terminal and the associated pairing mode.
Preferably, the pairing method further comprises:
the pairing request of the remote control terminal is received for the first time, and whether the pairing request is the most advanced remote control terminal is judged according to the identification information carried by the pairing request;
if yes, receiving key value information of the remote control terminal in a specified pairing mode;
And verifying the key value information to finish the first pairing, and storing the identification information of the remote control terminal and the association information of the finished pairing.
Preferably, the pairing authority is preset for the most advanced remote control terminal, including:
receiving key value information of the remote control terminal, and setting the pairing authority according to a control instruction associated with the key value information, wherein the relation between the key value information and the control instruction is preset;
When the remote control terminal is a terminal with a display interface, the key value information is sent to the controlled equipment according to a corresponding control instruction displayed by the display interface;
When the remote control terminal is a non-display remote control terminal, the key value information represents a control instruction in a key duration and/or key combination mode and is sent to the controlled equipment;
And the controlled equipment receives a control instruction to set the pairing authority and store the pairing authority.
Preferably, the determining whether the identification information has the pairing authority includes:
the controlled equipment acquires the identification information of the remote control end and inquires in preset pairing authority;
when the identification information is not set with the pairing right, the controlled equipment sends pairing failure information to the remote control terminal;
when the identification information has the pairing rights, the controlled equipment acquires the pairing modes supported by the pairing rights, and establishes a pairing relation to the remote control terminal by taking one pairing mode as a default pairing mode.
Preferably, the selecting of the response pairing mode includes:
receiving a pairing relation established by the remote control terminal by selecting a default pairing mode, and displaying verification information so that the remote control terminal inputs the verification information to complete pairing;
And/or, receiving a pairing relation established by the remote control terminal by selecting other pairing modes, and inquiring the selected other pairing modes in preset pairing authorities to determine whether the pairing modes have corresponding pairing authorities or not:
if yes, displaying verification information so that the remote control inputs the verification information to complete pairing;
if not, sending pairing failure information to the remote control terminal.
Preferably, the method further comprises the step of setting pairing authority of the top priority remote control terminal:
Receiving a pairing permission adjustment request of the remote control terminal, and acquiring identification information of the remote control terminal;
Verifying the identification information of the remote control terminal with the identification information and the associated information which are stored after the pairing is completed for the first time, and executing the actions of adjusting and/or setting the pairing authority if the verification passes;
The performing an adjustment and/or setting pairing authority action includes at least one of:
removing and/or prohibiting one or more other paired remote control terminal pairing authorities through key value information;
And switching the pairing mode of each remote control terminal and/or closing pairing through the key value information.
Preferably, the method further comprises the step of sharing and adjusting pairing permission by the most-priority remote control terminal:
the remote control terminal generates next-stage identification information and adjusts the pairing authority control code in a set mode and sends the next-stage identification information and the pairing authority control code to other remote control terminals;
And the other remote control ends acquire the verification of the controlled equipment through the next-stage identification information and the pairing authority control code, so that the other remote control ends have the authority for adjusting and/or setting the pairing authority.
Preferably, the remote control terminal comprises at least one of a most priority remote control terminal, an applet remote control terminal and an App remote control terminal, wherein the most priority remote control terminal passes through a BLE module;
preferably, the pairing mode comprises at least one of double 8 pairing, bar code pairing, two-dimensional code pairing, remote controller pairing and voice pairing.
On the other hand, the invention adopts the following technical scheme that the equipment remote control pairing system comprises:
The receiving and transmitting module is used for receiving the pairing request and the identification information;
The verification module is used for verifying the identification information and judging whether the corresponding identification information has pairing authority;
The display module is used for displaying the verification information so that the remote control end inputs the verification information to complete pairing;
the execution module is used for responding to the request to control each module to execute corresponding operation;
The storage module is used for storing the identification information, the pairing authority and the pairing mode of the equipment and the remote control end, and comprises the following components:
The device information storage module is used for storing the controlled device and the information for executing pairing verification, including bar code verification information, two-dimensional code verification information and a voice offline or online voice recognition library;
The remote control end information storage module is used for storing the remote control end information matched with the controlled equipment;
the pairing authority storage module is used for storing pairing authority information of each remote control terminal;
The pairing mode storage module is used for storing pairing mode information, and comprises double 8 pairing, bar code pairing, two-dimensional code pairing, remote controller pairing and voice pairing;
and the most-priority remote control storage module is used for storing the information of the most-priority remote control terminal and the unique identification information of the short address or the equipment sn or the equipment mac for completing pairing.
On the other hand, the technical scheme is that the device remote control pairing device comprises a memory, a processor and a remote control pairing program which is stored in the memory and can run on the processor, and the remote control pairing program realizes the device remote control pairing method when being executed by the processor.
Compared with the prior art, the invention has the following beneficial effects:
The invention provides a plurality of pairing schemes and pairing control of each remote control terminal so as to meet the requirements of users for control and pairing according to actual conditions, the remote control terminal with the highest priority is used as a responsible terminal for pairing and control, and the remote control terminal with the highest priority is provided with a strategy of transferring control rights by appointing sharing and adjusting pairing rights, so that the convenience of management is improved, and the users can appoint connection after pairing according to actual practical scenes aiming at connection or pairing of various different devices.
Drawings
For a clearer description of the technical solutions, the drawings that are required to be used in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
In order that the manner in which a fully and completely understood embodiment of the invention may be readily understood, it is intended that the invention be further described in connection with the accompanying drawings, in which it is to be understood that the embodiments described are merely illustrative of some of the invention and that all other embodiments may be made by those skilled in the art without the benefit of the inventive faculty.
As shown in fig. 1, a device remote control pairing method includes the following steps:
the pairing method comprises the steps of firstly receiving a pairing request of a remote control terminal, judging whether the pairing request is a top priority remote control terminal or not according to identification information carried by the pairing request, wherein the top priority remote control terminal is an entity remote controller, and establishing communication connection with controlled equipment through a BLE module;
If yes, the key value information of the remote control terminal is received in a specified pairing mode, for example, a control command is triggered by a combination key or a long press of a certain key of the entity remote controller, so that the first pairing with the controlled equipment, for example, an air conditioner, is realized, and the identification information of the entity remote controller and the association information for completing the pairing are stored, for example, the identification information, the short address information, the equipment sn information and the like which can be used as the identity uniqueness of the entity remote controller.
When other remote control ends send pairing requests to the controlled equipment, such as an applet remote control end;
the controlled equipment receives a pairing request of a small program remote control end, wherein the pairing request comprises identification information of the small city degree remote control end, and judges whether the identification information has pairing authority which is preset by an entity remote control;
Specifically, the controlled device receives key value information of the entity remote controller, and sets the pairing authority according to a control instruction associated with the key value information, wherein the relation between the key value information and the control instruction is preset. And if the entity remote controller is a remote controller with only physical keys, the entity remote controller indicates the control instructions to be sent to the controlled equipment in a key duration and/or key combination mode, for example, long pressing for 3 seconds, 6 seconds and the like to determine that the pairing authority of the App remote control terminal or the applet remote control is opened or closed. And the controlled equipment sets the pairing authority of the corresponding remote control terminal according to the received control instruction and stores the pairing authority.
When the applet remote control terminal is judged to have the pairing authority, the identification information is acquired, and the inquiry is carried out in the preset pairing authority. If the pairing right is inquired, the controlled equipment acquires a pairing mode supported by the pairing right, wherein the pairing mode comprises at least one of double 8 pairing, bar code pairing, two-dimensional code pairing, remote controller pairing and voice pairing, and the double 8 pairing is selected as a pairing mode by default to establish a pairing relation to the applet remote control terminal;
The small program remote control terminal can send a request for changing the pairing mode to the controlled equipment when receiving the pairing relation established in a default pairing mode;
And the controlled equipment receives and selects other pairing modes to establish a pairing relation, queries the selected other pairing modes in preset pairing authorities to determine whether the selected pairing modes have corresponding pairing authorities, and if not, the controlled equipment sends pairing failure information.
When the default pairing mode or the reselected pairing mode has the pairing right, the controlled equipment displays the verification information so that the remote control inputs the verification information to complete pairing, and the identification information of the applet remote control end and the associated pairing mode are stored.
In this embodiment, the entity remote controller as the most priority has the function of adjusting and setting pairing authority, and specifically includes:
The controlled equipment receives a pairing permission adjustment request of the entity remote controller, verifies the unique identification information of the entity remote controller with the identification information and the associated information stored after the first pairing is completed, and executes the pairing permission adjustment and/or setting action after the verification is passed;
The actions of adjusting and/or setting the pairing authority comprise removing and/or prohibiting one or more other paired remote control terminals from pairing authorities through key value information, such as prohibiting the pairing control of all the remote control terminals for 3 seconds and prohibiting the pairing control of the paired App remote control terminals for 6 seconds, and switching the pairing mode of each remote control terminal through key value information and/or closing pairing, wherein the pairing mode of each remote control terminal can be switched, such as double 8 pairing, bar code pairing, remote control pairing, voice pairing, closing pairing and the like, when the entity remote control triggers the key value information, the controlled device receives a control instruction through a BLE module, adjusts the pairing mode and stores the control instruction in a pairing mode storage module.
In this embodiment, the entity controller with the highest priority further has a function of sharing and adjusting pairing rights, which specifically includes:
the other remote control ends acquire the verification of the controlled equipment through the next-stage identification information and the pairing authority adjustment control code, so that the other remote control ends have the authority of adjusting and/or setting the pairing authority, and the pairing requirements of various scenes can be realized.
The embodiment also provides a device remote control pairing system, which comprises:
The receiving and transmitting module is used for receiving the pairing request and the identification information;
The verification module is used for verifying the identification information and judging whether the corresponding identification information has pairing authority;
The display module is used for displaying the verification information so that the remote control end inputs the verification information to complete pairing;
the execution module is used for responding to the request to control each module to execute corresponding operation;
The storage module is used for storing the identification information, the pairing authority and the pairing mode of the equipment and the remote control end, and comprises the following components:
The device information storage module is used for storing the controlled device and the information for executing pairing verification, including bar code verification information, two-dimensional code verification information and a voice offline or online voice recognition library;
The remote control end information storage module is used for storing the remote control end information matched with the controlled equipment;
the pairing authority storage module is used for storing pairing authority information of each remote control terminal;
The pairing mode storage module is used for storing pairing mode information, and comprises double 8 pairing, bar code pairing, two-dimensional code pairing, remote controller pairing and voice pairing;
The most priority remote control storage module is used for storing the information of the most priority remote control terminal and the unique identification information of the short address or the equipment sn or the equipment mac for completing pairing, and can be used for checking when the entity remote controller requests to change the pairing mode or forbids the pairing right of other remote control terminals.
The embodiment also provides a device remote control pairing device, which comprises a memory, a processor and a remote control pairing program stored in the memory and capable of running on the processor, wherein the remote control pairing program realizes the device remote control pairing method when being executed by the processor.
The foregoing disclosure is merely illustrative of one or more of the preferred embodiments of the present invention and is not intended to limit the scope of the invention in any way, as it is intended to cover all modifications, variations, uses, or equivalents of the invention that fall within the spirit and scope of the invention.