[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110989372B - Device control method, device and system based on location information - Google Patents

Device control method, device and system based on location information Download PDF

Info

Publication number
CN110989372B
CN110989372B CN201911129668.5A CN201911129668A CN110989372B CN 110989372 B CN110989372 B CN 110989372B CN 201911129668 A CN201911129668 A CN 201911129668A CN 110989372 B CN110989372 B CN 110989372B
Authority
CN
China
Prior art keywords
instruction
command
target
controlled
devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911129668.5A
Other languages
Chinese (zh)
Other versions
CN110989372A (en
Inventor
王诗鹏
乔国辉
李林芙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911129668.5A priority Critical patent/CN110989372B/en
Publication of CN110989372A publication Critical patent/CN110989372A/en
Application granted granted Critical
Publication of CN110989372B publication Critical patent/CN110989372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本公开是关于一种基于位置信息的设备控制方法、基于位置信息的设备控制装置、基于位置信息的设备控制系统,以及电子设备和计算机可读存储介质。其中基于位置信息的设备控制方法应用于服务器,包括:通过指令设备,获取指令以及指令对应的一个或多个目标设备;基于指令设备与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备;发送指令至优先设备,使优先设备执行指令。本公开通过根据指令设备与目标设备之间的位置关系,确定需要执行指令的优先设备,避免了错误的执行,对用户指令实际意图更好的把握,执行更加准确和高效,为用户提供了方便,提高了用户的体验。

The present disclosure relates to a device control method based on location information, a device control apparatus based on location information, a device control system based on location information, and an electronic device and a computer-readable storage medium. The device control method based on location information is applied to a server, including: obtaining instructions and one or more target devices corresponding to the instructions through an instruction device; determining one or more priority devices in the target devices based on the positional relationship between the instruction device and the target device; and sending instructions to the priority device so that the priority device executes the instructions. The present disclosure determines the priority device that needs to execute the instruction based on the positional relationship between the instruction device and the target device, thereby avoiding erroneous execution, better grasping the actual intention of the user's instruction, and executing more accurately and efficiently, providing convenience for users and improving user experience.

Description

基于位置信息的设备控制方法、装置及系统Device control method, device and system based on location information

技术领域Technical Field

本公开涉及智能终端通信领域,尤其涉及基于位置信息的设备控制方法、基于位置信息的设备控制装置、基于位置信息的设备控制系统,以及电子设备和计算机可读存储介质。The present disclosure relates to the field of intelligent terminal communication, and in particular to a device control method based on location information, a device control apparatus based on location information, a device control system based on location information, and an electronic device and a computer-readable storage medium.

背景技术Background technique

随着智能家居的发展,越来越多的用户在居所内设置各种智能家居设备,实现各种自动化的功能。With the development of smart homes, more and more users are installing various smart home devices in their homes to realize various automated functions.

同时,在居所内智能家居的增加,也给控制带来了困难。智能设备可能设置于各个房间,类型也多样,同一个大类的产品中又有不同小类,同一类的产品也存在空间位置的不同。用户无法准确的控制当前需要控制的部分设备,导致一个指令同时控制了多个设备运行,而其中包括了无需运行的设备,使得用户只能手动个别操作,不能实现方便、准确的控制。At the same time, the increase in smart homes in homes has also brought difficulties to control. Smart devices may be set up in various rooms and of various types. There are different subcategories within the same category of products, and the same category of products also has different spatial locations. Users cannot accurately control some of the devices that need to be controlled at the moment, resulting in one instruction controlling multiple devices at the same time, including devices that do not need to be run, so users can only operate manually individually, and cannot achieve convenient and accurate control.

发明内容Summary of the invention

为克服相关技术中存在的问题,本公开提供一种基于位置信息的设备控制方法、基于位置信息的设备控制装置、基于位置信息的设备控制系统,以及电子设备和计算机可读存储介质。To overcome the problems existing in the related art, the present disclosure provides a device control method based on location information, a device control apparatus based on location information, a device control system based on location information, an electronic device and a computer-readable storage medium.

根据本公开实施例的第一方面,提供一种基于位置信息的设备控制方法,应用于服务器,方法包括:通过指令设备,获取指令以及指令对应的一个或多个目标设备;基于指令设备与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备;发送指令至优先设备,使优先设备执行指令。According to a first aspect of an embodiment of the present disclosure, a device control method based on location information is provided, which is applied to a server, and the method includes: obtaining instructions and one or more target devices corresponding to the instructions through an instruction device; determining one or more priority devices among the target devices based on the positional relationship between the instruction device and the target device; and sending instructions to the priority device so that the priority device executes the instructions.

在一实施例中,指令设备为智能音箱;通过指令设备,获取指令以及指令对应的一个或多个目标设备,包括:接收智能音箱发送的语音;对语音进行语音识别,得到指令以及目标设备。In one embodiment, the command device is a smart speaker; through the command device, the command and one or more target devices corresponding to the command are obtained, including: receiving voice sent by the smart speaker; performing voice recognition on the voice to obtain the command and the target device.

在一实施例中,指令设备与目标设备之间的位置关系通过以下步骤获得:调取指令设备的位置,以及目标设备的位置;基于指令设备的位置、以及目标设备的位置,确定指令设备与目标设备之间的位置关系。In one embodiment, the positional relationship between the command device and the target device is obtained by the following steps: retrieving the position of the command device and the position of the target device; and determining the positional relationship between the command device and the target device based on the position of the command device and the position of the target device.

在一实施例中,方法还包括:接收位置信息,位置信息包括指令设备的位置,以及全部被控设备的位置,其中,目标设备属于被控设备。In one embodiment, the method further includes: receiving location information, the location information including the location of the command device and the locations of all controlled devices, wherein the target device is one of the controlled devices.

在一实施例中,方法还包括:接收指令设备与全部被控设备中每两个设备之间的距离,其中,距离通过指令设备与被控设备的UWB芯片获取,目标设备属于被控设备;基于距离,确定指令设备的位置以及被控设备的位置。In one embodiment, the method further includes: receiving the distance between the command device and every two devices among all controlled devices, wherein the distance is obtained through the UWB chips of the command device and the controlled devices, and the target device belongs to the controlled device; based on the distance, determining the position of the command device and the position of the controlled device.

在一实施例中,方法还包括:当指令设备与全部被控设备中任一设备改变其位置后,接收改变位置的指令设备或被控设备的新位置,新位置通过指令设备与全部被控设备中未改变位置的设备重新确定。In one embodiment, the method further includes: when the command device and any one of the controlled devices change their positions, receiving the new position of the command device or the controlled device whose position has changed, and the new position is re-determined by the command device and the device whose position has not changed among all the controlled devices.

在一实施例中,指令设备和/或被控设备具有陀螺仪,通过陀螺仪检测移动,方法还包括:接收指令设备和/或被控设备移动发送的移动信号后,确定相应指令设备和/或被控设备改变其位置。In one embodiment, the command device and/or the controlled device has a gyroscope, and movement is detected by the gyroscope. The method also includes: after receiving a movement signal sent by the command device and/or the controlled device, determining that the corresponding command device and/or the controlled device changes its position.

在一实施例中,指令设备与目标设备之间的位置关系包括指令设备与目标设备之间的距离。In one embodiment, the positional relationship between the command device and the target device includes the distance between the command device and the target device.

在一实施例中,方法还包括:接收指令设备与全部被控设备之间的距离,其中,目标设备属于被控设备。In one embodiment, the method further includes: receiving the distance between the command device and all controlled devices, wherein the target device is one of the controlled devices.

根据本公开实施例的第二方面,提供一种基于位置信息的设备控制装置,应用于服务器,装置包括:接收单元,用于通过指令设备,获取指令以及指令对应的一个或多个目标设备;处理单元,用于基于指令设备与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备;发送单元,用于发送指令至优先设备,使优先设备执行指令。According to the second aspect of an embodiment of the present disclosure, there is provided a device control apparatus based on location information, which is applied to a server, and the apparatus comprises: a receiving unit, which is used to obtain instructions and one or more target devices corresponding to the instructions through an instruction device; a processing unit, which is used to determine one or more priority devices among the target devices based on the positional relationship between the instruction device and the target device; and a sending unit, which is used to send instructions to the priority device so that the priority device executes the instructions.

在一实施例中,指令设备为智能音箱;接收单元用于:接收智能音箱发送的语音;处理单元用于:对语音进行语音识别,得到指令以及目标设备。In one embodiment, the instruction device is a smart speaker; the receiving unit is used to receive voice sent by the smart speaker; and the processing unit is used to perform voice recognition on the voice to obtain instructions and a target device.

在一实施例中,处理单元还用于:调取指令设备的位置,以及目标设备的位置;基于指令设备的位置、以及目标设备的位置,确定指令设备与目标设备之间的位置关系。In one embodiment, the processing unit is further used to: retrieve the position of the command device and the position of the target device; and determine the positional relationship between the command device and the target device based on the position of the command device and the position of the target device.

在一实施例中,接收单元还用于:接收位置信息,位置信息包括指令设备的位置,以及全部被控设备的位置,其中,目标设备属于被控设备。In one embodiment, the receiving unit is further used to: receive location information, where the location information includes the location of the command device and the locations of all controlled devices, wherein the target device belongs to the controlled devices.

在一实施例中,接收单元还用于:接收指令设备与全部被控设备中每两个设备之间的距离,其中,距离通过指令设备与被控设备的UWB芯片获取,目标设备属于被控设备;处理单元还用于:基于距离,确定指令设备的位置以及被控设备的位置。In one embodiment, the receiving unit is also used to: receive the distance between the command device and every two devices among all the controlled devices, wherein the distance is obtained through the UWB chips of the command device and the controlled device, and the target device belongs to the controlled device; the processing unit is also used to: determine the position of the command device and the position of the controlled device based on the distance.

在一实施例中,接收单元还用于:当指令设备与全部被控设备中任一设备改变其位置后,接收改变位置的指令设备或被控设备的新位置,新位置通过指令设备与全部被控设备中未改变位置的设备重新确定。In one embodiment, the receiving unit is further used for: when the command device and any device among all the controlled devices change their positions, receiving the new position of the command device or the controlled device whose position has changed, and the new position is re-determined by the command device and the device among all the controlled devices whose positions have not changed.

在一实施例中,指令设备和/或被控设备具有陀螺仪,通过陀螺仪检测移动,接收单元还用于:接收指令设备和/或被控设备移动发送的移动信号,确定相应指令设备和/或被控设备改变其位置。In one embodiment, the command device and/or the controlled device has a gyroscope, and movement is detected by the gyroscope. The receiving unit is also used to: receive a movement signal sent by the command device and/or the controlled device, and determine whether the corresponding command device and/or the controlled device changes its position.

在一实施例中,指令设备与目标设备质之间的位置关系包括指令设备与目标设备之间的距离。In one embodiment, the positional relationship between the command device and the target device includes a distance between the command device and the target device.

在一实施例中,接收单元还用于:接收并保存指令设备与全部被控设备之间的距离,其中,目标设备属于被控设备。In one embodiment, the receiving unit is further used to: receive and save the distances between the command device and all controlled devices, wherein the target device is one of the controlled devices.

根据本公开实施例的第三方面,提供一种基于位置信息的设备控制系统,包括:被控设备,被控设备能够接收服务器发送的指令,并执行相应的功能;指令设备,用于获取指令以及指令对应的一个或多个目标设备,并发送至服务器,其中目标设备属于被控设备;服务器,用于接收指令设备发送的指令以及目标设备,基于指令设备与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备,并将指令发送至优先设备。According to a third aspect of an embodiment of the present disclosure, there is provided a device control system based on location information, comprising: a controlled device, which is capable of receiving instructions sent by a server and executing corresponding functions; a command device, which is used to obtain instructions and one or more target devices corresponding to the instructions, and send them to the server, wherein the target device belongs to the controlled device; and a server, which is used to receive the instructions and the target device sent by the command device, determine one or more priority devices among the target devices based on the positional relationship between the command device and the target device, and send the instructions to the priority devices.

在一实施例中,指令设备为智能音箱;智能音箱获取语音,并发送语音至服务器,其中语音包括指令以及目标设备;服务器接收语音,并通过对语音的语音识别获取指令以及目标设备。In one embodiment, the command device is a smart speaker; the smart speaker acquires voice and sends the voice to a server, wherein the voice includes commands and a target device; the server receives the voice and acquires the commands and the target device through voice recognition of the voice.

在一实施例中,服务器获取被控设备以及指令设备的位置,并基于位置确定指令设备与目标设备之间的位置关系。In one embodiment, the server obtains the positions of the controlled device and the command device, and determines the positional relationship between the command device and the target device based on the positions.

在一实施例中,服务器获取被控设备分别与指令设备之间的距离,并基于距离确定指令设备与目标设备之间的位置关系。In one embodiment, the server obtains the distances between the controlled devices and the command device respectively, and determines the positional relationship between the command device and the target device based on the distances.

根据本公开实施例的第四方面,提供一种电子设备,包括:存储器,用于存储指令;以及处理器,用于调用存储器存储的指令执行第一方面的基于位置信息的设备控制方法。According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute the device control method based on location information of the first aspect.

根据本公开实施例的第五方面,提供一种计算机可读存储介质,存储有指令,指令被处理器执行时,执行第一方面的基于位置信息的设备控制方法。According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, storing instructions, and when the instructions are executed by a processor, the device control method based on location information of the first aspect is executed.

本公开的实施例提供的技术方案可以包括以下有益效果:通过根据指令设备与目标设备之间的位置关系,确定需要执行指令的优先设备,避免了错误的执行,对用户指令实际意图更好的把握,执行更加准确和高效,为用户提供了方便,提高了用户的体验。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by determining the priority device that needs to execute the instruction based on the positional relationship between the instruction device and the target device, erroneous execution is avoided, the actual intention of the user's instruction is better grasped, the execution is more accurate and efficient, convenience is provided to the user, and the user experience is improved.

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

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

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

图1是根据一示例性实施例示出的一种基于位置信息的设备控制方法的流程示意图;FIG1 is a schematic flow chart of a device control method based on location information according to an exemplary embodiment;

图2是根据一示例性实施例示出的另一种基于位置信息的设备控制方法的流程示意图;FIG2 is a flow chart of another device control method based on location information according to an exemplary embodiment;

图3是根据一示例性实施例示出的另一种基于位置信息的设备控制方法的流程示意图;FIG3 is a schematic flow chart of another device control method based on location information according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种基于位置信息的设备控制装置的示意框图;FIG4 is a schematic block diagram of a device control apparatus based on location information according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种基于位置信息的设备控制系统的示意框图;FIG5 is a schematic block diagram showing a device control system based on location information according to an exemplary embodiment;

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

图7是根据一示例性实施例示出的一种电子设备的示意框图。Fig. 7 is a schematic block diagram of an electronic device according to an exemplary embodiment.

具体实施方式Detailed ways

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

本公开提供一种基于位置信息的设备控制方法10,应用于服务器,其中服务器可以通过WiFi与本公开中的其他设备进行通信连接,参见图1,基于位置信息的设备控制方法10包括步骤S11-步骤S13,以下详细说明:The present disclosure provides a device control method 10 based on location information, which is applied to a server, wherein the server can communicate with other devices in the present disclosure via WiFi. Referring to FIG. 1 , the device control method 10 based on location information includes steps S11 to S13, which are described in detail below:

步骤S11,通过指令设备,获取指令以及指令对应的一个或多个目标设备。Step S11, obtaining an instruction and one or more target devices corresponding to the instruction through an instruction device.

用户通过指令设备,向服务器发送指令,通过简单指令,实现对一些设备的控制。其中,指令设备可以是便于用户输入指令的设备,目标设备可以是居所内其他智能家居设备,如智能灯、智能电视、智能窗帘等。The user sends instructions to the server through the command device, and controls some devices through simple instructions. The command device can be a device that is convenient for the user to input instructions, and the target device can be other smart home devices in the residence, such as smart lights, smart TVs, smart curtains, etc.

在一实施例中,指令设备为智能音箱;步骤S11可以包括:接收智能音箱发送的语音;对语音进行语音识别,得到指令以及目标设备。智能音箱可以接收语音,用户可以通过语音方便的进行指令输入,智能音箱在接收到语音后,将语音上传至服务器,服务器可以通过神经网络对语音进行语音识别,从而得到用户指令,以及用户指令对应的目标设备。In one embodiment, the instruction device is a smart speaker; step S11 may include: receiving a voice sent by the smart speaker; performing voice recognition on the voice to obtain an instruction and a target device. The smart speaker can receive voice, and the user can conveniently input instructions through voice. After receiving the voice, the smart speaker uploads the voice to the server, and the server can perform voice recognition on the voice through a neural network to obtain the user instruction and the target device corresponding to the user instruction.

步骤S12,基于指令设备与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备。Step S12: determining one or more priority devices among the target devices based on the positional relationship between the instruction device and the target device.

目标设备可能有多个,而其中可能仅有部分是用户需要进行操控的,如通过智能音箱进行语音输入的场景中,用户语音是“打开灯”,经过识别确定目标设备为灯,而居所内可能在各个房间内均存在多个智能灯,而实际上用户的需求仅为打开本房间的灯。通过根据指令设备与目标设备之间的位置关系,确定其中的优先设备,即用户可能实际需要操控的设备。There may be multiple target devices, and only some of them may be controlled by the user. For example, in the scenario of voice input through a smart speaker, the user's voice is "turn on the light", and the target device is determined to be a light after recognition. However, there may be multiple smart lights in each room of the house, but the user's actual need is only to turn on the light in this room. By determining the positional relationship between the command device and the target device, the priority device, that is, the device that the user may actually need to control, is determined.

其中,本公开所述的位置关系,可以是指令设备与目标设备之间的实际位置,如根据是否在同一房间的位置关系进行确定;也可以是指令设备与目标设备之间的距离,如根据指令设备与目标设备之间的距离远近进行确定。Among them, the position relationship described in the present disclosure can be the actual position between the command device and the target device, such as determined based on whether they are in the same room; it can also be the distance between the command device and the target device, such as determined based on the distance between the command device and the target device.

步骤S13,发送指令至优先设备,使优先设备执行指令。Step S13, sending the instruction to the priority device so that the priority device executes the instruction.

在确定优先设备后,仅将指令发送至优先设备,实现用户对设备的指令对应的功能,而对其余目标设备,不进行操作,从而保障了在用户指令中包括多个目标设备的情况下,对用户指令真实意图的把握,满足用户需求,提供了更方便的操作,用户无需对个别设备二次操作,或输入更具体的指令。After determining the priority device, the instruction is only sent to the priority device to implement the function corresponding to the user's instruction to the device, while no operation is performed on the remaining target devices. This ensures that when the user instruction includes multiple target devices, the true intention of the user instruction is grasped, meets user needs, and provides more convenient operation. Users do not need to perform secondary operations on individual devices or enter more specific instructions.

基于位置关系可以是只是作为判断的一个标准,如果在用户的语音指令中已经包括的明确的位置信息,则不再通过与指令设备位置关系进行判断。在一些具体场景中,一个类别的设备可能还分为具体小类,如“灯”这一类别的设备中还可以细分为台灯、落地灯、吸顶灯、吊灯等。用户指令中如无具体细分类别指令,则代表全部,如包含细分类别,则也作为判断的优先标准,例如:用户指令是:打开台灯,根据与指令设备的位置关系判断,本房间没有台灯,台灯位于另一房间中,此总情况以用户指令为优先标准,而不仅仅考虑位置关系,因此,控制打开另一房间的台灯;而如果其他多个房间均具有台灯,则可以同时考虑位置关系,打开最近房间内的台灯。The position relationship can be used as just one criterion for judgment. If the user's voice command already includes clear position information, the position relationship with the command device will no longer be used for judgment. In some specific scenarios, a category of equipment may be divided into specific subcategories. For example, the "lamp" category of equipment can be further divided into table lamps, floor lamps, ceiling lamps, chandeliers, etc. If there is no specific sub-category instruction in the user's command, it represents all. If it contains sub-categories, it is also used as a priority criterion for judgment. For example: the user's command is: turn on the table lamp. According to the position relationship with the command device, there is no table lamp in this room, and the table lamp is located in another room. In this general situation, the user command is used as the priority criterion, not just the position relationship. Therefore, the table lamp in another room is controlled to be turned on; if there are table lamps in multiple other rooms, the position relationship can be considered at the same time to turn on the table lamp in the nearest room.

在一实施例中,如图2所示,在步骤S12中,指令设备与目标设备之间的位置关系可以通过以下步骤获得:步骤S121,调取指令设备的位置,以及目标设备的位置;步骤S122,基于指令设备的位置、以及目标设备的位置,确定指令设备与目标设备之间的位置关系。服务器可以存储指令设备以及目标设备各自的位置,基于各自的位置,来确定指令设备和目标设备之间的位置关系。如在一些场景中,可以判断两者是否在一个房间,或者是否在一个房间的局部区域,从而进行确定优先设备。In one embodiment, as shown in FIG. 2 , in step S12, the positional relationship between the command device and the target device can be obtained by the following steps: step S121, retrieve the position of the command device and the position of the target device; step S122, determine the positional relationship between the command device and the target device based on the position of the command device and the position of the target device. The server can store the positions of the command device and the target device, and determine the positional relationship between the command device and the target device based on their respective positions. For example, in some scenarios, it can be determined whether the two are in the same room or in a local area of a room, so as to determine the priority device.

在一实施例中,基于位置信息的设备控制方法10还可以包括:接收位置信息,位置信息包括指令设备的位置,以及全部被控设备的位置,其中,目标设备属于被控设备。本实施例中,用户可以通过如手机等智能终端设备进行位置的设置,对居所地图、以及指令设备和全部被控设备的位置进行直接设定,并将位置信息发送至服务器。通过用户的设定,获取全部智能设备的位置信息,以便于针对用户指令判断优先设备。在一些具体场景中,用户还可以对设备进行品类标识或名称标识,便于明确操作指令。In one embodiment, the device control method 10 based on location information may further include: receiving location information, the location information including the location of the command device and the location of all controlled devices, wherein the target device belongs to the controlled device. In this embodiment, the user can set the location through a smart terminal device such as a mobile phone, directly set the residence map, the location of the command device and all controlled devices, and send the location information to the server. Through the user's settings, the location information of all smart devices is obtained to facilitate the judgment of the priority device according to the user's instructions. In some specific scenarios, the user can also identify the category or name of the device to facilitate the clarification of the operation instructions.

在一实施例中,如图3所示,基于位置信息的设备控制方法10还可以包括:步骤S14,接收指令设备与全部被控设备中每两个设备之间的距离,其中,距离通过指令设备与被控设备的UWB(超宽带,Ultra Wide Band)芯片获取,目标设备属于被控设备;步骤S15,基于距离,确定指令设备的位置以及被控设备的位置。本实施例中,用户无需对各个设备进行位置的设定,而是通过各个设备的UWB芯片获取两两设备之间的距离,再根据获取的距离确定设备之间的相对位置关系。具体而言,两个设备可以通过UWB芯片进行信号的收发,可以通过如飞行时间(time of flight,TOF)测距等方式获取距离,由于UWB测距能够保证厘米级的准确性,因此多个设备可以在房间任何位置,相互进行定位。服务器确定全部设备两两之间的距离后,可以根据三角定位法确定设备之间的相对位置关系。服务器在确定目标设备后,可以根据指令设备和目标设备之间的相对位置关系,确定优先设备。In one embodiment, as shown in FIG3 , the device control method 10 based on location information may further include: step S14, receiving the distance between the command device and every two devices in all controlled devices, wherein the distance is obtained through the UWB (Ultra Wide Band) chip of the command device and the controlled device, and the target device belongs to the controlled device; step S15, based on the distance, determining the position of the command device and the position of the controlled device. In this embodiment, the user does not need to set the position of each device, but obtains the distance between the two devices through the UWB chip of each device, and then determines the relative position relationship between the devices according to the obtained distance. Specifically, the two devices can send and receive signals through the UWB chip, and the distance can be obtained by methods such as time of flight (TOF) ranging. Since UWB ranging can ensure centimeter-level accuracy, multiple devices can locate each other at any position in the room. After the server determines the distance between all devices, it can determine the relative position relationship between the devices according to the triangulation positioning method. After determining the target device, the server can determine the priority device according to the relative position relationship between the command device and the target device.

在另一些实施例中,用户也可以在室内设置专门用于定位的定位设备,同样具有UWB芯片的定位设备具有采用同样的方式进行距离测算定位设备,对包括指令设备和被控设备在内的全部设备进行定位。In other embodiments, the user may also set up a positioning device indoors specifically for positioning. The positioning device also having a UWB chip can use the same method to measure the distance and locate all devices including the command device and the controlled device.

本公开的指令设备可以是手机、智能音箱等设备,同时被控设备也可以是台灯等小型设备,设备的位置可能会随用户移动或摆放位置更换的原因发生位置变化,如不及时更新位置,会造成之后的错误判断,导致不准确的操控。The command device disclosed in the present invention can be a mobile phone, smart speaker or other device, and the controlled device can also be a small device such as a desk lamp. The position of the device may change due to the user's movement or placement change. If the position is not updated in time, it will cause subsequent misjudgment and lead to inaccurate control.

在一实施例中,用户可以在设备进行位置变化后,对其位置进行重新设定并发送至服务器,以更新位置。In one embodiment, after the location of the device changes, the user may reset the location and send the location information to the server to update the location.

在另一实施例中,基于位置信息的设备控制方法10还可以包括:当指令设备与全部被控设备中任一设备改变其位置后,接收改变位置的指令设备或被控设备的新位置,新位置通过指令设备与全部被控设备中未改变位置的设备重新确定。通过其他装置对变化位置的设备进行重新距离测算和位置确定,及时的更新设备位置,保证对于优先设备的确定的准确性。In another embodiment, the device control method 10 based on position information may further include: when the command device and any device among all the controlled devices change their positions, receiving the new position of the command device or the controlled device whose position has changed, and re-determining the new position through the command device and the device whose position has not changed among all the controlled devices. Re-calculating the distance and determining the position of the device whose position has changed by other means, timely updating the device position, and ensuring the accuracy of determining the priority device.

在一些实施例中,指令设备和/或被控设备可以具有陀螺仪,通过陀螺仪检测移动,在发送移动后,可以向服务器发送移动信号,服务器接收到指令设备和/或被控设备发送的移动信号后,确定其位置发生变化并对其位置进行更新。该实施例能够自动检测并更新设备的位置变化。在又一些实施例中,也可以通过定期相互检测的方式自动更新,设备定期检测相互之间的距离,当一个设备与其他多个设备之间的距离发生变化时,则认为该设备发生了位置变化,此时通过其余设备对其进行定位,从而更新位置。In some embodiments, the command device and/or the controlled device may have a gyroscope, and the movement may be detected by the gyroscope. After sending the movement, a movement signal may be sent to the server. After receiving the movement signal sent by the command device and/or the controlled device, the server determines that its position has changed and updates its position. This embodiment can automatically detect and update the position change of the device. In some other embodiments, it can also be automatically updated by periodically detecting each other. The devices periodically detect the distance between each other. When the distance between a device and multiple other devices changes, it is considered that the device has changed its position. At this time, it is located by the remaining devices to update the position.

在一些实施例中,可以根据需要进行多种方式的组合,如指令设备更多是智能音箱等小型设备,其位置容易发生改变,在指令设备中设置有陀螺仪,能够在其位置变化后及时的更新;而被控设备包括一些位置固定的设备,如吸顶灯、窗帘、落地灯等,一般不会发生位置改变,当位置改变时,可以基于用户的位置设定指令对其记性位置更新。In some embodiments, a variety of combinations can be made as needed. For example, the command device is mostly a small device such as a smart speaker, whose position is prone to change. A gyroscope is provided in the command device, which can be updated in time after its position changes. The controlled devices include some fixed-position devices, such as ceiling lamps, curtains, floor lamps, etc., which generally do not change position. When the position changes, the command can be set based on the user's position to update its memory position.

在一实施例中,在步骤S12中,指令设备与目标设备之间的位置关系包括指令设备与目标设备之间的距离。本实施例中,服务器可以仅保存各设备之间的距离,并根据距离的远近作为位置关系以确定目标设备中的优先设备。In one embodiment, in step S12, the positional relationship between the command device and the target device includes the distance between the command device and the target device. In this embodiment, the server may only save the distance between the devices and determine the priority device among the target devices based on the distance as the positional relationship.

在一实施例中,基于位置信息的设备控制方法10还可以包括:接收指令设备与全部被控设备之间的距离,其中,目标设备属于被控设备。可以接收来自于用户的直接设置,用户将设备之间的距离确定并发送至服务器,也可以通过前文所述的通过UWB芯片进行测距,并发送至服务器。In one embodiment, the device control method 10 based on location information may further include: receiving the distance between the command device and all controlled devices, wherein the target device belongs to the controlled device. Direct settings from the user may be received, and the user determines the distance between the devices and sends it to the server, or the distance may be measured by the UWB chip as described above and sent to the server.

基于同一个发明构思,图4示出了一种基于位置信息的设备控制装置100,如图4所示,基于位置信息的设备控制装置100应用于服务器,包括:接收单元110,用于通过指令设备,获取指令以及指令对应的一个或多个目标设备;处理单元120,用于基于指令设备与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备;发送单元130,用于发送指令至优先设备,使优先设备执行指令。Based on the same inventive concept, Figure 4 shows a device control device 100 based on location information. As shown in Figure 4, the device control device 100 based on location information is applied to a server, including: a receiving unit 110, used to obtain instructions and one or more target devices corresponding to the instructions through an instruction device; a processing unit 120, used to determine one or more priority devices in the target device based on the positional relationship between the instruction device and the target device; a sending unit 130, used to send instructions to the priority device so that the priority device executes the instruction.

在一实施例中,指令设备为智能音箱;接收单元110用于:接收智能音箱发送的语音;处理单元120用于:对语音进行语音识别,得到指令以及目标设备。In one embodiment, the instruction device is a smart speaker; the receiving unit 110 is used to receive voice sent by the smart speaker; the processing unit 120 is used to perform voice recognition on the voice to obtain instructions and target devices.

在一实施例中,处理单元120还用于:调取指令设备的位置,以及目标设备的位置;基于指令设备的位置、以及目标设备的位置,确定指令设备与目标设备之间的位置关系。In one embodiment, the processing unit 120 is further configured to: retrieve the position of the command device and the position of the target device; and determine the positional relationship between the command device and the target device based on the position of the command device and the position of the target device.

在一实施例中,接收单元110还用于:接收位置信息,位置信息包括指令设备的位置,以及全部被控设备的位置,其中,目标设备属于被控设备。In one embodiment, the receiving unit 110 is further configured to: receive location information, where the location information includes the location of the command device and the locations of all controlled devices, wherein the target device is a controlled device.

在一实施例中,接收单元110还用于:接收指令设备与全部被控设备中每两个设备之间的距离,其中,距离通过指令设备与被控设备的UWB芯片获取,目标设备属于被控设备;处理单元120还用于:基于距离,确定指令设备的位置以及被控设备的位置。In one embodiment, the receiving unit 110 is further used to: receive the distance between the command device and every two devices among all the controlled devices, wherein the distance is obtained through the UWB chips of the command device and the controlled device, and the target device belongs to the controlled device; the processing unit 120 is further used to: determine the position of the command device and the position of the controlled device based on the distance.

在一实施例中,接收单元110还用于:当指令设备与全部被控设备中任一设备改变其位置后,接收改变位置的指令设备或被控设备的新位置,新位置通过指令设备与全部被控设备中未改变位置的设备重新确定。In one embodiment, the receiving unit 110 is further used to: when the command device and any device among all the controlled devices change their positions, receive the new position of the command device or the controlled device that has changed its position, and the new position is re-determined by the command device and the device among all the controlled devices that has not changed its position.

在一实施例中,指令设备和/或被控设备具有陀螺仪,通过陀螺仪检测移动,接收单元110还用于:接收指令设备和/或被控设备移动发送的移动信号,确定相应指令设备和/或被控设备改变其位置。In one embodiment, the command device and/or the controlled device has a gyroscope, and movement is detected by the gyroscope. The receiving unit 110 is also used to: receive a movement signal sent by the command device and/or the controlled device, and determine whether the corresponding command device and/or the controlled device changes its position.

在一实施例中,指令设备与目标设备之间的位置关系包括指令设备与目标设备之间的距离。In one embodiment, the positional relationship between the command device and the target device includes the distance between the command device and the target device.

在一实施例中,接收单元110还用于:接收并保存指令设备与全部被控设备之间的距离,其中,目标设备属于被控设备。In one embodiment, the receiving unit 110 is further configured to: receive and save the distances between the command device and all controlled devices, wherein the target device is a controlled device.

关于上述实施例中的基于位置信息的设备控制100,其中各个单元执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,通过根据指令设备与目标设备之间的位置关系,确定需要执行指令的优先设备,避免了错误的执行,对用户指令实际意图更好的把握,执行更加准确和高效,为用户提供了方便,提高了用户的体验。Regarding the device control 100 based on location information in the above-mentioned embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method. By determining the priority device that needs to execute the instruction based on the positional relationship between the instruction device and the target device, erroneous execution is avoided, the actual intention of the user's instruction is better grasped, and the execution is more accurate and efficient, which provides convenience for users and improves the user experience.

基于同一个发明构思,图5示出了一种基于位置信息的设备控制系统200,包括:被控设备210,被控设备210能够接收服务器220发送的指令,并执行相应的功能;指令设备230,用于获取指令以及指令对应的一个或多个目标设备,并发送至服务器220,其中目标设备属于被控设备210;服务器220,用于接收指令设备230发送的指令以及目标设备,基于指令设备230与目标设备之间的位置关系,确定目标设备中的一个或多个优先设备,并将指令发送至优先设备。Based on the same inventive concept, Figure 5 shows a device control system 200 based on location information, including: a controlled device 210, which can receive instructions sent by a server 220 and perform corresponding functions; an instruction device 230, which is used to obtain instructions and one or more target devices corresponding to the instructions, and send them to the server 220, wherein the target device belongs to the controlled device 210; the server 220, which is used to receive instructions and target devices sent by the instruction device 230, determine one or more priority devices among the target devices based on the positional relationship between the instruction device 230 and the target device, and send the instructions to the priority devices.

在一实施例中,指令设备230为智能音箱;智能音箱获取语音,并发送语音至服务器220,其中语音包括指令以及目标设备;服务器220接收语音,并通过对语音的语音识别获取指令以及目标设备。In one embodiment, the instruction device 230 is a smart speaker; the smart speaker acquires voice and sends the voice to the server 220, where the voice includes instructions and a target device; the server 220 receives the voice and acquires instructions and the target device through voice recognition of the voice.

在一实施例中,服务器220获取被控设备210以及指令设备230的位置,并基于位置确定指令设备230与目标设备之间的位置关系。In one embodiment, the server 220 obtains the locations of the controlled device 210 and the command device 230 , and determines the location relationship between the command device 230 and the target device based on the locations.

在一实施例中,服务器220获取被控设备210分别与指令设备230之间的距离,并基于距离确定指令设备230与目标设备之间的位置关系。In one embodiment, the server 220 obtains the distance between the controlled device 210 and the command device 230 respectively, and determines the position relationship between the command device 230 and the target device based on the distance.

图6是根据一示例性实施例示出的前述任一实施例装置的示意框图。例如,装置300可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 6 is a schematic block diagram of an apparatus according to any of the above embodiments, according to an exemplary embodiment. For example, the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

参照图6,装置300可以包括以下一个或多个组件:处理组件302,存储器304,电力组件306,多媒体组件308,音频组件310,输入/输出(I/O)的接口312,传感器组件314,以及通信组件316。6 , the apparatus 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input/output (I/O) interface 312 , a sensor component 314 , and a communication component 316 .

处理组件302通常控制装置300的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件302可以包括一个或多个处理器320来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件302可以包括一个或多个模块,便于处理组件302和其他组件之间的交互。例如,处理组件302可以包括多媒体模块,以方便多媒体组件308和处理组件302之间的交互。The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.

存储器304被配置为存储各种类型的数据以支持在装置300的操作。这些数据的示例包括用于在装置300上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器304可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

电力组件306为装置300的各种组件提供电力。电力组件306可以包括电源管理系统,一个或多个电源,及其他与为装置300生成、管理和分配电力相关联的组件。The power component 306 provides power to the various components of the device 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.

多媒体组件308包括在所述装置300和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件308包括一个前置摄像头和/或后置摄像头。当设备300处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and/or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

音频组件310被配置为输出和/或输入音频信号。例如,音频组件310包括一个麦克风(MIC),当装置300处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器304或经由通信组件316发送。在一些实施例中,音频组件310还包括一个扬声器,用于输出音频信号。The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.

I/O接口312为处理组件302和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。I/O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

传感器组件314包括一个或多个传感器,用于为装置300提供各个方面的状态评估。例如,传感器组件314可以检测到装置300的打开/关闭状态,组件的相对定位,例如所述组件为装置300的显示器和小键盘,传感器组件314还可以检测装置300或装置300一个组件的位置改变,用户与装置300接触的存在或不存在,装置300方位或加速/减速和装置300的温度变化。传感器组件314可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件314还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件314还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor assembly 314 includes one or more sensors for providing various aspects of the status assessment of the device 300. For example, the sensor assembly 314 can detect the open/closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration/deceleration of the device 300, and the temperature change of the device 300. The sensor assembly 314 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件316被配置为便于装置300和其他设备之间有线或无线方式的通信。装置300可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件316经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件316还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置300可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the apparatus 300 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

在示例性实施例中,还提供了一种包括指令的计算机可读存储介质,例如包括指令的存储器304,上述指令可由装置300的处理器320执行以完成上述方法。例如,所述计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

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

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

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

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

Claims (12)

1.一种基于位置信息的设备控制方法,其特征在于,所述方法包括:1. A device control method based on location information, characterized in that the method comprises: 通过指令设备,获取指令以及所述指令对应的一个或多个目标设备;Obtaining, through the instruction device, an instruction and one or more target devices corresponding to the instruction; 基于所述指令设备与所述目标设备之间的位置关系,确定所述目标设备中的一个或多个优先设备,所述位置关系包括所述指令设备与所述目标设备的空间位置关系;Determine one or more priority devices among the target devices based on a positional relationship between the command device and the target device, wherein the positional relationship includes a spatial positional relationship between the command device and the target device; 发送所述指令至所述优先设备,使所述优先设备执行所述指令;Sending the instruction to the priority device so that the priority device executes the instruction; 所述指令设备与所述目标设备之间的位置关系通过以下步骤获得:The positional relationship between the instruction device and the target device is obtained by the following steps: 调取所述指令设备的位置,以及所述目标设备的位置;Retrieving the location of the command device and the location of the target device; 基于所述指令设备的位置、以及所述目标设备的位置,确定所述指令设备与所述目标设备之间的位置关系;Determining a positional relationship between the command device and the target device based on the position of the command device and the position of the target device; 接收位置信息,所述位置信息包括所述指令设备的位置,以及全部被控设备的位置,其中,所述目标设备属于所述被控设备;receiving location information, the location information including the location of the command device and the locations of all controlled devices, wherein the target device belongs to the controlled devices; 接收所述指令设备与全部被控设备中每两个设备之间的距离,其中,所述距离通过所述指令设备与所述被控设备的UWB芯片获取;基于所述距离,确定所述指令设备的位置以及所述被控设备的位置;Receiving the distance between the command device and every two devices among all the controlled devices, wherein the distance is obtained through the UWB chips of the command device and the controlled devices; determining the position of the command device and the position of the controlled device based on the distance; 其中,当所述指令设备与全部被控设备中任一设备改变其位置后,接收改变位置的所述指令设备或所述被控设备的新位置,所述新位置通过所述指令设备与全部被控设备中未改变位置的设备重新确定。When the command device or any of the controlled devices changes its position, the new position of the command device or the controlled device with the changed position is received, and the new position is re-determined by the command device and the device whose position has not changed among all the controlled devices. 2.根据权利要求1所述的基于位置信息的设备控制方法,其特征在于,所述指令设备为智能音箱;2. The device control method based on location information according to claim 1, characterized in that the command device is a smart speaker; 所述通过指令设备,获取指令以及所述指令对应的一个或多个目标设备,包括:The obtaining of the instruction and one or more target devices corresponding to the instruction through the instruction device includes: 接收所述智能音箱发送的语音;Receiving voice sent by the smart speaker; 对所述语音进行语音识别,得到所述指令以及所述目标设备。Perform speech recognition on the speech to obtain the instruction and the target device. 3.根据权利要求1所述的基于位置信息的设备控制方法,其特征在于,所述指令设备和/或被控设备具有陀螺仪,通过陀螺仪检测移动,所述方法还包括:3. The device control method based on position information according to claim 1, characterized in that the command device and/or the controlled device has a gyroscope, and the movement is detected by the gyroscope, and the method further comprises: 接收所述指令设备和/或被控设备移动发送的移动信号后,确定相应所述指令设备和/或被控设备改变其位置。After receiving the movement signal sent by the command device and/or the controlled device, it is determined that the command device and/or the controlled device changes its position accordingly. 4.根据权利要求1所述的基于位置信息的设备控制方法,其特征在于,所述指令设备与所述目标设备之间的位置关系包括所述指令设备与所述目标设备之间的距离。4 . The device control method based on location information according to claim 1 , wherein the location relationship between the command device and the target device includes the distance between the command device and the target device. 5.根据权利要求4所述的基于位置信息的设备控制方法,其特征在于,所述方法还包括:5. The device control method based on location information according to claim 4, characterized in that the method further comprises: 接收所述指令设备与全部被控设备之间的距离。The distance between the receiving command device and all controlled devices. 6.一种基于位置信息的设备控制装置,其特征在于,应用于服务器,所述装置包括:6. A device control device based on location information, characterized in that it is applied to a server, and the device comprises: 接收单元,用于通过指令设备,获取指令以及所述指令对应的一个或多个目标设备,并接收位置信息,所述位置信息包括所述指令设备的位置,以及全部被控设备的位置,其中,所述目标设备属于所述被控设备,接收所述指令设备与全部被控设备中每两个设备之间的距离,其中,所述距离通过所述指令设备与所述被控设备的UWB芯片获取,其中,当所述指令设备与全部被控设备中任一设备改变其位置后,接收改变位置的所述指令设备或所述被控设备的新位置,所述新位置通过所述指令设备与全部被控设备中未改变位置的设备重新确定;A receiving unit, used to obtain an instruction and one or more target devices corresponding to the instruction through an instruction device, and receive position information, wherein the position information includes the position of the instruction device and the positions of all controlled devices, wherein the target device belongs to the controlled device, and receive the distance between the instruction device and every two devices among all controlled devices, wherein the distance is obtained through the UWB chip of the instruction device and the controlled device, wherein when the instruction device and any device among all controlled devices change their positions, receive the new position of the instruction device or the controlled device whose position has changed, and the new position is re-determined through the instruction device and the device among all controlled devices whose positions have not changed; 处理单元,用于基于所述指令设备与所述目标设备之间的位置关系,确定所述目标设备中的一个或多个优先设备,所述位置关系包括所述指令设备与所述目标设备的空间位置关系,调取所述指令设备的位置,以及所述目标设备的位置,基于所述指令设备的位置、以及所述目标设备的位置,确定所述指令设备与所述目标设备之间的位置关系,基于所述距离,确定所述指令设备的位置以及所述被控设备的位置;a processing unit, configured to determine one or more priority devices among the target devices based on a positional relationship between the command device and the target device, wherein the positional relationship includes a spatial positional relationship between the command device and the target device, retrieve a position of the command device and a position of the target device, determine a positional relationship between the command device and the target device based on the position of the command device and the position of the target device, and determine a position of the command device and a position of the controlled device based on the distance; 发送单元,用于发送所述指令至所述优先设备,使所述优先设备执行所述指令。A sending unit is used to send the instruction to the priority device so that the priority device executes the instruction. 7.根据权利要求6所述的基于位置信息的设备控制装置,其特征在于,所述指令设备为智能音箱;7. The device control device based on location information according to claim 6, characterized in that the command device is a smart speaker; 所述接收单元用于:接收所述智能音箱发送的语音;The receiving unit is used to: receive the voice sent by the smart speaker; 所述处理单元用于:对所述语音进行语音识别,得到所述指令以及所述目标设备。The processing unit is used to perform speech recognition on the speech to obtain the instruction and the target device. 8.根据权利要求6所述的基于位置信息的设备控制装置,其特征在于,所述指令设备和/或被控设备具有陀螺仪,通过陀螺仪检测移动,所述接收单元还用于:接收所述指令设备和/或被控设备移动发送的移动信号,确定相应所述指令设备和/或被控设备改变其位置。8. According to the device control device based on position information as described in claim 6, it is characterized in that the command device and/or the controlled device has a gyroscope, and the movement is detected by the gyroscope, and the receiving unit is also used to: receive the movement signal sent by the command device and/or the controlled device, and determine that the command device and/or the controlled device changes its position accordingly. 9.根据权利要求6所述的基于位置信息的设备控制装置,其特征在于,所述指令设备与所述目标设备之间的位置关系包括所述指令设备与所述目标设备之间的距离。9 . The device control apparatus based on location information according to claim 6 , wherein the location relationship between the command device and the target device includes the distance between the command device and the target device. 10.根据权利要求9所述的基于位置信息的设备控制装置,其特征在于,所述接收单元还用于:10. The device control apparatus based on location information according to claim 9, characterized in that the receiving unit is further used for: 接收并保存所述指令设备与全部被控设备之间的距离。The distances between the command device and all controlled devices are received and saved. 11. 一种电子装置,其特征在于,包括:11. An electronic device, comprising: 存储器,用于存储指令;以及a memory for storing instructions; and 处理器,用于调用所述存储器存储的指令执行如权利要求1至5中任一项所述的基于位置信息的设备控制方法。A processor, configured to call the instructions stored in the memory to execute the device control method based on location information as described in any one of claims 1 to 5. 12.一种计算机可读存储介质,其特征在于,存储有指令,所述指令被处理器执行时,执行如权利要求1至5中任一项所述的基于位置信息的设备控制方法。12 . A computer-readable storage medium, characterized in that instructions are stored therein, and when the instructions are executed by a processor, the device control method based on location information as described in any one of claims 1 to 5 is executed.
CN201911129668.5A 2019-11-18 2019-11-18 Device control method, device and system based on location information Active CN110989372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911129668.5A CN110989372B (en) 2019-11-18 2019-11-18 Device control method, device and system based on location information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911129668.5A CN110989372B (en) 2019-11-18 2019-11-18 Device control method, device and system based on location information

Publications (2)

Publication Number Publication Date
CN110989372A CN110989372A (en) 2020-04-10
CN110989372B true CN110989372B (en) 2024-05-24

Family

ID=70085064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911129668.5A Active CN110989372B (en) 2019-11-18 2019-11-18 Device control method, device and system based on location information

Country Status (1)

Country Link
CN (1) CN110989372B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019895B (en) * 2020-08-13 2023-04-18 北京小米移动软件有限公司 Function operation control method, function operation control device, and storage medium
CN112838968B (en) * 2020-12-31 2022-08-05 青岛海尔科技有限公司 Equipment control method, device, system, storage medium and electronic device
CN113138559A (en) * 2021-04-02 2021-07-20 Oppo广东移动通信有限公司 Device interaction method and device, electronic device and storage medium
CN114488827A (en) * 2021-12-27 2022-05-13 珠海格力电器股份有限公司 Intelligent home early warning method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041344A (en) * 2008-08-05 2010-02-18 Sharp Corp Household electrical appliance control system
CN108600059A (en) * 2018-04-24 2018-09-28 Oppo广东移动通信有限公司 Apparatus control method and Related product
CN109410943A (en) * 2018-12-10 2019-03-01 珠海格力电器股份有限公司 Voice control method and system of equipment and intelligent terminal
CN110459221A (en) * 2019-08-27 2019-11-15 苏州思必驰信息科技有限公司 The method and apparatus of more equipment collaboration interactive voices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030071117A1 (en) * 2001-10-16 2003-04-17 Meade William K. System and method for determining priority among multiple mobile computing devices to control an appliance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041344A (en) * 2008-08-05 2010-02-18 Sharp Corp Household electrical appliance control system
CN108600059A (en) * 2018-04-24 2018-09-28 Oppo广东移动通信有限公司 Apparatus control method and Related product
CN109410943A (en) * 2018-12-10 2019-03-01 珠海格力电器股份有限公司 Voice control method and system of equipment and intelligent terminal
CN110459221A (en) * 2019-08-27 2019-11-15 苏州思必驰信息科技有限公司 The method and apparatus of more equipment collaboration interactive voices

Also Published As

Publication number Publication date
CN110989372A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US11205427B2 (en) Method, apparatus, system, device for controlling intelligent device and storage medium
CN110989372B (en) Device control method, device and system based on location information
RU2670786C9 (en) System, method and apparatus for device group control
US10498873B2 (en) Screen control method, apparatus, and non-transitory tangible computer readable storage medium
RU2638778C2 (en) Method and device for correlation with intelligent device group in intellectual house system
RU2633189C2 (en) Method and device to provide compatibility of application for router control of and built-in router software
RU2638154C2 (en) Methods and devices for number labeling
WO2016033955A1 (en) Upgrading method, apparatus and device
RU2658501C2 (en) Method and apparatus for identifying category of electronic device on intelligent socket
US10091020B2 (en) Electronic device and gateway for network service, and operation method therefor
WO2017045309A1 (en) Device control method and apparatus, and terminal device
WO2016155233A1 (en) Smart scenario deleting method and device
EP3136793A1 (en) Method and apparatus for awakening electronic device
WO2017071069A1 (en) Method, device and system for setting equipment working state
CN111025920A (en) Method and device for personalizing automatic control equipment and computer readable storage medium
WO2017032126A1 (en) Unmanned aerial vehicle photographing control method and apparatus, and electronic device
EP3316232A1 (en) Method, apparatus and storage medium for controlling target device
KR20170001393A (en) Method for using external device according to context of electronic device and electronic device thereof
CN112327653A (en) Device control method, device control device, and storage medium
WO2017041397A1 (en) Device control method and apparatus
WO2018000710A1 (en) Method and device for displaying wifi signal icon and mobile terminal
CN108803444A (en) Control method, device and the storage medium of smart machine
KR20180081638A (en) Method and apparatus for application icon management
CN106603350A (en) Information display method and apparatus
WO2019019164A1 (en) Unmanned aerial vehicle management method and apparatus, and communication connection establishment method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment