WO2020037903A1 - Method and apparatus for controlling controller, and device and storage medium - Google Patents

Method and apparatus for controlling controller, and device and storage medium Download PDF

Info

Publication number
WO2020037903A1
WO2020037903A1 PCT/CN2018/121892 CN2018121892W WO2020037903A1 WO 2020037903 A1 WO2020037903 A1 WO 2020037903A1 CN 2018121892 W CN2018121892 W CN 2018121892W WO 2020037903 A1 WO2020037903 A1 WO 2020037903A1
Authority
WO
WIPO (PCT)
Prior art keywords
controller
distance
current device
preset
location information
Prior art date
Application number
PCT/CN2018/121892
Other languages
French (fr)
Chinese (zh)
Inventor
玉俊威
李涛
陈海卫
Original Assignee
珠海格力电器股份有限公司
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 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2020037903A1 publication Critical patent/WO2020037903A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of control technology, and in particular, to a control method, device, device, and storage medium of a controller.
  • This technology can control remote terminals through various communication means, such as wired mode and wireless mode, using current equipment.
  • a GPS positioning method is generally required to locate the current device, such as a smart terminal with a positioning function (mobile phone / vehicle instrument / smart bracelet, etc.) to continue the position of the current terminal. Positioning.
  • a controller control method includes:
  • the acquiring the location information shared by the terminal devices within a preset range of the current device includes:
  • the low-power communication method includes at least one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
  • the preset range is 100m-1000m.
  • determining the positioning information of the current device according to the location information includes:
  • the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device.
  • determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information includes:
  • sending the control instruction to the controller includes:
  • the terminal device includes a fixed terminal device or a mobile terminal device.
  • the terminal device includes one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
  • a controller control device includes:
  • a location information collection module configured to obtain location information shared by terminal devices within a preset range of the current device
  • a processing module configured to determine positioning information of the current device according to the location information
  • a judging module configured to judge whether the distance between the current device and the controller reaches a preset distance according to the positioning information
  • a control module configured to send a control instruction to the controller if the distance is greater than the preset distance
  • Transmission module for transmitting position information and control instructions.
  • a computer device includes a memory and a processor.
  • the memory stores a computer program
  • the processor implements the steps of the method described above when the computer program is executed.
  • a computer-readable storage medium has stored thereon a computer program that, when executed by a processor, implements the steps of the method described above.
  • the foregoing control method, device, device and storage medium for a controller obtain environment location information shared by terminal devices within a preset range of the current device, and then determine positioning information of the current device based on the location information to implement an environment Effective use of resources, reducing loss; and then determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information; if the distance is greater than the preset distance, sending a control instruction to the The controller realizes remote control of the controller in real time.
  • FIG. 1 is an application environment diagram of a controller control method in an embodiment
  • FIG. 2 is a schematic flowchart of a controller control method according to an embodiment
  • FIG. 3 is a schematic flowchart of determining positioning information of a control method of a controller according to an embodiment
  • FIG. 4 is a schematic flowchart of determining a distance between a current device and a controller according to a control method of a controller according to an embodiment
  • FIG. 5 is a schematic flowchart of a control controller of a controller control method according to an embodiment
  • FIG. 6 is a schematic flowchart of a controller control method in another embodiment
  • FIG. 7 is a structural block diagram of a controller control device in an embodiment
  • FIG. 8 is an internal structural diagram of a computer device in one embodiment.
  • a control method of a controller provided in this application can be applied to an application environment as shown in FIG. 1.
  • the terminal 102 communicates with the controller 104.
  • the communication method is wireless communication, including at least 3G, 4G, Enocean, Zigbee, and Z-Wave, and is not limited to the above wireless methods.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the controller 104 may be used to control household appliances and the like, such as a controller for controlling an air conditioner, a television remote control, and the like.
  • An embodiment of the present application provides a method for controlling a controller.
  • the method includes:
  • Step S100 Obtain location information shared by terminal devices within a preset range from the current device
  • Step S200 Determine positioning information of the current device according to the position information.
  • Step S300 Determine whether the distance between the current device and the controller reaches a preset distance according to the positioning information
  • Step S400 If the distance is greater than the preset distance, send a control instruction to the controller.
  • the current device may be a terminal such as a mobile smart device, and may be a mobile phone, a notebook, a wristband, or the vehicle-mounted terminal.
  • the smart device When the smart device is moving, it can establish a connection with other terminal devices within a certain range from the smart device to communicate with nearby terminal devices.
  • the terminal device includes a smart terminal device, and can share its own location information through communication; in addition, the terminal device can only share its own location information.
  • the preset range may be a preset limited range, for example, within a distance of 5m, 10m from the current device; it may also be set according to the communication distance of the communication method selected by the current device, such as the Bluetooth module in the current device The connection range of the infrared module, etc.
  • the position of the controller may be stored in a map of the current device in advance, or may be obtained by a real-time positioning method.
  • the current device can analyze the distance between the positioning information and the controller according to the positioning information of the current device and the position of the controller, and compare it with a preset distance.
  • the preset distance may be a preset safety distance or a reminder distance.
  • a geo-fenced area can be established around a certain distance from the controller.
  • the geo-fence area is a virtual fence surrounding a virtual geographic boundary.
  • the current device analyzes the acquired distance and compares it with the preset distance. If the acquired distance is greater than the preset distance, the remote controller is adjusted. Specifically, when the acquisition distance is greater than the preset distance, the current device may issue a command to control the controller, thereby controlling various devices corresponding to the controller, to achieve the effect of energy saving. For example, when the current device is outside the area where the controller is located, the controller can turn off the air conditioner or adjust the air conditioning operation mode to achieve energy saving.
  • the foregoing control method, device, device and storage medium for a controller obtain environment location information shared by terminal devices within a preset range of the current device, and then determine positioning information of the current device based on the location information to implement an environment Effective use of resources, reducing loss; and then determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information; if the distance is greater than the preset distance, sending a control instruction to the The controller realizes remote control of the controller in real time.
  • the step S100 includes:
  • the low-power communication method includes at least one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
  • low power consumption means that when the current device communicates with other devices, it consumes relatively little traffic, power, and other related quantities.
  • the current device may communicate with surrounding terminal devices through Bluetooth low energy communication to obtain location information shared by the terminal devices. Due to the Bluetooth low energy technology, the Bluetooth module will be in sleep mode most of the time. When the activity occurs, the device will automatically wake up and send messages to the gateway or smart device.
  • the maximum power consumption does not exceed 15 mA, the average power consumption is about 1 mA, and the power consumption during use is reduced to one tenth of that of traditional Bluetooth.
  • this low-power device also has stability, wireless coexistence, and integration.
  • low power consumption methods include point-to-point mode (AD-HOC) and Bluetooth low energy.
  • AD-HOC point-to-point mode
  • Bluetooth low energy big data is used to monitor the switching frequency to determine the period of time for users to access location information. Only during peak periods, the low-power transmission mode is activated to further reduce battery power consumption.
  • the preset range may be 100m-1000m.
  • the current device can obtain the location information shared by the terminal device within 100m from the current device; it can also obtain the location information shared by the terminal device within 1000m from the current device.
  • the selection of the preset range can be based on Actually need to set such as communication distance.
  • the step S200 includes:
  • Step S210 Obtain position information of a terminal device whose signal strength in the current device meets a preset threshold
  • step S220 it is determined whether there is a terminal device with the same shared location among the terminal devices satisfying the preset threshold;
  • step S230 if it exists, the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device.
  • step S210 there will be many terminal devices near the current device.
  • the signal strength can be selected to be larger, and the location information is more accurate.
  • step S220 in order to improve the accuracy of the positioning information of the current device, it is necessary to select from the obtained plurality of position information, and determine whether there is a terminal device with the same shared location among the terminal devices that meet the preset threshold.
  • step S230 if it exists, the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device.
  • the current device selects the location information of nearby terminal devices with high signal strength. For example, the five locations with the highest signal strength are obtained. However, there may be some inconsistencies in the five location information.
  • the location information is A1-A5. , Then we analyze and determine the five location information in the terminal device. If the location information of 3-5 terminal devices is the same, this location information is used as the current location information. In this way, the location of the current device can be verified for the shared location, which improves the accuracy of the current device positioning.
  • the signal strength threshold is the location information set by the current device. This threshold is set to obtain the highest accuracy as positioning information from the shared location information, which not only improves the positioning accuracy, but also better controls Controller.
  • the step S300 includes:
  • Step S310 Obtain the geographical position of the controller in the offline map, where the offline map is preset in the current device;
  • Step S320 Obtain a distance between the current device and the controller according to the geographic position and the positioning information.
  • the geographic location in the offline map refers to the location and storage of the controller using the map when the current device is in the same geographic location as the controller, and the control can be learned when offline.
  • Geographical location The map includes Baidu map, Gaode map, or any other form of map that can be obtained and displayed online through a terminal.
  • the current device analyzes and processes the geographical position and positioning information of the previously stored controller to obtain the distance relationship between the current device and the controller.
  • the step S400 includes:
  • Step S410 continuously acquiring the distance between the current device and the controller for a preset number of times
  • step S420 if the distance acquired each time increases sequentially, and the difference between the maximum value and the minimum value of the distance reaches a preset threshold
  • Step S430 sending a shutdown instruction to the controller to shut down the controller.
  • the current device acquires the distance once every minute, and the current device can collect ten times in a row. If the value of the distance increases or decreases first and then increases, and the maximum and minimum values differ by more than 1KM, then the current device and the controller The distance between them is getting farther and farer, it is determined that the current device is away from home, sending an instruction to shut down the controller, and terminating the determination. Conversely, if the value of the distance decreases in order, increases first and then decreases, and the difference between the maximum value and the minimum value is less than 1KM, it is determined that the current device is home, and a command is sent to regulate the controller.
  • the terminal device includes a fixed terminal device or a mobile terminal device.
  • the terminal device includes one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
  • control method of the controller by acquiring location information shared by terminal devices within a preset range from the current device, and then determining the positioning information of the current device according to the location information, the effective use of environmental resources is achieved and the loss is reduced; Then, according to the positioning information, it is determined whether the distance between the current device and the controller reaches a preset distance; if the distance is greater than the preset distance, a control instruction is sent to the controller to implement real-time control Remote control.
  • steps in the flowchart of FIG. 6 are sequentially displayed according to the directions of the arrows, these steps are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated in this document, the execution of these steps is not strictly limited, and these steps can be performed in other orders. Moreover, at least a part of the steps in FIG. 6 may include multiple sub-steps or stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution of these sub-steps or stages The sequence is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
  • an embodiment of the present application further provides a controller control device, which includes a position information acquisition module, a processing module, a control module, and a judgment module, where:
  • the location information collection module 100 obtains location information shared by terminal devices within a preset range of the current device;
  • the processing module 200 determines positioning information of the current device according to the location information
  • the determining module 300 determines whether the distance between the current device and the controller reaches a preset distance according to the positioning information
  • the control module 400 sends a control instruction to the controller if the distance is greater than the preset distance.
  • a low-power transmission module 500 is further included, configured to acquire the location information in a low-power communication mode; wherein,
  • the low-power communication method includes any one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
  • the low-power communication module 500 further includes:
  • a setting module 510 is used for the preset range of 100m-1000m.
  • the location information collection module 100 includes a screening module 110, configured to obtain location information of a terminal device in which the signal strength of the current device meets a preset threshold;
  • the processing module 200 further includes a first processing module 210 for determining whether there is a terminal device with the same shared location among the terminal devices satisfying the preset threshold; if it exists, the terminal device with the same shared location is shared. Information as positioning information of the current device.
  • the judgment module 300 further includes:
  • the first obtaining module 310 is configured to obtain a geographical position of the controller in an offline map, where the offline map is preset in the current device;
  • the first determining module 320 is configured to obtain a distance between the current device and the controller according to the geographical position and the positioning information.
  • the control module 400 further includes:
  • a second acquiring module 410 configured to acquire the distance ten times in a row
  • a second determining module 420 configured to determine that the current device is away from home when the maximum value and the minimum value of the distance value differ by more than 1KM;
  • the first control module 430 is configured to send an instruction to shut down the controller and terminate the judgment.
  • the location information collection module 100 further includes:
  • the first preset module 120 is configured to set the terminal device to include a fixed terminal device or a mobile terminal device.
  • the location information collection module 100 further includes:
  • the second preset module 130 is configured to set the terminal device to include one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
  • Each module in the control device of the foregoing controller may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor calls and performs the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8.
  • the computer equipment includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for running an operating system and computer programs in a non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by a processor to implement a controller control method.
  • the display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen.
  • the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the computer device casing. , Or an external keyboard, trackpad, or mouse.
  • FIG. 8 is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer equipment to which the scheme of the present application is applied.
  • the specific computer equipment may be Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
  • a computer device which includes a memory and a processor.
  • the memory stores a computer program
  • the processor executes the steps of the method as described above when the computer program is executed.
  • a computer-readable storage medium is provided on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the method described above are implemented.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

