WO2015085487A1 - 一种设备控制的方法和设备 - Google Patents

一种设备控制的方法和设备 Download PDF

Info

Publication number
WO2015085487A1
WO2015085487A1 PCT/CN2013/088987 CN2013088987W WO2015085487A1 WO 2015085487 A1 WO2015085487 A1 WO 2015085487A1 CN 2013088987 W CN2013088987 W CN 2013088987W WO 2015085487 A1 WO2015085487 A1 WO 2015085487A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal strength
controlled device
terminal
access point
controlled
Prior art date
Application number
PCT/CN2013/088987
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP20184881.9A priority Critical patent/EP3800904A1/en
Priority to CN201380007378.8A priority patent/CN104380688A/zh
Priority to EP13899306.8A priority patent/EP3068150B1/en
Priority to US15/103,731 priority patent/US20160316338A1/en
Priority to KR1020167018112A priority patent/KR101826648B1/ko
Priority to PCT/CN2013/088987 priority patent/WO2015085487A1/zh
Publication of WO2015085487A1 publication Critical patent/WO2015085487A1/zh

Links

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
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • 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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and device for device control.
  • the user manually selects the required controlled device to provide the service.
  • the user can share the multimedia content (such as: image, audio, video, etc.) across the device by operating the mobile terminal, for example: the user operates A music player on your phone that transfers audio to an audio device and plays it.
  • the controlled device is spread over multiple rooms, if the user wants to continue to enjoy the service of the controlled device in the new room after moving to the new room, it is necessary to re-select the control in the new room on the mobile terminal.
  • the device provides services, for example, the user plays music through the sound in the living room, when the user walks from the living room to a certain room, if the user wants to continue listening to music in the room, the user needs to select the sound located in the room to continue playing by operating the mobile terminal. Music, in this way, because the user needs to select a new sound through the mobile terminal to play the music, thereby increasing the user's operation complexity and reducing the user experience.
  • the embodiments of the present invention provide a device control method and device, so as to implement the perception of the controlled device on the movement of the terminal, and improve the user experience.
  • a method of device control including:
  • the terminal receives the wireless signal sent by the first access point device, where the first access point device includes at least one first access point device;
  • the first signal strength includes at least one first signal strength; obtaining a second signal strength of the first controlled device corresponding to the first access point device, and the second controlled device corresponding to the first connection a third signal strength of the in-point device; wherein the second signal strength includes at least one second signal strength, and the third signal strength includes at least one third signal strength;
  • the acquiring, by the first controlled device, the second signal strength of the first access point device and the second controlled device corresponding to the first access point device includes:
  • a signal strength request instruction including an identifier of the first access point device, indicating the first controlled device and the second controlled device Transmitting, according to the identifier, the second signal strength and the third signal strength corresponding to the first access point device to the terminal;
  • the first access point device includes at least three access point devices, where the first signal strength corresponds to Said at least three access point devices, comprising at least three first signal strengths, said second signal strength corresponding to said at least three access point devices, comprising at least three second signal strengths, said third signal strength Corresponding to the at least three access point devices, including at least three third signal strengths;
  • Determining, according to the first signal strength, the second signal strength, and the third signal strength, that the distance between the first controlled device and the terminal is smaller than the second controlled device and the terminal Controlling the first controlled device and the second being Control equipment includes:
  • the first difference is corresponding a difference between the first signal strength of the second access point device and the second signal strength; the second difference being the first signal strength corresponding to the second access point device and the a difference between the third signal strengths, where the first access point device includes the second access point device;
  • Controlling the first when the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal according to the first difference value and the second difference value The controlled device and the second controlled device.
  • controlling the first controlled device and the second controlled device includes:
  • a method for device control including:
  • Controlling the first when the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal according to the first signal strength and the second signal strength The controlled device and the second controlled device.
  • the determining, by the first signal strength and the second signal strength, that the distance between the first controlled device and the terminal is smaller than the second When the distance between the device and the terminal is controlled, the controlling the first controlled device and the second controlled device includes:
  • a terminal including:
  • An acquiring unit configured to receive a wireless signal sent by the first access point device, where the first access point device includes at least one first access point device;
  • a processing unit configured to determine a corresponding first signal strength according to the wireless signal sent by the first access point device obtained by the acquiring unit, where the first signal strength includes at least one first signal strength;
  • the acquiring unit is further configured to: acquire a second signal strength of the first controlled device corresponding to the first access point device, and a third signal strength of the second controlled device corresponding to the first access point device;
  • the second signal strength includes at least one second signal strength
  • the third signal strength includes at least one third signal strength;
  • the processing unit is further configured to: determine, according to the first signal strength, the second signal strength, and the third signal strength, that a distance between the first controlled device and the terminal is smaller than the second When the distance between the device and the terminal is controlled, the first controlled device and the second controlled device are controlled.
  • the sending unit is configured to send, to the first controlled device and the second controlled device, a signal strength request that includes an identifier of the first access point device
  • the instruction, the first controlled device and the second controlled device respectively send, according to the identifier, the first access point device corresponding to the terminal Second signal strength and third signal strength; or
  • the first access point device includes at least three access point devices, where the first signal strength corresponds to Said at least three access point devices, comprising at least three first signal strengths, said second signal strength corresponding to said at least three access point devices, comprising at least three second signal strengths, said third signal strength Corresponding to the at least three access point devices, including at least three third signal strengths;
  • the processing unit is configured to determine a first difference according to the first signal strength and the second signal strength, and determine a second difference according to the first signal strength and the third signal strength;
  • the first difference is a difference between the first signal strength of the second access point device and the second signal strength;
  • the second difference is corresponding to the second access point device. a difference between the first signal strength and the third signal strength, where the first access point device includes the second access point device;
  • Controlling the first when the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal according to the first difference value and the second difference value The controlled device and the second controlled device.
  • the processing unit is specifically configured to: determine that the first difference corresponding to the second access point device is smaller than Determining, by the second difference, that the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal;
  • the sending unit is further configured to send a first control instruction to the first controlled device, instructing the first controlled device to provide a service for the terminal according to the first control instruction, and to the second The controlled device sends a second control instruction, instructing the second controlled device to stop providing service for the terminal according to the second control instruction.
  • a terminal including: An acquiring unit, configured to receive a first wireless signal sent by the first controlled device, and receive a second wireless signal sent by the second controlled device;
  • a processing unit configured to determine a first signal strength according to the first wireless signal obtained by the acquiring unit, and determine a second signal strength according to the second wireless signal obtained by the acquiring unit, and according to the first signal strength and Controlling, by the second signal strength, that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, controlling the first controlled device and the second Control equipment.
  • the processing unit is specifically configured to: when determining that the first signal strength is greater than the second signal strength, determining the first controlled device and the terminal The distance is smaller than the distance between the second controlled device and the terminal;
  • the terminal further includes:
  • a sending unit configured to send a first control instruction to the first controlled device, instructing the first controlled device to provide a service for the terminal according to the first control instruction, and to the second controlled device Sending a second control instruction, instructing the second controlled device to stop providing service for the terminal according to the second control instruction.
  • a fifth aspect a system for controlling a device, including a first access point device, a terminal, a first controlled device, and a second controlled device; wherein, the first access point device includes at least three accesses Point device
  • the first access point device is configured to send a wireless signal to the terminal, the first controlled device, and the second controlled device;
  • the terminal is configured to receive a wireless signal sent by the first access point device, and determine a corresponding first signal strength according to the wireless signal sent by the first access point device, and obtain a corresponding The second signal strength of the first access point device and the third signal strength of the second controlled device corresponding to the first access point device are based on the first signal strength, the second signal strength, and The third signal strength determines that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, and controls the first controlled device and the second Control device; wherein, the first signal strength includes at least one first signal strength, and the second signal strength Including at least one second signal strength, the third signal strength including at least one third signal strength;
  • the first controlled device is configured to receive a wireless signal sent by the first access point device, determine a corresponding second signal strength according to the wireless signal sent by the first access point device, and Two signal strengths are sent to the terminal;
  • the second controlled device is configured to receive a wireless signal sent by the first access point device, determine a third signal strength according to the wireless signal sent by the first access point device, and Three signal strengths are sent to the terminal.
  • a sixth aspect provides a device control system, including a first controlled device, a second controlled device, and a terminal;
  • the first controlled device is configured to send a first wireless signal to the terminal
  • the second controlled device is configured to send a second wireless signal to the terminal
  • the terminal is configured to use, according to the first Determining a first signal strength according to a wireless signal, and determining a second signal strength according to the second wireless signal, and determining, according to the first signal strength and the second signal strength, the first controlled device and the When the distance of the terminal is smaller than the distance between the second controlled device and the terminal, the first controlled device and the second controlled device are controlled.
  • a terminal including: a processor and a memory, where the memory stores a computer execution instruction, and the processor is connected to the memory through a communication bus;
  • the processor executes the computer-executed instructions stored by the memory when the terminal is running, such that the terminal performs the method of the first aspect.
  • a terminal including: a processor and a memory, where the memory stores a computer execution instruction, and the processor is connected to the memory through a communication bus;
  • the processor executes the computer-executed instructions stored by the memory when the terminal is running, such that the controlled device performs the method of the second aspect.
  • the terminal receives the wireless signal sent by the first access point device, and determines the corresponding first signal strength according to the wireless signal sent by the first access point device. Degree, obtaining a second signal strength of the first controlled device corresponding to the first access point device, and a third signal strength of the second controlled device corresponding to the first access point device, and according to the first The signal strength, the second signal strength, and the third signal strength determine that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, A controlled device and the second controlled device, so that the terminal senses a distance relationship between the controlled device and the terminal, thereby performing a corresponding operation according to the distance relationship, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another device control method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a device control method according to an embodiment of the present invention
  • FIG. 4 is a flowchart of another device control method according to an embodiment of the present invention
  • FIG. Schematic is a flowchart of another device control method according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • Figure 7 is a connection diagram of a device control system according to an embodiment of the present invention
  • Figure 8 is a connection diagram of another device control system according to an embodiment of the present invention
  • Figure 9 is another terminal provided by an embodiment of the present invention. Schematic diagram of the structure
  • FIG. 10 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • An embodiment of the present invention provides a device control method. As shown in FIG. 1 , an execution subject of the method is a terminal, and the method includes:
  • S101 The terminal receives the wireless signal sent by the first access point device.
  • the first access point device includes at least one first access point device.
  • the terminal and the controlled device are connected by using an access point device, where the access point device includes a working access point device for implementing network communication between the terminal and the controlled device, and at least two for providing wireless signals.
  • the auxiliary access point device may be used as a secondary access point device to complete the determination of the distance between the terminal and the controlled device.
  • the working access point device is used as the working access point device.
  • the working access point device and the auxiliary access point device are collectively referred to as an access point device description.
  • the terminal determines a corresponding first signal strength according to the wireless signal sent by the first access point device.
  • the first signal strength comprises at least one first signal strength.
  • the first access point device includes at least three access point devices, and the terminal receives at least three wireless signals sent by the at least three access point devices, and obtains at least three according to the at least three wireless signals.
  • a signal strength is included in the first access point device.
  • the terminal determines the signal strength A1 according to the received wireless signal sent by the access point device 1, and determines the signal strength A2 according to the received wireless signal sent by the access point device 2, according to the wireless signal sent by the access point device 3. Determine the signal strength A3.
  • the terminal acquires a second signal strength of the first controlled device corresponding to the first access point device and a third signal strength of the second controlled device corresponding to the first access point device.
  • the second signal strength includes at least one second signal strength
  • the third signal strength includes at least one third signal strength
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device, instructing the first controlled device and the second controlled device to send the first to the terminal according to the signal strength request command.
  • Two signal strengths and the third signal strength are two signal strengths and the third signal strength.
  • the second signal strength includes the first controlled device accepting the at least three first connections At least three signal strengths obtained by the wireless signal of the in-point device, the third signal strength comprising at least three signal strengths obtained by the second controlled device receiving the wireless signals of the at least three first access point devices.
  • the terminal may send a signal strength request command in a broadcast manner, and after receiving the signal strength request command, the first controlled device sends, to the terminal, at least three devices corresponding to at least three first access point devices. a second signal strength and identification information of the first controlled device, after receiving the signal strength request command, the second controlled device sends at least three corresponding to at least three first access point devices to the terminal. The third signal strength and the identification information of the second controlled device, so that the terminal can determine the sender corresponding to the received signal strength according to the identification information; and the terminal can also directly directly to the first controlled device.
  • the first controlled device and the second controlled device send the signal strength corresponding to the multiple access point devices to the terminal, the first controlled device and the second controlled device, therefore, the When the first controlled device and the second controlled device send the signal strength to the terminal, the identifier of the access point device corresponding to each signal strength needs to be sent to the terminal to notify the terminal of the received signal strength. Incoming device.
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device, and acquires a second signal strength of the first controlled device corresponding to the first access point device and the second controlled device.
  • the third signal strength corresponding to the first access point device includes the following two methods:
  • Manner 1 The terminal sends a signal strength request instruction including the identifier of the first access point device to the first controlled device and the second controlled device, indicating that the first controlled device and the second controlled device respectively And transmitting, according to the identifier, the second signal strength and the third signal strength corresponding to the first access point device to the terminal.
  • the access point device may be Wi-F i (Wi re es sF i de l , wireless fidelity protocol Access point (English: Access Point, abbreviation: AP), the identifier of the access point device may be a service set identifier (English: Service Set Identifier, abbreviation: SSID) of the Wi-Fi access point, the terminal Sending a signal strength request instruction including the service set identifier to the first controlled device and the second controlled device, instructing the first controlled device and the second controlled device to determine that the service set identifier is to be determined according to the service set
  • the signal strength determined by the wireless signal transmitted by the corresponding Wi-Fi access point is sent to the terminal, so that the terminal can send the signal request command including the service set identifier of the Wi-Fi access point required by the terminal to the first
  • the controlled device and the second controlled device to indicate that the first controlled device and the second controlled device determine the first signal strength and the second signal corresponding to the Wi-Fi access point determined according to the service set
  • the signal strength request command sent by the terminal to the first controlled device and the second controlled device includes the identifier of the access point device 1, the identifier of the access point device 2, and the identifier of the access point device 3, then After receiving the signal strength request command, the controlled device sends the signal strength B1 corresponding to the access point device 1 , the signal strength B2 corresponding to the access point device 2, and the signal strength B3 corresponding to the access point device 3 to the terminal. Similarly, after receiving the signal strength request command, the second controlled device wants the terminal to send the signal strength C1 corresponding to the access point device 1, the signal strength C2 corresponding to the access point device 2, and the corresponding access point device 3. Signal strength C3.
  • Manner 2 The terminal sends a signal strength request instruction to the first controlled device and the second controlled device, indicating that the first controlled device and the second controlled device respectively send all detected accesses to the terminal.
  • the signal strength request command sent by the terminal does not include the identifier of the access point device.
  • the second signal strength and the third signal strength comprise signal strengths obtained by the first controlled device and the second controlled device according to wireless signals transmitted by at least three identical access point devices.
  • the first controlled device detects the access point devices 1 to 4, and the first controlled device is used.
  • the signal strength corresponding to the wireless signal sent by the controlled device to the access point device 2 is recorded as B2
  • the signal strengths of the first controlled device acquiring the access point devices 1 to 4 are respectively B1 and B2.
  • the first controlled device after receiving the signal strength request command sent by the terminal, the first controlled device sends four second signal strengths B1, B2, B3, and B4 to the terminal, and the second When the control device detects the access point devices 2 to 5, the signal strength corresponding to the wireless signal sent by the second controlled device to the access point device 2 is recorded as C2, and the second controlled device obtains the access.
  • the signal strength corresponding to the wireless signal sent by the point device 3 is recorded as C 3 , and so on, and the signal strengths corresponding to the access point devices 2 to 5 acquired by the second controlled device are C2, C 3, C4, and C5, respectively.
  • the second controlled device After receiving the signal strength request command sent by the terminal, the second controlled device sends four third signal strengths C2, C3, C4, and C5 to the terminal, where the second signal strength and the third signal strength are both Including wireless signals sent according to access point devices 2 to 4
  • the resulting signal strength here illustrative only, and is not limited.
  • the terminal determines, according to the first signal strength, the second signal strength, and the third signal strength, that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, The first controlled device and the second controlled device.
  • the first access point device includes at least three access point devices, and the first signal strength corresponds to at least three access point devices, including at least three first signal strengths, and the second signal strength corresponds to at least three
  • the three access point devices include at least three second signal strengths corresponding to at least three access point devices including at least three third signal strengths.
  • the terminal determines a first difference according to the first signal strength and the second signal strength, and determines a second difference according to the first signal strength and the third signal strength; where the first difference is a corresponding a difference between the first signal strength of the second access point device and the second signal strength; the second difference is a difference between the first signal strength and the third signal strength corresponding to the second access point device
  • the first access point device includes the second access point device, and determines, according to the first difference value and the second difference, that the distance between the first controlled device and the terminal is smaller than the second When the distance between the device and the terminal is controlled, the first controlled device and the second controlled device are controlled.
  • the terminal determines the first difference according to the first signal strength and the second signal strength of the device corresponding to the same access point, and therefore the first controlled device and the second controlled device need to send the corresponding corresponding Second signal strength and number corresponding to at least three access point devices Three signal strengths are required to the terminal.
  • the terminal is the first difference and the second difference determined according to the signal strength determined by the wireless signal sent by the same access point device, so that the first difference and the second difference can be compared.
  • the terminal determines that the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal.
  • the terminal obtains the signal strength A 1 according to the wireless signal sent by the access point device 1, and the first is
  • the control device obtains the signal strength B 1 according to the wireless signal sent by the access point device 1
  • the second controlled device obtains the signal strength C1 according to the wireless signal sent by the access point device 1
  • the terminal obtains the wireless signal according to the wireless signal sent by the access point device 2.
  • the signal strength A2 the first controlled device obtains the signal strength B2 according to the wireless signal sent by the access point device 2, and the second controlled device obtains the signal strength C2 according to the wireless signal sent by the access point device 2, and the terminal according to the access point device 3, the transmitted wireless signal obtains the signal strength A3, the first controlled device obtains the signal strength B3 according to the wireless signal sent by the access point device 3, and the second controlled device obtains the signal strength C3 according to the wireless signal sent by the access point device 3, If it is determined that the difference between A1 and B1 is less than the difference between A1 and C1, the difference between A2 and B2 is smaller than the difference between A2 and C2, and the difference between A3 and B3 is less than the difference between A3 and C3.
  • Determining that the first controlled device is close to the terminal with respect to the second controlled device and further determining according to a preset threshold, if determining a difference between A1 and B1, a difference between A2 and B2, and A3 and B3 If the difference between A1 and C1, the difference between A2 and C2, and the difference between A3 and C3 is greater than the preset threshold, determining that the first controlled device is relative to The second controlled device is close to the terminal, and is only exemplified herein, which is not limited by the present invention.
  • the terminal when determining that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, the terminal sends a first control instruction to the first controlled device, Demonstrating that the first controlled device provides service for the terminal according to the first control instruction, and sends a second control instruction to the second controlled device, indicating that the second controlled device stops as the terminal according to the second control instruction Provide services.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the terminal sends the first smart sound to the first smart sound.
  • the embodiment of the present invention is not limited to performing the foregoing steps S 1 01 to S 104 in the scenario in which the terminal moves, and the terminal is powered on and sends a play instruction to the first controlled device and the second controlled device.
  • the controlled device that is close to the terminal may be determined by referring to the embodiment of the present invention, and the controlled device provides the service.
  • the terminal receives the wireless signal sent by the first access point device by using the foregoing method as the terminal, and determines the corresponding first signal strength according to the wireless signal sent by the first access point device to obtain the first controlled
  • the device corresponds to the second signal strength of the first access point device and the second signal strength of the second controlled device corresponding to the first access point device, and according to the first signal strength, the second signal strength, and the
  • the third signal strength determines that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, and controls the first controlled device and the second controlled device, so that the terminal passes the sensing The distance relationship between the controlled device and the terminal, so that the corresponding operation is performed according to the distance relationship, thereby improving the user experience.
  • An embodiment of the present invention provides a device control method. As shown in FIG. 2, the method includes: receiving, by the S20K terminal, a first wireless signal sent by the first controlled device, and determining a first signal strength according to the first wireless signal. S202. The terminal receives the second wireless signal sent by the second controlled device, and determines the second signal strength according to the second wireless signal.
  • the terminal and the controlled device may establish a connection with the first controlled device and the second device through a point-to-point connection manner, such as Bluetooth or a peer-to-peer wireless fidelity protocol (Wi-F i D i rec t )
  • a point-to-point connection manner such as Bluetooth or a peer-to-peer wireless fidelity protocol (Wi-F i D i rec t )
  • the terminal acquires the first wireless signal sent by the first controlled device, and obtains the first signal strength according to the first wireless signal, and obtains the first sent by the second controlled device.
  • a second wireless signal and obtaining a second signal strength according to the second wireless signal.
  • the terminal controls, according to the first signal strength and the second signal strength, the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, and controls the first controlled device and The second controlled device.
  • the terminal determines that the first controlled device is close to the terminal with respect to the second controlled device.
  • the terminal directly establishes a connection with the first controlled device and the second controlled device, and after receiving the first signal strength and the second signal strength, the closer to the terminal The signal strength of the wireless signal received by the terminal is greater. Therefore, when determining that the first signal strength is greater than the second signal strength, the terminal determines that the first controlled device is close to the terminal with respect to the second controlled device.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the first control instruction may be the following operation One or more: waking up the first smart sound, transmitting the audio stream to the first smart sound, increasing the volume of the first smart sound; the second control instruction may be one or more of the following operations: reducing the second smart sound volume Stop sending an audio stream to the second smart speaker and put the second smart speaker into a sleep state.
  • the embodiment of the present invention is not limited to performing the foregoing steps S201 to S203 in the scenario in which the terminal moves, and also in the scenario that the terminal is powered on and sends a play command to the first controlled device and the second controlled device.
  • the controlled device that is close to the terminal may be determined by referring to the embodiment of the present invention, and the controlled device provides the service.
  • the embodiment of the present invention provides a terminal. As shown in FIG. 3, the method is described in the following manner. The method includes the following steps:
  • the S 30K first access point device transmits a wireless signal to the terminal.
  • the first access point device sends a wireless signal to the first controlled device.
  • the first access point device sends a wireless signal to the second controlled device.
  • the first access point device includes a working access point device for implementing network communication between the terminal and the controlled device, and at least two devices for providing wireless signals to complete the distance between the terminal and the controlled device.
  • the determined access point device, the working access point device may also be used as the auxiliary access point device, and when the signal strength is determined, the working access point device is used as the auxiliary access point device, and is implemented in the present invention.
  • the working access point device and the auxiliary access point device are collectively referred to as an access point device description.
  • the terminal obtains a first signal strength according to the wireless signal of the first access point device when determining that the terminal is in a mobile state.
  • the terminal determines that the terminal is in a moving state by a sensor such as a gravity sensor, a gyroscope, or an acceleration sensor.
  • a sensor such as a gravity sensor, a gyroscope, or an acceleration sensor.
  • the first controlled device obtains a second signal strength according to the wireless signal of the first access point device.
  • the second controlled device obtains a third signal strength according to the wireless signal of the first access point device.
  • the first access point device includes at least three access point devices, and the terminal receives the At least three wireless signals transmitted by at least three access point devices, and at least three first signal strengths are obtained according to the at least three wireless signals.
  • the first controlled device receives the at least three access point devices to send And at least three wireless signals are obtained according to the at least three wireless signals, and the second controlled device receives the at least three wireless signals sent by the at least three access point devices, and At least three third signal strengths are obtained from the at least three wireless signals.
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device.
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device, instructing the first controlled device and the second controlled device to send the first to the terminal according to the signal strength request command.
  • a signal strength and the second signal strength are examples of the signal strength request instruction.
  • the second signal strength includes at least three signal strengths obtained by the first controlled device receiving the wireless signals of the at least three first access point devices, where the third signal strength includes the second controlled device accepting the At least three signal strengths obtained from wireless signals of at least three first access point devices.
  • the first controlled device sends a second signal strength to the terminal according to the signal strength request command.
  • the second cup control device sends a third signal strength to the terminal according to the signal strength request command.
  • the terminal may send a signal strength request command in a broadcast manner, and after receiving the signal strength request command, the first controlled device sends, to the terminal, at least three devices corresponding to at least three first access point devices. a second signal strength and identification information of the first controlled device, after receiving the signal strength request command, the second controlled device sends at least three corresponding to at least three first access point devices to the terminal. The third signal strength and the identification information of the second controlled device, so that the terminal can determine the sender corresponding to the received signal strength according to the identification information; and the terminal can also directly directly to the first controlled device.
  • the first controlled device sends, to the terminal, at least three second corresponding to at least three first access point devices.
  • Signal strength after the second controlled device receives the signal strength request command, The terminal sends at least three third signal strengths corresponding to at least three first access point devices, which are not limited by the present invention.
  • the first controlled device and the second controlled device send the signal strength corresponding to the multiple access point devices to the terminal, the first controlled device and the second controlled device, therefore, the When the first controlled device and the second controlled device send the signal strength to the terminal, the identifier of the access point device corresponding to each signal strength needs to be sent to the terminal to notify the terminal of the received signal strength. Incoming device.
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device, and acquires a second signal strength of the first controlled device corresponding to the first access point device and the second controlled device.
  • the third signal strength corresponding to the first access point device includes the following two methods:
  • Manner 1 The terminal sends a signal strength request instruction including the identifier of the first access point device to the first controlled device and the second controlled device, indicating that the first controlled device and the second controlled device respectively And transmitting, according to the identifier, the second signal strength and the third signal strength corresponding to the first access point device to the terminal.
  • the access point device may be a Wi-Fi (Wireless Fidelity) access point (English: Access Point, abbreviation: AP), and the identifier of the access point device may be a Wi-Fi access point.
  • a service set identifier English: Service Set Identifier, abbreviation: SSID
  • the terminal may send a signal strength request instruction including the service set identifier to the first controlled device and the second controlled device, indicating The first controlled device and the second controlled device determine to transmit the signal strength determined according to the wireless signal sent by the Wi-Fi access point corresponding to the service set identifier to the terminal, so that the terminal can include the required terminal a signal request instruction of the service set identifier of the Wi-Fi access point is sent to the first controlled device and the second controlled device to indicate that the first controlled device and the second controlled device are to be identified according to the service set
  • the first signal strength and the second signal strength corresponding to the determined Wi-Fi access point are sent to the terminal.
  • the signal strength request command sent by the terminal to the first controlled device and the second controlled device includes the identifier of the access point device 1, the identifier of the access point device 2, and the identifier of the access point device 3, then After receiving the signal strength request command, a controlled device sends the signal to the terminal The signal strength B1 corresponding to the access point device 1, the signal strength B2 corresponding to the access point device 2, and the signal strength B3 corresponding to the access point device 3. Similarly, the second controlled device receives the signal strength request command. Then, the terminal wants to transmit the signal strength C l corresponding to the access point device 1, the signal strength C2 corresponding to the access point device 2, and the signal strength C 3 corresponding to the access point device 3.
  • Manner 2 The terminal sends a signal strength request instruction to the first controlled device and the second controlled device, indicating that the first controlled device and the second controlled device respectively send all detected accesses to the terminal.
  • the signal strength request command sent by the terminal does not include the identifier of the access point device.
  • the second signal strength and the third signal strength comprise signal strengths obtained by the first controlled device and the second controlled device according to wireless signals transmitted by at least three identical access point devices.
  • the first controlled device detects the access point devices 1 to 4, and the first controlled device is used.
  • the signal strength corresponding to the wireless signal sent by the access point device 1 is recorded as B1
  • the signal strength corresponding to the wireless signal sent by the first controlled device to the access point device 2 is recorded as B2, and so on.
  • the first controlled device acquires the signal strengths of the access point devices 1 to 4 as B1, B2, B3, and B4, respectively, and the first controlled device receives the signal strength request command sent by the terminal, and then 4
  • the second signal strengths B1, B2, B3, and B4 are sent to the terminal.
  • the second controlled device detects the access point devices 2 to 5
  • the second controlled device acquires the access point device. 2
  • the signal strength corresponding to the transmitted wireless signal is recorded as C2
  • the signal strength corresponding to the wireless signal sent by the second controlled device to the access point device 3 is recorded as C3, and so on
  • the corresponding signal strengths of 5 are C2, C3, C4 and C5, respectively.
  • the second controlled device After receiving the signal strength request command sent by the terminal, the second controlled device will have 4 third signal strengths C2, C3, C4 and C5.
  • the second signal strength and the third signal strength are both transmitted to the terminal, and the signal strengths are obtained according to the wireless signals transmitted by the access point devices 2 to 4, which are merely illustrative and not limited.
  • the terminal is configured according to the first signal strength, the second signal strength, and the third signal strength
  • the distance between the first controlled device and the terminal is determined to be smaller than the distance between the second controlled device and the terminal.
  • the first access point device includes at least three access point devices, and the first signal strength corresponds to at least three access point devices, including at least three first signal strengths, and the second signal strength corresponds to at least three
  • the three access point devices include at least three second signal strengths corresponding to at least three access point devices including at least three third signal strengths.
  • the terminal determines a first difference according to the first signal strength and the second signal strength, and determines a second difference according to the first signal strength and the third signal strength; where the first difference is a corresponding a difference between the first signal strength of the second access point device and the second signal strength; the second difference is a difference between the first signal strength and the third signal strength corresponding to the second access point device
  • the first access point device includes the second access point device, and determines, according to the first difference value and the second difference, that the distance between the first controlled device and the terminal is smaller than the second Control the distance between the device and the terminal.
  • the terminal determines the first difference according to the first signal strength and the second signal strength of the device corresponding to the same access point, and therefore the first controlled device and the second controlled device need to send the corresponding corresponding The second signal strength and the third signal strength corresponding to at least three access point devices are required to the terminal.
  • the terminal is the first difference and the second difference determined according to the signal strength determined by the wireless signal sent by the same access point device, so that the first difference and the second difference can be compared.
  • the terminal determines that the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal.
  • the terminal obtains the signal strength A 1 according to the wireless signal sent by the access point device 1 , and the first is
  • the control device obtains the signal strength B 1 according to the wireless signal transmitted by the access point device 1.
  • the second controlled device obtains the signal strength C1 according to the wireless signal sent by the access point device 1, and the terminal obtains the signal strength A2 according to the wireless signal sent by the access point device 2, and the first controlled device sends the wireless according to the access point device 2
  • the signal obtains the signal strength B2
  • the second controlled device obtains the signal strength C2 according to the wireless signal sent by the access point device 2
  • the terminal obtains the signal strength A3 according to the wireless signal sent by the access point device 3, and the first controlled device according to the access
  • the wireless signal sent by the point device 3 obtains the signal strength B 3
  • the second controlled device obtains the signal strength C 3 according to the wireless signal sent by the access point device 3 .
  • the difference between A1 and B1 is less than the difference between A1 and C1
  • the difference between A2 and B2 is smaller than the difference between A2 and C2
  • the difference between A3 and B3 is smaller than the difference between A3 and C3
  • the present invention is not limited to this.
  • the S 31 K terminal sends a first control instruction to the first controlled device.
  • the first control instruction is used to indicate that the first controlled device provides a service for the terminal.
  • the terminal sends a second control instruction to the second controlled device.
  • the second control instruction is used to instruct the second controlled device to stop providing services for the terminal.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the terminal sends the first smart sound to the first smart sound.
  • the terminal receives the wireless signal sent by the first access point device, and determines the corresponding first signal strength according to the wireless signal sent by the first access point device, to obtain the first controlled device corresponding to the first a second signal strength of the access point device and a third signal strength of the second controlled device corresponding to the first access point device, and determined according to the first signal strength, the second signal strength, and the third signal strength
  • the first controlled device and the second controlled device are controlled, so that the terminal senses the controlled device and the terminal.
  • the distance relationship thereby performing corresponding operations according to the distance relationship, improves the user experience.
  • An embodiment of the present invention provides a device control method. As shown in FIG. 4, the method is implemented by using a point-to-point connection manner between a terminal and a controlled device (such as Bluetooth or a peer-to-peer wireless fidelity protocol). Methods include:
  • S401 The terminal establishes a connection with the first controlled device and the second controlled device.
  • the terminal acquires a first wireless signal sent by the first controlled device when determining that the terminal is in a mobile state, and obtains a first signal strength according to the first wireless signal.
  • the terminal determines that the terminal is in a moving state by a sensor such as a gravity sensor, a gyroscope, or an acceleration sensor.
  • a sensor such as a gravity sensor, a gyroscope, or an acceleration sensor.
  • the terminal acquires a second wireless signal sent by the second controlled device, and obtains a second signal strength according to the second wireless signal.
  • the terminal determines, according to the first signal strength and the second signal strength, that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal.
  • the terminal determines that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal.
  • the terminal directly establishes a connection with the first controlled device and the second controlled device, after receiving the first signal strength and the second signal strength, The closer the terminal is, the greater the signal strength of the wireless signal received by the terminal. Therefore, when determining that the first signal strength is greater than the second signal strength, the terminal determines that the distance between the first controlled device and the terminal is less than the first The distance between the two controlled devices and the terminal.
  • S405 The terminal sends a first control instruction to the first controlled device.
  • the first control instruction is used to instruct the first controlled device to provide services for the terminal according to the first control instruction.
  • S406 The terminal sends a second control instruction to the second controlled device.
  • the second control instruction is used to instruct the second controlled device to stop providing services for the terminal according to the second control instruction.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the first control instruction may be the following operation One or more: waking up the first smart sound, transmitting the audio stream to the first smart sound, increasing the volume of the first smart sound; the second control instruction may be one or more of the following operations: reducing the second smart sound volume Stop sending an audio stream to the second smart speaker and put the second smart speaker into a sleep state.
  • the embodiment of the present invention is not limited to performing the foregoing steps S401 to S406 in the scenario in which the terminal moves, and also in the scenario that the terminal is powered on and sends a play instruction to the first controlled device and the second controlled device.
  • the controlled device that is close to the terminal may be determined by referring to the embodiment of the present invention, and the controlled device provides the service.
  • the embodiment of the present invention provides a terminal 50, as shown in FIG. 5, including:
  • the acquiring unit 51 is configured to receive a wireless signal sent by the first access point device, where the first access point device includes at least one first access point device.
  • the processing unit 52 is configured to determine, according to the wireless signal sent by the first access point device obtained by the acquiring unit, a corresponding first signal strength, where the first signal strength includes at least one first signal strength.
  • the acquiring unit 51 is further configured to acquire a second signal strength of the first controlled device corresponding to the first access point device and a third signal strength of the second controlled device corresponding to the first access point device, where The second signal strength includes at least one second signal strength, the third signal strength including at least one third signal strength.
  • the processing unit 52 is further configured to: determine that the distance between the first controlled device and the terminal is smaller than the second controlled device and the terminal according to the first signal strength, the second signal strength, and the third signal strength When the distance is controlled, the first controlled device and the second controlled device are controlled.
  • the first access point device includes a working access point device for implementing network communication between the terminal and the controlled device, and at least two devices for providing wireless signals to complete the distance between the terminal and the controlled device.
  • the determined access point device, the working access point device may also be used as the auxiliary access point device, and when the signal strength is determined, the working access point device is used as the auxiliary access point device, and is implemented in the present invention.
  • the working access point device and the auxiliary access point device are collectively referred to as an access point device description.
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device, instructing the first controlled device and the second controlled device to send the first to the terminal according to the signal strength request command.
  • a signal strength and the second signal strength are examples of the signal strength request instruction.
  • the terminal may send a signal strength request command in a broadcast manner, and after receiving the signal strength request command, the first controlled device sends, to the terminal, at least three devices corresponding to at least three first access point devices. a second signal strength and identification information of the first controlled device, after receiving the signal strength request command, the second controlled device sends at least three corresponding to at least three first access point devices to the terminal. The third signal strength and the identification information of the second controlled device, so that the terminal can determine the sender corresponding to the received signal strength according to the identification information; and the terminal can also directly directly to the first controlled device.
  • the controlled device sends a signal strength request command, and after receiving the signal strength request command, the first controlled device sends at least three second signal strengths corresponding to the at least three first access point devices to the terminal, where After receiving the signal strength request command, the second controlled device sends at least three third signal strengths corresponding to the at least three first access point devices to the terminal, which is not limited by the present invention.
  • the first controlled device and the second controlled device send the signal strength corresponding to the multiple access point devices to the terminal, the first controlled device and the second controlled device, therefore, the When the first controlled device and the second controlled device send the signal strength to the terminal, the identifier of the access point device corresponding to each signal strength needs to be sent to the terminal to notify the terminal of the received signal strength. Incoming device.
  • the terminal further includes a sending unit 53, configured to send, to the first controlled device and the second controlled device, a signal strength request instruction including an identifier of the first access point device, indicating the first The control device and the second controlled device respectively send the second signal strength and the third signal strength corresponding to the first access point device to the terminal according to the identifier.
  • a sending unit 53 configured to send, to the first controlled device and the second controlled device, a signal strength request instruction including an identifier of the first access point device, indicating the first
  • the control device and the second controlled device respectively send the second signal strength and the third signal strength corresponding to the first access point device to the terminal according to the identifier.
  • the access point device may be a Wi-Fi (Wireless Fidelity) access point (English: Access Point, abbreviation: AP), and the identifier of the access point device may be a Wi-Fi access point.
  • a service set identifier English: Service Set Identifier, abbreviation: SSID
  • the terminal may send a signal strength request instruction including the service set identifier to the first controlled device and the second controlled device, indicating The first controlled device and the second controlled device determine to transmit the signal strength determined according to the wireless signal sent by the Wi-Fi access point corresponding to the service set identifier to the terminal, so that the terminal can include the required terminal a signal request instruction of the service set identifier of the Wi-Fi access point is sent to the first controlled device and the second controlled device to indicate that the first controlled device and the second controlled device are to be identified according to the service set
  • the first signal strength and the second signal strength corresponding to the determined Wi-Fi access point are sent to the terminal.
  • the signal strength request command sent by the terminal to the first controlled device and the second controlled device includes the identifier of the access point device 1, the identifier of the access point device 2, and the identifier of the access point device 3, then After receiving the signal strength request command, the controlled device sends the signal strength B1 corresponding to the access point device 1 and the signal strength B2 corresponding to the access point device 2 to the terminal.
  • the signal strength B 3 corresponding to the in-point device 3 is similar.
  • the second controlled device wants the terminal to transmit the signal strength C1 corresponding to the access point device 1 and the access point device 2 corresponding to the device. Signal strength C2, signal strength C3 corresponding to access point device 3.
  • the sending unit 53 is further configured to send a signal strength request instruction to the first controlled device and the second controlled device, respectively, to indicate that the first controlled device and the second controlled device respectively reach the terminal Sending the detected second signal strength and third signal strength corresponding to all access point devices.
  • the all access point device includes the first access point device.
  • the signal strength request command sent by the terminal does not include the identifier of the access point device.
  • the second signal strength and the third signal strength comprise signal strengths obtained by the first controlled device and the second controlled device according to wireless signals transmitted by at least three identical access point devices.
  • the first controlled device detects the access point devices 1 to 4, and the first controlled device is used.
  • the signal strength corresponding to the wireless signal sent by the access point device 1 is recorded as B1
  • the signal strength corresponding to the wireless signal sent by the first controlled device to the access point device 2 is recorded as B2, and so on.
  • the first controlled device acquires the signal strengths of the access point devices 1 to 4 as B1, B2, B3, and B4, respectively, and the first controlled device receives the signal strength request command sent by the terminal, and then 4
  • the second signal strengths B1, B2, B3, and B4 are sent to the terminal.
  • the second controlled device detects the access point devices 2 to 5, and the second controlled device acquires the access point device 2
  • the signal strength corresponding to the transmitted wireless signal is recorded as C2
  • the signal strength corresponding to the wireless signal sent by the second controlled device to the access point device 3 is recorded as C3, and so on, the second controlled device acquires To the access point device 2 to
  • the corresponding signal strengths of 5 are C2, C3, C4 and C5, respectively.
  • the second controlled device After receiving the signal strength request command sent by the terminal, the second controlled device will have 4 third signal strengths C2, C3, C4 and C5.
  • the second signal strength and the third signal strength are both transmitted to the terminal, and the signal strengths are obtained according to the wireless signals transmitted by the access point devices 2 to 4, which are merely illustrative and not limited.
  • the processing unit 52 is specifically configured to: according to the first signal strength and the second The signal strength determines a first difference, and the second difference is determined according to the first signal strength and the third signal strength; wherein the first difference is the first signal strength corresponding to the second access point device and the first a difference between the two signal strengths; the second difference is a difference between the first signal strength corresponding to the second access point device and the third signal strength.
  • the first access point device includes at least three access point devices, and the first signal strength corresponds to at least three access point devices, including at least three first signal strengths, and the second signal strength corresponds to at least three Three access point devices, including at least three second signal strengths, the third signal strength corresponding to at least three access point devices, including at least three third signal strengths, the first access point device including the first Two access point devices.
  • the processing unit 52 is further configured to: when determining, according to the first difference value and the second difference, that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal Controlling the first controlled device and the second controlled device.
  • the terminal determines a first difference according to the first signal strength and the second signal strength, and determines a second difference according to the first signal strength and the third signal strength; where the first difference is a corresponding a difference between the first signal strength of the second access point device and the second signal strength; the second difference is a difference between the first signal strength and the third signal strength corresponding to the second access point device
  • the first access point device includes the second access point device, and determines, according to the first difference value and the second difference, that the distance between the first controlled device and the terminal is smaller than the second When the distance between the device and the terminal is controlled, the first controlled device and the second controlled device are controlled.
  • the terminal determines the first difference according to the first signal strength and the second signal strength of the device corresponding to the same access point, and therefore the first controlled device and the second controlled device need to send the corresponding corresponding The second signal strength and the third signal strength corresponding to at least three access point devices are required to the terminal.
  • processing unit 52 is specifically configured to: when determining that the first difference corresponding to the second access point device is less than the second difference, determining that the distance between the first controlled device and the terminal is less than the first The distance between the two controlled devices and the terminal.
  • the terminal is the first difference and the second difference determined according to the signal strength determined by the wireless signal sent by the same access point device, so that the first difference is compared with the second difference. Specifically, when determining that the at least three first differences are smaller than the second difference corresponding to the corresponding access point device, the terminal determines that the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal.
  • the terminal obtains the signal strength A 1 according to the wireless signal sent by the access point device 1 , and the first is
  • the control device obtains the signal strength B 1 according to the wireless signal sent by the access point device 1
  • the second controlled device obtains the signal strength C1 according to the wireless signal sent by the access point device 1
  • the terminal obtains the wireless signal according to the access point device 2
  • Signal strength A2 the first controlled device obtains the signal strength B2 according to the wireless signal sent by the access point device 2
  • the second controlled device obtains the signal strength C2 according to the wireless signal sent by the access point device 2
  • the transmitted wireless signal obtains the signal strength A3, the first controlled device obtains the signal strength B3 according to the wireless signal transmitted by the access point device 3, and the second controlled device obtains the signal strength C according to the wireless signal sent by the access point device 3.
  • the difference of 3 determines that the first controlled device is close to the terminal relative to the second controlled device, and may also determine according to a preset threshold, if the difference between A1 and B1, and the difference between A2 and B2 are determined.
  • the difference between the value and A 3 and B3 is less than a preset threshold, and the difference between A1 and C1, the difference between A2 and C2, and the difference between A 3 and C 3 is greater than the preset threshold, then The first controlled device is close to the terminal with respect to the second controlled device.
  • the description is not limited herein.
  • the sending unit 53 is further configured to: send a first control instruction to the first controlled device, instruct the first controlled device to provide a service for the terminal according to the first control instruction, and send the first to the second controlled device And a second control instruction, instructing the second controlled device to stop providing service for the terminal according to the second control instruction.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the terminal sends the first smart sound to the first smart sound.
  • the terminal receives the wireless signal sent by the first access point device, and determines the corresponding first signal strength according to the wireless signal sent by the first access point device, and obtains the first controlled device corresponding to the first a second signal strength of the access point device and a third signal strength of the second controlled device corresponding to the first access point device, and determined according to the first signal strength, the second signal strength, and the third signal strength
  • the first controlled device and the second controlled device are controlled, so that the terminal senses the controlled device and the terminal.
  • the distance relationship thereby performing corresponding operations according to the distance relationship, improves the user experience.
  • the embodiment of the present invention provides a terminal 60, as shown in FIG. 6, including:
  • the acquiring unit 61 is configured to receive the first wireless signal sent by the first controlled device, and receive the second wireless signal sent by the second controlled device;
  • the processing unit 62 is configured to determine a first signal strength according to the first wireless signal obtained by the acquiring unit, and determine a second signal strength according to the second wireless signal obtained by the acquiring unit, and according to the first signal strength and the first The second signal strength determines that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, and controls the first controlled device and the second controlled device.
  • the terminal acquires the first signal strength corresponding to the first controlled device and the second signal strength corresponding to the second controlled device, establishing a connection with the first controlled device and the second controlled device.
  • the processing unit 62 is further configured to: when determining that the first signal strength is greater than the second signal strength, determining that the distance between the first controlled device and the terminal is smaller than the second controlled device and the terminal distance.
  • the terminal further includes a sending unit 63, configured to send the first control finger to the first controlled device. Instructing the first controlled device to provide service to the terminal according to the first control instruction, and sending a second control instruction to the second controlled device, instructing the second controlled device to stop according to the second control instruction
  • the terminal provides services.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the terminal sends the first smart sound to the first smart sound.
  • the embodiment of the present invention provides a device control system, as shown in FIG. 7, including a first access point device 71, a terminal 72, a first controlled device 73, and a second controlled device 74.
  • the in point device 71 includes at least three access point devices;
  • the first access point 71 device is configured to send a wireless signal to the terminal, the first controlled device, and the second controlled device;
  • the terminal 72 is configured to receive a wireless signal sent by the first access point device, determine a corresponding first signal strength according to the wireless signal sent by the first access point device, and obtain a first controlled device corresponding to the first
  • the second signal strength of an access point device and the third signal strength of the second controlled device corresponding to the first access point device are determined according to the first signal strength, the second signal strength, and the third signal strength Controlling the first controlled device and the second controlled device when the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal; wherein the first signal strength includes at least one a first signal strength, the second signal strength includes at least one second signal strength, the third signal strength includes at least one third signal strength, and the first controlled device 73 is configured to receive the first access point device to send Wireless signal, determining a corresponding second signal strength according to the wireless signal sent by the first access point device, and The second signal strength is sent to the terminal;
  • the second controlled device 74 is configured to receive a wireless signal sent by the first access point device, determine a third signal strength according to the wireless signal sent by the first access point device, and determine the third signal strength. Send to the terminal.
  • the terminal sends a signal strength request instruction to the first controlled device and the second controlled device, and acquires a second signal strength of the first controlled device corresponding to the first access point device and the second controlled device.
  • the third signal strength corresponding to the first access point device includes the following two methods:
  • Manner 1 The terminal sends a signal strength request instruction including the identifier of the first access point device to the first controlled device and the second controlled device, indicating that the first controlled device and the second controlled device respectively And transmitting, according to the identifier, the second signal strength and the third signal strength corresponding to the first access point device to the terminal.
  • the access point device may be a Wi-Fi (Wireless Fidelity) access point (English: Access Point, abbreviation: AP), and the identifier of the access point device may be a Wi-Fi access point.
  • a service set identifier English: Service Set Identifier, abbreviation: SSID
  • the terminal may send a signal strength request instruction including the service set identifier to the first controlled device and the second controlled device, indicating The first controlled device and the second controlled device determine to transmit the signal strength determined according to the wireless signal sent by the Wi-Fi access point corresponding to the service set identifier to the terminal, so that the terminal can include the required terminal a signal request instruction of the service set identifier of the Wi-Fi access point is sent to the first controlled device and the second controlled device to indicate that the first controlled device and the second controlled device are to be identified according to the service set
  • the first signal strength and the second signal strength corresponding to the determined Wi-Fi access point are sent to the terminal.
  • the signal strength request command sent by the terminal to the first controlled device and the second controlled device includes the identifier of the access point device 1, the identifier of the access point device 2, and the identifier of the access point device 3, then After receiving the signal strength request command, the controlled device sends the signal strength B1 corresponding to the access point device 1 , the signal strength B2 corresponding to the access point device 2, and the signal strength B3 corresponding to the access point device 3 to the terminal. Similarly, after receiving the signal strength request command, the second controlled device wants the terminal to send the signal strength Cl corresponding to the access point device 1 and the access point. The signal strength C2 corresponding to the device 2 and the signal strength C 3 corresponding to the access point device 3.
  • Manner 2 The terminal sends a signal strength request instruction to the first controlled device and the second controlled device, indicating that the first controlled device and the second controlled device respectively send all detected accesses to the terminal.
  • the signal strength request command sent by the terminal does not include the identifier of the access point device.
  • the second signal strength and the third signal strength comprise signal strengths obtained by the first controlled device and the second controlled device according to wireless signals transmitted by at least three identical access point devices.
  • the first controlled device detects the access point devices 1 to 4, and the first controlled device is used.
  • the signal strength corresponding to the wireless signal sent by the access point device 1 is recorded as B1
  • the signal strength corresponding to the wireless signal sent by the first controlled device to the access point device 2 is recorded as B2, and so on.
  • the first controlled device acquires the signal strengths of the access point devices 1 to 4 as B1, B2, B3, and B4, respectively, and the first controlled device receives the signal strength request command sent by the terminal, and then 4
  • the second signal strengths B1, B2, B3, and B4 are sent to the terminal.
  • the second controlled device detects the access point devices 2 to 5, and the second controlled device acquires the access point device 2
  • the signal strength corresponding to the transmitted wireless signal is recorded as C2
  • the signal strength corresponding to the wireless signal sent by the second controlled device to the access point device 3 is recorded as C3, and so on, the second controlled device acquires To the access point device 2 to
  • the corresponding signal strengths of 5 are C2, C3, C4 and C5, respectively.
  • the second controlled device After receiving the signal strength request command sent by the terminal, the second controlled device will have 4 third signal strengths C2, C3, C4 and C5.
  • the second signal strength and the third signal strength are both transmitted to the terminal, and the signal strengths are obtained according to the wireless signals transmitted by the access point devices 2 to 4, which are merely illustrative and not limited.
  • the terminal determines a first difference according to the first signal strength and the second signal strength, and determines a second difference according to the first signal strength and the third signal strength; wherein, the first difference is corresponding to the first a difference between the first signal strength of the second access point device and the second signal strength; the second difference is the first signal strength corresponding to the second access point device and the third letter a difference in the strength of the number, wherein the first access point device includes the second access point device, and determines a distance between the first controlled device and the terminal according to the first difference value and the second difference value When the distance between the second controlled device and the terminal is less than, the first controlled device and the second controlled device are controlled.
  • the terminal determines the first difference according to the first signal strength and the second signal strength of the device corresponding to the same access point, and therefore the first controlled device and the second controlled device need to send the corresponding corresponding The second signal strength and the third signal strength corresponding to at least three access point devices are required to the terminal.
  • the terminal is the first difference and the second difference determined according to the signal strength determined by the wireless signal sent by the same access point device, so that the first difference and the second difference can be compared.
  • the terminal determines that the distance between the first controlled device and the terminal is smaller than the distance between the second controlled device and the terminal.
  • the terminal obtains the signal strength A 1 according to the wireless signal sent by the access point device 1, and the first is
  • the control device obtains the signal strength B 1 according to the wireless signal sent by the access point device 1
  • the second controlled device obtains the signal strength C1 according to the wireless signal sent by the access point device 1
  • the terminal obtains the wireless signal according to the wireless signal sent by the access point device 2.
  • the first controlled device obtains the signal strength B2 according to the wireless signal sent by the access point device 2
  • the second controlled device obtains the signal strength C2 according to the wireless signal sent by the access point device 2 and the terminal according to the access point device 3
  • the transmitted wireless signal obtains the signal strength A3
  • the first controlled device obtains the signal strength B3 according to the wireless signal sent by the access point device 3
  • the second controlled device obtains the signal strength C3 according to the wireless signal sent by the access point device 3 If it is determined that the difference between A1 and B1 is less than the difference between A1 and C1, the difference between A2 and B2 is less than the difference between A2 and C2, and the difference between A3 and B3 is less than the difference between A3 and C3, then the first is determined.
  • Controlled equipment The second controlled device is close to the terminal, and Judging according to the preset threshold, if it is determined that the difference between A1 and B1, the difference between A2 and B2, and the difference between A3 and B3 are less than the preset threshold, and the difference between A1 and C1, the difference between A2 and C2 And determining that the value of the difference between A3 and C3 is greater than the preset threshold, determining that the first controlled device is close to the terminal with respect to the second controlled device, which is only an example, and the present invention does not limited.
  • the terminal sends a first control instruction to the first controlled device, indicating that the first controlled
  • the device provides a service for the terminal according to the first control instruction, and sends a second control instruction to the second controlled device, instructing the second controlled device to stop providing service for the terminal according to the second control instruction.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the terminal sends the first smart sound to the first smart sound.
  • the terminal receives the wireless signal sent by the first access point device, and determines the corresponding first signal strength according to the wireless signal sent by the first access point device to obtain the first controlled device pair.
  • the second signal strength of the first access point device and the third signal strength of the second controlled device corresponding to the first access point device, and based on the first signal strength, the second signal strength, and the third The signal strength determines that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, and controls the first controlled device and the second controlled device, so that the terminal is controlled by sensing The distance relationship between the device and the terminal, so that the corresponding operation is performed according to the distance relationship, thereby improving the user experience.
  • An embodiment of the present invention provides a device control system, as shown in FIG. 8, including a first controlled device 81, a second controlled device 82, and a terminal 83;
  • the first controlled device 81 is configured to send a first wireless signal to the terminal;
  • the second controlled device 82 is configured to send a second wireless signal to the terminal;
  • the terminal 83 is configured to determine a first signal strength according to the first wireless signal, and determine a second signal strength according to the second wireless signal, and determine the first used according to the first signal strength and the second signal strength When the distance between the control device and the terminal is less than the distance between the second controlled device and the terminal, the first controlled device and the second controlled device are controlled.
  • the first controlled device is the first smart sound
  • the second controlled device is the second smart sound.
  • the terminal determines that the terminal is in a moving state by using a sensor such as a gravity sensor, a gyroscope or an acceleration sensor. And determining that the terminal gradually approaches the first smart sound, away from the second smart sound, and before the terminal approaches the first smart sound, the second smart sound is playing the audio stream sent by the terminal, and the terminal sends the first smart sound to the first smart sound.
  • the terminal receives the wireless signal sent by the first access point device, and determines the corresponding first signal strength according to the wireless signal sent by the first access point device to obtain the first controlled device pair.
  • the signal strength determines that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, and controls the first controlled device and the second controlled device, so that the terminal is controlled by sensing The distance relationship between the device and the terminal, so that the corresponding operation is performed according to the distance relationship, thereby improving the user experience.
  • the present invention provides a terminal 90. As shown in FIG. 9, the terminal 90 includes:
  • Processor programces s or 91, communication interface (Communication interface (Com i i ti ons In terface) 92.
  • the processor 91 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits that have been implemented to implement the embodiments of the present invention.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • the memory 93 is for storing program code, and the program code includes computer operation instructions.
  • the memory 93 may contain high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the communication interface 91 is configured to implement connection communication between the devices.
  • the processor 91 is configured to receive a wireless signal sent by the first access point device, and determine a corresponding first signal strength according to the wireless signal sent by the first access point device, to obtain a first controlled device pair.
  • the processor 91 is further configured to: send, to the first controlled device and the second controlled device, a signal strength request instruction that includes an identifier of the first access point device, indicating the first controlled device And transmitting, by the second controlled device, the second signal strength and the third signal strength corresponding to the first access point device to the terminal according to the identifier.
  • the processor 91 is further configured to send a signal strength request instruction to the first controlled device and the second controlled device, to indicate that the first controlled device and the second controlled device respectively reach the terminal Sending the second signal strength and the third signal strength corresponding to all the access point devices detected, wherein the all access point devices include the first access point device.
  • the processor 91 is further configured to: determine a first difference according to the first signal strength and the second signal strength, and determine a second difference according to the first signal strength and the third signal strength, where the The difference is the first signal strength corresponding to the second access point device and the third signal strength a difference between the degrees, and determining, according to the first difference and the second difference, that the distance between the first controlled device and the terminal is less than the distance between the second controlled device and the terminal, controlling the first The control device and the second controlled device, wherein the first difference is a difference between the first signal strength and the second signal strength of the second access point device, where the first access point device includes the Second access point device.
  • the processor 91 is further configured to: when determining that the first difference corresponding to the second access point device is less than the second difference, determining that the distance between the first controlled device and the terminal is less than the a distance between the second controlled device and the terminal, sending a first control instruction to the first controlled device, instructing the first controlled device to provide a service for the terminal according to the first control instruction, and to the second controlled The device sends a second control instruction, instructing the second controlled device to stop providing service for the terminal according to the second control instruction.
  • processor 101 a processor (Rocessor) 101, a communication interface 102, a memory 103, and a communication bus 104; wherein the processor 101, the communication interface 102, and the memory 103 are completed by the communication bus 104 Communication with each other.
  • processor 101 the communication interface 102, and the memory 103 are completed by the communication bus 104 Communication with each other.
  • the processor 101 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits that have been implemented to implement the embodiments of the present invention.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • the memory 103 is for storing program code, and the program code includes computer operating instructions.
  • the memory 103 may include a high speed RAM memory and may also include a non-volatile memory, such as at least one disk memory.
  • the communication interface 102 is configured to implement connection communication between the devices.
  • the processor 101 executes a program code, configured to receive a first wireless signal sent by the first controlled device, determine a first signal strength according to the first wireless signal, and receive a second wireless sent by the second controlled device. And determining a second signal strength according to the second wireless signal, and determining the first controlled device and the terminal according to the first signal strength and the second signal strength When the distance of the terminal is less than the distance between the second controlled device and the terminal, the first controlled device and the second controlled device are controlled.
  • the processor 101 is specifically configured to: when determining that the first signal strength is greater than the second signal strength, determining that the distance between the first controlled device and the terminal is less than the second controlled device and the terminal The first control command is sent to the first controlled device, indicating that the first controlled device provides service for the terminal according to the first control command, and sends a second control command to the second controlled device, indicating The second controlled device stops providing service for the terminal according to the second control instruction.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本发明实施例提供一种设备控制的方法和设备,涉及通信领域,以实现被控设备对终端的移动的感知,提升用户体验。该方法包括以下步骤:终端接收第一接入点设备发送的无线信号(S101),并根据该第一接入点设备发送的无线信号确定对应的第一信号强度(S102),获取第一被控设备对应该第一接入点设备的第二信号强度和第二被控设备对应该第一接入点设备的第三信号强度(S103),并在根据该第一信号强度、该第二信号强度和该第三信号强度确定该第一被控设备与该终端的距离小于该第二被控设备与该终端的距离时,控制该第一被控设备和该第二被控设备(S104)。该方法实施例用于实现对被控设备的控制。

Description

一种设备控制的方法和设备 技术领域
本发明涉及通信领域, 尤其涉及一种设备控制的方法和设备。
背景技术
随着技术的飞速发展, 人们的日常生活中已经出现了越来越多 的被控设备 (如: 智能电视、 智能音响、 智能灯光等), 用户为了控 制这些被控设备, 需要使用专用的控制器或者在移动终端上安装专 用的应用程序, 从而控制被控设备启动、 停止或者执行特定的功能。
在现有技术中, 用户手动选择需要的被控设备来提供服务, 具 体地, 用户可以通过操作移动终端来实现跨设备共享多媒体内容 (如: 图像、 音频、 视频等), 例如: 用户通过操作手机上的音乐播 放程序, 可以将音频传输至一个音响设备, 并使其播放该音频。 但是当被控设备遍布在多个房间时, 用户在移动到新的房间后, 如 果想在新的房间继续享受被控设备的服务, 则需要在移动终端上重 新选择位于新的房间的被控设备提供服务, 例如, 用户通过位于客 厅的音响播放音乐, 当用户从客厅走到某个房间, 如果想在该房间 中继续听音乐, 则用户需要通过操作移动终端选择位于该房间的音 响继续播放音乐, 这样, 由于用户需要通过移动终端选择新的音响 进行音乐的播放, 从而增加了用户的操作复杂度, 降低了用户体验。 发明内容
本发明的实施例提供一种设备控制的方法和设备, 以实现被控 设备对终端的移动的感知, 提升用户体验。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面, 提供一种设备控制的方法, 包括:
终端接收第一接入点设备发送的无线信号; 其中, 所述第一接 入点设备包括至少一个第一接入点设备;
根据所述第一接入点设备发送的无线信号确定对应的第一信号 强度; 其中, 所述第一信号强度包括至少一个第一信号强度; 获取第一被控设备对应所述第一接入点设备的第二信号强度和 第二被控设备对应所述第一接入点设备的第三信号强度; 其中, 所 述第二信号强度包括至少一个第二信号强度, 所述第三信号强度包 括至少一个第三信号强度;
在根据所述第一信号强度、 所述第二信号强度和所述第三信号 强度确定所述第一被控设备与所述终端的距离小于所述第二被控设 备与所述终端的距离时, 控制所述第一被控设备和所述第二被控设 备。
在第一方面第一种可能的实现方式中, 所述获取第一被控设备 对应所述第一接入点设备的第二信号强度和第二被控设备对应所述 第一接入点设备的第三信号强度包括:
向所述第一被控设备和所述第二被控设备发送包括所述第一接 入点设备的标识的信号强度请求指令, 指示所述第一被控设备和所 述第二被控设备分别根据所述标识向所述终端发送所述第一接入点 设备对应的第二信号强度和第三信号强度; 或者,
向所述第一被控设备和所述第二被控设备发送信号强度请求指 令, 指示所述第一被控设备和所述第二被控设备分别向所述终端发 送检测到的全部接入点设备对应的第二信号强度和第三信号强度, 其中, 所述全部接入点设备包括所述第一接入点设备。
结合第一方面第一种可能的实现方式, 在第一方面第二种可能 的实现方式中, 所述第一接入点设备包括至少三个接入点设备, 所 述第一信号强度对应所述至少三个接入点设备, 包括至少三个第一 信号强度, 所述第二信号强度对应所述至少三个接入点设备, 包括 至少三个第二信号强度, 所述第三信号强度对应所述至少三个接入 点设备, 包括至少三个第三信号强度;
所述在根据所述第一信号强度、 所述第二信号强度和所述第三 信号强度确定所述第一被控设备与所述终端的距离小于所述第二被 控设备与所述终端的距离时, 控制所述第一被控设备和所述第二被 控设备包括:
根据所述第一信号强度与所述第二信号强度确定第一差值, 根 据所述第一信号强度与所述第三信号强度确定第二差值; 其中, 所 述第一差值为对应第二接入点设备的所述第一信号强度与所述第二 信号强度的差值; 所述第二差值为对应所述第二接入点设备的所述 第一信号强度与所述第三信号强度的差值, 其中, 所述第一接入点 设备包括所述第二接入点设备;
在根据所述第一差值和所述第二差值确定所述第一被控设备与 所述终端的距离小于所述第二被控设备与所述终端的距离时, 控制 所述第一被控设备和所述第二被控设备。
结合第一方面第二种可能的实现方式, 在第三种可能的实现方 式中, 所述在根据所述第一差值和所述第二差值确定所述第一被控 设备与所述终端的距离小于所述第二被控设备与所述终端的距离 时, 控制所述第一被控设备和所述第二被控设备包括:
在确定对应所述第二接入点设备的所述第一差值小于所述第二 差值时, 确定所述第一被控设备与所述终端的距离小于所述第二被 控设备与所述终端的距离;
向所述第一被控设备发送第一控制指令, 指示所述第一被控设 备根据所述第一控制指令为所述终端提供服务;
向所述第二被控设备发送第二控制指令, 指示所述第二被控设 备根据所述第二控制指令停止为所述终端提供服务。
第二方面, 提供一种设备控制的方法, 包括:
终端接收所述第一被控设备发送的第一无线信号, 并根据所述 第一无线信号确定第一信号强度;
接收所述第二被控设备发送的第二无线信号, 并根据所述第二 无线信号确定第二信号强度;
在根据所述第一信号强度和所述第二信号强度确定所述第一被 控设备与所述终端的距离小于所述第二被控设备与所述终端的距离 时, 控制所述第一被控设备和所述第二被控设备。 在第二方面第一种可能的实现方式中, 所述在根据所述第一信 号强度和所述第二信号强度确定所述第一被控设备与所述终端的距 离小于所述第二被控设备与所述终端的距离时, 控制所述第一被控 设备和所述第二被控设备包括:
在确定所述第一信号强度大于所述第二信号强度时, 确定所述 第一被控设备与所述终端的距离小于所述第二被控设备与所述终端 的距离;
向所述第一被控设备发送第一控制指令, 指示所述第一被控设 备根据所述第一控制指令为所述终端提供服务;
向所述第二被控设备发送第二控制指令, 指示所述第二被控设 备根据所述第二控制指令停止为所述终端提供服务。
第三方面, 提供一种终端, 包括:
获取单元, 用于接收第一接入点设备发送的无线信号; 其中, 所述第一接入点设备包括至少一个第一接入点设备;
处理单元, 用于根据所述获取单元得到的所述第一接入点设备 发送的无线信号确定对应的第一信号强度; 其中, 所述第一信号强 度包括至少一个第一信号强度;
所述获取单元还用于, 获取第一被控设备对应所述第一接入点 设备的第二信号强度和第二被控设备对应所述第一接入点设备的第 三信号强度; 其中, 所述第二信号强度包括至少一个第二信号强度, 所述第三信号强度包括至少一个第三信号强度;
所述处理单元还用于, 在根据所述第一信号强度、 所述第二信 号强度和所述第三信号强度确定所述第一被控设备与所述终端的距 离小于所述第二被控设备与所述终端的距离时, 控制所述第一被控 设备和所述第二被控设备。
在第三方面第一种可能的实现方式中, 发送单元, 用于向所述 第一被控设备和所述第二被控设备发送包括所述第一接入点设备的 标识的信号强度请求指令, 指示所述第一被控设备和所述第二被控 设备分别根据所述标识向所述终端发送所述第一接入点设备对应的 第二信号强度和第三信号强度; 或者,
用于向所述第一被控设备和所述第二被控设备发送信号强度请 求指令, 指示所述第一被控设备和所述第二被控设备分别向所述终 端发送检测到的全部接入点设备对应的第二信号强度和第三信号强 度, 其中, 所述全部接入点设备包括所述第一接入点设备。
结合第三方面第一种可能的实现方式, 在第三方面第二种可能 的实现方式中, 所述第一接入点设备包括至少三个接入点设备, 所 述第一信号强度对应所述至少三个接入点设备, 包括至少三个第一 信号强度, 所述第二信号强度对应所述至少三个接入点设备, 包括 至少三个第二信号强度, 所述第三信号强度对应所述至少三个接入 点设备, 包括至少三个第三信号强度;
所述处理单元具体用于, 根据所述第一信号强度与所述第二信 号强度确定第一差值, 根据所述第一信号强度与所述第三信号强度 确定第二差值; 其中, 所述第一差值为对应第二接入点设备的所述 第一信号强度与所述第二信号强度的差值; 所述第二差值为对应所 述第二接入点设备的所述第一信号强度与所述第三信号强度的差 值, 其中, 所述第一接入点设备包括所述第二接入点设备;
在根据所述第一差值和所述第二差值确定所述第一被控设备与 所述终端的距离小于所述第二被控设备与所述终端的距离时, 控制 所述第一被控设备和所述第二被控设备。
结合第三方面第二种可能的实现方式, 在第三种可能的实现方 式中, 所述处理单元具体用于, 在确定对应所述第二接入点设备的 所述第一差值小于所述第二差值时, 确定所述第一被控设备与所述 终端的距离小于所述第二被控设备与所述终端的距离;
所述发送单元还用于, 向所述第一被控设备发送第一控制指令, 指示所述第一被控设备根据所述第一控制指令为所述终端提供服 务, 并向所述第二被控设备发送第二控制指令, 指示所述第二被控 设备根据所述第二控制指令停止为所述终端提供服务。
第四方面, 提供一种终端, 包括: 获取单元, 用于接收所述第一被控设备发送的第一无线信号, 并接收所述第二被控设备发送的第二无线信号;
处理单元, 用于根据所述获取单元得到的第一无线信号确定第 一信号强度, 并根据所述获取单元得到的第二无线信号确定第二信 号强度, 并在根据所述第一信号强度和所述第二信号强度确定所述 第一被控设备与所述终端的距离小于所述第二被控设备与所述终端 的距离时, 控制所述第一被控设备和所述第二被控设备。
在第四方面第一种可能的实现方式中, 所述处理单元具体用于, 在确定所述第一信号强度大于所述第二信号强度时, 确定所述第一 被控设备与所述终端的距离小于所述第二被控设备与所述终端的距 离;
所述终端还包括:
发送单元, 用于向所述第一被控设备发送第一控制指令, 指示 所述第一被控设备根据所述第一控制指令为所述终端提供服务, 并 向所述第二被控设备发送第二控制指令, 指示所述第二被控设备根 据所述第二控制指令停止为所述终端提供服务。
第五方面, 提供一种设备控制的系统, 包括第一接入点设备、 终端、 第一被控设备和第二被控设备; 其中, 所述第一接入点设备 包括至少三个接入点设备;
所述第一接入点设备, 用于向所述终端、 所述第一被控设备和 所述第二被控设备发送无线信号;
所述终端, 用于接收所述第一接入点设备发送的无线信号, 并 根据所述第一接入点设备发送的无线信号确定对应的第一信号强 度, 并获取第一被控设备对应所述第一接入点设备的第二信号强度 和第二被控设备对应所述第一接入点设备的第三信号强度, 在根据 所述第一信号强度、 所述第二信号强度和所述第三信号强度确定所 述第一被控设备与所述终端的距离小于所述第二被控设备与所述终 端的距离时, 控制所述第一被控设备和所述第二被控设备; 其中, 所述第一信号强度包括至少一个第一信号强度, 所述第二信号强度 包括至少一个第二信号强度, 所述第三信号强度包括至少一个第三 信号强度;
所述第一被控设备, 用于接收所述第一接入点设备发送的无线 信号, 根据所述第一接入点设备发送的无线信号确定对应的第二信 号强度, 并将所述第二信号强度发送至所述终端;
所述第二被控设备, 用于接收所述第一接入点设备发送的无线 信号, 根据所述第一接入点设备发送的无线信号确定对应的第三信 号强度, 并将所述第三信号强度发送至所述终端。
第六方面, 提供一种设备控制的系统, 包括第一被控设备、 第 二被控设备和终端;
所述第一被控设备, 用于向所述终端发送第一无线信号; 所述第二被控设备, 用于向所述终端发送第二无线信号; 所述终端, 用于根据所述第一无线信号确定第一信号强度, 并 根据所述第二无线信号确定第二信号强度, 并在根据所述第一信号 强度和所述第二信号强度确定所述第一被控设备与所述终端的距离 小于所述第二被控设备与所述终端的距离时, 控制所述第一被控设 备和所述第二被控设备。
第七方面, 提供一种终端, 包括: 处理器和存储器, 所述存储 器存储计算机执行指令, 所述处理器与所述存储器通过通信总线连 接;
当所述终端运行时, 所述处理器执行所述存储器存储的所述计 算机执行指令, 使得所述终端执行第一方面所述的方法。
第八方面, 提供一种终端, 包括: 处理器和存储器, 所述存储 器存储计算机执行指令, 所述处理器与所述存储器通过通信总线连 接;
当所述终端运行时, 所述处理器执行所述存储器存储的所述计 算机执行指令, 使得所述被控设备执行第二方面所述的方法。
通过釆用上述方案, 终端接收第一接入点设备发送的无线信号, 并根据所述第一接入点设备发送的无线信号确定对应的第一信号强 度, 获取第一被控设备对应所述第一接入点设备的第二信号强度和 第二被控设备对应所述第一接入点设备的第三信号强度, 并在根据 所述第一信号强度、 所述第二信号强度和所述第三信号强度确定所 述第一被控设备与所述终端的距离小于所述第二被控设备与所述终 端的距离时, 控制所述第一被控设备和所述第二被控设备, 这样, 终端通过感知被控设备与终端的距离关系, 从而根据该距离关系执 行相应的操作, 提高了用户体验。
附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例 描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。
图 1 为本发明实施例提供的一种设备控制方法的流程示意图; 图 2 为本发明实施例提供的另一种设备控制方法的流程示意 图;
图 3为本发明实施例提供的一种设备控制方法的流程图; 图 4为本发明实施例提供的另一种设备控制方法的流程图; 图 5为本发明实施例提供的一种终端的结构示意图;
图 6为本发明实施例提供的另一种终端的结构示意图;
图 7为本发明实施例提供的一种设备控制系统的连接图; 图 8为本发明实施例提供的另一种设备控制系统的连接图; 图 9为本发明实施例提供的另一种终端的结构示意图;
图 1 0为本发明实施例提供的另一种终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案 进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实 施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术 人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本 发明保护的范围。
本发明实施例提供一种设备控制的方法, 如图 1 所示, 该方法的执 行主体为终端, 该方法包括:
5101、 终端接收第一接入点设备发送的无线信号。
其中, 该第一接入点设备包括至少一个第一接入点设备。
具体地, 终端和被控设备通过接入点设备连接, 其中该接入点设备 包括用于实现终端与被控设备之间的网络通信的工作接入点设备和至少 两个用于提供无线信号以完成对终端和被控设备之间距离的确定的辅助 接入点设备, 上述工作接入点设备也可以作为辅助接入点设备, 在确定 信号强度时, 是将该工作接入点设备作为辅助接入点设备使用的, 在本 发明实施例中, 是将该工作接入点设备和该辅助接入点设备统称为接入 点设备描述的。
5102、 终端根据该第一接入点设备发送的无线信号确定对应的第一 信号强度。
其中, 该第一信号强度包括至少一个第一信号强度。
具体地, 该第一接入点设备包括至少三个接入点设备, 终端接收该 至少三个接入点设备发送的至少三个无线信号, 并根据该至少三个无线 信号得到至少三个第一信号强度。
示例地, 终端根据接收到的接入点设备 1发送的无线信号确定信号 强度 Al、 根据接收到的接入点设备 2发送的无线信号确定信号强度 A2 , 根据接入点设备 3发送的无线信号确定信号强度 A3。
S 103、 终端获取第一被控设备对应该第一接入点设备的第二信号强 度和第二被控设备对应该第一接入点设备的第三信号强度。
其中, 该第二信号强度包括至少一个第二信号强度, 该第三信号强 度包括至少一个第三信号强度;
具体地, 终端向该第一被控设备和该第二被控设备发送信号强度请 求指令, 指示该第一被控设备和该第二被控设备根据该信号强度请求指 令向该终端发送该第二信号强度和该第三信号强度。
其中, 该第二信号强度包括该第一被控设备接受该至少三个第一接 入点设备的无线信号得到的至少三个信号强度, 该第三信号强度包括该 第二被控设备接受该至少三个第一接入点设备的无线信号得到的至少三 个信号强度。
具体地, 上述终端可以以广播的方式发送信号强度请求指令, 该第 一被控设备在接收到该信号强度请求指令后, 向该终端发送对应该至少 三个第一接入点设备的至少三个第二信号强度和该第一被控设备的标识 信息, 该第二被控设备在接收到该信号强度请求指令后, 向该终端发送 对应该至少三个第一接入点设备的至少三个第三信号强度和该第二被控 设备的标识信息, 这样, 该终端可以根据该标识信息确定接收到的信号 强度对应的发送方; 方然, 终端也可以直接向该第一被控设备和该第二 被控设备发送信号强度请求指令, 该第一被控设备在接收到该信号强度 请求指令后, 向该终端发送对应该至少三个第一接入点设备的至少三个 第二信号强度, 该第二被控设备在接收到该信号强度请求指令后, 向该 终端发送对应该至少三个第一接入点设备的至少三个第三信号强度, 本 发明对此不作限定。
需要说明的是, 由于第一被控设备和第二被控设备向终端发送对应 多个接入点设备的信号强度, 因此, 该第一被控设备和该第二被控设备, 因此, 该第一被控设备和该第二被控设备在向终端发送信号强度时, 还 需要将每个信号强度对应的接入点设备的标识发送至终端, 以告知终端 接收到的信号强度对应的接入点设备。
可选地, 上述终端向第一被控设备和第二被控设备发送信号强度请 求指令, 并获取第一被控设备对应该第一接入点设备的第二信号强度和 第二被控设备对应该第一接入点设备的第三信号强度包括以下两种方 式:
方式一: 终端向该第一被控设备和该第二被控设备发送包括该第 ― 接入点设备的标识的信号强度请求指令, 指示该第一被控设备和该第二 被控设备分别根据该标识向该终端发送该第一接入点设备对应的第二信 号强度和第三信号强度。
具体地, 该接入点设备可以是 Wi-F i ( Wi re l es sF i de l , 无线保真协 议)接入点 (英文: Access Point,缩写: AP ) , 该接入点设备的标识可 以是 Wi-Fi 接入点的服务集标识符 (英文: Service Set Identifier, 缩写: SSID) , 该终端可以将包括该服务集标识符的信号强度请求指令 发送至该第一被控设备和该第二被控设备, 指示该第一被控设备和该第 二被控设备确定将根据该服务集标识符对应的 Wi-Fi 接入点发送的无线 信号确定的信号强度发送至终端, 这样, 终端可以将该包括终端需要的 Wi-Fi 接入点的服务集标识符的信号请求指令发送至第一被控设备和第 二被控设备, 以指示该第一被控设备和该第二被控设备将根据该服务集 标识符确定的 Wi-Fi 接入点对应的第一信号强度和第二信号强度发送至 该终端。
示例地, 终端向第一被控设备和第二被控设备发送的信号强度请求 指令中包括接入点设备 1 的标识、 接入点设备 2 的标识、 接入点设备 3 的标识, 则第一被控设备在接收到该信号强度请求指令后, 向终端发送 接入点设备 1对应的信号强度 Bl、 接入点设备 2对应的信号强度 B2、 接 入点设备 3对应的信号强度 B3, 同样的, 第二被控设备在接收到该信号 强度请求指令后, 想终端发送接入点设备 1对应的信号强度 Cl、 接入点 设备 2对应的信号强度 C2、 接入点设备 3对应的信号强度 C3。
方式二: 该终端向该第一被控设备和该第二被控设备发送信号强度 请求指令, 指示该第一被控设备和该第二被控设备分别向该终端发送检 测到的全部接入点设备对应的第二信号强度和第三信号强度, 其中, 该 全部接入点设备包括该第一接入点设备。
需要说明的是, 与方式一不同的是, 该方式中, 终端发送的信号强 度请求指令不包括接入点设备的标识。
另外, 该第二信号强度和该第三信号强度包括该第一被控设备和该 第二被控设备根据至少三个相同的接入点设备发送的无线信号得到的信 号强度。
示例地, 在方式二的场景中存在五个接入点设备, 分别记为接入点 设备 1至 5, 第一被控设备检测到接入点设备 1至 4, 将该第一被控设备 获取到该接入点设备 1发送的无线信号对应的信号强度记为 B1, 将该第 一被控设备获取到该接入点设备 2 发送的无线信号对应的信号强度记为 B2 , 依次类推, 则第一被控设备获取该接入点设备 1 至 4 的信号强度分 别为 Bl、 B2、 B 3和 B4 , 该第一被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第二信号强度 Bl、 B2、 B3和 B4发送至该终端, 同 样的, 第二被控设备检测到接入点设备 2至 5 , 则该第二被控设备获取到 该接入点设备 2发送的无线信号对应的信号强度记为 C2 , 该第二被控设 备获取到该接入点设备 3发送的无线信号对应的信号强度记为 C 3 , 依次 类推, 则该第二被控设备获取到该接入点设备 2至 5对应的信号强度分 别为 C2、 C 3、 C4和 C5 , 该第二被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第三信号强度 C2、 C 3、 C4和 C5发送至该终端, 第 二信号强度和第三信号强度都包括根据接入点设备 2至 4发送的无线信 号得到的信号强度, 这里只是举例说明, 不作限定。
S 104、 终端在根据该第一信号强度、 该第二信号强度和该第三信号 强度确定该第一被控设备与该终端的距离小于该第二被控设备与该终端 的距离时, 控制该第一被控设备和该第二被控设备。
其中, 该第一接入点设备包括至少三个接入点设备, 该第一信号强 度对应该至少三个接入点设备, 包括至少三个第一信号强度, 该第二信 号强度对应该至少三个接入点设备, 包括至少三个第二信号强度, 该第 三信号强度对应该至少三个接入点设备, 包括至少三个第三信号强度。
具体地,终端根据该第一信号强度与该第二信号强度确定第一差值, 根据该第一信号强度与该第三信号强度确定第二差值; 其中, 该第一差 值为对应第二接入点设备的该第一信号强度与该第二信号强度的差值; 该第二差值为对应该第二接入点设备的该第一信号强度与该第三信号强 度的差值, 其中, 该第一接入点设备包括该第二接入点设备, 并在根据 该第一差值和该第二差值确定该第一被控设备与该终端的距离小于该第 二被控设备与该终端的距离时, 控制该第一被控设备和该第二被控设备。
需要说明的是, 终端是根据对应相同接入点设备的第一信号强度与 第二信号强度确定第一差值的, 因此需要该第一被控设备和该第二被控 设备发送包括对应相同的至少三个接入点设备对应的第二信号强度和第 三信号强度要的至该终端。
进一步地, 终端在确定对应该第二接入点设备的该第一差值小于该 第二差值时, 确定该第一被控设备与该终端的距离小于该第二被控设备 与该终端的距离。
需要说明的是, 终端是根据对应相同接入点设备发送的无线信号确 定的信号强度确定的第一差值与该第二差值, 这样才能将第一差值与第 二差值进行比较。
具体地, 终端在确定至少三个第一差值分别小于对应接入点设备对 应的第二差值时, 确定第一被控设备与终端的距离小于第二被控设备与 终端的距离。
示例地, 在本发明实施例的应用场景中存在五个接入点设备, 分别 为接入点设备 1至 5,终端根据接入点设备 1发送的无线信号得到信号强 度 A 1 ,第一被控设备根据接入点设备 1发送的无线信号得到信号强度 B 1 , 第二被控设备根据接入点设备 1发送的无线信号得到信号强度 C1, 终端 根据接入点设备 2发送的无线信号得到信号强度 A2, 第一被控设备根据 接入点设备 2发送的无线信号得到信号强度 B2, 第二被控设备根据接入 点设备 2发送的无线信号得到信号强度 C2, 终端根据接入点设备 3发送 的无线信号得到信号强度 A3, 第一被控设备根据接入点设备 3发送的无 线信号得到信号强度 B3, 第二被控设备根据接入点设备 3发送的无线信 号得到信号强度 C3, 若确定 A1与 B1的差值小于 A1与 C1的差值, A2与 B2的差值小于 A2与 C2的差值,且 A3与 B3的差值小于 A3与 C3的差值, 则确定该第一被控设备相对于该第二被控设备接近该终端, 另外, 也可 以根据预设阈值进行判断, 若确定 A1 与 B1 的差值、 A2与 B2 的差值和 A3与 B3的差值都小于预设阈值, 且 A1与 C1的差值、 A2与 C2的差值和 A3与 C3的差值中任一个大于该预设阈值时,则确定该第一被控设备相对 于该第二被控设备接近该终端, 这里只是举例说明, 本发明对此不作限 定。
进一步地, 在确定该第一被控设备与该终端的距离小于该第二被控 设备与该终端的距离时, 终端向该第一被控设备发送第一控制指令, 指 示该第一被控设备根据该第一控制指令为该终端提供服务, 并向该第二 被控设备发送第二控制指令, 指示该第二被控设备根据该第二控制指令 停止为该终端提供服务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 则终端向该第一智能音响发送第一控 制指令, 向该第二智能音响发送第二控制指令, 该第一控制指令可以是 以下操作的一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音 频流、 增大第一智能音响音量; 该第二控制指令可以是以下操作的一个 或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能音响进入休眠状态。
需要说明的是, 本发明实施例并不限于在终端移动的场景下执行上 述步骤 S 1 01至步骤 S 104 ,在终端上电并向第一被控设备和第二被控设备 发送播放指令的场景下也可以参考本发明实施例确定接近该终端的被控 设备, 并由该被控设备提供服务。
通过釆用上述执行主体为终端的方法, 终端接收第一接入点设备发 送的无线信号, 并根据该第一接入点设备发送的无线信号确定对应的第 一信号强度, 获取第一被控设备对应该第一接入点设备的第二信号强度 和第二被控设备对应该第一接入点设备的第三信号强度, 并在根据该第 一信号强度、 该第二信号强度和该第三信号强度确定该第一被控设备与 该终端的距离小于该第二被控设备与该终端的距离时, 控制该第一被控 设备和该第二被控设备, 这样, 终端通过感知被控设备与终端的距离关 系, 从而根据该距离关系执行相应的操作, 提高了用户体验。 本发明实施例提供一种设备控制的方法, 如图 2所示, 包括: S20K 终端接收该第一被控设备发送的第一无线信号, 并根据该第 一无线信号确定第一信号强度。 S202、 终端接收该第二被控设备发送的第二无线信号, 并根据该第 二无线信号确定第二信号强度。
具体地, 终端和被控设备可以通过点对点的连接方式, 例如蓝牙或 者点对点的无线保真协议 (Wi-F i D i rec t ) , 该终端建立与该第一被控 设备和该第二被控设备的连接, 在该连接建立后, 该终端获取该第一被 控设备发送的第一无线信号, 并根据该第一无线信号得到第一信号强度, 获取该第二被控设备发送的第二无线信号, 并根据该第二无线信号得到 第二信号强度。
S203、 终端在根据该第一信号强度和该第二信号强度确定该第一被 控设备与该终端的距离小于该第二被控设备与该终端的距离时, 控制该 第一被控设备和该第二被控设备。
进一步的, 终端在确定该第一信号强度大于该第二信号强度时, 则 确定该第一被控设备相对于该第二被控设备接近该终端。
具体地, 在该方式下, 该终端直接与该第一被控设备和该第二被控 设备建立连接, 则在接收到该第一信号强度和该第二信号强度后, 由于 距离终端越近, 终端接收的无线信号的信号强度越大, 因此, 终端在确 定该第一信号强度大于该第二信号强度时, 则确定该第一被控设备相对 于该第二被控设备接近该终端。
进一步地, 在确定该第一被控设备相对于该第二被控设备接近该终 端时, 向该第一被控设备发送第一控制指令, 指示该第一被控设备执行 该第一控制指令, 使得该第一被控设备根据该第一控制指令为该终端提 供服务; 向该第二被控设备发送第二控制指令, 指示该第二被控设备执 行该第二控制指令, 使得该第二被控设备根据该第二控制指令停止位该 终端提供服务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 上述第一控制指令可以是以下操作的 一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音频流、 增大 第一智能音响音量; 上述第二控制指令可以是以下操作的一个或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能 音响进入休眠状态。
需要说明的是, 本发明实施例并不限于在终端移动的场景下执行上 述步骤 S201至步骤 S203 ,在终端上电并向第一被控设备和第二被控设备 发送播放指令的场景下也可以参考本发明实施例确定接近该终端的被控 设备, 并由该被控设备提供服务。 本发明实施例提供一种终端, 如图 3所示, 该方法实施例以终端与 被控设备通过接入点设备链接的方式进行说明, 该方法包括:
S 30K 第一接入点设备向终端发送无线信号。
S 302、 第一接入点设备向第一被控设备发送无线信号。
S 303、 第一接入点设备向第二被控设备发送无线信号。
其中, 该第一接入点设备包括用于实现终端与被控设备之间的网络 通信的工作接入点设备和至少两个用于提供无线信号以完成对终端和被 控设备之间距离的确定的辅助接入点设备, 上述工作接入点设备也可以 作为辅助接入点设备, 在确定信号强度时, 是将该工作接入点设备作为 辅助接入点设备使用的, 在本发明实施例中, 是将该工作接入点设备和 该辅助接入点设备统称为接入点设备描述的。
S 304、 终端在确定该终端处于移动状态时, 根据该第一接入点设备 的无线信号得到第一信号强度。
具体地, 终端通过传感器 (如重力传感器、 陀螺仪或者加速度传感 器) 确定该终端处于移动状态。
S 305、 第一被控设备根据该第一接入点设备的无线信号得到第二信 号强度。
S 306、 第二被控设备根据该第一接入点设备的无线信号得到第三信 号强度。
具体地, 该第一接入点设备包括至少三个接入点设备, 终端接收该 至少三个接入点设备发送的至少三个无线信号, 并根据该至少三个无线 信号得到至少三个第一信号强度, 同样的, 第一被控设备接收该至少三 个接入点设备发送的至少三个无线信号, 并根据该至少三个无线信号得 到至少三个第二信号强度, 同样的, 第二被控设备接收该至少三个接入 点设备发送的至少三个无线信号, 并根据该至少三个无线信号得到至少 三个第三信号强度。
S 307、 终端向该第一被控设备和该第二被控设备发送信号强度请求 指令。
具体地, 终端向该第一被控设备和该第二被控设备发送信号强度请 求指令, 指示该第一被控设备和该第二被控设备根据该信号强度请求指 令向该终端发送该第一信号强度和该第二信号强度。
其中, 该第二信号强度包括该第一被控设备接受该至少三个第一接 入点设备的无线信号得到的至少三个信号强度, 该第三信号强度包括该 第二被控设备接受该至少三个第一接入点设备的无线信号得到的至少三 个信号强度。
5308、 第一被控设备根据该信号强度请求指令向该终端发送第二信 号强度。
5309、 第二杯控设备根据该信号强度请求指令向该终端发送第三信 号强度。
具体地, 上述终端可以以广播的方式发送信号强度请求指令, 该第 一被控设备在接收到该信号强度请求指令后, 向该终端发送对应该至少 三个第一接入点设备的至少三个第二信号强度和该第一被控设备的标识 信息, 该第二被控设备在接收到该信号强度请求指令后, 向该终端发送 对应该至少三个第一接入点设备的至少三个第三信号强度和该第二被控 设备的标识信息, 这样, 该终端可以根据该标识信息确定接收到的信号 强度对应的发送方; 方然, 终端也可以直接向该第一被控设备和该第二 被控设备发送信号强度请求指令, 该第一被控设备在接收到该信号强度 请求指令后, 向该终端发送对应该至少三个第一接入点设备的至少三个 第二信号强度, 该第二被控设备在接收到该信号强度请求指令后, 向该 终端发送对应该至少三个第一接入点设备的至少三个第三信号强度, 本 发明对此不作限定。
需要说明的是, 由于第一被控设备和第二被控设备向终端发送对应 多个接入点设备的信号强度, 因此, 该第一被控设备和该第二被控设备, 因此, 该第一被控设备和该第二被控设备在向终端发送信号强度时, 还 需要将每个信号强度对应的接入点设备的标识发送至终端, 以告知终端 接收到的信号强度对应的接入点设备。
可选地, 上述终端向第一被控设备和第二被控设备发送信号强度请 求指令, 并获取第一被控设备对应该第一接入点设备的第二信号强度和 第二被控设备对应该第一接入点设备的第三信号强度包括以下两种方 式:
方式一: 终端向该第一被控设备和该第二被控设备发送包括该第 ― 接入点设备的标识的信号强度请求指令, 指示该第一被控设备和该第二 被控设备分别根据该标识向该终端发送该第一接入点设备对应的第二信 号强度和第三信号强度。
具体地, 该接入点设备可以是 Wi-Fi ( WirelessFidel, 无线保真协 议)接入点 (英文: Access Point,缩写: AP ) , 该接入点设备的标识可 以是 Wi-Fi 接入点的服务集标识符 (英文: Service Set Identifier, 缩写: SSID) , 该终端可以将包括该服务集标识符的信号强度请求指令 发送至该第一被控设备和该第二被控设备, 指示该第一被控设备和该第 二被控设备确定将根据该服务集标识符对应的 Wi-Fi 接入点发送的无线 信号确定的信号强度发送至终端, 这样, 终端可以将该包括终端需要的 Wi-Fi 接入点的服务集标识符的信号请求指令发送至第一被控设备和第 二被控设备, 以指示该第一被控设备和该第二被控设备将根据该服务集 标识符确定的 Wi-Fi 接入点对应的第一信号强度和第二信号强度发送至 该终端。
示例地, 终端向第一被控设备和第二被控设备发送的信号强度请求 指令中包括接入点设备 1 的标识、 接入点设备 2 的标识、 接入点设备 3 的标识, 则第一被控设备在接收到该信号强度请求指令后, 向终端发送 接入点设备 1对应的信号强度 Bl、 接入点设备 2对应的信号强度 B2、 接 入点设备 3对应的信号强度 B 3 , 同样的, 第二被控设备在接收到该信号 强度请求指令后, 想终端发送接入点设备 1对应的信号强度 C l、 接入点 设备 2对应的信号强度 C2、 接入点设备 3对应的信号强度 C 3。
方式二: 该终端向该第一被控设备和该第二被控设备发送信号强度 请求指令, 指示该第一被控设备和该第二被控设备分别向该终端发送检 测到的全部接入点设备对应的第二信号强度和第三信号强度, 其中, 该 全部接入点设备包括该第一接入点设备。
需要说明的是, 与方式一不同的是, 该方式中, 终端发送的信号强 度请求指令不包括接入点设备的标识。
另外, 该第二信号强度和该第三信号强度包括该第一被控设备和该 第二被控设备根据至少三个相同的接入点设备发送的无线信号得到的信 号强度。
示例地, 在方式二的场景中存在五个接入点设备, 分别记为接入点 设备 1至 5 , 第一被控设备检测到接入点设备 1至 4 , 将该第一被控设备 获取到该接入点设备 1发送的无线信号对应的信号强度记为 B1 , 将该第 一被控设备获取到该接入点设备 2 发送的无线信号对应的信号强度记为 B2 , 依次类推, 则第一被控设备获取该接入点设备 1 至 4 的信号强度分 别为 Bl、 B2、 B 3和 B4 , 该第一被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第二信号强度 Bl、 B2、 B 3和 B4发送至该终端, 同 样的, 第二被控设备检测到接入点设备 2至 5 , 则该第二被控设备获取到 该接入点设备 2发送的无线信号对应的信号强度记为 C2 , 该第二被控设 备获取到该接入点设备 3发送的无线信号对应的信号强度记为 C 3 , 依次 类推, 则该第二被控设备获取到该接入点设备 2至 5对应的信号强度分 别为 C2、 C 3、 C4和 C5 , 该第二被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第三信号强度 C2、 C 3、 C4和 C5发送至该终端, 第 二信号强度和第三信号强度都包括根据接入点设备 2至 4发送的无线信 号得到的信号强度, 这里只是举例说明, 不作限定。
S 31 0、 终端根据该第一信号强度、 该第二信号强度和该第三信号强 度确定该第一被控设备与该终端的距离小于该第二被控设备与该终端的 距离。
其中, 该第一接入点设备包括至少三个接入点设备, 该第一信号强 度对应该至少三个接入点设备, 包括至少三个第一信号强度, 该第二信 号强度对应该至少三个接入点设备, 包括至少三个第二信号强度, 该第 三信号强度对应该至少三个接入点设备, 包括至少三个第三信号强度。
具体地,终端根据该第一信号强度与该第二信号强度确定第一差值, 根据该第一信号强度与该第三信号强度确定第二差值; 其中, 该第一差 值为对应第二接入点设备的该第一信号强度与该第二信号强度的差值; 该第二差值为对应该第二接入点设备的该第一信号强度与该第三信号强 度的差值, 其中, 该第一接入点设备包括该第二接入点设备, 并在根据 该第一差值和该第二差值确定该第一被控设备与该终端的距离小于该第 二被控设备与该终端的距离。
需要说明的是, 终端是根据对应相同接入点设备的第一信号强度与 第二信号强度确定第一差值的, 因此需要该第一被控设备和该第二被控 设备发送包括对应相同的至少三个接入点设备对应的第二信号强度和第 三信号强度要的至该终端。
进一步地, 终端在确定对应该第二接入点设备的该第一差值小于该 第二差值时, 确定该第一被控设备与该终端的距离小于该第二被控设备 与该终端的距离。
需要说明的是, 终端是根据对应相同接入点设备发送的无线信号确 定的信号强度确定的第一差值与该第二差值, 这样才能将第一差值与第 二差值进行比较。
具体地, 终端在确定至少三个第一差值分别小于对应接入点设备对 应的第二差值时, 确定第一被控设备与终端的距离小于第二被控设备与 终端的距离。
示例地, 在本发明实施例的应用场景中存在五个接入点设备, 分别 为接入点设备 1至 5 ,终端根据接入点设备 1发送的无线信号得到信号强 度 A 1 ,第一被控设备根据接入点设备 1发送的无线信号得到信号强度 B 1 , 第二被控设备根据接入点设备 1发送的无线信号得到信号强度 C1 , 终端 根据接入点设备 2发送的无线信号得到信号强度 A2 , 第一被控设备根据 接入点设备 2发送的无线信号得到信号强度 B2 , 第二被控设备根据接入 点设备 2发送的无线信号得到信号强度 C2 , 终端根据接入点设备 3发送 的无线信号得到信号强度 A3 , 第一被控设备根据接入点设备 3发送的无 线信号得到信号强度 B 3 , 第二被控设备根据接入点设备 3发送的无线信 号得到信号强度 C 3 , 若确定 A1与 B1的差值小于 A1与 C1的差值, A2与 B2的差值小于 A2与 C2的差值,且 A3与 B3的差值小于 A 3与 C 3的差值, 则确定该第一被控设备相对于该第二被控设备接近该终端, 另外, 也可 以根据预设阈值进行判断, 若确定 A1 与 B1 的差值、 A2与 B2 的差值和 A 3与 B3的差值都小于预设阈值, 且 A1与 C1的差值、 A2与 C2的差值和 A 3与 C 3的差值中任一个大于该预设阈值时,则确定该第一被控设备相对 于该第二被控设备接近该终端, 这里只是举例说明, 本发明对此不作限 定。
S 31 K 终端向该第一被控设备发送第一控制指令。
其中,该第一控制指令用来指示该第一被控设备为该终端提供服务。
S 312、 终端向该第二被控设备发送第二控制指令。
其中, 该第二控制指令用来指示第二被控设备停止为该终端提供服 务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 则终端向该第一智能音响发送第一控 制指令, 向该第二智能音响发送第二控制指令, 该第一控制指令可以是 以下操作的一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音 频流、 增大第一智能音响音量; 该第二控制指令可以是以下操作的一个 或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能音响进入休眠状态。 通过釆用上述方案, 终端接收第一接入点设备发送的无线信号, 并 根据该第一接入点设备发送的无线信号确定对应的第一信号强度, 获取 第一被控设备对应该第一接入点设备的第二信号强度和第二被控设备对 应该第一接入点设备的第三信号强度, 并在根据该第一信号强度、 该第 二信号强度和该第三信号强度确定该第一被控设备与该终端的距离小于 该第二被控设备与该终端的距离时, 控制该第一被控设备和该第二被控 设备, 这样, 终端通过感知被控设备与终端的距离关系, 从而根据该距 离关系执行相应的操作, 提高了用户体验。 本发明实施例提供一种设备控制的方法, 如图 4 所示, 该方法实施 利以终端与被控设备通过点对点的连接方式 (如蓝牙或者点对点的无线 保真协议) 为例进行说明, 该方法包括:
5401、 终端与第一被控设备和第二被控设备建立连接。
5402、 终端在确定该终端处于移动状态时, 获取该第一被控设备发 送的第一无线信号, 并根据该第一无线信号得到第一信号强度。
具体地, 终端通过传感器 (如重力传感器、 陀螺仪或者加速度传感 器) 确定该终端处于移动状态。
5403、 该终端获取该第二被控设备发送的第二无线信号, 并根据该 第二无线信号得到第二信号强度。
S404、 该终端根据该第一信号强度和该第二信号强度确定第一被控 设备与该终端的距离小于该第二被控设备与该终端的距离。
具体地, 终端在确定该第一信号强度大于该第二信号强度时, 则确 定该第一被控设备与该终端的距离小于该第二被控设备与该终端的距 离。
需要说明的是, 在本发明实施例中, 该终端直接与该第一被控设备 和该第二被控设备建立连接, 则在接收到该第一信号强度和该第二信号 强度后, 由于距离终端越近, 终端接收的无线信号的信号强度越大, 因 此, 终端在确定该第一信号强度大于该第二信号强度时, 则确定该第一 被控设备与该终端的距离小于该第二被控设备与该终端的距离。 5405、 该终端向该第一被控设备发送第一控制指令。
其中, 该第一控制指令用于指示该第一被控设备根据该第一控制指 令为该终端提供服务。
5406、 该终端向该第二被控设备发送第二控制指令。
其中, 该第二控制指令用于指示该第二被控设备根据该第二控制指 令停止为该终端提供服务。
具体地, 在确定该第一被控设备相对于该第二被控设备接近该终端 时, 向该第一被控设备发送第一控制指令, 指示该第一被控设备执行该 第一控制指令, 使得该第一被控设备根据该第一控制指令为该终端提供 服务; 向该第二被控设备发送第二控制指令, 指示该第二被控设备执行 该第二控制指令, 使得该第二被控设备根据该第二控制指令停止位该终 端提供服务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 上述第一控制指令可以是以下操作的 一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音频流、 增大 第一智能音响音量; 上述第二控制指令可以是以下操作的一个或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能 音响进入休眠状态。
需要说明的是, 本发明实施例并不限于在终端移动的场景下执行上 述步骤 S401至步骤 S406 ,在终端上电并向第一被控设备和第二被控设备 发送播放指令的场景下也可以参考本发明实施例确定接近该终端的被控 设备, 并由该被控设备提供服务。
这样, 在终端与被控设备通过点对点的连接方式下, 终端通过感知 被控设备与终端的距离关系, 从而根据该距离关系执行相应的操作, 提 高了用户体验。 本发明实施例提供一种终端 50 , 如图 5所示, 包括:
获取单元 51 , 用于接收第一接入点设备发送的无线信号; 其中, 该 第一接入点设备包括至少一个第一接入点设备。
处理单元 52 , 用于根据该获取单元得到的该第一接入点设备发送的 无线信号确定对应的第一信号强度; 其中, 该第一信号强度包括至少一 个第一信号强度。
该获取单元 5 1还用于,获取第一被控设备对应该第一接入点设备的 第二信号强度和第二被控设备对应该第一接入点设备的第三信号强度; 其中, 该第二信号强度包括至少一个第二信号强度, 该第三信号强度包 括至少一个第三信号强度。
该处理单元 52还用于, 在根据该第一信号强度、 该第二信号强度和 该第三信号强度确定该第一被控设备与该终端的距离小于该第二被控设 备与该终端的距离时, 控制该第一被控设备和该第二被控设备。
其中, 该第一接入点设备包括用于实现终端与被控设备之间的网络 通信的工作接入点设备和至少两个用于提供无线信号以完成对终端和被 控设备之间距离的确定的辅助接入点设备, 上述工作接入点设备也可以 作为辅助接入点设备, 在确定信号强度时, 是将该工作接入点设备作为 辅助接入点设备使用的, 在本发明实施例中, 是将该工作接入点设备和 该辅助接入点设备统称为接入点设备描述的。
进一步地, 终端向该第一被控设备和该第二被控设备发送信号强度 请求指令, 指示该第一被控设备和该第二被控设备根据该信号强度请求 指令向该终端发送该第一信号强度和该第二信号强度。
具体地, 上述终端可以以广播的方式发送信号强度请求指令, 该第 一被控设备在接收到该信号强度请求指令后, 向该终端发送对应该至少 三个第一接入点设备的至少三个第二信号强度和该第一被控设备的标识 信息, 该第二被控设备在接收到该信号强度请求指令后, 向该终端发送 对应该至少三个第一接入点设备的至少三个第三信号强度和该第二被控 设备的标识信息, 这样, 该终端可以根据该标识信息确定接收到的信号 强度对应的发送方; 方然, 终端也可以直接向该第一被控设备和该第二 被控设备发送信号强度请求指令, 该第一被控设备在接收到该信号强度 请求指令后, 向该终端发送对应该至少三个第一接入点设备的至少三个 第二信号强度, 该第二被控设备在接收到该信号强度请求指令后, 向该 终端发送对应该至少三个第一接入点设备的至少三个第三信号强度, 本 发明对此不作限定。
需要说明的是, 由于第一被控设备和第二被控设备向终端发送对应 多个接入点设备的信号强度, 因此, 该第一被控设备和该第二被控设备, 因此, 该第一被控设备和该第二被控设备在向终端发送信号强度时, 还 需要将每个信号强度对应的接入点设备的标识发送至终端, 以告知终端 接收到的信号强度对应的接入点设备。
可选地, 该终端还包括发送单元 53, 用于向该第一被控设备和该第 二被控设备发送包括该第一接入点设备的标识的信号强度请求指令, 指 示该第一被控设备和该第二被控设备分别根据该标识向该终端发送该第 一接入点设备对应的第二信号强度和第三信号强度。
具体地, 该接入点设备可以是 Wi-Fi ( WirelessFidel, 无线保真协 议)接入点 (英文: Access Point,缩写: AP ) , 该接入点设备的标识可 以是 Wi-Fi 接入点的服务集标识符 (英文: Service Set Identifier, 缩写: SSID) , 该终端可以将包括该服务集标识符的信号强度请求指令 发送至该第一被控设备和该第二被控设备, 指示该第一被控设备和该第 二被控设备确定将根据该服务集标识符对应的 Wi-Fi 接入点发送的无线 信号确定的信号强度发送至终端, 这样, 终端可以将该包括终端需要的 Wi-Fi 接入点的服务集标识符的信号请求指令发送至第一被控设备和第 二被控设备, 以指示该第一被控设备和该第二被控设备将根据该服务集 标识符确定的 Wi-Fi 接入点对应的第一信号强度和第二信号强度发送至 该终端。
示例地, 终端向第一被控设备和第二被控设备发送的信号强度请求 指令中包括接入点设备 1 的标识、 接入点设备 2 的标识、 接入点设备 3 的标识, 则第一被控设备在接收到该信号强度请求指令后, 向终端发送 接入点设备 1对应的信号强度 Bl、 接入点设备 2对应的信号强度 B2、 接 入点设备 3对应的信号强度 B 3 , 同样的, 第二被控设备在接收到该信号 强度请求指令后, 想终端发送接入点设备 1对应的信号强度 Cl、 接入点 设备 2对应的信号强度 C2、 接入点设备 3对应的信号强度 C 3。
可选地, 该发送单元 53还用于, 向该第一被控设备和该第二被控设 备发送信号强度请求指令, 指示该第一被控设备和该第二被控设备分别 向该终端发送检测到的全部接入点设备对应的第二信号强度和第三信号 强度。
其中, 该全部接入点设备包括该第一接入点设备。
需要说明的是, 与方式一不同的是, 该方式中, 终端发送的信号强 度请求指令不包括接入点设备的标识。
另外, 该第二信号强度和该第三信号强度包括该第一被控设备和该 第二被控设备根据至少三个相同的接入点设备发送的无线信号得到的信 号强度。
示例地, 在方式二的场景中存在五个接入点设备, 分别记为接入点 设备 1至 5 , 第一被控设备检测到接入点设备 1至 4 , 将该第一被控设备 获取到该接入点设备 1发送的无线信号对应的信号强度记为 B1 , 将该第 一被控设备获取到该接入点设备 2 发送的无线信号对应的信号强度记为 B2 , 依次类推, 则第一被控设备获取该接入点设备 1 至 4 的信号强度分 别为 Bl、 B2、 B 3和 B4 , 该第一被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第二信号强度 Bl、 B2、 B3和 B4发送至该终端, 同 样的, 第二被控设备检测到接入点设备 2至 5 , 则该第二被控设备获取到 该接入点设备 2发送的无线信号对应的信号强度记为 C2 , 该第二被控设 备获取到该接入点设备 3发送的无线信号对应的信号强度记为 C 3 , 依次 类推, 则该第二被控设备获取到该接入点设备 2至 5对应的信号强度分 别为 C2、 C 3、 C4和 C5 , 该第二被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第三信号强度 C2、 C 3、 C4和 C5发送至该终端, 第 二信号强度和第三信号强度都包括根据接入点设备 2至 4发送的无线信 号得到的信号强度, 这里只是举例说明, 不作限定。
进一步的, 该处理单元 52具体用于, 根据该第一信号强度与该第二 信号强度确定第一差值, 根据该第一信号强度与该第三信号强度确定第 二差值; 其中, 该第一差值为对应第二接入点设备的该第一信号强度与 该第二信号强度的差值; 该第二差值为对应该第二接入点设备的该第一 信号强度与该第三信号强度的差值。
其中, 该第一接入点设备包括至少三个接入点设备, 该第一信号强 度对应该至少三个接入点设备, 包括至少三个第一信号强度, 该第二信 号强度对应该至少三个接入点设备, 包括至少三个第二信号强度, 该第 三信号强度对应该至少三个接入点设备, 包括至少三个第三信号强度, 该第一接入点设备包括该第二接入点设备。
可选的, 该处理单元 52还用于, 在根据该第一差值和该第二差值确 定该第一被控设备与该终端的距离小于该第二被控设备与该终端的距离 时, 控制该第一被控设备和该第二被控设备。
具体地,终端根据该第一信号强度与该第二信号强度确定第一差值, 根据该第一信号强度与该第三信号强度确定第二差值; 其中, 该第一差 值为对应第二接入点设备的该第一信号强度与该第二信号强度的差值; 该第二差值为对应该第二接入点设备的该第一信号强度与该第三信号强 度的差值, 其中, 该第一接入点设备包括该第二接入点设备, 并在根据 该第一差值和该第二差值确定该第一被控设备与该终端的距离小于该第 二被控设备与该终端的距离时, 控制该第一被控设备和该第二被控设备。
需要说明的是, 终端是根据对应相同接入点设备的第一信号强度与 第二信号强度确定第一差值的, 因此需要该第一被控设备和该第二被控 设备发送包括对应相同的至少三个接入点设备对应的第二信号强度和第 三信号强度要的至该终端。
进一步的, 该处理单元 52具体用于, 在确定对应该第二接入点设备 的该第一差值小于该第二差值时, 确定该第一被控设备与该终端的距离 小于该第二被控设备与该终端的距离。
需要说明的是, 终端是根据对应相同接入点设备发送的无线信号确 定的信号强度确定的第一差值与该第二差值, 这样才能将第一差值与第 二差值进行比较。 具体地, 终端在确定至少三个第一差值分别小于对应接入点设备对 应的第二差值时, 确定第一被控设备与终端的距离小于第二被控设备与 终端的距离。
示例地, 在本发明实施例的应用场景中存在五个接入点设备, 分别 为接入点设备 1至 5 ,终端根据接入点设备 1发送的无线信号得到信号强 度 A 1 ,第一被控设备根据接入点设备 1发送的无线信号得到信号强度 B 1 , 第二被控设备根据接入点设备 1发送的无线信号得到信号强度 C1 , 终端 根据接入点设备 2发送的无线信号得到信号强度 A2 , 第一被控设备根据 接入点设备 2发送的无线信号得到信号强度 B2 , 第二被控设备根据接入 点设备 2发送的无线信号得到信号强度 C2 , 终端根据接入点设备 3发送 的无线信号得到信号强度 A3 , 第一被控设备根据接入点设备 3发送的无 线信号得到信号强度 B 3 , 第二被控设备根据接入点设备 3发送的无线信 号得到信号强度 C 3 , 若确定 A1与 B1的差值小于 A1与 C1的差值, A2与 B2的差值小于 A2与 C2的差值,且 A3与 B3的差值小于 A 3与 C 3的差值, 则确定该第一被控设备相对于该第二被控设备接近该终端, 另外, 也可 以根据预设阈值进行判断, 若确定 A1 与 B1 的差值、 A2与 B2 的差值和 A 3与 B3的差值都小于预设阈值, 且 A1与 C1的差值、 A2与 C2的差值和 A 3与 C 3的差值中任一个大于该预设阈值时,则确定该第一被控设备相对 于该第二被控设备接近该终端, 这里只是举例说明, 本发明对此不作限 定。
该发送单元 53还用于, 向该第一被控设备发送第一控制指令, 指示 该第一被控设备根据该第一控制指令为该终端提供服务, 并向该第二被 控设备发送第二控制指令, 指示该第二被控设备根据该第二控制指令停 止为该终端提供服务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 则终端向该第一智能音响发送第一控 制指令, 向该第二智能音响发送第二控制指令, 该第一控制指令可以是 以下操作的一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音 频流、 增大第一智能音响音量; 该第二控制指令可以是以下操作的一个 或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能音响进入休眠状态。
通过釆用上述终端, 终端接收第一接入点设备发送的无线信号, 并 根据该第一接入点设备发送的无线信号确定对应的第一信号强度, 获取 第一被控设备对应该第一接入点设备的第二信号强度和第二被控设备对 应该第一接入点设备的第三信号强度, 并在根据该第一信号强度、 该第 二信号强度和该第三信号强度确定该第一被控设备与该终端的距离小于 该第二被控设备与该终端的距离时, 控制该第一被控设备和该第二被控 设备, 这样, 终端通过感知被控设备与终端的距离关系, 从而根据该距 离关系执行相应的操作, 提高了用户体验。 本发明实施例提供一种终端 60 , 如图 6所示, 包括:
获取单元 61 , 用于接收该第一被控设备发送的第一无线信号, 并接 收该第二被控设备发送的第二无线信号;
处理单元 62 , 用于根据该获取单元得到的第一无线信号确定第一信 号强度, 并根据该获取单元得到的第二无线信号确定第二信号强度, 并 在根据该第一信号强度和该第二信号强度确定该第一被控设备与该终端 的距离小于该第二被控设备与该终端的距离时, 控制该第一被控设备和 该第二被控设备。
具体的, 在该终端获取第一被控设备对应的第一信号强度和第二被 控设备对应的第二信号强度前, 建立与该第一被控设备和该第二被控设 备的连接。
可选的, 该处理单元 62还用于, 在确定该第一信号强度大于该第二 信号强度时, 确定该第一被控设备与该终端的距离小于该第二被控设备 与该终端的距离。
该终端还包括发送单元 63 , 用于向该第一被控设备发送第一控制指 令, 指示该第一被控设备根据该第一控制指令为该终端提供服务, 并向 该第二被控设备发送第二控制指令, 指示该第二被控设备根据该第二控 制指令停止为该终端提供服务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 则终端向该第一智能音响发送第一控 制指令, 向该第二智能音响发送第二控制指令, 该第一控制指令可以是 以下操作的一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音 频流、 增大第一智能音响音量; 该第二控制指令可以是以下操作的一个 或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能音响进入休眠状态。
本发明实施例提供一种设备控制的系统, 如图 7 所示, 包括第一接 入点设备 71、 终端 72、 第一被控设备 73和第二被控设备 74 ; 其中, 该 第一接入点设备 71 包括至少三个接入点设备;
该第一接入点 71设备, 用于向该终端、 该第一被控设备和该第二被 控设备发送无线信号;
该终端 72 , 用于接收该第一接入点设备发送的无线信号, 并根据该 第一接入点设备发送的无线信号确定对应的第一信号强度, 并获取第一 被控设备对应该第一接入点设备的第二信号强度和第二被控设备对应该 第一接入点设备的第三信号强度, 在根据该第一信号强度、 该第二信号 强度和该第三信号强度确定该第一被控设备与该终端的距离小于该第二 被控设备与该终端的距离时, 控制该第一被控设备和该第二被控设备; 其中, 该第一信号强度包括至少一个第一信号强度, 该第二信号强度包 括至少一个第二信号强度, 该第三信号强度包括至少一个第三信号强度; 该第一被控设备 73 , 用于接收该第一接入点设备发送的无线信号, 根据该第一接入点设备发送的无线信号确定对应的第二信号强度, 并将 该第二信号强度发送至该终端;
该第二被控设备 74, 用于接收该第一接入点设备发送的无线信号, 根据该第一接入点设备发送的无线信号确定对应的第三信号强度, 并将 该第三信号强度发送至该终端。
可选地, 上述终端向第一被控设备和第二被控设备发送信号强度请 求指令, 并获取第一被控设备对应该第一接入点设备的第二信号强度和 第二被控设备对应该第一接入点设备的第三信号强度包括以下两种方 式:
方式一: 终端向该第一被控设备和该第二被控设备发送包括该第 ― 接入点设备的标识的信号强度请求指令, 指示该第一被控设备和该第二 被控设备分别根据该标识向该终端发送该第一接入点设备对应的第二信 号强度和第三信号强度。
具体地, 该接入点设备可以是 Wi-Fi ( WirelessFidel, 无线保真协 议)接入点 (英文: Access Point,缩写: AP ) , 该接入点设备的标识可 以是 Wi-Fi 接入点的服务集标识符 (英文: Service Set Identifier, 缩写: SSID) , 该终端可以将包括该服务集标识符的信号强度请求指令 发送至该第一被控设备和该第二被控设备, 指示该第一被控设备和该第 二被控设备确定将根据该服务集标识符对应的 Wi-Fi 接入点发送的无线 信号确定的信号强度发送至终端, 这样, 终端可以将该包括终端需要的 Wi-Fi 接入点的服务集标识符的信号请求指令发送至第一被控设备和第 二被控设备, 以指示该第一被控设备和该第二被控设备将根据该服务集 标识符确定的 Wi-Fi 接入点对应的第一信号强度和第二信号强度发送至 该终端。
示例地, 终端向第一被控设备和第二被控设备发送的信号强度请求 指令中包括接入点设备 1 的标识、 接入点设备 2 的标识、 接入点设备 3 的标识, 则第一被控设备在接收到该信号强度请求指令后, 向终端发送 接入点设备 1对应的信号强度 Bl、 接入点设备 2对应的信号强度 B2、 接 入点设备 3对应的信号强度 B3, 同样的, 第二被控设备在接收到该信号 强度请求指令后, 想终端发送接入点设备 1对应的信号强度 Cl、 接入点 设备 2对应的信号强度 C2、 接入点设备 3对应的信号强度 C 3。
方式二: 该终端向该第一被控设备和该第二被控设备发送信号强度 请求指令, 指示该第一被控设备和该第二被控设备分别向该终端发送检 测到的全部接入点设备对应的第二信号强度和第三信号强度, 其中, 该 全部接入点设备包括该第一接入点设备。
需要说明的是, 与方式一不同的是, 该方式中, 终端发送的信号强 度请求指令不包括接入点设备的标识。
另外, 该第二信号强度和该第三信号强度包括该第一被控设备和该 第二被控设备根据至少三个相同的接入点设备发送的无线信号得到的信 号强度。
示例地, 在方式二的场景中存在五个接入点设备, 分别记为接入点 设备 1至 5 , 第一被控设备检测到接入点设备 1至 4 , 将该第一被控设备 获取到该接入点设备 1发送的无线信号对应的信号强度记为 B1 , 将该第 一被控设备获取到该接入点设备 2 发送的无线信号对应的信号强度记为 B2 , 依次类推, 则第一被控设备获取该接入点设备 1 至 4 的信号强度分 别为 Bl、 B2、 B 3和 B4 , 该第一被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第二信号强度 Bl、 B2、 B3和 B4发送至该终端, 同 样的, 第二被控设备检测到接入点设备 2至 5 , 则该第二被控设备获取到 该接入点设备 2发送的无线信号对应的信号强度记为 C2 , 该第二被控设 备获取到该接入点设备 3发送的无线信号对应的信号强度记为 C 3 , 依次 类推, 则该第二被控设备获取到该接入点设备 2至 5对应的信号强度分 别为 C2、 C 3、 C4和 C5 , 该第二被控设备在接收到该终端发送的信号强度 请求指令后, 将 4个第三信号强度 C2、 C 3、 C4和 C5发送至该终端, 第 二信号强度和第三信号强度都包括根据接入点设备 2至 4发送的无线信 号得到的信号强度, 这里只是举例说明, 不作限定。
进一步的, 终端根据该第一信号强度与该第二信号强度确定第一差 值, 根据该第一信号强度与该第三信号强度确定第二差值; 其中, 该第 一差值为对应第二接入点设备的该第一信号强度与该第二信号强度的差 值; 该第二差值为对应该第二接入点设备的该第一信号强度与该第三信 号强度的差值, 其中, 该第一接入点设备包括该第二接入点设备, 并在 根据该第一差值和该第二差值确定该第一被控设备与该终端的距离小于 该第二被控设备与该终端的距离时, 控制该第一被控设备和该第二被控 设备。
需要说明的是, 终端是根据对应相同接入点设备的第一信号强度与 第二信号强度确定第一差值的, 因此需要该第一被控设备和该第二被控 设备发送包括对应相同的至少三个接入点设备对应的第二信号强度和第 三信号强度要的至该终端。
进一步地, 终端在确定对应该第二接入点设备的该第一差值小于该 第二差值时, 确定该第一被控设备与该终端的距离小于该第二被控设备 与该终端的距离。
需要说明的是, 终端是根据对应相同接入点设备发送的无线信号确 定的信号强度确定的第一差值与该第二差值, 这样才能将第一差值与第 二差值进行比较。
具体地, 终端在确定至少三个第一差值分别小于对应接入点设备对 应的第二差值时, 确定第一被控设备与终端的距离小于第二被控设备与 终端的距离。
示例地, 在本发明实施例的应用场景中存在五个接入点设备, 分别 为接入点设备 1至 5,终端根据接入点设备 1发送的无线信号得到信号强 度 A 1 ,第一被控设备根据接入点设备 1发送的无线信号得到信号强度 B 1 , 第二被控设备根据接入点设备 1发送的无线信号得到信号强度 C1, 终端 根据接入点设备 2发送的无线信号得到信号强度 A2, 第一被控设备根据 接入点设备 2发送的无线信号得到信号强度 B2, 第二被控设备根据接入 点设备 2发送的无线信号得到信号强度 C2, 终端根据接入点设备 3发送 的无线信号得到信号强度 A3, 第一被控设备根据接入点设备 3发送的无 线信号得到信号强度 B3, 第二被控设备根据接入点设备 3发送的无线信 号得到信号强度 C3, 若确定 A1与 B1的差值小于 A1与 C1的差值, A2与 B2的差值小于 A2与 C2的差值,且 A3与 B3的差值小于 A3与 C3的差值, 则确定该第一被控设备相对于该第二被控设备接近该终端, 另外, 也可 以根据预设阈值进行判断, 若确定 A1 与 B1 的差值、 A2与 B2 的差值和 A 3与 B3的差值都小于预设阈值, 且 A1与 C1的差值、 A2与 C2的差值和 A 3与 C 3的差值中任一个大于该预设阈值时,则确定该第一被控设备相对 于该第二被控设备接近该终端, 这里只是举例说明, 本发明对此不作限 定。
进一步地, 在确定该第一被控设备与该终端的距离小于该第二被控 设备与该终端的距离时, 终端向该第一被控设备发送第一控制指令, 指 示该第一被控设备根据该第一控制指令为该终端提供服务, 并向该第二 被控设备发送第二控制指令, 指示该第二被控设备根据该第二控制指令 停止为该终端提供服务。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 则终端向该第一智能音响发送第一控 制指令, 向该第二智能音响发送第二控制指令, 该第一控制指令可以是 以下操作的一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音 频流、 增大第一智能音响音量; 该第二控制指令可以是以下操作的一个 或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能音响进入休眠状态。
通过釆用上述设备控制的系统, 终端接收第一接入点设备发送的无 线信号, 并根据该第一接入点设备发送的无线信号确定对应的第一信号 强度, 获取第一被控设备对应该第一接入点设备的第二信号强度和第二 被控设备对应该第一接入点设备的第三信号强度, 并在根据该第一信号 强度、 该第二信号强度和该第三信号强度确定该第一被控设备与该终端 的距离小于该第二被控设备与该终端的距离时, 控制该第一被控设备和 该第二被控设备, 这样, 终端通过感知被控设备与终端的距离关系, 从 而根据该距离关系执行相应的操作, 提高了用户体验。 本发明实施例提供一种设备控制的系统, 如图 8 所示, 包括第一被 控设备 81、 第二被控设备 82和终端 83 ;
该第一被控设备 81 , 用于向该终端发送第一无线信号;
该第二被控设备 82 , 用于向该终端发送第二无线信号;
该终端 83 , 用于根据该第一无线信号确定第一信号强度, 并根据该 第二无线信号确定第二信号强度, 并在根据该第一信号强度和该第二信 号强度确定该第一被控设备与该终端的距离小于该第二被控设备与该终 端的距离时, 控制该第一被控设备和该第二被控设备。
示例地, 以第一被控设备为第一智能音响, 第二被控设备为第二智 能音响为例进行说明, 终端通过传感器 (如重力传感器、 陀螺仪或者加 速度传感器) 确定该终端处于移动状态, 并确定该终端逐渐接近第一智 能音响, 远离第二智能音响, 且在终端接近第一智能音响前, 第二智能 音响正在播放终端发送的音频流, 则终端向该第一智能音响发送第一控 制指令, 向该第二智能音响发送第二控制指令, 该第一控制指令可以是 以下操作的一个或者多个: 唤醒第一智能音响、 向第一智能音响传输音 频流、 增大第一智能音响音量; 该第二控制指令可以是以下操作的一个 或者多个: 减小第二智能音响音量、 停止向第二智能音响发送音频流、 使第二智能音响进入休眠状态。
通过釆用上述设备控制的系统, 终端接收第一接入点设备发送的无 线信号, 并根据该第一接入点设备发送的无线信号确定对应的第一信号 强度, 获取第一被控设备对应该第一接入点设备的第二信号强度和第二 被控设备对应该第一接入点设备的第三信号强度, 并在根据该第一信号 强度、 该第二信号强度和该第三信号强度确定该第一被控设备与该终端 的距离小于该第二被控设备与该终端的距离时, 控制该第一被控设备和 该第二被控设备, 这样, 终端通过感知被控设备与终端的距离关系, 从 而根据该距离关系执行相应的操作, 提高了用户体验。 本发明提供一种终端 90 , 如图 9所示, 该终端 90包括:
处理器 ( proces s or ) 91、 通信接口 ( Commun i ca t i ons In terface ) 92、 存储器(memory ) 93和通信总线 94; 其中, 该处理器 91、 该通信接 口 92和该存储器 93通过该通信总线 94完成相互间的通信。
处理器 91 可能是一个中央处理器 CPU, 或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ) , 或者是被酉己置成实施 本发明实施例的一个或多个集成电路。
存储器 93用于存放程序代码, 该程序代码包括计算机操作指令。 存 储器 93 可能包含高速 RAM 存储器, 也可能还包括非易失性存储器 ( non-volat i le memory ) , 例如至少一个磁盘存储器。
该通信接口 91 , 用于实现这些装置之间的连接通信。
该处理器 91执行程序代码,用于接收第一接入点设备发送的无线信 号, 并根据该第一接入点设备发送的无线信号确定对应的第一信号强度, 获取第一被控设备对应该第一接入点设备的第二信号强度和第二被控设 备对应该第一接入点设备的第三信号强度, 并在根据该第一信号强度、 该第二信号强度和该第三信号强度确定该第一被控设备与该终端的距离 小于该第二被控设备与该终端的距离时, 控制该第一被控设备和该第二 被控设备, 其中, 该第一接入点设备包括至少一个第一接入点设备, 该 第一信号强度包括至少一个第一信号强度, 该第二信号强度包括至少一 个第二信号强度, 该第三信号强度包括至少一个第三信号强度。
可选地, 该处理器 91还用于, 向该第一被控设备和该第二被控设备 发送包括该第一接入点设备的标识的信号强度请求指令, 指示该第一被 控设备和该第二被控设备分别根据该标识向该终端发送该第一接入点设 备对应的第二信号强度和第三信号强度。
可选地, 该处理器 91还用于, 向该第一被控设备和该第二被控设备 发送信号强度请求指令, 指示该第一被控设备和该第二被控设备分别向 该终端发送检 到的全部接入点设备对应的第二信号强度和第三信号强 度, 其中, 该全部接入点设备包括该第一接入点设备。
可选地, 该处理器 91还用于, 根据该第一信号强度与该第二信号强 度确定第一差值, 根据该第一信号强度与该第三信号强度确定第二差值, 该第二差值为对应该第二接入点设备的该第一信号强度与该第三信号强 度的差值, 并在根据该第一差值和该第二差值确定该第一被控设备与该 终端的距离小于该第二被控设备与该终端的距离时, 控制该第一被控设 备和该第二被控设备, 其中, 该第一差值为对应第二接入点设备的该第 一信号强度与该第二信号强度的差值, 该第一接入点设备包括该第二接 入点设备。
可选地, 该处理器 91还用于, 在确定对应该第二接入点设备的该第 一差值小于该第二差值时, 确定该第一被控设备与该终端的距离小于该 第二被控设备与该终端的距离, 向该第一被控设备发送第一控制指令, 指示该第一被控设备根据该第一控制指令为该终端提供服务, 并向该第 二被控设备发送第二控制指令, 指示该第二被控设备根据该第二控制指 令停止为该终端提供服务。 本发明提供的一种被控设备 100, 如图 10所示, 该被控设备 100包 括:
处理器 ( rocessor ) 101、 通信接口 ( Communications Interface ) 102、 存储器( memory ) 103和通信总线 104; 其中, 所述处理器 101、 所 述通信接口 102和所述存储器 103通过所述通信总线 104完成相互间的 通信。
处理器 101可能是一个中央处理器 CPU, 或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ) , 或者是被酉己置成实施 本发明实施例的一个或多个集成电路。
存储器 103用于存放程序代码,所述程序代码包括计算机操作指令。 存储器 103 可能包含高速 RAM 存储器, 也可能还包括非易失性存储器 ( non-volat i le memory ) , 例如至少一个磁盘存储器。
所述通信接口 102, 用于实现这些装置之间的连接通信。
所述处理器 101执行程序代码, 用于接收该第一被控设备发送的第 一无线信号, 并根据该第一无线信号确定第一信号强度, 接收该第二被 控设备发送的第二无线信号, 并根据该第二无线信号确定第二信号强度, 并在根据该第一信号强度和该第二信号强度确定该第一被控设备与该终 端的距离小于该第二被控设备与该终端的距离时, 控制该第一被控设备 和该第二被控设备。
可选地, 该处理器 1 01 具体用于, 在确定该第一信号强度大于该第 二信号强度时, 确定该第一被控设备与该终端的距离小于该第二被控设 备与该终端的距离, 向该第一被控设备发送第一控制指令, 指示该第一 被控设备根据该第一控制指令为该终端提供服务, 并向该第二被控设备 发送第二控制指令, 指示该第二被控设备根据该第二控制指令停止为该 终端提供服务。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本 发明的保护范围应该以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种设备控制的方法, 其特征在于, 包括:
终端接收第一接入点设备发送的无线信号; 其中, 所述第一接入点 设备包括至少一个第一接入点设备;
根据所述第一接入点设备发送的无线信号确定对应的第一信号强 度; 其中, 所述第一信号强度包括至少一个第一信号强度;
获取第一被控设备对应所述第一接入点设备的第二信号强度和第二 被控设备对应所述第一接入点设备的第三信号强度; 其中, 所述第二信 号强度包括至少一个第二信号强度, 所述第三信号强度包括至少一个第 三信号强度;
在根据所述第一信号强度、 所述第二信号强度和所述第三信号强度 确定所述第一被控设备与所述终端的距离小于所述第二被控设备与所述 终端的距离时, 控制所述第一被控设备和所述第二被控设备。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取第一被控设 备对应所述第一接入点设备的第二信号强度和第二被控设备对应所述第 一接入点设备的第三信号强度包括:
向所述第一被控设备和所述第二被控设备发送包括所述第一接入点 设备的标识的信号强度请求指令, 指示所述第一被控设备和所述第二被控 设备分别根据所述标识向所述终端发送所述第一接入点设备对应的第二 信号强度和第三信号强度; 或者,
向所述第一被控设备和所述第二被控设备发送信号强度请求指令, 指示所述第一被控设备和所述第二被控设备分别向所述终端发送检测到 的全部接入点设备对应的第二信号强度和第三信号强度, 其中, 所述全部 接入点设备包括所述第一接入点设备。
3、 根据权利要求 2所述的方法, 其特征在于, 所述第一接入点设备 包括至少三个接入点设备, 所述第一信号强度对应所述至少三个接入点 设备, 包括至少三个第一信号强度, 所述第二信号强度对应所述至少三 个接入点设备, 包括至少三个第二信号强度, 所述第三信号强度对应所 述至少三个接入点设备, 包括至少三个第三信号强度; 所述在根据所述第一信号强度、 所述第二信号强度和所述第三信号 强度确定所述第一被控设备与所述终端的距离小于所述第二被控设备与 所述终端的距离时, 控制所述第一被控设备和所述第二被控设备包括: 根据所述第一信号强度与所述第二信号强度确定第一差值, 根据所 述第一信号强度与所述第三信号强度确定第二差值; 其中, 所述第一差 值为对应第二接入点设备的所述第一信号强度与所述第二信号强度的差 值; 所述第二差值为对应所述第二接入点设备的所述第一信号强度与所 述第三信号强度的差值, 其中, 所述第一接入点设备包括所述第二接入 点设备;
在根据所述第一差值和所述第二差值确定所述第一被控设备与所述 终端的距离小于所述第二被控设备与所述终端的距离时, 控制所述第一 被控设备和所述第二被控设备。
4、 根据权利要求 3所述的方法, 其特征在于, 所述在根据所述第一 差值和所述第二差值确定所述第一被控设备与所述终端的距离小于所述 第二被控设备与所述终端的距离时, 控制所述第一被控设备和所述第二 被控设备包括:
在确定对应所述第二接入点设备的所述第一差值小于所述第二差值 时, 确定所述第一被控设备与所述终端的距离小于所述第二被控设备与 所述终端的距离;
向所述第一被控设备发送第一控制指令, 指示所述第一被控设备根 据所述第一控制指令为所述终端提供服务;
向所述第二被控设备发送第二控制指令, 指示所述第二被控设备根 据所述第二控制指令停止为所述终端提供服务。
5、 一种设备控制的方法, 其特征在于, 包括:
终端接收所述第一被控设备发送的第一无线信号, 并根据所述第一 无线信号确定第一信号强度;
接收所述第二被控设备发送的第二无线信号, 并根据所述第二无线 信号确定第二信号强度;
在根据所述第一信号强度和所述第二信号强度确定所述第一被控设 备与所述终端的距离小于所述第二被控设备与所述终端的距离时, 控制 所述第一被控设备和所述第二被控设备。
6、 根据权利要求 5所述的方法, 其特征在于, 所述在根据所述第一 信号强度和所述第二信号强度确定所述第一被控设备与所述终端的距离 小于所述第二被控设备与所述终端的距离时, 控制所述第一被控设备和 所述第二被控设备包括:
在确定所述第一信号强度大于所述第二信号强度时, 确定所述第一 被控设备与所述终端的距离小于所述第二被控设备与所述终端的距离; 向所述第一被控设备发送第一控制指令, 指示所述第一被控设备根 据所述第一控制指令为所述终端提供服务;
向所述第二被控设备发送第二控制指令, 指示所述第二被控设备根 据所述第二控制指令停止为所述终端提供服务。
7、 一种终端, 其特征在于, 包括:
获取单元, 用于接收第一接入点设备发送的无线信号; 其中, 所述 第一接入点设备包括至少一个第一接入点设备;
处理单元, 用于根据所述获取单元得到的所述第一接入点设备发送 的无线信号确定对应的第一信号强度; 其中, 所述第一信号强度包括至 少一个第一信号强度;
所述获取单元还用于, 获取第一被控设备对应所述第一接入点设备 的第二信号强度和第二被控设备对应所述第一接入点设备的第三信号强 度; 其中, 所述第二信号强度包括至少一个第二信号强度, 所述第三信 号强度包括至少一个第三信号强度;
所述处理单元还用于, 在根据所述第一信号强度、 所述第二信号强 度和所述第三信号强度确定所述第一被控设备与所述终端的距离小于所 述第二被控设备与所述终端的距离时, 控制所述第一被控设备和所述第 二被控设备。
8、 根据权利要求 7所述的终端, 其特征在于, 所述终端还包括: 发送单元, 用于向所述第一被控设备和所述第二被控设备发送包括 所述第一接入点设备的标识的信号强度请求指令, 指示所述第一被控设备 和所述第二被控设备分别根据所述标识向所述终端发送所述第一接入点 设备对应的第二信号强度和第三信号强度; 或者,
用于向所述第一被控设备和所述第二被控设备发送信号强度请求指 令, 指示所述第一被控设备和所述第二被控设备分别向所述终端发送检测 到的全部接入点设备对应的第二信号强度和第三信号强度, 其中, 所述全 部接入点设备包括所述第一接入点设备。
9、 根据权利要求 8所述的终端, 其特征在于, 所述第一接入点设备 包括至少三个接入点设备, 所述第一信号强度对应所述至少三个接入点 设备, 包括至少三个第一信号强度, 所述第二信号强度对应所述至少三 个接入点设备, 包括至少三个第二信号强度, 所述第三信号强度对应所 述至少三个接入点设备, 包括至少三个第三信号强度;
所述处理单元具体用于, 根据所述第一信号强度与所述第二信号强 度确定第一差值, 根据所述第一信号强度与所述第三信号强度确定第二 差值; 其中, 所述第一差值为对应第二接入点设备的所述第一信号强度 与所述第二信号强度的差值; 所述第二差值为对应所述第二接入点设备 的所述第一信号强度与所述第三信号强度的差值, 其中, 所述第一接入 点设备包括所述第二接入点设备;
在根据所述第一差值和所述第二差值确定所述第一被控设备与所述 终端的距离小于所述第二被控设备与所述终端的距离时, 控制所述第一 被控设备和所述第二被控设备。
1 0、 根据权利要求 9 所述的终端, 其特征在于, 所述处理单元具体 用于, 在确定对应所述第二接入点设备的所述第一差值小于所述第二差 值时, 确定所述第一被控设备与所述终端的距离小于所述第二被控设备 与所述终端的距离;
所述发送单元还用于, 向所述第一被控设备发送第一控制指令, 指 示所述第一被控设备根据所述第一控制指令为所述终端提供服务, 并向 所述第二被控设备发送第二控制指令, 指示所述第二被控设备根据所述 第二控制指令停止为所述终端提供服务。
1 1、 一种终端, 其特征在于, 包括: 获取单元, 用于接收所述第一被控设备发送的第一无线信号, 并接 收所述第二被控设备发送的第二无线信号;
处理单元, 用于根据所述获取单元得到的第一无线信号确定第一信 号强度, 并根据所述获取单元得到的第二无线信号确定第二信号强度, 并在根据所述第一信号强度和所述第二信号强度确定所述第一被控设备 与所述终端的距离小于所述第二被控设备与所述终端的距离时, 控制所 述第一被控设备和所述第二被控设备。
12、 根据权利要求 11所述的终端, 其特征在于, 所述处理单元具体 用于, 在确定所述第一信号强度大于所述第二信号强度时, 确定所述第 一被控设备与所述终端的距离小于所述第二被控设备与所述终端的距 离;
所述终端还包括:
发送单元, 用于向所述第一被控设备发送第一控制指令, 指示所述 第一被控设备根据所述第一控制指令为所述终端提供服务, 并向所述第 二被控设备发送第二控制指令, 指示所述第二被控设备根据所述第二控 制指令停止为所述终端提供服务。
1 3、 一种设备控制的系统, 其特征在于, 包括第一接入点设备、 终 端、 第一被控设备和第二被控设备; 其中, 所述第一接入点设备包括至 少三个接入点设备;
所述第一接入点设备, 用于向所述终端、 所述第一被控设备和所述 第二被控设备发送无线信号;
所述终端, 用于接收所述第一接入点设备发送的无线信号, 并根据 所述第一接入点设备发送的无线信号确定对应的第一信号强度, 并获取 第一被控设备对应所述第一接入点设备的第二信号强度和第二被控设备 对应所述第一接入点设备的第三信号强度, 在根据所述第一信号强度、 所述第二信号强度和所述第三信号强度确定所述第一被控设备与所述终 端的距离小于所述第二被控设备与所述终端的距离时, 控制所述第一被 控设备和所述第二被控设备; 其中, 所述第一信号强度包括至少一个第 一信号强度, 所述第二信号强度包括至少一个第二信号强度, 所述第三 信号强度包括至少一个第三信号强度;
所述第一被控设备, 用于接收所述第一接入点设备发送的无线信号, 根据所述第一接入点设备发送的无线信号确定对应的第二信号强度, 并 将所述第二信号强度发送至所述终端;
所述第二被控设备, 用于接收所述第一接入点设备发送的无线信号, 根据所述第一接入点设备发送的无线信号确定对应的第三信号强度, 并 将所述第三信号强度发送至所述终端。
14、 一种设备控制的系统, 其特征在于, 包括第一被控设备、 第二 被控设备和终端;
所述第一被控设备, 用于向所述终端发送第一无线信号;
所述第二被控设备, 用于向所述终端发送第二无线信号;
所述终端, 用于根据所述第一无线信号确定第一信号强度, 并根据 所述第二无线信号确定第二信号强度, 并在根据所述第一信号强度和所 述第二信号强度确定所述第一被控设备与所述终端的距离小于所述第二 被控设备与所述终端的距离时, 控制所述第一被控设备和所述第二被控 设备。
1 5、 一种终端, 其特征在于, 包括: 处理器和存储器, 所述存储器 存储计算机执行指令, 所述处理器与所述存储器通过通信总线连接;
当所述终端运行时, 所述处理器执行所述存储器存储的所述计算机 执行指令, 使得所述终端执行权利要求 1至 4任一所述的方法。
1 6、 一种终端, 其特征在于, 包括: 处理器和存储器, 所述存储器 存储计算机执行指令, 所述处理器与所述存储器通过通信总线连接; 当所述终端运行时, 所述处理器执行所述存储器存储的所述计算机执行 令, 使得所述终端执行权利要求 5或 6所述的方法。
PCT/CN2013/088987 2013-12-10 2013-12-10 一种设备控制的方法和设备 WO2015085487A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
EP20184881.9A EP3800904A1 (en) 2013-12-10 2013-12-10 Device control method and device
CN201380007378.8A CN104380688A (zh) 2013-12-10 2013-12-10 一种设备控制的方法和设备
EP13899306.8A EP3068150B1 (en) 2013-12-10 2013-12-10 Method and device for controlling device
US15/103,731 US20160316338A1 (en) 2013-12-10 2013-12-10 Device Control Method and Device
KR1020167018112A KR101826648B1 (ko) 2013-12-10 2013-12-10 기기 제어 방법 및 기기
PCT/CN2013/088987 WO2015085487A1 (zh) 2013-12-10 2013-12-10 一种设备控制的方法和设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088987 WO2015085487A1 (zh) 2013-12-10 2013-12-10 一种设备控制的方法和设备

