CN105976589A - Remote control method and device of equipment - Google Patents

Remote control method and device of equipment Download PDF

Info

Publication number
CN105976589A
CN105976589A CN201610413025.3A CN201610413025A CN105976589A CN 105976589 A CN105976589 A CN 105976589A CN 201610413025 A CN201610413025 A CN 201610413025A CN 105976589 A CN105976589 A CN 105976589A
Authority
CN
China
Prior art keywords
remote control
equipment
remote controller
remote
distance
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.)
Pending
Application number
CN201610413025.3A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610413025.3A priority Critical patent/CN105976589A/en
Publication of CN105976589A publication Critical patent/CN105976589A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/70Device selection
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/90Additional features
    • G08C2201/91Remote control based on location and proximity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本公开是关于一种遥控设备的方法及装置,用于改进图像的传输方式,以提高图像的显示效果。所述方法包括:接收遥控操作的触发;根据所述遥控操作的触发,广播连接请求报文;接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息;从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备;根据所述遥控操作的触发,生成遥控指令;与确定的设备建立连接,并向确定的设备发送所述遥控指令。

The present disclosure relates to a method and device for remote control equipment, which are used to improve the transmission mode of images, so as to improve the display effect of images. The method includes: receiving a trigger of a remote control operation; broadcasting a connection request message according to the trigger of the remote control operation; receiving a connection response message sent by multiple devices, the connection response message containing information related to distance; Select the shortest distance from a plurality of distance-related information, and determine the device corresponding to the shortest distance; generate a remote control instruction according to the trigger of the remote control operation; establish a connection with the determined device, and send the determined device remote control commands.

Description

遥控设备的方法及装置Method and device for remote control equipment

技术领域technical field

本公开涉及通信及计算机处理领域,尤其涉及遥控设备的方法及装置。The present disclosure relates to the fields of communication and computer processing, and in particular to a method and device for remote control equipment.

背景技术Background technique

随着电子技术的发展,电视、空调等电子设备已在家庭中普及。这些电子设备都可以由遥控器来控制。每个电子设备都有配套的遥控器。如此多的电子设备,需要很多的遥控器。Along with the development of electronic technology, electronic equipment such as TV, air conditioner has been popularized in the family. These electronic devices can all be controlled by a remote controller. Every electronic device has a matching remote control. So many electronic devices, so many remote controls.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种遥控设备的方法及装置。In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for remote control equipment.

根据本公开实施例的第一方面,提供一种遥控设备的方法,包括:According to a first aspect of an embodiment of the present disclosure, a method for remote control of a device is provided, including:

接收遥控操作的触发;Receive triggers for remote control operations;

根据所述遥控操作的触发,广播连接请求报文;Broadcasting a connection request message according to the triggering of the remote control operation;

接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息;receiving connection response messages sent by multiple devices, where the connection response messages include distance-related information;

从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备;selecting the shortest distance from a plurality of distance-related information, and determining a device corresponding to the shortest distance;

根据所述遥控操作的触发,生成遥控指令;generating a remote control instruction according to the trigger of the remote control operation;

与确定的设备建立连接,并向确定的设备发送所述遥控指令。Establish a connection with the determined device, and send the remote control instruction to the determined device.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例中遥控器在收到遥控操作的触发时才广播连接请求报文,以进行连接。并且根据距离选择被遥控的设备,实现一个遥控器控制多个设备。为用户节省了遥控器的数量,也不需要频繁修改遥控器的配置。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, the remote controller only broadcasts a connection request message for connection when it receives a remote control operation trigger. And select the remote control device according to the distance, so that one remote control can control multiple devices. The number of remote controllers is saved for the user, and the configuration of the remote controllers does not need to be modified frequently.

在一个实施例中,所述向确定的设备发送所述遥控指令,包括:In one embodiment, the sending the remote control command to the determined device includes:

根据预先存储的链路密钥,向确定的设备发送所述遥控指令。Send the remote control instruction to the determined device according to the pre-stored link key.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例预先存储了链路密钥,所以在遥控的各个设备之间切换时,不需要配对和清除配对的过程,简化了处理过程。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment stores the link key in advance, so when switching between remote devices, the process of pairing and clearing the pairing is not required, which simplifies the processing process .

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

广播配对请求报文;Broadcast pairing request message;

接收多个设备发送的配对响应报文;Receive pairing response messages sent by multiple devices;

与多个设备逐个进行配对,确定链路密钥并存储。Pair with multiple devices one by one, determine the link key and store it.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例预先与各个设备逐个配对,获得并保存链路密钥,为后续的遥控过程提供支持,以便简化后续的连接和配对过程。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment is pre-paired with each device one by one, obtains and saves the link key, provides support for the subsequent remote control process, and simplifies the subsequent connection and pairing process.

在一个实施例中,最近的距离为多个;In one embodiment, the closest distance is multiple;

所述从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备,包括:The selecting the shortest distance from a plurality of distance-related information, and determining the device corresponding to the shortest distance includes:

输出多个最近的距离对应的设备的提醒;Output reminders of multiple devices corresponding to the closest distance;

接收针对一个设备的选择指令;receiving a selection command for a device;

根据所述选择指令确定所述最近的距离对应的设备。Determine the device corresponding to the shortest distance according to the selection instruction.

本公开的实施例提供的技术方案可以包括以下有益效果:当有至少两个设备距离最近时,可以输出选择提醒,由用户选择被遥控的设备。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when at least two devices are closest to each other, a selection reminder may be output, and the user selects the device to be controlled.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。After the remote control instruction is sent to the determined device, the connection with the determined device is disconnected.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例在一次遥控操作之后,便可断开连接,方便随时遥控其它设备。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, after a remote control operation, the connection can be disconnected, so as to facilitate remote control of other devices at any time.

根据本公开实施例的第二方面,提供一种遥控设备的方法,包括:According to a second aspect of an embodiment of the present disclosure, a method for remote control of a device is provided, including:

接收遥控器广播的连接请求报文;Receive the connection request message broadcast by the remote control;

根据所述连接请求报文,确定到遥控器的与距离有关的信息;Determine information related to the distance to the remote controller according to the connection request message;

向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息;Send a connection response message to the remote controller, where the connection response message includes distance-related information;

与遥控器建立连接,并接收遥控器发送的遥控指令;Establish a connection with the remote control and receive remote control commands sent by the remote control;

执行所述遥控指令。Execute the remote control instruction.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例中被遥控的设备需要反馈与距离有关的信息,以供遥控器选择设备。然后接受遥控器的遥控,执行遥控指令,完成遥控过程。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, the remote-controlled device needs to feed back information related to distance for the remote controller to select a device. Then accept the remote control of the remote controller, execute the remote control command, and complete the remote control process.

在一个实施例中,所述接收遥控器发送的遥控指令,包括:In one embodiment, the receiving the remote control instruction sent by the remote control includes:

根据预先存储的链路密钥,接收遥控器发送的遥控指令。According to the pre-stored link key, the remote control command sent by the remote control is received.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例预先存储链路密钥,在连接和接收遥控指令的过程中不需要进行配对,简化了处理过程。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment stores the link key in advance, and does not need to be paired during the process of connecting and receiving remote control instructions, which simplifies the processing process.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

接收遥控器广播的配对请求报文;Receive the pairing request message broadcast by the remote control;

向遥控器发送配对响应报文;Send a pairing response message to the remote controller;

与遥控器进行配对,确定链路密钥并存储。Pair with the remote control, determine the link key and store it.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例预先与遥控器协商链路密钥并保存,为后续的连接和接收遥控指令提供方便。The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: the embodiment negotiates with the remote controller in advance and saves the link key, which provides convenience for subsequent connection and receiving remote control instructions.