The present application relates to a method for controlling a controller, and a system, a device and a storage medium. The method comprises: acquiring position information, shared by a terminal device, within a preset range from the current device, determining positioning information of the current device according to the position information, and determining, according to the positioning information, whether the distance between the current device and a controller reaches a preset distance; and if the distance is greater than the preset distance, sending a control instruction to the controller. By using the method, effective utilization of environmental resources can be realized, losses are reduced and real-time remote control over a controller is realized.

Description

控制器的控制方法、装置、设备和存储介质Control method, device, equipment and storage medium of controller
相关申请Related applications
本申请要求2018年08月21日申请的,申请号为201810955345.0,名称为“控制器的控制方法、装置、设备和存储介质”的中国专利申请的优先权,在此将其全文引入作为参考。This application claims priority from a Chinese patent application filed on August 21, 2018 with an application number of 201810955345.0, entitled "Control method, device, device, and storage medium of a controller", which is hereby incorporated by reference in its entirety.
技术领域Technical field
本申请涉及控制技术领域,特别是涉及一种控制器的控制方法、装置、设备和存储介质。The present application relates to the field of control technology, and in particular, to a control method, device, device, and storage medium of a controller.
背景技术Background technique
随着控制领域技术的发展,出现了远程控制技术,这个技术可以通过各种通讯手段,如有线模式以及无线模式,利用当前设备等对异地终端进行控制。With the development of technology in the field of control, remote control technology has appeared. This technology can control remote terminals through various communication means, such as wired mode and wireless mode, using current equipment.
在对终端进行远程控制的过程中,一般需要GPS定位的方式,对当前设备进行定位,例如带定位功能的智能终端(手机/车载仪器/智能手环等),对当前的终端的位置进行持续定位。In the process of remotely controlling a terminal, a GPS positioning method is generally required to locate the current device, such as a smart terminal with a positioning function (mobile phone / vehicle instrument / smart bracelet, etc.) to continue the position of the current terminal. Positioning.
然而,通过GPS对当前设备进行定位的过程中,存在流量耗费大以及浪费资源的问题。However, in the process of locating the current device by GPS, there are problems of large traffic consumption and waste of resources.
发明内容Summary of the Invention
基于此,有必要针对上述技术问题,提供一种控制器的控制方法、装置、设备和存储介质。Based on this, it is necessary to provide a controller control method, device, device, and storage medium in response to the above technical problems.
一种控制器的控制方法,所述方法包括:A controller control method, the method includes:
获取距离当前设备预设范围内的终端设备分享的位置信息;Obtaining location information shared by terminal devices within a preset range of the current device;
根据所述位置信息确定所述当前设备的定位信息;Determining positioning information of the current device according to the position information;
根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;Determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information;
若所述距离大于所述预设距离,则发送控制指令至所述控制器。If the distance is greater than the preset distance, sending a control instruction to the controller.
在其中一个实施例中,所述获取距离当前设备预设范围内的终端设备分享的位置信息,包括:In one of the embodiments, the acquiring the location information shared by the terminal devices within a preset range of the current device includes:
通过低功耗通信方式获取所述位置信息;其中,Acquiring the location information through a low-power communication manner; wherein,
所述低功耗通信方式包括:RFID、WLAN、GPRS、蓝牙或窄带物联网中的至少一种。The low-power communication method includes at least one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
在其中一个实施例中,所述预设范围为100m-1000m。In one embodiment, the preset range is 100m-1000m.
在其中一个实施例中,所述根据所述位置信息确定所述当前设备的定位信息包括:In one embodiment, determining the positioning information of the current device according to the location information includes:
获取距离所述当前设备预设范围内的终端设备中,信号强度满足预设阈值的终端设备分享的位置信息;Acquiring position information shared by terminal devices within a preset range of the current device from which terminal signals meet a preset threshold;
判断所述满足预设阈值的终端设备中,是否存在分享的位置相同的终端设备;Judging whether there is a terminal device sharing the same location among the terminal devices meeting the preset threshold;
若存在,则将分享的位置相同的终端设备分享的位置信息,作为所述当前设备的定位信息。If it exists, the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device.
在其中一个实施例中,所述根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离,包括:In one embodiment, determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information includes:
获取控制器在离线地图中的地理位置,其中,所述离线地图预设于所述当前设备中;Obtaining the geographical position of the controller in the offline map, wherein the offline map is preset in the current device;
根据所述地理位置以及所述定位信息,得到所述当前设备与所述控制器之间的距离。Obtaining the distance between the current device and the controller according to the geographic location and the positioning information.
在其中一个实施例中,所述若所述距离大于所述预设距离,则发送控制指令至所述控制器包括:In one embodiment, if the distance is greater than the preset distance, sending the control instruction to the controller includes:
连续获取预设次数的所述当前设备与控制器之间的距离;Continuously acquiring the distance between the current device and the controller for a preset number of times;
若每次获取的所述距离依次递增,且所述距离的最大值与最小值相差达到预设阈值;If the distance acquired each time increases sequentially, and the difference between the maximum value and the minimum value of the distance reaches a preset threshold;
发送关闭指令至所述控制器,以关闭控制器。Send a shutdown instruction to the controller to shut down the controller.
在其中一个实施例中,所述终端设备包括固定式终端设备或者移动式终端设备。In one embodiment, the terminal device includes a fixed terminal device or a mobile terminal device.
在其中一个实施例中,所述终端设备包括共享汽车、共享单车、监控装置以及通信基站中的一种或多种。In one embodiment, the terminal device includes one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
一种控制器的控制装置,所述装置包括:A controller control device, the device includes:
位置信息采集模块,用于获取距离当前设备预设范围内的终端设备分享的位置信息;A location information collection module, configured to obtain location information shared by terminal devices within a preset range of the current device;
处理模块,用于根据所述位置信息确定所述当前设备的定位信息;A processing module, configured to determine positioning information of the current device according to the location information;
判断模块,用于根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;A judging module, configured to judge whether the distance between the current device and the controller reaches a preset distance according to the positioning information;
控制模块,用于若所述距离大于所述预设距离,则发送控制指令至所述控制器;以及A control module configured to send a control instruction to the controller if the distance is greater than the preset distance; and
传输模块,用于传输位置信息和控制指令。Transmission module for transmitting position information and control instructions.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如上所述方法的步骤。A computer device includes a memory and a processor. The memory stores a computer program, and the processor implements the steps of the method described above when the computer program is executed.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述方法的步骤。A computer-readable storage medium has stored thereon a computer program that, when executed by a processor, implements the steps of the method described above.
上述一种控制器的控制方法、装置、设备和存储介质,通过获取距离当前设备预设范 围内的终端设备分享的位置信息,进而根据所述位置信息确定所述当前设备的定位信息,实现环境资源的有效利用、降低损耗;再根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;若所述距离大于所述预设距离,则发送控制指令至所述控制器,实现了实时对控制器的远程控制。The foregoing control method, device, device and storage medium for a controller obtain environment location information shared by terminal devices within a preset range of the current device, and then determine positioning information of the current device based on the location information to implement an environment Effective use of resources, reducing loss; and then determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information; if the distance is greater than the preset distance, sending a control instruction to the The controller realizes remote control of the controller in real time.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据公开的附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the disclosed drawings without paying creative labor.
图1为一个实施例中一种控制器的控制方法的应用环境图;FIG. 1 is an application environment diagram of a controller control method in an embodiment; FIG.
图2为一个实施例中一种控制器的控制方法的流程示意图;2 is a schematic flowchart of a controller control method according to an embodiment;
图3为一个实施例中一种控制器的控制方法的确定定位信息的流程示意图;3 is a schematic flowchart of determining positioning information of a control method of a controller according to an embodiment;
图4为一个实施例中一种控制器的控制方法的判断当前设备与控制器之间的距离的流程示意图;FIG. 4 is a schematic flowchart of determining a distance between a current device and a controller according to a control method of a controller according to an embodiment; FIG.
图5为一个实施例中一种控制器的控制方法的控制控制器的流程示意图;5 is a schematic flowchart of a control controller of a controller control method according to an embodiment;
图6为另一个实施例中一种控制器的控制方法的流程示意图;6 is a schematic flowchart of a controller control method in another embodiment;
图7为一个实施例中一种控制器的控制装置的结构框图;7 is a structural block diagram of a controller control device in an embodiment;
图8为一个实施例中计算机设备的内部结构图。FIG. 8 is an internal structural diagram of a computer device in one embodiment.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In the following, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请提供的一种控制器的控制方法,可以应用于如图1所示的应用环境中。A control method of a controller provided in this application can be applied to an application environment as shown in FIG. 1.
终端102与控制器104之间进行通讯,其中所述通讯方式为无线通讯,至少包括3G、4G、Enocean、Zigbee、Z-Wave,不限于以上无线方式。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。控制器104可用于对家用电器等进行控制,例如控制空调的控制器、电视遥控器等。The terminal 102 communicates with the controller 104. The communication method is wireless communication, including at least 3G, 4G, Enocean, Zigbee, and Z-Wave, and is not limited to the above wireless methods. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The controller 104 may be used to control household appliances and the like, such as a controller for controlling an air conditioner, a television remote control, and the like.
请一并参阅图2,本申请一个实施例提供了一种控制器的控制方法,所述方法包括:Please refer to FIG. 2 together. An embodiment of the present application provides a method for controlling a controller. The method includes:
步骤S100,获取距离当前设备预设范围内的终端设备分享的位置信息;Step S100: Obtain location information shared by terminal devices within a preset range from the current device;
步骤S200,根据所述位置信息确定所述当前设备的定位信息;Step S200: Determine positioning information of the current device according to the position information.
步骤S300,根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;Step S300: Determine whether the distance between the current device and the controller reaches a preset distance according to the positioning information;
步骤S400,若所述距离大于所述预设距离,则发送控制指令至所述控制器。Step S400: If the distance is greater than the preset distance, send a control instruction to the controller.
在步骤S100中,所述当前设备可以是移动的智能设备等终端,可以是手机、笔记本、手环或这车载终端等。In step S100, the current device may be a terminal such as a mobile smart device, and may be a mobile phone, a notebook, a wristband, or the vehicle-mounted terminal.
当智能设备在移动过程中,可以与距离智能设备距离一定范围区域内的其他终端设备建立连接,从而与附近的终端设备进行通讯。所述终端设备包括智能终端设备,可以通过通讯方式将其自身的位置信息进行共享;另外,终端设备可只分享本身的位置信息。所述预设范围可以为预设限定的范围,例如距离当前设备5m、10m范围内;也可以根据当前设备所选择的通信方式的通信距离,进行设定,例如可以是当前设备中的蓝牙模块的连接范围、红外模块的连接范围等。When the smart device is moving, it can establish a connection with other terminal devices within a certain range from the smart device to communicate with nearby terminal devices. The terminal device includes a smart terminal device, and can share its own location information through communication; in addition, the terminal device can only share its own location information. The preset range may be a preset limited range, for example, within a distance of 5m, 10m from the current device; it may also be set according to the communication distance of the communication method selected by the current device, such as the Bluetooth module in the current device The connection range of the infrared module, etc.
在步骤S200中,控制器的位置可预先保存于当前设备的地图中,也可以通过实时定位的方式进行获取。当前设备可以根据当前设备的定位信息,以及控制器的位置,分析定位信息与控制器之间的距离,并与预设距离进行对比。其中,预设距离可以是预先设定的安全距离或提醒距离。例如,可以围绕距离控制器一定距离的范围,建立地理围栏区域。具体地,地理围栏区域是一个虚拟的栅栏围出一个虚拟地理边界。当手机等终端进入或离开该地理围栏区域,或在该区域内活动时,手机可以接收通知和警告,也就是用户进入或离开某一区域时进行自动登记。In step S200, the position of the controller may be stored in a map of the current device in advance, or may be obtained by a real-time positioning method. The current device can analyze the distance between the positioning information and the controller according to the positioning information of the current device and the position of the controller, and compare it with a preset distance. The preset distance may be a preset safety distance or a reminder distance. For example, a geo-fenced area can be established around a certain distance from the controller. Specifically, the geo-fence area is a virtual fence surrounding a virtual geographic boundary. When a terminal such as a mobile phone enters or leaves the geofence area or is active in the area, the mobile phone can receive notifications and warnings, that is, the user automatically registers when entering or leaving an area.
在步骤S300和步骤S400中,当前设备分析获取的距离,与预设距离进行对比,如果所述获取距离大于预设距离,则对远程的控制器进行调控。具体地,当获取距离大于预设距离时,当前设备可以发出命令,以控制控制器,从而控制该控制器对应的各种设备,以达到节能的效果。比如,当前设备处于距离控制器所在区域以外的范围时,则可以通过控制器关闭空调或调整空调运行模式等,实现节能。In step S300 and step S400, the current device analyzes the acquired distance and compares it with the preset distance. If the acquired distance is greater than the preset distance, the remote controller is adjusted. Specifically, when the acquisition distance is greater than the preset distance, the current device may issue a command to control the controller, thereby controlling various devices corresponding to the controller, to achieve the effect of energy saving. For example, when the current device is outside the area where the controller is located, the controller can turn off the air conditioner or adjust the air conditioning operation mode to achieve energy saving.
上述一种控制器的控制方法、装置、设备和存储介质,通过获取距离当前设备预设范围内的终端设备分享的位置信息,进而根据所述位置信息确定所述当前设备的定位信息,实现环境资源的有效利用、降低损耗;再根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;若所述距离大于所述预设距离,则发送控制指令至所述控制器,实现了实时对控制器的远程控制。The foregoing control method, device, device and storage medium for a controller obtain environment location information shared by terminal devices within a preset range of the current device, and then determine positioning information of the current device based on the location information to implement an environment Effective use of resources, reducing loss; and then determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information; if the distance is greater than the preset distance, sending a control instruction to the The controller realizes remote control of the controller in real time.
在其中一个实施例中,所述步骤S100包括:In one embodiment, the step S100 includes:
通过低功耗通信方式获取所述位置信息;其中,Acquiring the location information through a low-power communication manner; wherein,
所述低功耗通信方式包括:RFID、WLAN、GPRS、蓝牙或窄带物联网中的至少一种。The low-power communication method includes at least one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
具体地,低功耗是指当前设备与其他设备进行通讯时,其消耗的流量、电量以及其他相关量相对较少。Specifically, low power consumption means that when the current device communicates with other devices, it consumes relatively little traffic, power, and other related quantities.
例如,当前设备可以通过低功耗蓝牙通讯的方式,与周围的终端设备进行通讯,获取终端设备分享的位置信息。由于低功耗蓝牙技术中,蓝牙模块大部分时间会处于睡眠模式,当活动发生时,设备会自动被唤醒并向网关或智能设备发送消息。最大功耗不超过15毫安,平均功耗约为1毫安,使用时的功耗降低到传统蓝牙的十分之一。此外,这种低功耗设备还兼具稳定性、无线共存以及集成性。For example, the current device may communicate with surrounding terminal devices through Bluetooth low energy communication to obtain location information shared by the terminal devices. Due to the Bluetooth low energy technology, the Bluetooth module will be in sleep mode most of the time. When the activity occurs, the device will automatically wake up and send messages to the gateway or smart device. The maximum power consumption does not exceed 15 mA, the average power consumption is about 1 mA, and the power consumption during use is reduced to one tenth of that of traditional Bluetooth. In addition, this low-power device also has stability, wireless coexistence, and integration.
本申请所述低功耗的方式,当前设备采用低功耗的方式通信,其能耗将远远低于GPS定位;低功耗传输方式包括点对点模式(AD-HOC)以及低功耗蓝牙等,同时用大数据进行开关频率监控,判断用户访问位置信息的时段,只有高峰期的时候才激活低功耗传输方式,进一步降低电池功耗。In the low power consumption method described in the present application, current devices use low power consumption to communicate, and their energy consumption will be far lower than GPS positioning; low power transmission methods include point-to-point mode (AD-HOC) and Bluetooth low energy. At the same time, big data is used to monitor the switching frequency to determine the period of time for users to access location information. Only during peak periods, the low-power transmission mode is activated to further reduce battery power consumption.
在其中一个实施例中,所述预设范围可以为100m-1000m。In one embodiment, the preset range may be 100m-1000m.
在该实施例中,当前设备可以获取距离当前设备100m范围内,终端设备分享的位置信息;也可以获取离当前设备1000m范围内,终端设备分享的位置信息,该预设范围的选择,可以根据实际需要例如通讯距离进行设定。In this embodiment, the current device can obtain the location information shared by the terminal device within 100m from the current device; it can also obtain the location information shared by the terminal device within 1000m from the current device. The selection of the preset range can be based on Actually need to set such as communication distance.
在其中一个实施例中,请一并参阅图3,所述步骤S200包括:In one embodiment, please refer to FIG. 3 together. The step S200 includes:
步骤S210,获取所述当前设备中信号强度满足预设阈值的终端设备的位置信息;Step S210: Obtain position information of a terminal device whose signal strength in the current device meets a preset threshold;
步骤S220,判断所述满足预设阈值的终端设备中,是否存在分享的位置相同的终端设备;In step S220, it is determined whether there is a terminal device with the same shared location among the terminal devices satisfying the preset threshold;
步骤S230,若存在,则将分享的位置相同的终端设备分享的位置信息,作为所述当前设备的定位信息。In step S230, if it exists, the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device.
在步骤S210中,当前设备附近会有很多的终端设备,对于进行终端设备分享给当前设备的位置信息可以选择信号强度比较大的,位置信息也更精确。In step S210, there will be many terminal devices near the current device. For the location information of the terminal device to be shared with the current device, the signal strength can be selected to be larger, and the location information is more accurate.
在步骤S220中,为了提高当前设备的定位信息的精度,那么就需要在获取的众多位置信息进行选择,判断所述满足预设阈值的终端设备中,是否存在分享的位置相同的终端设备。In step S220, in order to improve the accuracy of the positioning information of the current device, it is necessary to select from the obtained plurality of position information, and determine whether there is a terminal device with the same shared location among the terminal devices that meet the preset threshold.
在步骤S230中,若存在,则将分享的位置相同的终端设备分享的位置信息,作为所述当前设备的定位信息。当前设备通过选择附近终端设备信号强度大的终端设备的位置信息,如获取了五个信号强度最大的位置信息,但是这五个位置信息中可能有些存在不一致 的情况,位置信息分别为A1-A5,那么我们对获取终端设备中的五个位置信息进行分析判断。如果其中有3-5个终端设备的位置信息显示相同,则将此位置信息作为当前定位信息。通过此种方式可以对分享的位置对当前设备的位置进行校验,提高了当前设备定位的精确度。In step S230, if it exists, the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device. The current device selects the location information of nearby terminal devices with high signal strength. For example, the five locations with the highest signal strength are obtained. However, there may be some inconsistencies in the five location information. The location information is A1-A5. , Then we analyze and determine the five location information in the terminal device. If the location information of 3-5 terminal devices is the same, this location information is used as the current location information. In this way, the location of the current device can be verified for the shared location, which improves the accuracy of the current device positioning.
其中,信号强度的阈值是当前设备进行设置的位置信息,设置此阈值是为了从众多分享的位置信息中获取精度最高的作为定位信息,这样不仅提高了定位的精度,同时也更好的对控制器进行控制。Among them, the signal strength threshold is the location information set by the current device. This threshold is set to obtain the highest accuracy as positioning information from the shared location information, which not only improves the positioning accuracy, but also better controls Controller.
在其中一个实施例中,请一并参阅图4,所述步骤S300包括:In one embodiment, please refer to FIG. 4 together. The step S300 includes:
步骤S310,获取控制器在离线地图中的地理位置,其中,所述离线地图预设于所述当前设备中;Step S310: Obtain the geographical position of the controller in the offline map, where the offline map is preset in the current device;
步骤S320,根据所述地理位置以及所述定位信息,得到所述当前设备与所述控制器之间的距离。Step S320: Obtain a distance between the current device and the controller according to the geographic position and the positioning information.
具体的,在步骤S310中,在所述离线地图中的地理位置,是指当前设备与所述控制器处于同一地理位置时,采用地图对控制器进行定位并保存,当离线时也可获知控制器的地理位置。其中,地图包括百度地图、高德地图或者其他可通过终端进行在线获取且显示的任意形式的地图。当前设备对之前存储的控制器的地理位置与定位信息进行分析处理,获得当前设备与控制器之间的距离关系。Specifically, in step S310, the geographic location in the offline map refers to the location and storage of the controller using the map when the current device is in the same geographic location as the controller, and the control can be learned when offline. Geographical location. The map includes Baidu map, Gaode map, or any other form of map that can be obtained and displayed online through a terminal. The current device analyzes and processes the geographical position and positioning information of the previously stored controller to obtain the distance relationship between the current device and the controller.
在其中一个实施例中,请参阅图5,所述步骤S400包括:In one embodiment, referring to FIG. 5, the step S400 includes:
步骤S410,连续获取预设次数的所述当前设备与控制器之间的距离;Step S410, continuously acquiring the distance between the current device and the controller for a preset number of times;
步骤S420,若每次获取的所述距离依次递增,且所述距离的最大值与最小值相差达到预设阈值;In step S420, if the distance acquired each time increases sequentially, and the difference between the maximum value and the minimum value of the distance reaches a preset threshold;
步骤S430,发送关闭指令至所述控制器,以关闭控制器。Step S430, sending a shutdown instruction to the controller to shut down the controller.
例如,当前设备每分钟获取一次所述距离,当前设备可以连续采集十次,如果所述距离的值逐次递增或者先减后增且最大值与最小值相差1KM以上,那么说明当前设备与控制器之间的距离越来越远,判定当前设备处于离家的状态,发送指令关闭控制器,并终止判断。相反的,如果所述距离的值依次递减、先增后减,且最大值与最小值相差1KM以下,判定当前设备处于回家的状态,以发送指令调控控制器。For example, the current device acquires the distance once every minute, and the current device can collect ten times in a row. If the value of the distance increases or decreases first and then increases, and the maximum and minimum values differ by more than 1KM, then the current device and the controller The distance between them is getting farther and farer, it is determined that the current device is away from home, sending an instruction to shut down the controller, and terminating the determination. Conversely, if the value of the distance decreases in order, increases first and then decreases, and the difference between the maximum value and the minimum value is less than 1KM, it is determined that the current device is home, and a command is sent to regulate the controller.
在其中一个实施例中,所述终端设备包括固定式终端设备或者移动式终端设备。In one embodiment, the terminal device includes a fixed terminal device or a mobile terminal device.
在其中一个实施例中,所述终端设备包括共享汽车、共享单车、监控装置以及通信基站中的一种或多种。In one embodiment, the terminal device includes one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
上述控制器的控制方法中,通过获取距离当前设备预设范围内的终端设备分享的位置 信息,进而根据所述位置信息确定所述当前设备的定位信息,实现环境资源的有效利用、降低损耗;再根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;若所述距离大于所述预设距离,则发送控制指令至所述控制器,实现了实时对控制器的远程控制。In the control method of the controller, by acquiring location information shared by terminal devices within a preset range from the current device, and then determining the positioning information of the current device according to the location information, the effective use of environmental resources is achieved and the loss is reduced; Then, according to the positioning information, it is determined whether the distance between the current device and the controller reaches a preset distance; if the distance is greater than the preset distance, a control instruction is sent to the controller to implement real-time control Remote control.
应该理解的是,虽然图6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowchart of FIG. 6 are sequentially displayed according to the directions of the arrows, these steps are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated in this document, the execution of these steps is not strictly limited, and these steps can be performed in other orders. Moreover, at least a part of the steps in FIG. 6 may include multiple sub-steps or stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution of these sub-steps or stages The sequence is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
请参阅图7,本申请实施例还提供了一种控制器的控制装置,包括:位置信息采集模块、处理模块、控制模块和判断模块,其中:Referring to FIG. 7, an embodiment of the present application further provides a controller control device, which includes a position information acquisition module, a processing module, a control module, and a judgment module, where:
位置信息采集模块100,获取距离当前设备预设范围内的终端设备分享的位置信息;The location information collection module 100 obtains location information shared by terminal devices within a preset range of the current device;
处理模块200,根据所述位置信息确定所述当前设备的定位信息;The processing module 200 determines positioning information of the current device according to the location information;
判断模块300,根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;The determining module 300 determines whether the distance between the current device and the controller reaches a preset distance according to the positioning information;
控制模块400,若所述距离大于所述预设距离,则发送控制指令至所述控制器。The control module 400 sends a control instruction to the controller if the distance is greater than the preset distance.
在一个实施例中,还包括低功耗传输模块500,用于通过低功耗通信方式获取所述位置信息;其中,In one embodiment, a low-power transmission module 500 is further included, configured to acquire the location information in a low-power communication mode; wherein,
所述低功耗通信方式包括:RFID、WLAN、GPRS、蓝牙或窄带物联网中的任意一种。The low-power communication method includes any one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
所述低功耗通信模块500还包括:The low-power communication module 500 further includes:
设置模块510,用于所述预设范围为100m-1000m。A setting module 510 is used for the preset range of 100m-1000m.
在一个实施例中,In one embodiment,
位置信息采集模块100包括筛选模块110,用于获取所述当前设备中信号强度满足预设阈值的终端设备的位置信息;The location information collection module 100 includes a screening module 110, configured to obtain location information of a terminal device in which the signal strength of the current device meets a preset threshold;
处理模块200还包括第一处理模块210,用于判断所述满足预设阈值的终端设备中,是否存在分享的位置相同的终端设备;若存在,则将分享的位置相同的终端设备分享的位置信息,作为所述当前设备的定位信息。The processing module 200 further includes a first processing module 210 for determining whether there is a terminal device with the same shared location among the terminal devices satisfying the preset threshold; if it exists, the terminal device with the same shared location is shared. Information as positioning information of the current device.
在一个实施例中,In one embodiment,
判断模块300还包括:The judgment module 300 further includes:
第一获取模块310,用于获取控制器在离线地图中的地理位置,其中,所述离线地图 预设于所述当前设备中;The first obtaining module 310 is configured to obtain a geographical position of the controller in an offline map, where the offline map is preset in the current device;
第一判断模块320,用于根据所述地理位置以及所述定位信息,得到所述当前设备与所述控制器之间的距离。The first determining module 320 is configured to obtain a distance between the current device and the controller according to the geographical position and the positioning information.
在一个实施例中,In one embodiment,
控制模块400还包括:The control module 400 further includes:
第二获取模块410,用于获取连续获取十次所述距离;A second acquiring module 410, configured to acquire the distance ten times in a row;
第二判断模块420,用于当其中所述距离的值的最大值与最小值相差1KM以上,则判定当前设备是离家;A second determining module 420, configured to determine that the current device is away from home when the maximum value and the minimum value of the distance value differ by more than 1KM;
第一控制模块430,用于发送指令关闭控制器,并终止判断。The first control module 430 is configured to send an instruction to shut down the controller and terminate the judgment.
在一个实施例中,位置信息采集模块100还包括:In one embodiment, the location information collection module 100 further includes:
第一预设模块120,用于设定所述终端设备包括固定式终端设备或者移动式终端设备。The first preset module 120 is configured to set the terminal device to include a fixed terminal device or a mobile terminal device.
在一个实施例中,位置信息采集模块100还包括:In one embodiment, the location information collection module 100 further includes:
第二预设模块130,用于设定所述终端设备包括共享汽车、共享单车、监控装置以及通信基站中的一种或多种。The second preset module 130 is configured to set the terminal device to include one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
关于一种控制器的控制装置的具体限定可以参见上文中对于一种控制器的控制方法的限定,在此不再赘述。上述一种控制器的控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the control device of a controller, refer to the foregoing limitation on the control method of a controller, which will not be described again here. Each module in the control device of the foregoing controller may be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor calls and performs the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种控制器的控制方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8. The computer equipment includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running an operating system and computer programs in a non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by a processor to implement a controller control method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the computer device casing. , Or an external keyboard, trackpad, or mouse.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer equipment to which the scheme of the present application is applied. The specific computer equipment may be Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现如上所述方法的步骤。In one embodiment, a computer device is also provided, which includes a memory and a processor. The memory stores a computer program, and the processor executes the steps of the method as described above when the computer program is executed.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如上所述方法的步骤。In one embodiment, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are implemented.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by using a computer program to instruct related hardware. The computer program can be stored in a non-volatile computer-readable storage. In the medium, the computer program, when executed, may include the processes of the embodiments of the methods described above. Wherein, any reference to the memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be arbitrarily combined. In order to make the description concise, all possible combinations of the technical features in the above embodiments have not been described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their descriptions are more specific and detailed, but they cannot be understood as a limitation on the scope of patent application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the protection scope of this application patent shall be subject to the appended claims.