Publications (1)

Publication Number Publication Date
WO2015085487A1 true WO2015085487A1 (zh) 2015-06-18

Family

ID=52557548

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088987 WO2015085487A1 (zh) 2013-12-10 2013-12-10 一种设备控制的方法和设备

Country Status (5)

Country Link
US (1) US20160316338A1 (zh)
EP (2) EP3800904A1 (zh)
KR (1) KR101826648B1 (zh)
CN (1) CN104380688A (zh)
WO (1) WO2015085487A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016117940A1 (en) * 2015-01-23 2016-07-28 Lg Electronics Inc. Method for selecting of sidelink grant for a d2d ue in a d2d communication system and device therefor
CN105608861B (zh) * 2015-10-29 2019-08-30 小米科技有限责任公司 电子设备控制方法及装置
CN106878938B (zh) * 2016-06-17 2020-10-02 阿里巴巴集团控股有限公司 一种信息推送方法、位置定位方法和设备
CN106209527A (zh) * 2016-06-30 2016-12-07 联想(北京)有限公司 一种电子设备以及控制方法
KR102320027B1 (ko) * 2017-04-03 2021-11-01 주식회사 엘지유플러스 음성 전달 방법, 이를 구현하는 음성 전달 장치 및 이를 포함하는 시스템
TWI692267B (zh) * 2017-09-07 2020-04-21 建漢科技股份有限公司 自主定位系統及其方法
CN112947208A (zh) * 2021-02-26 2021-06-11 北京小米移动软件有限公司 设备控制方法及装置、设备、存储介质
CN113407151A (zh) * 2021-06-30 2021-09-17 青岛海信移动通信技术股份有限公司 采用终端设备控制受控终端的方法及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006362A (zh) * 2010-11-09 2011-04-06 华为终端有限公司 一种终端控制方法以及用户终端
CN102038470A (zh) * 2009-10-09 2011-05-04 泰怡凯电器(苏州)有限公司 自移动地面处理机器人及其贴边地面处理的控制方法
CN102057757A (zh) * 2008-06-11 2011-05-11 皇家飞利浦电子股份有限公司 无线遥控式设备选择系统和方法
CN102595592A (zh) * 2012-01-10 2012-07-18 西北工业大学 一种移动社会网络目标节点的室内定位方法
CN103200378A (zh) * 2012-01-10 2013-07-10 宏碁股份有限公司 无线显示系统及其遥控器与通信方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1614317A2 (en) * 2003-04-01 2006-01-11 Philips Intellectual Property & Standards GmbH Discovering proximate apparatuses and services in a wireless network
US7509131B2 (en) * 2004-06-29 2009-03-24 Microsoft Corporation Proximity detection using wireless signal strengths
US20090052899A1 (en) * 2007-08-22 2009-02-26 Motorola, Inc. Method and apparatus for controlled device selection by a portable electronic device
US8812657B2 (en) * 2010-04-15 2014-08-19 Qualcomm Incorporated Network-assisted peer discovery
US8816848B2 (en) * 2010-06-22 2014-08-26 Sling Media, Inc. Systems and methods for determining location from wireless signals
JP5708143B2 (ja) * 2011-03-30 2015-04-30 富士通株式会社 情報処理装置、管理方法、及び管理プログラム
US20130024018A1 (en) * 2011-07-22 2013-01-24 Htc Corporation Multimedia control method and multimedia control system
US9137727B2 (en) * 2012-03-30 2015-09-15 Hewlett-Packard Development Company, L.P. Controlled client roaming

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102057757A (zh) * 2008-06-11 2011-05-11 皇家飞利浦电子股份有限公司 无线遥控式设备选择系统和方法
CN102038470A (zh) * 2009-10-09 2011-05-04 泰怡凯电器(苏州)有限公司 自移动地面处理机器人及其贴边地面处理的控制方法
CN102006362A (zh) * 2010-11-09 2011-04-06 华为终端有限公司 一种终端控制方法以及用户终端
CN102595592A (zh) * 2012-01-10 2012-07-18 西北工业大学 一种移动社会网络目标节点的室内定位方法
CN103200378A (zh) * 2012-01-10 2013-07-10 宏碁股份有限公司 无线显示系统及其遥控器与通信方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3068150A4 *