根据本公开实施例的第三方面,提供一种遥控设备的装置,包括:According to a third aspect of an embodiment of the present disclosure, there is provided an apparatus for a remote control device, including:

触发模块,用于接收遥控操作的触发;The trigger module is used to receive the trigger of the remote control operation;

第一广播模块,用于根据所述遥控操作的触发,广播连接请求报文;A first broadcast module, configured to broadcast a connection request message according to the trigger of the remote control operation;

第一接收模块,用于接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息;A first receiving module, configured to receive connection response messages sent by multiple devices, where the connection response messages include distance-related information;

选择模块,用于从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备;A selection module, configured to select the shortest distance from a plurality of distance-related information, and determine the device corresponding to the shortest distance;

生成模块,用于根据所述遥控操作的触发,生成遥控指令;A generation module, configured to generate a remote control instruction according to the trigger of the remote control operation;

发送模块,用于与确定的设备建立连接,并向确定的设备发送所述遥控指令。A sending module, configured to establish a connection with the determined device, and send the remote control instruction to the determined device.

在一个实施例中,所述发送模块包括:In one embodiment, the sending module includes:

发送子模块,用于根据预先存储的链路密钥,向确定的设备发送所述遥控指令。The sending submodule is configured to send the remote control instruction to the determined device according to the pre-stored link key.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

第二广播模块,用于广播配对请求报文;The second broadcast module is used to broadcast a pairing request message;

第二接收模块,用于接收多个设备发送的配对响应报文;The second receiving module is configured to receive pairing response messages sent by multiple devices;

密钥模块,用于与多个设备逐个进行配对,确定链路密钥并存储。The key module is used to pair with multiple devices one by one, determine and store the link key.

在一个实施例中,最近的距离为多个;In one embodiment, the closest distance is multiple;

所述选择模块包括:The selection modules include:

输出子模块,用于输出多个最近的距离对应的设备的提醒;The output sub-module is used to output reminders of devices corresponding to multiple nearest distances;

接收子模块,用于接收针对一个设备的选择指令;The receiving submodule is used to receive a selection instruction for a device;

确定子模块,用于根据所述选择指令确定所述最近的距离对应的设备。A determination submodule, configured to determine the device corresponding to the shortest distance according to the selection instruction.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

断开模块,用于向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。A disconnection module, configured to disconnect from the determined device after sending the remote control instruction to the determined device.

根据本公开实施例的第四方面,提供一种遥控设备的装置,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for a remote control device, including:

第一接收模块,用于接收遥控器广播的连接请求报文;The first receiving module is configured to receive a connection request message broadcast by the remote controller;

距离模块,用于根据所述连接请求报文,确定到遥控器的与距离有关的信息;A distance module, configured to determine distance-related information to the remote controller according to the connection request message;

第一发送模块,用于向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息;The first sending module is configured to send a connection response message to the remote controller, where the connection response message includes distance-related information;

第二接收模块,用于与遥控器建立连接,并接收遥控器发送的遥控指令;The second receiving module is used to establish a connection with the remote controller and receive remote control instructions sent by the remote controller;

执行模块,用于执行所述遥控指令。An execution module, configured to execute the remote control instruction.

在一个实施例中,所述第二接收模块包括:In one embodiment, the second receiving module includes:

接收子模块,用于根据预先存储的链路密钥,接收遥控器发送的遥控指令。The receiving sub-module is used to receive the remote control instruction sent by the remote control according to the pre-stored link key.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

第三接收模块,用于接收遥控器广播的配对请求报文;The third receiving module is used to receive the pairing request message broadcast by the remote controller;

第二发送模块,用于向遥控器发送配对响应报文;The second sending module is configured to send a pairing response message to the remote controller;

密钥模块,用于与遥控器进行配对,确定链路密钥并存储。The key module is used for pairing with the remote controller, determining and storing the link key.

根据本公开实施例的第五方面,提供一种遥控设备的装置,包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided an apparatus for a remote control device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收遥控操作的触发;Receive triggers for remote control operations;

根据所述遥控操作的触发,广播连接请求报文;Broadcasting a connection request message according to the triggering of the remote control operation;

接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息;receiving connection response messages sent by multiple devices, where the connection response messages include distance-related information;

从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备;selecting the shortest distance from a plurality of distance-related information, and determining a device corresponding to the shortest distance;

根据所述遥控操作的触发,生成遥控指令;generating a remote control instruction according to the trigger of the remote control operation;

与确定的设备建立连接,并向确定的设备发送所述遥控指令。Establish a connection with the determined device, and send the remote control instruction to the determined device.

根据本公开实施例的第六方面,提供一种遥控设备的装置,包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided an apparatus for a remote control device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收遥控器广播的连接请求报文;Receive the connection request message broadcast by the remote control;

根据所述连接请求报文,确定到遥控器的与距离有关的信息;Determine information related to the distance to the remote controller according to the connection request message;

向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息;Send a connection response message to the remote controller, where the connection response message includes distance-related information;

与遥控器建立连接,并接收遥控器发送的遥控指令;Establish a connection with the remote control and receive remote control commands sent by the remote control;

执行所述遥控指令。Execute the remote control instruction.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种遥控设备的方法的流程图。Fig. 1 is a flow chart showing a method for remote controlling a device according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种遥控设备的方法的流程图。Fig. 2 is a flow chart showing a method for remote controlling a device according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种遥控设备的方法的流程图。Fig. 3 is a flow chart showing a method for remote controlling a device according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种遥控设备的方法的流程图。Fig. 4 is a flow chart showing a method for remote controlling a device according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种遥控设备的方法的流程图。Fig. 5 is a flow chart showing a method for remote controlling a device according to an exemplary embodiment.

图6是根据一示例性实施例示出的一种遥控设备的方法的流程图。Fig. 6 is a flow chart showing a method for remote controlling a device according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种遥控设备的装置的框图。Fig. 7 is a block diagram showing an apparatus for a remote control device according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种发送模块的框图。Fig. 8 is a block diagram of a sending module according to an exemplary embodiment.

图9是根据一示例性实施例示出的一种遥控设备的装置的框图。Fig. 9 is a block diagram showing an apparatus for a remote control device according to an exemplary embodiment.

图10是根据一示例性实施例示出的一种选择模块的框图。Fig. 10 is a block diagram of a selection module according to an exemplary embodiment.

图11是根据一示例性实施例示出的一种遥控设备的装置的框图。Fig. 11 is a block diagram showing an apparatus for a remote control device according to an exemplary embodiment.

图12是根据一示例性实施例示出的一种遥控设备的装置的框图。Fig. 12 is a block diagram showing an apparatus for a remote control device according to an exemplary embodiment.

图13是根据一示例性实施例示出的一种第二接收模块的框图。Fig. 13 is a block diagram of a second receiving module according to an exemplary embodiment.

图14是根据一示例性实施例示出的一种遥控设备的装置的框图。Fig. 14 is a block diagram showing an apparatus for a remote control device according to an exemplary embodiment.

图15是根据一示例性实施例示出的一种装置的框图。Fig. 15 is a block diagram of a device according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