Claims (11)

  1. 一种控制器的控制方法,其特征在于,所述方法包括:A control method of a controller, characterized in that the method includes:
    获取距离当前设备预设范围内的终端设备分享的位置信息;Obtaining location information shared by terminal devices within a preset range of the current device;
    根据所述位置信息确定所述当前设备的定位信息;Determining positioning information of the current device according to the position information;
    根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;Determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information;
    若所述距离大于所述预设距离,则发送控制指令至所述控制器。If the distance is greater than the preset distance, sending a control instruction to the controller.
  2. 根据权利要求1所述的方法,其特征在于,所述获取距离当前设备预设范围内的终端设备分享的位置信息,包括:The method according to claim 1, wherein the acquiring location information shared by terminal devices within a preset range of the current device comprises:
    通过低功耗通信方式获取所述位置信息;其中,Acquiring the location information through a low-power communication manner; wherein,
    所述低功耗通信方式包括:RFID、WLAN、GPRS、蓝牙或窄带物联网中的至少一种。The low-power communication method includes at least one of RFID, WLAN, GPRS, Bluetooth, or narrowband Internet of Things.
  3. 根据权利要求2所述的方法,其特征在于,所述预设范围为100m-1000m。The method according to claim 2, wherein the preset range is 100m-1000m.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述位置信息确定所述当前设备的定位信息包括:The method according to claim 1, wherein determining the positioning information of the current device according to the location information comprises:
    获取距离所述当前设备预设范围内的终端设备中,信号强度满足预设阈值的终端设备分享的位置信息;Acquiring position information shared by terminal devices within a preset range of the current device from which terminal signals meet a preset threshold;
    判断所述满足预设阈值的终端设备中,是否存在分享的位置相同的终端设备;Judging whether there is a terminal device sharing the same location among the terminal devices meeting the preset threshold;
    若存在,则将分享的位置相同的终端设备分享的位置信息,作为所述当前设备的定位信息。If it exists, the location information shared by the terminal devices with the same shared location is used as the positioning information of the current device.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离,包括:The method according to claim 1, wherein determining whether the distance between the current device and the controller reaches a preset distance according to the positioning information comprises:
    获取控制器在离线地图中的地理位置,其中,所述离线地图预设于所述当前设备中;Obtaining the geographical position of the controller in the offline map, wherein the offline map is preset in the current device;
    根据所述地理位置以及所述定位信息,得到所述当前设备与所述控制器之间的距离。Obtaining the distance between the current device and the controller according to the geographic location and the positioning information.
  6. 根据权利要求5所述的方法,其特征在于,所述若所述距离大于所述预设距离,则发送控制指令至所述控制器包括:The method according to claim 5, wherein, if the distance is greater than the preset distance, sending a control instruction to the controller comprises:
    连续获取预设次数的所述当前设备与控制器之间的距离;Continuously acquiring the distance between the current device and the controller for a preset number of times;
    若每次获取的所述距离依次递增,且所述距离的最大值与最小值相差达到预设阈值;If the distance acquired each time increases sequentially, and the difference between the maximum value and the minimum value of the distance reaches a preset threshold;
    发送关闭指令至所述控制器,以关闭控制器。Send a shutdown instruction to the controller to shut down the controller.
  7. 根据权利要求1所述的方法,其特征在于,所述终端设备包括固定式终端设备或者移动式终端设备。The method according to claim 1, wherein the terminal device comprises a fixed terminal device or a mobile terminal device.
  8. 根据权利要求7所述的方法,其特征在于,所述终端设备包括共享汽车、共享单 车、监控装置以及通信基站中的一种或多种。The method according to claim 7, wherein the terminal device comprises one or more of a shared car, a shared bicycle, a monitoring device, and a communication base station.
  9. 一种控制器的控制装置,其特征在于,所述装置包括:A control device of a controller, characterized in that the device includes:
    位置信息采集模块,用于获取距离当前设备预设范围内的终端设备分享的位置信息;A location information collection module, configured to obtain location information shared by terminal devices within a preset range of the current device;
    处理模块,用于根据所述位置信息确定所述当前设备的定位信息;A processing module, configured to determine positioning information of the current device according to the location information;
    判断模块,用于根据所述定位信息判断所述当前设备与控制器之间的距离是否达到预设距离;A judging module, configured to judge whether the distance between the current device and the controller reaches a preset distance according to the positioning information;
    控制模块,用于若所述距离大于所述预设距离,则发送控制指令至所述控制器;A control module, configured to send a control instruction to the controller if the distance is greater than the preset distance;
    传输模块,用于传输位置信息和控制指令。Transmission module for transmitting position information and control instructions.
  10. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述方法的步骤。A computer device includes a memory and a processor. The memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 8 when the processor executes the computer program.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