Also Published As

Publication number Publication date
CN104380688A (zh) 2015-02-25
EP3068150B1 (en) 2020-09-23
KR20160095106A (ko) 2016-08-10
US20160316338A1 (en) 2016-10-27
EP3068150A1 (en) 2016-09-14
KR101826648B1 (ko) 2018-02-07
EP3800904A1 (en) 2021-04-07
EP3068150A4 (en) 2016-10-19

Similar Documents

Publication Publication Date Title
WO2015085487A1 (zh) 一种设备控制的方法和设备
US10986436B2 (en) Managing connections of a user device
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
US20210219041A1 (en) Voice data transmission method, wireless earphone and tws earphone
CN110278205B (zh) 蓝牙音箱底座及其控制方法和系统
WO2020029694A1 (zh) 设备控制方法、装置以及物联网系统
CN110177363B (zh) 蓝牙数据传输方法、装置、蓝牙芯片和存储介质
CN104635501A (zh) 智能家居控制方法和系统
JP6412149B2 (ja) 通信方法、端末、プログラム及びコンピュータ可読記憶媒体
CN111462746B (zh) 基于tws耳机的控制方法、系统、装置和设备
CN110189753B (zh) 蓝牙音箱及其控制方法、系统和存储介质
WO2016000528A1 (zh) 一种音频输出方法及设备
US20230138804A1 (en) Enhanced video call method and system, and electronic device
CN105704110B (zh) 一种媒体传输方法、媒体控制方法及装置
WO2020007173A1 (zh) 通信连接建立方法及相关设备
JP2004274104A (ja) 電子機器およびコンテンツデータ出力方法
JP2023508739A (ja) マルチキャストサービスの伝送方法、伝送処理方法及び関連機器
JP2007067655A (ja) 通信機器及び通信方法
CN105915416B (zh) 一种信息处理方法及终端设备
WO2013143433A1 (zh) 一种无线数据共享的方法及实现共享的终端
WO2020007172A1 (zh) 通信连接建立方法及相关设备
CN111770403A (zh) 无线耳机控制方法、无线耳机及其控制系统
CN108432160B (zh) 在无线通信系统中基于声音信号发送和接收数据的设备和方法
WO2012062160A1 (zh) 一种终端控制方法以及用户终端
WO2022105342A1 (zh) 一种通信连接建立方法、存储介质及设备

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: 13899306

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2013899306

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013899306

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 15103731

Country of ref document: US

ENP Entry into the national phase

Ref document number: 20167018112

Country of ref document: KR

Kind code of ref document: A