相关技术中,一个设备配一个遥控器,如电视有电视遥控器,空调有空调遥控器。如此多的设备需要有很多的遥控器。对于用户来说,区分遥控器和更换遥控器是件麻烦的工作。后来推出了虚拟遥控器,将手机作为遥控器。但是需要在手机上配置被遥控的设备。例如,当需要遥控电视时,需要在软件中输入电视的相关配置。然后手机与电视进行连接、配对、发送指令。当需要遥控空调时,需要清除电视的相关信息,重新输入空调的相关配置,与空调重新进行连接、配对、发送指令。无论从用户角度还是从设备角度,处理都比较繁琐。In related technologies, a device is equipped with a remote control, for example, a TV has a TV remote control, and an air conditioner has an air conditioner remote control. So many devices require a lot of remotes. For the user, it is troublesome work to distinguish the remote controller and replace the remote controller. Later, a virtual remote control was introduced, using the mobile phone as a remote control. However, the remote control device needs to be configured on the mobile phone. For example, when a TV needs to be controlled remotely, relevant configurations of the TV need to be input in the software. Then the mobile phone is connected to the TV, paired, and sends instructions. When you need to remotely control the air conditioner, you need to clear the relevant information of the TV, re-enter the relevant configuration of the air conditioner, and reconnect, pair, and send instructions to the air conditioner. No matter from the user's point of view or from the device's point of view, the processing is relatively cumbersome.

为解决上述问题,本实施例修改遥控器与被控设备之间的通信过程。遥控器不需要每次遥控被控设备时与被控设备进行配对。被控设备在响应连接请求报文时提供与距离有关的信息。遥控器根据距离确定被遥控的被控设备,而不是根据当前配置来确定被控设备。这样,就不需要用户每次输入相关配置来选择被控设备。并且实现了一个遥控器对多个设备的遥控。To solve the above problem, this embodiment modifies the communication process between the remote controller and the controlled device. The remote control does not need to be paired with the controlled device every time it remotely controls the controlled device. The controlled device provides distance-related information in response to the connection request message. The remote control determines the controlled device to be controlled according to the distance, not the current configuration. In this way, the user does not need to input the relevant configuration every time to select the controlled device. And it realizes the remote control of multiple devices by one remote control.

图1是根据一示例性实施例示出的一种遥控设备的方法的流程图,如图1所示,该方法可以由遥控器实现,包括以下步骤:Fig. 1 is a flow chart of a method for remote control of a device according to an exemplary embodiment. As shown in Fig. 1 , the method may be implemented by a remote controller, and includes the following steps:

在步骤101中,接收遥控操作的触发。In step 101, a trigger of a remote control operation is received.

在步骤102中,根据所述遥控操作的触发,广播连接请求报文。In step 102, a connection request message is broadcast according to the trigger of the remote control operation.

在步骤103中,接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息。In step 103, a connection response message sent by multiple devices is received, and the connection response message includes information related to distance.

在步骤104中,从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备。In step 104, the shortest distance is selected from a plurality of distance-related information, and the device corresponding to the shortest distance is determined.

在步骤105中,根据所述遥控操作的触发,生成遥控指令。In step 105, a remote control instruction is generated according to the trigger of the remote control operation.

在步骤106中,与确定的设备建立连接,并向确定的设备发送所述遥控指令。In step 106, a connection is established with the determined device, and the remote control instruction is sent to the determined device.

本实施例中,用户点击遥控器上的按钮。该遥控器可以是专门的遥控器,也可以是手机等设备虚拟的遥控器。该按钮可以是实体遥控器上的硬件按钮,也可以是虚拟遥控器上的虚拟按钮。用户点击按钮,相当于接收遥控操作的触发。此时,遥控器发起连接过程。也就是说,用户不点击按钮时可以不进行连接。遥控器也不需要周期性的广播报文。遥控器广播连接请求报文,因为此时遥控器不能确定遥控的是哪个设备,所以以广播的形式发送连接请求报文。遥控器与设备之间采用无方向的无线通信,如蓝牙、WiFi等。In this embodiment, the user clicks a button on the remote controller. The remote controller can be a special remote controller, or a virtual remote controller of devices such as mobile phones. The button can be a hardware button on the physical remote control, or a virtual button on the virtual remote control. When the user clicks the button, it is equivalent to receiving the trigger of the remote control operation. At this point, the remote controller initiates the connection process. That is, the user does not need to connect when the button is not clicked. The remote controller does not need to broadcast messages periodically. The remote controller broadcasts the connection request message, because the remote controller cannot determine which device is being remote controlled at this time, so it sends the connection request message in the form of broadcast. Directionless wireless communication is used between the remote control and the device, such as Bluetooth, WiFi, etc.

连接请求报文可以采用原报文,但是其作用发生变化,不仅是连接请求,还要求设备反馈与距离有关的信息。或者对连接请求报文的格式做改进,增加一个字段,该字段的字段值用于标记是否要求对端设备反馈与距离有关的信息,例如字段值为1表示需要反馈。连接响应报文的格式也做改进,需要携带与距离有关的信息。The connection request message can use the original message, but its function changes, not only a connection request, but also requires the device to feed back information related to distance. Or improve the format of the connection request message by adding a field whose field value is used to mark whether the peer device is required to feed back information related to the distance. For example, a field value of 1 indicates that feedback is required. The format of the connection response message is also improved, and information related to distance needs to be carried.

与距离有关的信息可以是距离本身。设备可以具有至少两根天线,在接收连接请求报文时,根据收到的信号确定自身与遥控器的距离,然后通过连接响应报文将距离信息反馈给遥控器。The distance-related information may be the distance itself. The device may have at least two antennas. When receiving a connection request message, the device determines the distance between itself and the remote controller according to the received signal, and then feeds back the distance information to the remote controller through a connection response message.

或者,与距离有关的信息可以是发射信号强度。遥控器在接收连接响应报文时可获知接收时的信号强度。再根据发射信号强度可获得信号衰减情况,进而计算出与设备之间的距离。Alternatively, the distance-related information may be transmitted signal strength. When the remote controller receives the connection response message, it can know the signal strength at the time of reception. Then according to the strength of the transmitted signal, the signal attenuation can be obtained, and then the distance to the device can be calculated.

遥控器选择距离最近的设备建立连接,并向该设备发送遥控指令,实现了对该设备的遥控。在整个过程中不需要用户手动选择被控设备,也不需要遥控器与设备的配对过程。简化了用户操作,实现了自动一对多的遥控。也简化了遥控器与设备间的通信过程。The remote controller selects the nearest device to establish a connection, and sends a remote control instruction to the device, realizing the remote control of the device. In the whole process, the user does not need to manually select the controlled device, nor does the pairing process between the remote control and the device. It simplifies user operation and realizes automatic one-to-many remote control. It also simplifies the communication process between the remote controller and the device.

在一个实施例中,步骤106包括步骤A。In one embodiment, step 106 includes step A.

在步骤A中,根据预先存储的链路密钥,向确定的设备发送所述遥控指令。In step A, the remote control instruction is sent to the determined device according to the pre-stored link key.

本实施例中预先存有链路密钥,可以保证遥控指令传输的安全性,并且实现自动回连,不需要配对过程,更不需要清除配对。In this embodiment, the link key is pre-stored, which can ensure the security of remote control command transmission, and realize automatic connection back, without the need for a pairing process, let alone clearing the pairing.

在一个实施例中,所述方法还包括:步骤B1-步骤B3。In one embodiment, the method further includes: step B1-step B3.

在步骤B1中,广播配对请求报文。In step B1, broadcast a pairing request message.

在步骤B2中,接收多个设备发送的配对响应报文。In step B2, receiving pairing response messages sent by multiple devices.

在步骤B3中,与多个设备逐个进行配对,确定链路密钥并存储。In step B3, pair with multiple devices one by one, determine and store the link key.

本实施例增加了初始化过程,在初始化过程中,遥控器与各个设备逐个进行配对,协商链路密钥,并将设备标识和链路密钥的对应关系存储到列表中。该初始化过程使得后续遥控各个设备时不再需要进行配对,简化了后续处理过程。This embodiment adds an initialization process. During the initialization process, the remote controller pairs with each device one by one, negotiates a link key, and stores the corresponding relationship between the device identifier and the link key in a list. This initialization process eliminates the need for pairing when subsequent remote control of each device, which simplifies the subsequent processing process.

在一个实施例中,可能两个设备的位置很近,或者两个设备在遥控器的不同方向上,但是与遥控器的距离相同(包括实际距离非常接近,无线距离测量时得到相同的距离值的情况)。这种情况下如何确定被控设备,可以有多种实现方式。In one embodiment, the two devices may be located very close together, or the two devices may be in different directions of the remote control, but the distance from the remote control is the same (including the actual distance is very close, and the same distance value is obtained during wireless distance measurement Case). In this case, how to determine the controlled device can be realized in many ways.

方式1:每次遥控时记录下当前被遥控的设备,当至少两个设备反馈相同的距离时,查看至少两个设备中是否有上一次被遥控的设备,如果有,将该设备确定为本次被遥控的设备。Method 1: Record the currently remote-controlled device every time you remote control. When at least two devices report the same distance, check whether there is a device that was remotely controlled last time among at least two devices. If so, determine the device as the current one. The device being remotely controlled for the first time.

方式2:步骤104包括:步骤C1-步骤C3。Mode 2: Step 104 includes: Step C1-Step C3.

在步骤C1中,输出多个最近的距离对应的设备的提醒。In step C1, a plurality of reminders of devices corresponding to the closest distances are output.

在步骤C2中,接收针对一个设备的选择指令。In step C2, a selection instruction for a device is received.

在步骤C3中,根据所述选择指令确定所述最近的距离对应的设备。In step C3, the device corresponding to the shortest distance is determined according to the selection instruction.

方式2采用了输出提醒的方式,由用户选择被遥控的设备。Mode 2 adopts the mode of outputting a reminder, and the user selects the device to be controlled.

在一个实施例中,所述方法还包括:步骤D。In one embodiment, the method further includes: step D.

在步骤D中,向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。In step D, disconnect the connection with the determined device after sending the remote control instruction to the determined device.

本实施例可以在发送遥控指令后立即断开与设备的连接。方便后续遥控其它设备。也可以在下次接收到遥控操作的触发时,断开本次连接。In this embodiment, the connection with the device can be disconnected immediately after the remote control command is sent. It is convenient for subsequent remote control of other devices. It is also possible to disconnect the current connection when receiving the trigger of the remote control operation next time.

下面通过几个实施例详细介绍遥控器侧实现遥控设备的过程。The process of realizing the remote control device at the remote control side will be described in detail below through several embodiments.

图2是根据一示例性实施例示出的一种遥控设备的方法的流程图,如图2所示,该方法可以由遥控器实现,包括以下步骤:Fig. 2 is a flow chart of a method for remote control of a device according to an exemplary embodiment. As shown in Fig. 2, the method may be implemented by a remote controller, and includes the following steps:

在步骤201中,接收遥控操作的触发。In step 201, a trigger of a remote control operation is received.

在步骤202中,根据所述遥控操作的触发,广播连接请求报文。In step 202, a connection request message is broadcast according to the trigger of the remote control operation.

在步骤203中,接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息。In step 203, a connection response message sent by multiple devices is received, and the connection response message includes information related to distance.

在步骤204中,根据收到的与距离有关的信息,确定距离最近的设备。当距离最近的设备只有一个时,继续步骤208;当距离最近的设备至少有两个时,继续步骤205。In step 204, the device with the closest distance is determined according to the received distance-related information. When there is only one closest device, proceed to step 208; when there are at least two closest devices, proceed to step 205.

在步骤205中,输出多个最近的距离对应的设备的提醒。In step 205, a plurality of reminders of devices corresponding to the closest distances are output.

在步骤206中,接收针对一个设备的选择指令。In step 206, a selection instruction for a device is received.

在步骤207中,根据所述选择指令确定所述最近的距离对应的设备。In step 207, the device corresponding to the closest distance is determined according to the selection instruction.

在步骤208中,根据所述遥控操作的触发,生成遥控指令。In step 208, a remote control instruction is generated according to the trigger of the remote control operation.

在步骤209中,与确定的设备建立连接,并根据预先存储的链路密钥,向确定的设备发送所述遥控指令。In step 209, a connection is established with the determined device, and the remote control instruction is sent to the determined device according to the pre-stored link key.

在步骤210中,向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。In step 210, after the remote control instruction is sent to the determined device, the connection with the determined device is disconnected.

图3是根据一示例性实施例示出的一种遥控设备的方法的流程图,如图3所示,该方法可以由遥控器实现,包括以下步骤:Fig. 3 is a flow chart of a method for remote control of a device according to an exemplary embodiment. As shown in Fig. 3, the method may be implemented by a remote controller, and includes the following steps:

在步骤301中,广播配对请求报文。In step 301, a pairing request message is broadcast.

在步骤302中,接收多个设备发送的配对响应报文。In step 302, pairing response messages sent by multiple devices are received.

在步骤303中,与多个设备逐个进行配对,确定链路密钥并存储。In step 303, multiple devices are paired one by one, and the link key is determined and stored.

在步骤304中,接收遥控操作的触发。In step 304, a trigger of a remote control operation is received.

在步骤305中,根据所述遥控操作的触发,广播连接请求报文。In step 305, broadcast a connection request message according to the trigger of the remote control operation.

在步骤306中,接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息。In step 306, a connection response message sent by multiple devices is received, and the connection response message includes information related to distance.

在步骤307中,从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备。In step 307, the shortest distance is selected from multiple distance-related information, and the device corresponding to the shortest distance is determined.

在步骤308中,根据所述遥控操作的触发,生成遥控指令。In step 308, a remote control instruction is generated according to the trigger of the remote control operation.

在步骤309中,与确定的设备建立连接,并向确定的设备发送所述遥控指令。In step 309, a connection is established with the determined device, and the remote control instruction is sent to the determined device.

下面从被控设备侧介绍遥控设备的实现过程。The implementation process of the remote control device is introduced below from the controlled device side.

图4是根据一示例性实施例示出的一种遥控设备的方法的流程图,如图4所示,该方法可以由设备实现,包括以下步骤:Fig. 4 is a flowchart of a method for remote control of a device according to an exemplary embodiment. As shown in Fig. 4, the method may be implemented by the device and includes the following steps:

在步骤401中,接收遥控器广播的连接请求报文。In step 401, a connection request message broadcast by a remote controller is received.

在步骤402中,根据所述连接请求报文,确定到遥控器的与距离有关的信息。In step 402, the distance-related information to the remote controller is determined according to the connection request message.

在步骤403中,向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息。In step 403, a connection response message is sent to the remote controller, where the connection response message includes information related to distance.

在步骤404中,与遥控器建立连接,并接收遥控器发送的遥控指令。In step 404, a connection is established with the remote controller, and a remote control instruction sent by the remote controller is received.

在步骤405中,执行所述遥控指令。In step 405, the remote control instruction is executed.

本实施例中被遥控的设备需要反馈与距离有关的信息,以供遥控器选择设备。然后接受遥控器的遥控,执行遥控指令,完成遥控过程。In this embodiment, the remote-controlled device needs to feed back information related to the distance for the remote controller to select a device. Then accept the remote control of the remote controller, execute the remote control command, and complete the remote control process.