PCT/CN2018/121892 2018-08-21 2018-12-19 Method and apparatus for controlling controller, and device and storage medium WO2020037903A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810955345.0A CN109068271A (en) 2018-08-21 2018-08-21 Control method, device, equipment and the storage medium of controller
CN201810955345.0 2018-08-21

Publications (1)

Publication Number Publication Date
WO2020037903A1 true WO2020037903A1 (en) 2020-02-27

Family

ID=64686707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121892 WO2020037903A1 (en) 2018-08-21 2018-12-19 Method and apparatus for controlling controller, and device and storage medium

Country Status (2)

Country Link
CN (1) CN109068271A (en)
WO (1) WO2020037903A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209075A (en) * 2018-12-29 2019-09-06 深圳传音通讯有限公司 Method of controlling switch and device
CN110992673A (en) * 2019-11-28 2020-04-10 广东美的制冷设备有限公司 Remote controller, control method thereof, and computer storage medium
CN111669700B (en) * 2020-05-22 2021-09-21 珠海格力电器股份有限公司 Positioning data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104582176A (en) * 2014-12-30 2015-04-29 欧普照明股份有限公司 Wireless lighting control system and wireless lighting control method thereof
CN204362376U (en) * 2014-12-30 2015-05-27 欧普照明股份有限公司 A kind of wireless lighting control system
CN105509225A (en) * 2014-09-26 2016-04-20 海信集团有限公司 Method, device and system for adjusting air conditioning equipment
CN105841291A (en) * 2016-03-23 2016-08-10 珠海格力电器股份有限公司 Air conditioner, remote control method and device thereof, and mobile terminal
CN107528906A (en) * 2017-09-01 2017-12-29 清华大学 Localization method, terminal, bluetooth nodes, electronic equipment and storage medium
CN108111974A (en) * 2017-12-13 2018-06-01 广东欧珀移动通信有限公司 Control method, device, storage medium and the terminal of locating module

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105509225A (en) * 2014-09-26 2016-04-20 海信集团有限公司 Method, device and system for adjusting air conditioning equipment
CN104582176A (en) * 2014-12-30 2015-04-29 欧普照明股份有限公司 Wireless lighting control system and wireless lighting control method thereof
CN204362376U (en) * 2014-12-30 2015-05-27 欧普照明股份有限公司 A kind of wireless lighting control system
CN105841291A (en) * 2016-03-23 2016-08-10 珠海格力电器股份有限公司 Air conditioner, remote control method and device thereof, and mobile terminal
CN107528906A (en) * 2017-09-01 2017-12-29 清华大学 Localization method, terminal, bluetooth nodes, electronic equipment and storage medium
CN108111974A (en) * 2017-12-13 2018-06-01 广东欧珀移动通信有限公司 Control method, device, storage medium and the terminal of locating module