在一个实施例中,步骤404包括:步骤E。In one embodiment, step 404 includes: step E.

在步骤E中,根据预先存储的链路密钥,接收遥控器发送的遥控指令。In step E, according to the pre-stored link key, the remote control command sent by the remote control is received.

本实施例中预先存有链路密钥,可以保证遥控指令传输的安全性,并且实现自动回连,不需要配对过程,更不需要清除配对。In this embodiment, the link key is pre-stored, which can ensure the security of remote control command transmission, and realize automatic connection back, without the need for a pairing process, let alone clearing the pairing.

在一个实施例中,所述方法还包括:步骤F1-步骤F3。In one embodiment, the method further includes: step F1-step F3.

在步骤F1中,接收遥控器广播的配对请求报文。In step F1, a pairing request message broadcast by the remote controller is received.

在步骤F2中,向遥控器发送配对响应报文。In step F2, send a pairing response message to the remote controller.

在步骤F3中,与遥控器进行配对,确定链路密钥并存储。In step F3, pair with the remote controller, determine and store the link key.

本实施例增加了初始化过程,在初始化过程中,设备与遥控器进行配对,协商链路密钥,并保存链路密钥,方便实现自动回连。该初始化过程使得后续与遥控器连接时不再需要进行配对,简化了后续处理过程。In this embodiment, an initialization process is added. During the initialization process, the device is paired with the remote controller, the link key is negotiated, and the link key is saved to facilitate automatic connection back. This initialization process eliminates the need for pairing when subsequently connecting with the remote controller, which simplifies the subsequent processing process.

下面通过实施例详细介绍设备侧实现遥控设备的过程。The following describes in detail the process of realizing the remote control of the device on the device side through the embodiments.

图5是根据一示例性实施例示出的一种遥控设备的方法的流程图,如图5所示,该方法可以由设备实现,包括以下步骤:Fig. 5 is a flow chart of a method for remotely controlling a device according to an exemplary embodiment. As shown in Fig. 5, the method may be implemented by the device and includes the following steps:

在步骤501中,接收遥控器广播的配对请求报文。In step 501, a pairing request message broadcast by a remote controller is received.

在步骤502中,向遥控器发送配对响应报文。In step 502, a pairing response message is sent to the remote controller.

在步骤503中,与遥控器进行配对,确定链路密钥并存储。In step 503, pair with the remote controller, determine and store the link key.

在步骤504中,接收遥控器广播的连接请求报文。In step 504, a connection request message broadcast by the remote controller is received.

在步骤505中,根据所述连接请求报文,确定到遥控器的与距离有关的信息。In step 505, the distance-related information to the remote controller is determined according to the connection request message.

在步骤506中,向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息。In step 506, a connection response message is sent to the remote controller, where the connection response message includes information related to the distance.

在步骤507中,与遥控器建立连接,并根据预先存储的链路密钥,接收遥控器发送的遥控指令。In step 507, a connection is established with the remote controller, and a remote control instruction sent by the remote controller is received according to the pre-stored link key.

在步骤508中,执行所述遥控指令。In step 508, the remote control instruction is executed.

下面结合遥控器与设备两侧,介绍遥控设备的实现过程。The implementation process of the remote control device is introduced below combining the remote control and the two sides of the device.

图6是根据一示例性实施例示出的一种遥控设备的方法的流程图,如图6所示,该方法可以由遥控器和设备实现,包括以下步骤:Fig. 6 is a flow chart of a method for remote control of a device according to an exemplary embodiment. As shown in Fig. 6, the method can be implemented by a remote control and a device, and includes the following steps:

在步骤601中,遥控器广播配对请求报文。In step 601, the remote controller broadcasts a pairing request message.

在步骤602中,设备发送的配对响应报文。多个设备分别执行该过程。In step 602, the device sends a pairing response message. A plurality of devices respectively perform the process.

在步骤603中,遥控器与多个设备逐个进行配对,确定链路密钥并存储。In step 603, the remote controller is paired with multiple devices one by one, and the link key is determined and stored.

在步骤604中,遥控器接收遥控操作的触发。In step 604, the remote controller receives a remote control operation trigger.

在步骤605中,遥控器广播连接请求报文。In step 605, the remote controller broadcasts a connection request message.

在步骤606中,设备发送连接响应报文,所述连接响应报文包含与距离有关的信息。In step 606, the device sends a connection response packet, where the connection response packet includes information related to the distance.

在步骤607中,遥控器从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备。In step 607, the remote controller selects the shortest distance from a plurality of distance-related information, and determines the device corresponding to the shortest distance.

在步骤608中,遥控器根据所述遥控操作的触发,生成遥控指令。In step 608, the remote controller generates a remote control instruction according to the trigger of the remote control operation.

在步骤609中,遥控器与确定的设备建立连接,并根据预先存储的链路密钥,向确定的设备发送所述遥控指令。In step 609, the remote controller establishes a connection with the determined device, and sends the remote control command to the determined device according to the pre-stored link key.

在步骤610中,设备接收并执行遥控指令。In step 610, the device receives and executes the remote control instruction.

通过以上介绍了解了遥控设备的实现过程,该过程由遥控器和设备实现,下面分别针对两个设备的内部结构和功能进行介绍。Through the above introduction, we understand the implementation process of the remote control device. This process is realized by the remote control and the device. The internal structure and functions of the two devices are introduced below.

图7是根据一示例性实施例示出的一种遥控设备的装置示意图。参照图7,该装置包括:触发模块701、第一广播模块702、第一接收模块703、选择模块704、生成模块705和发送模块706。Fig. 7 is an apparatus schematic diagram of a remote control device according to an exemplary embodiment. Referring to FIG. 7 , the device includes: a triggering module 701 , a first broadcasting module 702 , a first receiving module 703 , a selecting module 704 , a generating module 705 and a sending module 706 .

触发模块701,用于接收遥控操作的触发。The triggering module 701 is configured to receive a trigger of a remote control operation.

第一广播模块702,用于根据所述遥控操作的触发,广播连接请求报文。The first broadcast module 702 is configured to broadcast a connection request message according to the trigger of the remote control operation.

第一接收模块703,用于接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息。The first receiving module 703 is configured to receive connection response messages sent by multiple devices, where the connection response messages include information related to distance.

选择模块704,用于从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备。A selection module 704, configured to select the shortest distance from a plurality of distance-related information, and determine a device corresponding to the shortest distance.

生成模块705,用于根据所述遥控操作的触发,生成遥控指令。The generation module 705 is configured to generate a remote control instruction according to the trigger of the remote control operation.

发送模块706,用于与确定的设备建立连接,并向确定的设备发送所述遥控指令。The sending module 706 is configured to establish a connection with the determined device, and send the remote control instruction to the determined device.

在一个实施例中,如图8所示,所述发送模块706包括:In one embodiment, as shown in FIG. 8, the sending module 706 includes:

发送子模块7061,用于根据预先存储的链路密钥,向确定的设备发送所述遥控指令。The sending submodule 7061 is configured to send the remote control instruction to the determined device according to the pre-stored link key.

在一个实施例中,如图9所示,所述装置还包括:In one embodiment, as shown in Figure 9, the device further includes:

第二广播模块707,用于广播配对请求报文。The second broadcast module 707 is configured to broadcast a pairing request message.

第二接收模块708,用于接收多个设备发送的配对响应报文。The second receiving module 708 is configured to receive pairing response messages sent by multiple devices.

密钥模块709,用于与多个设备逐个进行配对,确定链路密钥并存储。The key module 709 is configured to pair with multiple devices one by one, determine and store the link key.

在一个实施例中,最近的距离为多个;In one embodiment, the closest distance is multiple;

如图10所示,所述选择模块704包括:As shown in Figure 10, the selection module 704 includes:

输出子模块7041,用于输出多个最近的距离对应的设备的提醒。The output sub-module 7041 is configured to output multiple reminders of the devices corresponding to the closest distance.

接收子模块7042,用于接收针对一个设备的选择指令。The receiving submodule 7042 is configured to receive a selection instruction for a device.

确定子模块7043,用于根据所述选择指令确定所述最近的距离对应的设备。The determination submodule 7043 is configured to determine the device corresponding to the shortest distance according to the selection instruction.

在一个实施例中,如图11所示,所述装置还包括:In one embodiment, as shown in Figure 11, the device further includes:

断开模块710,用于向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。A disconnection module 710, configured to disconnect from the determined device after sending the remote control instruction to the determined device.

图12是根据一示例性实施例示出的一种遥控设备的装置示意图。参照图12,该装置包括:第一接收模块1201、距离模块1202、第一发送模块1203、第二接收模块1204和执行模块1205。Fig. 12 is a schematic diagram of a remote control device according to an exemplary embodiment. Referring to FIG. 12 , the device includes: a first receiving module 1201 , a distance module 1202 , a first sending module 1203 , a second receiving module 1204 and an execution module 1205 .

第一接收模块1201,用于接收遥控器广播的连接请求报文。The first receiving module 1201 is configured to receive a connection request message broadcast by the remote controller.

距离模块1202,用于根据所述连接请求报文,确定到遥控器的与距离有关的信息。The distance module 1202 is configured to determine information related to the distance to the remote controller according to the connection request message.

第一发送模块1203,用于向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息。The first sending module 1203 is configured to send a connection response message to the remote controller, where the connection response message includes information related to distance.

第二接收模块1204,用于与遥控器建立连接,并接收遥控器发送的遥控指令。The second receiving module 1204 is configured to establish a connection with the remote controller and receive remote control instructions sent by the remote controller.

执行模块1205,用于执行所述遥控指令。The execution module 1205 is configured to execute the remote control instruction.

在一个实施例中,如图13所示,所述第二接收模块1204包括:接收子模块12041。In one embodiment, as shown in FIG. 13 , the second receiving module 1204 includes: a receiving submodule 12041 .

接收子模块12041,用于根据预先存储的链路密钥,接收遥控器发送的遥控指令。The receiving sub-module 12041 is used to receive the remote control instruction sent by the remote control according to the pre-stored link key.

在一个实施例中,如图14所示,所述装置还包括:第三接收模块1206、第二发送模块1207和密钥模块1208。In one embodiment, as shown in FIG. 14 , the device further includes: a third receiving module 1206 , a second sending module 1207 and a key module 1208 .

第三接收模块1206,用于接收遥控器广播的配对请求报文。The third receiving module 1206 is configured to receive a pairing request message broadcast by the remote controller.

第二发送模块1207,用于向遥控器发送配对响应报文。The second sending module 1207 is configured to send a pairing response message to the remote controller.

密钥模块1208,用于与遥控器进行配对,确定链路密钥并存储。The key module 1208 is used for pairing with the remote controller, determining and storing the link key.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

一种遥控设备的装置,包括:A device for remote control equipment, comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收遥控操作的触发;Receive triggers for remote control operations;

根据所述遥控操作的触发,广播连接请求报文;Broadcasting a connection request message according to the triggering of the remote control operation;

接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息;receiving connection response messages sent by multiple devices, where the connection response messages include distance-related information;

从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备;selecting the shortest distance from a plurality of distance-related information, and determining a device corresponding to the shortest distance;

根据所述遥控操作的触发,生成遥控指令;generating a remote control instruction according to the trigger of the remote control operation;

与确定的设备建立连接,并向确定的设备发送所述遥控指令。Establish a connection with the determined device, and send the remote control instruction to the determined device.

所述处理器还可以被配置为:The processor can also be configured to:

所述向确定的设备发送所述遥控指令,包括:The sending the remote control command to the determined device includes:

根据预先存储的链路密钥,向确定的设备发送所述遥控指令。Send the remote control instruction to the determined device according to the pre-stored link key.

所述处理器还可以被配置为:The processor can also be configured to:

所述方法还包括:The method also includes:

广播配对请求报文;Broadcast pairing request message;

接收多个设备发送的配对响应报文;Receive pairing response messages sent by multiple devices;

与多个设备逐个进行配对,确定链路密钥并存储。Pair with multiple devices one by one, determine the link key and store it.

所述处理器还可以被配置为:The processor can also be configured to:

最近的距离为多个;The closest distance is multiple;

所述从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备,包括:The selecting the shortest distance from a plurality of distance-related information, and determining the device corresponding to the shortest distance includes:

输出多个最近的距离对应的设备的提醒;Output reminders of multiple devices corresponding to the closest distance;

接收针对一个设备的选择指令;receiving a selection command for a device;

根据所述选择指令确定所述最近的距离对应的设备。Determine the device corresponding to the shortest distance according to the selection instruction.

所述处理器还可以被配置为:The processor can also be configured to:

所述方法还包括:The method also includes:

向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。After the remote control instruction is sent to the determined device, the connection with the determined device is disconnected.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种遥控设备的方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the mobile terminal, the mobile terminal is enabled to execute a method for remote control of a device, the method comprising:

接收遥控操作的触发;Receive triggers for remote control operations;

根据所述遥控操作的触发,广播连接请求报文;Broadcasting a connection request message according to the triggering of the remote control operation;

接收多个设备发送的连接响应报文,所述连接响应报文包含与距离有关的信息;receiving connection response messages sent by multiple devices, where the connection response messages include distance-related information;

从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备;selecting the shortest distance from a plurality of distance-related information, and determining a device corresponding to the shortest distance;

根据所述遥控操作的触发,生成遥控指令;generating a remote control instruction according to the trigger of the remote control operation;

与确定的设备建立连接,并向确定的设备发送所述遥控指令。Establish a connection with the determined device, and send the remote control instruction to the determined device.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

所述向确定的设备发送所述遥控指令,包括:The sending the remote control command to the determined device includes:

根据预先存储的链路密钥,向确定的设备发送所述遥控指令。Send the remote control instruction to the determined device according to the pre-stored link key.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

所述方法还包括:The method also includes:

广播配对请求报文;Broadcast pairing request message;

接收多个设备发送的配对响应报文;Receive pairing response messages sent by multiple devices;

与多个设备逐个进行配对,确定链路密钥并存储。Pair with multiple devices one by one, determine the link key and store it.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

最近的距离为多个;The closest distance is multiple;

所述从多个与距离有关的信息中选择最近的距离,以及确定所述最近的距离对应的设备,包括:The selecting the shortest distance from a plurality of distance-related information, and determining the device corresponding to the shortest distance includes:

输出多个最近的距离对应的设备的提醒;Output reminders of multiple devices corresponding to the closest distance;

接收针对一个设备的选择指令;receiving a selection command for a device;

根据所述选择指令确定所述最近的距离对应的设备。Determine the device corresponding to the shortest distance according to the selection instruction.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

所述方法还包括:The method also includes:

向确定的设备发送所述遥控指令之后,断开与确定的设备的连接。After the remote control instruction is sent to the determined device, the connection with the determined device is disconnected.

一种遥控设备的装置,包括:A device for remote control equipment, comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收遥控器广播的连接请求报文;Receive the connection request message broadcast by the remote control;

根据所述连接请求报文,确定到遥控器的与距离有关的信息;Determine information related to the distance to the remote controller according to the connection request message;

向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息;Send a connection response message to the remote controller, where the connection response message includes distance-related information;

与遥控器建立连接,并接收遥控器发送的遥控指令;Establish a connection with the remote control and receive remote control commands sent by the remote control;

执行所述遥控指令。Execute the remote control instruction.

所述处理器还可以被配置为:The processor can also be configured to:

所述接收遥控器发送的遥控指令,包括:Said receiving the remote control command sent by the remote control includes:

根据预先存储的链路密钥,接收遥控器发送的遥控指令。According to the pre-stored link key, the remote control command sent by the remote control is received.

所述处理器还可以被配置为:The processor can also be configured to:

所述方法还包括:The method also includes:

接收遥控器广播的配对请求报文;Receive the pairing request message broadcast by the remote control;

向遥控器发送配对响应报文;Send a pairing response message to the remote controller;

与遥控器进行配对,确定链路密钥并存储。Pair with the remote control, determine the link key and store it.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种遥控设备的方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the mobile terminal, the mobile terminal is enabled to execute a method for remote control of a device, the method comprising:

接收遥控器广播的连接请求报文;Receive the connection request message broadcast by the remote control;

根据所述连接请求报文,确定到遥控器的与距离有关的信息;Determine information related to the distance to the remote controller according to the connection request message;

向遥控器发送连接响应报文,所述连接响应报文包含与距离有关的信息;Send a connection response message to the remote controller, where the connection response message includes distance-related information;

与遥控器建立连接,并接收遥控器发送的遥控指令;Establish a connection with the remote control and receive remote control commands sent by the remote control;

执行所述遥控指令。Execute the remote control instruction.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

所述接收遥控器发送的遥控指令,包括:Said receiving the remote control command sent by the remote control includes:

根据预先存储的链路密钥,接收遥控器发送的遥控指令。According to the pre-stored link key, the remote control command sent by the remote control is received.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

所述方法还包括:The method also includes:

接收遥控器广播的配对请求报文;Receive the pairing request message broadcast by the remote control;

向遥控器发送配对响应报文;Send a pairing response message to the remote controller;

与遥控器进行配对,确定链路密钥并存储。Pair with the remote control, determine the link key and store it.

图15是根据一示例性实施例示出的一种用于遥控设备的装置1500的框图。例如,装置1500可以被提供为一计算机。参照图15,装置1500包括处理组件1522,其进一步包括一个或多个处理器,以及由存储器1532所代表的存储器资源,用于存储可由处理组件1522的执行的指令,例如应用程序。存储器1532中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1522被配置为执行指令,以执行上述方法遥控设备。Fig. 15 is a block diagram of an apparatus 1500 for remote controlling a device according to an exemplary embodiment. For example, apparatus 1500 may be provided as a computer. 15, apparatus 1500 includes processing component 1522, which further includes one or more processors, and a memory resource represented by memory 1532 for storing instructions executable by processing component 1522, such as application programs. The application programs stored in memory 1532 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1522 is configured to execute instructions to perform the above-mentioned method for remote control of the device.

装置1500还可以包括一个电源组件1526被配置为执行装置1500的电源管理,一个有线或无线网络接口1550被配置为将装置1500连接到网络,和一个输入输出(I/O)接口1558。装置1500可以操作基于存储在存储器1532的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Apparatus 1500 may also include a power component 1526 configured to perform power management of apparatus 1500, a wired or wireless network interface 1550 configured to connect apparatus 1500 to a network, and an input-output (I/O) interface 1558. The apparatus 1500 can operate based on an operating system stored in the memory 1532, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. the method for a remote control equipment, it is characterised in that including:
Receive the triggering of remote manipulation;
According to the triggering of described remote manipulation, broadcast connection request message;
Receiving the connection response message that multiple equipment sends, described connection response message comprises and distance dependent Information;
From multiple information with distance dependent, select nearest distance, and determine described nearest distance Corresponding equipment;
According to the triggering of described remote manipulation, generate telecommand;
Set up with the equipment determined and be connected, and send described telecommand to the equipment determined.
The method of remote control equipment the most according to claim 1, it is characterised in that described to determining Equipment sends described telecommand, including:
According to the link key prestored, send described telecommand to the equipment determined.
The method of remote control equipment the most according to claim 2, it is characterised in that described method is also wrapped Include:
Broadcast pairing request message;
Receive the pairing response message that multiple equipment sends;
Match one by one with multiple equipment, determine link key and store.
The method of remote control equipment the most according to claim 1, it is characterised in that nearest distance is Multiple;
Described from multiple information with distance dependent, select nearest distance, and determine described nearest The equipment that distance is corresponding, including:
Export the prompting of equipment corresponding to multiple nearest distance;
Receive the selection for an equipment to instruct;
Instruction is selected to determine the equipment that described nearest distance is corresponding according to described.
The method of remote control equipment the most according to claim 1, it is characterised in that described method is also wrapped Include:
After the equipment determined sends described telecommand, disconnect and the connection of the equipment determined.
6. the method for a remote control equipment, it is characterised in that including:
Receive the connection request message of remote controller broadcast;
According to described connection request message, determine remote controller with distance dependent information;
Sending connection response message to remote controller, described connection response message comprises the information with distance dependent;
Set up with remote controller and be connected, and receive the telecommand that remote controller sends;
Perform described telecommand.
The method of remote control equipment the most according to claim 6, it is characterised in that described reception remote control The telecommand that device sends, including:
According to the link key prestored, receive the telecommand that remote controller sends.
The method of remote control equipment the most according to claim 7, it is characterised in that described method is also wrapped Include:
Receive the pairing request message of remote controller broadcast;
Pairing response message is sent to remote controller;
Match with remote controller, determine link key and store.
9. the device of a remote control equipment, it is characterised in that including:
Trigger module, for receiving the triggering of remote manipulation;
First broadcast module, for the triggering according to described remote manipulation, broadcasts connection request message;
First receiver module, for receiving the connection response message that multiple equipment sends, described connection response Message comprises the information with distance dependent;
Select module, for selecting nearest distance from multiple information with distance dependent, and determine The equipment that described nearest distance is corresponding;
Generation module, for the triggering according to described remote manipulation, generates telecommand;
Sending module, is connected for setting up with the equipment determined, and sends described remote control to the equipment determined Instruction.
The device of remote control equipment the most according to claim 9, it is characterised in that described transmission mould Block includes:
Send submodule, for according to the link key prestored, sending described distant to the equipment determined Control instruction.
The device of 11. remote control equipments according to claim 10, it is characterised in that described device is also Including:
Second broadcast module, is used for broadcasting pairing request message;
Second receiver module, for receiving the pairing response message that multiple equipment sends;
Cipher key module, for matching one by one with multiple equipment, determines link key and stores.
The device of 12. remote control equipments according to claim 9, it is characterised in that nearest distance For multiple;
Described selection module includes:
Output sub-module, for exporting the prompting of equipment corresponding to multiple nearest distance;
Receive submodule, instruct for receiving the selection for an equipment;
Determine submodule, for selecting instruction to determine the equipment that described nearest distance is corresponding according to described.
The device of 13. remote control equipments according to claim 9, it is characterised in that described device is also Including:
Disconnect module, after sending described telecommand to the equipment determined, disconnect and setting of determining Standby connection.
The device of 14. 1 kinds of remote control equipments, it is characterised in that including:
First receiver module, for receiving the connection request message of remote controller broadcast;
Spacing module, for according to described connection request message, determine remote controller with distance dependent Information;
First sending module, for sending connection response message, described connection response message bag to remote controller Containing the information with distance dependent;
Second receiver module, is connected for setting up with remote controller, and receives the telecommand that remote controller sends;
Perform module, be used for performing described telecommand.
The device of 15. remote control equipments according to claim 14, it is characterised in that described second connects Receipts module includes:
Receiving submodule, for according to the link key prestored, the remote control receiving remote controller transmission refers to Order.
The device of 16. remote control equipments according to claim 15, it is characterised in that described device is also Including:
3rd receiver module, for receiving the pairing request message of remote controller broadcast;
Second sending module, for sending pairing response message to remote controller;
Cipher key module, for matching with remote controller, determines link key and stores.
The device of 17. 1 kinds of remote control equipments, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receive the triggering of remote manipulation;
According to the triggering of described remote manipulation, broadcast connection request message;
Receiving the connection response message that multiple equipment sends, described connection response message comprises and distance dependent Information;
From multiple information with distance dependent, select nearest distance, and determine described nearest distance Corresponding equipment;
According to the triggering of described remote manipulation, generate telecommand;
Set up with the equipment determined and be connected, and send described telecommand to the equipment determined.
The device of 18. 1 kinds of remote control equipments, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receive the connection request message of remote controller broadcast;
According to described connection request message, determine remote controller with distance dependent information;
Sending connection response message to remote controller, described connection response message comprises the information with distance dependent;
Set up with remote controller and be connected, and receive the telecommand that remote controller sends;
Perform described telecommand.
CN201610413025.3A 2016-06-12 2016-06-12 Remote control method and device of equipment Pending CN105976589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610413025.3A CN105976589A (en) 2016-06-12 2016-06-12 Remote control method and device of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610413025.3A CN105976589A (en) 2016-06-12 2016-06-12 Remote control method and device of equipment