Also Published As

Publication number Publication date
CN109068271A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US20200183481A1 (en) Methods and systems for managing machine learning involving mobile devices
US11662797B2 (en) Techniques for adjusting computing device sleep states
WO2020037903A1 (en) Method and apparatus for controlling controller, and device and storage medium
AU2013205564B2 (en) Integrative and multi-purpose location estimation
EP2901739B1 (en) Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
US20170071002A1 (en) Opportunistic resource sharing between devices
CN104412677A (en) Systems and methods for service set identifier-based location detection
US9769595B2 (en) Method and apparatus for providing mobile services outside of cellular coverage
TW202034216A (en) Aggregated stochastic method for predictive system response
US20150304848A1 (en) Method and apparatus for controlling access to location information about user equipment executing application
EP3641409B1 (en) Energy conservation management method, apparatus, and storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
US20220417861A1 (en) Energy savings system based machine learning of wireless performance activity for mobile information handling system connected to plural wireless networks
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
WO2015154391A1 (en) Method and device for processing power consumption of radio access network
WO2016177171A1 (en) Control method and apparatus for wireless access point device
CN110018885B (en) Application program freezing method and device, storage medium and terminal
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN107612705B (en) Method for saving power for terminal equipment for managing Internet of things in batches and relay equipment
US10051499B1 (en) Individual radio frequency configuration for user devices
CN110008007B (en) Application program freezing method and device, storage medium and terminal
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN107580017B (en) Batch power-saving management method and access equipment
Sameh et al. Smartphone preventive customized power saving modes
US20240107544A1 (en) Systems and methods for performing opportunistic communication in a wireless mesh network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18930980

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18930980

Country of ref document: EP

Kind code of ref document: A1