Publications (1)

Publication Number Publication Date
CN105976589A true CN105976589A (en) 2016-09-28

Family

ID=57011165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610413025.3A Pending CN105976589A (en) 2016-06-12 2016-06-12 Remote control method and device of equipment

Country Status (1)

Country Link
CN (1) CN105976589A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391303A (en) * 2018-02-13 2018-08-10 北京硬壳科技有限公司 The method of connection is established between terminal and applies its terminal
CN111564032A (en) * 2019-04-18 2020-08-21 赵飞腾 Automatic wireless relay management and control method
CN112634884A (en) * 2019-09-23 2021-04-09 北京声智科技有限公司 Method of controlling output audio, method of outputting audio, apparatus, electronic device, and computer-readable storage medium
CN113055976A (en) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 Wireless screen projection method, device, equipment and storage medium based on local area network

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1498030A (en) * 2002-09-27 2004-05-19 ���µ�����ҵ��ʽ���� remote control device
CN101188440A (en) * 2006-11-24 2008-05-28 索尼株式会社 Remote controlling device and remote controlling method
FR2924890A1 (en) * 2008-04-04 2009-06-12 Emmanuel Rouyer Automatic peripheral selecting method for e.g. electronic device to control video cassette recorder, involves automatically selecting nearest peripheral for remote control system based on level of received signal
CN102542768A (en) * 2012-02-10 2012-07-04 华为终端有限公司 Radio frequency equipment pairing method and system, and radio frequency equipment
CN103270707A (en) * 2010-09-07 2013-08-28 Bc卡有限公司 Bluetooth communication method and system
CN103453615A (en) * 2012-05-31 2013-12-18 珠海格力电器股份有限公司 radio frequency control processing method and device
CN103684500A (en) * 2012-09-25 2014-03-26 华为技术有限公司 Pairing method of wireless transmitting terminal and wireless receiving terminal and related device
CN103997358A (en) * 2014-05-21 2014-08-20 青岛海信电器股份有限公司 Method, device and system for pairing Bluetooth remote control unit and controlled devices
CN105589345A (en) * 2014-11-18 2016-05-18 小米科技有限责任公司 Apparatus control method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1498030A (en) * 2002-09-27 2004-05-19 ���µ�����ҵ��ʽ���� remote control device
CN101188440A (en) * 2006-11-24 2008-05-28 索尼株式会社 Remote controlling device and remote controlling method
FR2924890A1 (en) * 2008-04-04 2009-06-12 Emmanuel Rouyer Automatic peripheral selecting method for e.g. electronic device to control video cassette recorder, involves automatically selecting nearest peripheral for remote control system based on level of received signal
CN103270707A (en) * 2010-09-07 2013-08-28 Bc卡有限公司 Bluetooth communication method and system
CN102542768A (en) * 2012-02-10 2012-07-04 华为终端有限公司 Radio frequency equipment pairing method and system, and radio frequency equipment
CN103453615A (en) * 2012-05-31 2013-12-18 珠海格力电器股份有限公司 radio frequency control processing method and device
CN103684500A (en) * 2012-09-25 2014-03-26 华为技术有限公司 Pairing method of wireless transmitting terminal and wireless receiving terminal and related device
CN103997358A (en) * 2014-05-21 2014-08-20 青岛海信电器股份有限公司 Method, device and system for pairing Bluetooth remote control unit and controlled devices
CN105589345A (en) * 2014-11-18 2016-05-18 小米科技有限责任公司 Apparatus control method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391303A (en) * 2018-02-13 2018-08-10 北京硬壳科技有限公司 The method of connection is established between terminal and applies its terminal
CN111564032A (en) * 2019-04-18 2020-08-21 赵飞腾 Automatic wireless relay management and control method
CN111564032B (en) * 2019-04-18 2021-07-13 李维纯 Automatic wireless relay management and control method
CN112634884A (en) * 2019-09-23 2021-04-09 北京声智科技有限公司 Method of controlling output audio, method of outputting audio, apparatus, electronic device, and computer-readable storage medium
CN113055976A (en) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 Wireless screen projection method, device, equipment and storage medium based on local area network

Similar Documents

Publication Publication Date Title
CN107231606B (en) WiFi network access method, intelligent hardware equipment and electronic terminal
JP6330103B2 (en) Network connection method and apparatus, program, and recording medium
WO2021036513A1 (en) Smart device provisioning method, system, and readable medium
CN110740460B (en) Network access method and device of equipment, network equipment and storage medium
CN110636483A (en) Network distribution method and system
CN103458399B (en) Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
EP3185619B1 (en) Method and device for connecting to network
CN103533512A (en) Method, device and system for configuring and adding equipment into network group
KR20180044385A (en) Wireless network access method, device, and system
CN104936266A (en) A network access method and device
WO2018036071A1 (en) Method and device for networking devices
US12159129B2 (en) Method, user equipment, and application server for downloading application
US20200169774A1 (en) Control method and device
CN104009925A (en) Method and device for establishing bridge connection with router and router
CN105976589A (en) Remote control method and device of equipment
JP2018509009A (en) Routing information transfer method, apparatus, program, and recording medium
CN103561088B (en) A kind of long-range control method logged in based on account and device
KR20180020917A (en) Wireless audio device provisioning
CN107113890A (en) Method and device for device configuration
CN104916118A (en) Method and device for realizing infrared remote control
KR102197851B1 (en) Method and apparatus for discovery target in device-to-device direct communication
CN105978606B (en) Bluetooth equipment remote communication method, bluetooth equipment and client
US10694553B2 (en) Connection method of communication device and the communication device
CN106488537B (en) Sending method, device and mobile terminal
CN105246127A (en) A method and device for adding an intelligent device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160928

RJ01 Rejection of invention patent application after publication