Disclosure of Invention
The embodiment of the application provides electronic equipment, a positioning control method and a positioning control medium thereof.
In a first aspect, an embodiment of the present application provides a positioning control method, where the method includes:
the method comprises the steps that first electronic equipment obtains a plurality of pieces of first position information of a plurality of pieces of second electronic equipment;
the first electronic device displays the plurality of first position information of the plurality of second electronic devices to a user;
and the first electronic equipment sends a control instruction to second electronic equipment selected by the user according to the plurality of first position information.
In the embodiment of the application, the first electronic device can be a mobile phone, and the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like. Explaining by taking a plurality of second electronic devices as a plurality of air purifiers as an example, the mobile phone acquires the position information of the plurality of air purifiers; the mobile phone displays the position information of each air purifier in the plurality of air purifiers to a user; and the mobile phone sends a control instruction to the air purifier selected by the user according to the position information of each air purifier. For example, the air purifier performs a function of controlling the wind speed to a preset value. So, when there are a plurality of air purifier in the regional area of family, an air purifier is located room 1, another air purifier is located room 2, another air purifier is located room 3, open the condition that is located the air purifier in room 2 when the user needs through the cell-phone, the user can accurately confirm the air purifier that needs control, improved the user can confirm rapidly the accuracy that needs the control device, more saved because of opening the energy loss that the equipment that needs control caused by mistake, improved user experience.
In a possible implementation of the first aspect, the first location information includes a distance between the second electronic device and the first electronic device; or;
the first location information includes spatially distributed locations of the first electronic device and the plurality of second electronic devices.
In the embodiment of the application, the first electronic device can be a mobile phone, and the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like. The first location information may be a distance between the air purifier and the handset, for example 3 meters; or; the first location information may be a spatial distribution location between the mobile phone and the plurality of air purifiers and the plurality of air conditioners.
In a possible implementation of the first aspect, the acquiring, by the first electronic device, a plurality of first location information of a plurality of second electronic devices includes:
the first electronic device acquires a plurality of first position information of the plurality of positioning devices from the plurality of positioning devices; the first position information of the positioning devices respectively represents the spatial positions of the second electronic devices, and the first position information respectively corresponds to the spatial positions of the second electronic devices.
In the embodiment of the application, the first electronic device can be a mobile phone, the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like, and the positioning device can be a tracker. For example, the air purifier and the tracker are bound together in advance, and the position information sent by the tracker to the mobile phone can be used for representing the position information of the air purifier. The binding here can be that air purifier and tracker fixed connection are in the same place, also can be that air purifier and tracker are put together, as long as the position of tracker can represent air purifier's position can, not limit the binding mode.
In a possible implementation of the first aspect, the acquiring, by the first electronic device, the first location information of the plurality of positioning devices from the plurality of positioning devices includes:
the first electronic device sends a position information request to the plurality of positioning devices; the location information request is used for acquiring a plurality of first location information from the plurality of positioning devices;
the first electronic device receives a plurality of first position information fed back by the plurality of positioning devices.
In a possible implementation of the first aspect, the sending, by the first electronic device, a control instruction to a second electronic device selected by a user according to the plurality of first location information includes:
the first electronic equipment displays a control interface of the selected second electronic equipment to a user under the condition that the selection operation of the second electronic equipment selected by the user from a position display interface is detected, wherein the position display interface is used for displaying the positions of the plurality of second electronic equipment;
and the first electronic equipment sends a control instruction to the second electronic equipment under the condition of detecting the function operation of the user on the control interface.
In the embodiment of the application, the first electronic device can be a mobile phone, and the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like. For example, the mobile phone displays a function control interface of the air purifier, and the function control interface of the air purifier comprises functions of wind speed, dehumidification and the like of the air purifier. If the user clicks the wind speed control of the function control interface of the air purifier, the wind speed of the air purifier is set to be the preset value, the mobile phone detects the operation, an instruction for controlling the wind speed of the air purifier to be the preset value is generated, and the instruction for controlling the wind speed of the air purifier to be the preset value is sent to the air purifier.
In a possible implementation of the first aspect, the method further includes:
and the first electronic equipment grants the control right of the second electronic equipment within a preset range to the third electronic equipment, so that the third electronic equipment can control the second electronic equipment within the preset range.
In the embodiment of the application, the first electronic device may be a mobile phone, the second electronic devices may be a plurality of air purifiers, a plurality of air conditioners and the like, and the third electronic device may be a mobile phone. For example, a user may share control of the air purifier to other electronic devices, and a holder of the electronic device granted control may control the air purifier to a certain extent. Therefore, the electronic equipment granted with the control right can control the air purifier, the control right is limited in a certain range, and the control safety is improved.
In a possible implementation of the first aspect, the method includes:
the first electronic equipment acquires identification information of the third electronic equipment;
the first electronic device grants the control right to the third electronic device by sending the preset range and the identification information of the third electronic device to the positioning device.
In this application embodiment, first electronic equipment can be the cell-phone, and the second electronic equipment can be air purifier, air conditioner etc. and the third electronic equipment can be the cell-phone, and the locating device can be the tracker. The identification information is used for determining the equipment corresponding to the identification information. The account number of the smart life application program of the mobile phone can be used. It may also be a communication address of the handset, for example an IP address. But may also be a physical address, such as a MAC address.
In a possible implementation of the first aspect, the acquiring, by the first electronic device, the identification information of the third electronic device includes:
the first electronic device sending an authorization link to the third electronic device;
the third electronic equipment sends the identification information of the third electronic equipment to the first electronic equipment under the condition that the operation of opening the authorization link by a user is detected;
the first electronic equipment receives identification information of the third electronic equipment, which is sent by the third electronic equipment;
or;
the first electronic equipment displays a graphic code for granting the control right to the third electronic equipment;
the third electronic equipment sends the identification information of the third electronic equipment to the first electronic equipment under the condition of scanning the graphic code granted with the control right;
and the first electronic equipment receives the identification information of the third electronic equipment, which is sent by the third electronic equipment.
In the embodiment of the application, the first electronic device may be a mobile phone, the second electronic device may be an air purifier, an air conditioner, or the like, the third electronic device may be a mobile phone, and the positioning device may be a tracker. The mobile phone grants the control right to the mobile phone by sending an authorization link to the mobile phone, and specifically, the mobile phone sends the authorization link to the mobile phone; the method comprises the steps that the mobile phone sends identification information of the mobile phone to the mobile phone under the condition that the operation of opening an authorization link by a user is detected; the mobile phone receives identification information of the mobile phone sent by the mobile phone to grant control right to the mobile phone;
or; the mobile phone grants the control right to the mobile phone by displaying the graphic code for granting the control right to the mobile phone. Specifically, the mobile phone displays a graphic code for granting the control right to the mobile phone; the mobile phone sends the identification information of the mobile phone to the mobile phone under the condition that the graphic code granted with the control right is scanned by the mobile phone; the mobile phone receives the identification information of the mobile phone sent by the mobile phone to grant control right to the mobile phone.
In a possible implementation of the first aspect, the granting, by the first electronic device, the control right to the third electronic device by sending the preset range and the identification information of the third electronic device to the positioning device includes:
under the condition that the first electronic device detects the preset range selected by the user, sending the identification information of the third electronic device and the preset range to the positioning device;
the first electronic device detects a control operation of a user on the selected second electronic device, and sends a control instruction to the positioning device, wherein the control instruction comprises identification information of the third electronic device and second position information of the third electronic device;
the positioning equipment judges whether the third electronic equipment is in the preset range or not according to the second position information;
and under the condition that the positioning equipment judges that the third electronic equipment is in the preset range, the positioning equipment sends a control instruction to the second electronic equipment.
In a possible implementation of the first aspect, the method further includes:
when the positioning device judges that the third electronic device is not in the preset range, the positioning device sends a prompt message which exceeds the control range and cannot be controlled to the second electronic device;
and the third electronic equipment displays prompt information which is beyond control range and cannot be controlled to the user.
In a possible implementation of the first aspect, the method includes:
the third electronic device can acquire the first position information of the second electronic devices within the preset range.
In a possible implementation of the first aspect, the method includes:
the third electronic device can obtain a plurality of pieces of first position information of the plurality of positioning devices from the plurality of positioning devices within the preset range, wherein the plurality of pieces of first position information respectively represent spatial positions of the plurality of second electronic devices, and the plurality of pieces of first position information respectively correspond to the spatial positions of the plurality of second electronic devices one to one.
In the embodiment of the application, the first electronic device may be a mobile phone, the second electronic devices may be a plurality of air purifiers, a plurality of air conditioners, and the like, the third electronic device may be a mobile phone, and the positioning device may be a tracker. For example, the air purifier and the tracker are pre-bound together, and the position information sent by the tracker to the mobile phone to which the air purifier is granted can be used to represent the position information of the air purifier. The binding here can be that air purifier and tracker fixed connection are in the same place, also can be that air purifier and tracker are put together, as long as the position of tracker can represent air purifier's position can, not limit the binding mode.
In a possible implementation of the first aspect, the method further includes:
the third electronic device sends a position information acquisition request to the positioning device, wherein the position information acquisition request comprises second position information of the third electronic device, and the position information acquisition request is used for acquiring first position information of the positioning device from the positioning device;
the positioning equipment judges whether the third electronic equipment is in the preset range or not according to the second position information;
and sending the plurality of first position information to the third electronic equipment under the condition that the positioning equipment judges that the third electronic equipment is in a preset range.
In a possible implementation of the first aspect, the method further includes:
and sending out the out-of-range prompt information to the third electronic equipment when the positioning equipment judges that the third electronic equipment is not in the preset range, wherein the prompt information of the position information cannot be provided.
In a possible implementation of the first aspect, the method includes:
the third electronic equipment displays a control interface of the selected second electronic equipment to the user under the condition that the selection operation of the second electronic equipment selected by the user from a position display interface is detected, wherein the position display interface is used for displaying the positions of the plurality of second electronic equipment;
and the third electronic equipment sends a control instruction to the second electronic equipment under the condition of detecting the function operation of the user on the control interface.
In a possible implementation of the first aspect, the positioning device is placed at the corresponding second electronic device, or the positioning device is fixedly connected to the corresponding second electronic device.
In the embodiment of the application, the first electronic device can be a mobile phone, the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like, and the positioning device can be a tracker.
In the embodiment of the present application, the air purifier and the tracker may be fixedly connected in advance by, for example, a magnetic patch, wherein one of the modes is that the tracker is fixedly connected to the air purifier through an accessory.
Another way of achieving this is to achieve a connection between the tracker and the air purifier by curing, for example, the tracker is already built in when the air purifier is shipped. The tracker then behaves as the air purifier itself.
In other embodiments, one way to implement this is to plug in to implement the binding and data interaction functions between the tracker and the air purifier. For example, the binding connection between the tracker and the air purifier is realized through a USB wire.
In a possible implementation of the first aspect, the positioning device is fixedly connected to a corresponding second electronic device, and the method includes:
and the first electronic equipment receives and displays a notification message of the second electronic equipment of which the fixed connection is switched by the positioning equipment to a user.
In the embodiment of the application, the first electronic device can be a mobile phone, the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like, and the positioning device can be a tracker.
In the embodiment of the application, because the tracker is possible to be moved on different devices/objects, the tracker connected with the air purifier is taken off, placed with an air conditioner or worn on a puppy body. When the binding state changes, the tracker sends a notification message to the mobile phone of the user to prompt the user that the tracker may have equipment binding transfer at present and prompt the user to modify, so that the tracker is timely notified that the equipment bound by the user changes to prompt the user to change the setting information of the bound equipment on themobile phone 100, and the user experience is improved. The method and the device provide more convenient and intelligent setting of equipment binding change, and reduce the operation steps of manual setting of a user.
A second aspect of the present application provides a positioning control method of a positioning apparatus, including:
the positioning equipment receives a position information request sent by first electronic equipment;
the positioning device sends first position information to the first electronic device, wherein the first position information represents a spatial position of a second electronic device.
In the embodiment of the application, the positioning device can be a tracker, the first electronic device can be a mobile phone, and the second electronic device can be an air purifier, an air conditioner and the like. For example, the air purifier and the tracker are bound together in advance, and the position information sent by the tracker to the mobile phone can be used for representing the position information of the air purifier. The binding here can be that air purifier and tracker fixed connection are in the same place, also can be that air purifier and tracker are put together, as long as the position of tracker can represent air purifier's position can, not limit the binding mode.
In a possible implementation of the second aspect, the method further includes:
and the positioning equipment determines that the first electronic equipment grants the control right in the preset range of the second electronic equipment to the third electronic equipment.
In the embodiment of the application, the positioning device can be a tracker, the first electronic device can be a mobile phone, the second electronic devices can be a plurality of air purifiers, a plurality of air conditioners and the like, and the third electronic device can be a mobile phone. For example, a user may share control of the air purifier to other electronic devices, and a holder of the electronic device granted control may control the air purifier to a certain extent. Therefore, the electronic equipment granted with the control right can control the air purifier, the control right is limited in a certain range, and the control safety is improved.
In one possible implementation of the second aspect, the method includes:
and the positioning device receives the identification information of the third electronic device and the preset range sent by the first electronic device so as to determine that the first electronic device grants the control right in the preset range of the second electronic device to the third electronic device.
In a possible implementation of the second aspect, the method further includes:
the positioning equipment receives a position information acquisition request sent by the third electronic equipment;
the positioning device judges whether the third electronic device is in the preset range according to the second position information of the third electronic device in the position information acquisition request;
and the positioning equipment sends the plurality of pieces of first position information to the third electronic equipment under the condition that the third electronic equipment is judged to be in a preset range.
In a possible implementation of the second aspect, the method further includes:
and the positioning equipment sends out the out-of-range prompt information to the third electronic equipment under the condition that the third electronic equipment is judged not to be in the preset range, and the prompt information of the position information cannot be provided.
In one possible implementation of the second aspect, the method includes:
the positioning device receives a control instruction sent by the first electronic device, wherein the control instruction comprises identification information of the third electronic device and second position information of the third electronic device;
the positioning equipment judges whether the third electronic equipment is in the preset range or not according to the second position information;
and under the condition that the positioning equipment judges that the third electronic equipment is in the preset range, the positioning equipment sends a control instruction to the second electronic equipment.
In a possible implementation of the second aspect, the method further includes:
and under the condition that the positioning equipment judges that the third electronic equipment is not in the preset range, the positioning equipment sends prompt information which exceeds the control range and cannot be controlled to the second electronic equipment.
In one possible implementation of the second aspect, the method includes:
and the positioning equipment judges whether the third electronic equipment is in the preset range according to the third position information and the second position information of the positioning equipment.
In a possible implementation of the second aspect, the positioning device is placed at the corresponding second electronic device, or the positioning device is fixedly connected with the corresponding second electronic device.
In a possible implementation of the second aspect, the positioning device is fixedly connected to a corresponding second electronic device, and the method includes:
and the positioning equipment sends a notification message of the second electronic equipment of which the fixed connection is switched to the first electronic equipment when detecting that the second electronic equipment of which the fixed connection is switched.
A third aspect of the present application provides a positioning control system, characterized in that the system comprises a first electronic device and a positioning device;
each positioning device in the plurality of positioning devices is used for sending first position information of each positioning device to the first electronic device;
the first electronic device is used for acquiring first position information of each second electronic device in a plurality of second electronic devices; the first position information of the positioning devices represents the spatial position of the second electronic device, and the first position information of the plurality of positioning devices corresponds to the first position information of the plurality of second electronic devices one by one;
the first electronic equipment is used for displaying the first position information of the second electronic equipment to a user;
the first electronic equipment is used for sending a control instruction to second electronic equipment selected by a user according to the plurality of first position information.
In a possible implementation of the third aspect, the first electronic device is configured to grant a control right within a preset range of the second electronic device to a third electronic device, so that the third electronic device can control the second electronic device within the preset range.
A fourth aspect of the present application provides a machine-readable medium having stored thereon instructions which, when executed on a machine, cause the machine to perform the positioning control method of any one of claims 1 to 16.
A fifth aspect of the present application provides an electronic device, comprising: a memory for storing instructions for execution by one or more processors of the electronic device, and a processor, which is one of the processors of the system, for performing the positioning control method as in the foregoing first aspect and possible implementations of the first aspect, and as in the second aspect and possible implementations of the second aspect.
A sixth aspect of the present application provides a computer program product comprising a computer program/instructions characterized in that the computer program/instructions are executed by a processor to perform the positioning control method as in the foregoing first aspect and possible implementations of the first aspect, the second aspect and possible implementations of the second aspect.
Detailed Description
Illustrative embodiments of the present application include, but are not limited to, an electronic device and a positioning control method and medium thereof.
In order to solve the aforementioned problem that the user mistakenly sends the control instruction, an embodiment of the present application discloses a positioning control technology for an electronic device. Specifically, in the embodiment of the present application, a user binds apositioning device 200 to a device to be controlled, the position of each device to be controlled can be determined by thepositioning device 200, and the position information of each device to be controlled is displayed on a control terminal of the user, so that when a plurality of devices to be controlled of the same type exist in an area, the user can find the device to be controlled through different positions of the plurality of devices to be controlled of the same type, thereby solving the problem that when a plurality of devices of the same type exist, the user easily sends an instruction to an incorrect object, and improving user experience.
Fig. 2 is a schematic view illustrating an application scenario of a positioning control method of an electronic device according to an embodiment of the present application.
As shown in fig. 2, the scenario includes a firstelectronic device 100, a plurality of positioning devices 200-1 to 200-n, and a plurality of second electronic devices 300-1 to 300-n. Eachpositioning device 200 is disposed in one-to-one correspondence with a corresponding secondelectronic device 300 or eachpositioning device 200 is fixed to a corresponding secondelectronic device 300, so that a user can determine the positions of a plurality of secondelectronic devices 300 according to the position information of thepositioning devices 200.
The firstelectronic device 100 is a control terminal used by a user to control the second electronic devices 300-1 to 300-n, and is capable of displaying the location information of thepointing device 200 as the location information of the second electronic devices 300-1 to 300-n, displaying a function control interface of the plurality of second electronic devices 300-1 to 300-n, and the like, and the user can control the plurality of second electronic devices 300-1 to 300-n through the function control interface.
For example, the firstelectronic device 100 establishes a communication connection with a plurality of positioning devices 200-1 to 200-n, and each positioning device 200-1 to 200-n establishes a communication connection with each second electronic device 300-1 to 300-n, respectively. The positioning devices 200-1 to 200-n may send the device Identifications (IDs) of the corresponding second electronic devices 300-1 to 300-n, the self-positioningdevice 200 Identifications (IDs), and the self-location information, which are acquired from the second electronic devices 300-1 to 300-n, to the firstelectronic device 100. The firstelectronic device 100 can display the location information of the pointing devices 200-1 to 200-n as the location information of the corresponding second electronic devices 300-1 to 300-n, thereby enabling the firstelectronic device 100 to track the locations of the second electronic devices 300-1 to 300-n bound thereto through the location information of the pointing devices 200-1 to 200-n. In this way, the user holding the firstelectronic device 100 can determine the second electronic device to be controlled from the plurality of second electronic devices 300-1 to 300-n according to the position information transmitted from each of the pointing devices 200-1 to 200-n.
Assuming that a user selects a specific function operation that needs to be performed by the second electronic device 300-2 on the firstelectronic device 100, the firstelectronic device 100 detects the user operation, finds the second electronic device 300-2 corresponding thereto directly through a device Identification (ID) of the second electronic device 300-2, and sends an instruction to perform the specific function selected by the user thereto. Or finds the pointing device 200-2 corresponding thereto through an Identification (ID) of the pointing device 200-2, and transmits an instruction to perform a specific function selected by the user to the second electronic device 300-2 through the pointing device 200-2 to control the performance of the specific function of each second electronic device 300-2.
For example, if the second electronic device 300-2 is an air conditioner, the corresponding specific function may be turning on of the air conditioner, adjusting of the air conditioner temperature, adjusting of the air conditioner wind speed, and the like. If the second electronic device 300-1 is an air purifier, the corresponding specific function may be, but is not limited to, turning on the air purifier, adjusting the air speed of the air purifier, and the like.
Therefore, when a plurality of devices needing to be controlled of the same type exist in one area, a user can find the devices needing to be controlled through different positions of the devices needing to be controlled of the same type, so that the problem that the user easily sends an instruction to a wrong object when the devices of the same type exist is solved, the accuracy that the user can rapidly determine the devices needing to be controlled is improved, the energy loss caused by mistakenly starting the devices needing to be controlled is further saved, and the user experience is improved.
It is understood that the firstelectronic device 100 suitable for the embodiment of the present application may be various devices having a user operation function such as a touch screen, for example:cell phone 100, a computer, a laptop, a tablet, a television, a display device, an outdoor display screen, a vehicle mounted terminal, etc.
The secondelectronic device 200 applicable to the embodiment of the present application may be various devices, for example: thesmart home device 300 may be a television 101, a printer 102, a smart electric curtain, a smart security device, a smart lighting device, a smart door lock, a smart range hood, a smart electric cooker, a smart washing machine, a smart refrigerator, a smart electric curtain, a smart security device, a smart lighting device, a smart printer, a smart projector, and the like, but is not limited thereto.
Thepositioning device 200 applicable to the embodiment of the present application may be various devices having functions such as positioning, for example: a tracker, a UWB tag, a bluetooth location device, a GPS location device, etc., but is not limited thereto.
It is understood that in other embodiments, thepositioning device 200 may be bound by a living organism in nature.
The technical solution of the embodiment of the present application is further described in detail below by taking the firstelectronic device 100 as a mobile phone, the second electronic devices as an air purifier 300-1, an air conditioner 300-2, an air conditioner 300-3, and an air conditioner 300-4, and the positioning devices as trackers 200-1 to 200-4, with reference to the drawings and the embodiments. Wherein, the air purifier 300-1, the air conditioner 300-2, the air conditioner 300-3 and the air conditioner 300-4 are respectively bound with the tracker 200-1, the tracker 200-2, the tracker 200-3 and the tracker 200-4.
The first embodiment is as follows: the home devices are controlled based on the location information of the trackers 200-1 to 200-4.
Fig. 3 illustrates a flow diagram of a method for positioning control of an electronic device, according to some embodiments of the present application. Specifically, as shown in fig. 3, the method includes:
step 301: thehandset 100 detects a device query operation by the user and displays to the user the devices bound to the trackers 200-1 to 200-4.
As described above, the air purifier 300-1, the air conditioner 300-2, the air conditioner 300-3, and the air conditioner 300-4 are respectively bound to the tracker 200-1, the tracker 200-2, the tracker 200-3, and the tracker 200-4, so that when themobile phone 100 detects the query operation of the user, themobile phone 100 displays the air purifier 300-1, the air conditioner 300-2, the air conditioner 300-3, and the air conditioner 300-4 (i.e., the tracker includes the tracker 200-1, the tracker 200-2, the tracker 200-3, and the tracker 200-4, the air purifier 300-1 is an air purifier, the air conditioner 300-2 is an air conditioner 1, the air conditioner 300-3 is an air conditioner 2, and the air conditioner 300-4 is an air conditioner 3).
The user's device query operation may be a gesture operation or a voice operation of the user, but is not limited thereto.
Fig. 4A to 4E are schematic diagrams illustrating changes in an operation interface of the user controlling the air purifier 300-1 on themobile phone 100 according to the embodiment of the present application.
As shown in fig. 4A, themobile phone 100 displays an interface where thesmart life application 10 is located. After the user clicks on thesmart life application 10, as shown in fig. 4B, themobile phone 100 displays the smart home interface. The smart home interface includes a "tracker" control 11, and after the user clicks the "tracker" control 11, themobile phone 100 responds to the operation, and themobile phone 100 displays the operation interface of the tracker. The operator interface of the tracker includes information about the bound devices, e.g., thehandset 100 displays alist 12 of device names of bound devices on the operator interface of the tracker. For example, as shown in fig. 4C, when the number of bound devices is 1, the device name of one bound air purifier 300-1, e.g., air purifier, is displayed in thedevice name list 12. As shown in fig. 4D, when the number of bound devices is plural, device names of the plural bound devices, for example, air purifier, air conditioner 1, air conditioner 2, air conditioner 3, are displayed in thedevice name column 12.
Step 302:handset 100 determines the air purifier 300-1 selected by the user.
Thehandset 100 may determine the device selected by the user according to the user operation. With continued reference to fig. 4C, when the user clicks on the bound device name control, thecell phone 100 determines the device corresponding to the device name control selected by the user, e.g., the user clicks on the "air purifier" control in thedevice name list 12, and thecell phone 100 determines that the user selected the air purifier 300-1.
Step 303: thecellular phone 100 transmits a location information acquisition request to the tracker 200-1 bound to the air purifier 300-1 selected by the user. Wherein the position information acquisition request is used to acquire the position information of the tracker 200-1 from the tracker 200-1.
The air purifier 300-1 and the tracker 200-1 are pre-bound so that the position information of the tracker 200-1 can indicate the control position of the air purifier 300-1. The specific binding manner will be described in detail below.
The air purifier 300-1 and the tracker 200-1 are bound together in advance, and the position information transmitted from the tracker 200-1 to thecellular phone 100 can be used to indicate the position information of the air purifier 300-1. The binding may be that the air purifier 300-1 and the tracker 200-1 are fixedly connected together, or the air purifier 300-1 and the tracker 200-1 are placed together, as long as the position of the tracker 200-1 can indicate the position of the air purifier 300-1, and the binding is not limited.
Thehandset 100 and the tracker 200-1 establish a communication connection for data interaction. It is understood that thehandset 100 and the tracker 200-1 can be communicatively coupled via a short-range communication technique or a long-range communication technique. For example, themobile phone 100 and the tracker 200-1 may be connected through ZigBee, bluetooth, WiFi, or other communication technologies.
Step 304: the tracker 200-1 sends location information to thehandset 100.
Step 305: thecellular phone 100 displays the distance between thecellular phone 100 and the air purifier 300-1 selected by the user to the user according to the received location information.
For example, continuing to refer to fig. 4C, when the user selects the device name control of the bound air purifier, thecell phone 100 detects this operation and thecell phone 100 displays the distance between thecell phone 100 and the bound air purifier, e.g., the user clicks the device name "air purifier" control in thedevice name list 12, displaying that thecell phone 100 is 3 meters away from the air purifier.
Step 306: themobile phone 100 detects that the user sets an operation on the selected function of the home device, and generates a home device control instruction.
With continued reference to fig. 4C, after determining that the air purifier 3 meters away is the device to be controlled, the user may double click the device name control of the bound air purifier to enter the user selected function control interface of the air purifier. For example, the user may double click on the "air purifier" control in thedevice name list 12, entering the function control interface of the "air purifier". As shown in fig. 4E, themobile phone 100 displays a function control interface of the "air purifier", which includes functions of wind speed, dehumidification, and the like of the "air purifier". For example, when the user clicks thewind speed control 13 of the function control interface of the "air purifier", and the wind speed of the air purifier is set to the preset value, themobile phone 100 detects this operation, generates an instruction to control the wind speed of the air purifier to the preset value, and sends the instruction to control the wind speed of the air purifier to the preset value to the air purifier 300-1.
Step 307:handset 100 sends air purifier 300-1 control instructions to air purifier 300-1.
It is understood thathandset 100 and air purifier 300-1 may be communicatively coupled for data interaction via short-range or long-range communication techniques. For example, themobile phone 100 and the air purifier 300-1 may be connected through ZigBee, bluetooth, WiFi, or other communication technologies.
In addition, it is understood that, in other embodiments, the tracker 200-1 may also be configured to implement a control instruction relay function, where themobile phone 100 sends a control instruction of the air purifier 300-1 to the tracker 200-1, and the tracker 200-1 receives the control instruction of the air purifier 300-1 sent by themobile phone 100 and then sends the control instruction of the air purifier 300-1 to the air purifier 300-1. For example, thehandset 100 sends an instruction to the tracker 200-1 to control the air speed of the air purifier to a preset value, and the tracker 200-1 sends an instruction to the air purifier 300-1 to control the air speed of the air purifier to a preset value.
Step 308: air purifier 300-1 performs the function to which air purifier 300-1 controls the instructions.
The air purifier performs a function corresponding to the control command of the air purifier 300-1, for example, the air purifier performs a function of controlling the wind speed to a preset value, in case of receiving the control command of the air purifier 300-1. So, when there are a plurality of air purifiers in the regional area of family, an air purifier is located room 1, another air purifier is located room 2, another air purifier is located room 3, when the user need open the condition that is located the air purifier in room 2 through cell-phone 100, the user can accurately confirm the air purifier that needs control, improved the user can confirm the accuracy that needs the control device rapidly, more saved because of opening the energy loss that the equipment that needs control caused by the mistake, improved user experience.
Fig. 5 illustrates a flow diagram of a method for positioning control of an electronic device, according to some embodiments of the present application. In the embodiment shown in the figure, another solution for controlling the air purifier 300-1 based on the position information of the tracker 200-1 is disclosed.
Specifically, as shown in fig. 5, the method includes:
step 501: themobile phone 100 detects a device location query operation of a user, and generates a location information acquisition instruction. The position information acquiring instruction is used for acquiring the position information of the trackers 200-1 to 200-4 from the trackers 200-1 to 200-4.
For example, fig. 6A to 6B are schematic diagrams illustrating changes in the operation interface of the user obtaining the location distribution interfaces of the air purifier 300-1, the air conditioner 300-2, the air conditioner 300-3 and the air conditioner 300-4 on themobile phone 100 according to the embodiment of the present application.
As shown in fig. 6A, a user can view the location distribution interfaces of the air purifier 300-1, the air conditioner 300-2, the air conditioner 300-3, and the air conditioner 300-4 respectively bound to the trackers 200-1 to 200-4 by a three-finger sliding operation on the screen of themobile phone 100, and themobile phone 100 generates a location information acquisition instruction in response to the user operation.
Step 502: thecellular phone 100 transmits a position information acquisition request to the trackers 200-1 to 200-4. The position information acquisition request is used to acquire the position information of the trackers 200-1 to 200-4 from the trackers 200-1 to 200-4.
Step 503: the trackers 200-1 through 200-4 transmit location information to thehandset 100.
The location information may be distance and orientation information between the trackers 200-1 to 200-4 and thehandset 100.
Step 504: thehandset 100 displays the location of the device to the user based on the received location information.
For example, as shown in fig. 6B, thecellular phone 100 displays the location distribution of the air purifier (air purifier 300-1), the air conditioner 1 (air conditioner 300-2), the air conditioner 2 (air conditioner 300-3), and the air conditioner 3 (air conditioner 300-4) bound to the trackers 200-1 to 200-4, respectively. It is understood that the location distribution may be distance and orientation information between the air purifier 300-1, the air conditioner 300-2, the air conditioner 300-3, the air conditioner 300-4, and thecellular phone 100.
Step 505: themobile phone 100 detects a function setting operation of the selected air purifier 300-1 by the user, and generates a control instruction for controlling the air purifier 300-1 to perform the function set by the user.
The user can set the function of the selected home appliance with the air purifier 300-1 (air purifier) selected from the plurality of appliances. Themobile phone 100 detects this operation and generates a control command.
For example, as shown in fig. 6B, themobile phone 100 displays at least an "air purifier (small tomato)"control 14 on the location distribution interface of the air purifier 300-1, and when the user clicks the "air purifier (small tomato)"control 14 to enter the control interface of the air purifier, the user may set some functions of the air purifier 300-1 on the control interface of the air purifier, and in response, themobile phone 100 sends a control instruction to the air purifier 300-1, so that the air purifier 300-1 executes the function corresponding to the control instruction.
Step 506: thecellular phone 100 transmits a control instruction to the air purifier 300-1 selected by the user.
Step 507: air purifier 300-1 performs a function corresponding to the control command received fromhandset 100.
Steps 502 to 507 and steps 303 to 308 are based on the same application concept, and are not described herein again.
A detailed description of how the air purifier 300-1 and the tracker 200-1 are pre-bound follows.
One way to achieve this is to have a fixed connection between the tracker 200-1 and the air purifier 300-1 via an accessory, such as a magnetic patch, for example, to have a fixed connection between the tracker 200-1 and the air purifier 300-1.
Another way to achieve this is to implement the connection between the tracker 200-1 and the air purifier 300-1 by curing, for example, by already building the tracker 200-1 in the air purifier 300-1 at the time of shipment. In this case, the tracker 200-1 corresponds to the air purifier 300-1 itself, and thecellular phone 100 directly obtains the position information of the tracker 200-1 from the air purifier 300-1.
In other embodiments, tracker 200-1 and air purifier 300-1 may be physically connected while performing binding and data interaction functions. One way to implement this is to implement the binding and data interaction functions between the tracker 200-1 and the air purifier 300-1 by plugging. For example, the tracker 200-1 and the air purifier 300-1 are bound together by a USB cable. When the user plugs the tracker 200-1 into the air purifier 300-1, the tracker 200-1 reads device information, such as a device name, of the plugged air purifier 300-1. The tracker 200-1 returns device information of the air purifier 300-1 to thehandset 100.
In addition, thecellular phone 100 may transmit a control command to the air purifier 300-1, and thus, a wireless communication connection between thecellular phone 100 and the air purifier 300-1 needs to be established in advance. The establishment of a wireless communication connection betweenhandset 100 and air purifier 300-1 is illustratively described below. Fig. 7A to 7E are schematic diagrams illustrating changes in the operation interface for establishing the communication connection between themobile phone 100 and the tracker 200-1 according to the embodiment of the present application. In which air purifier 300-1 is taken as air purifier 200-1 for illustration.
The tracker 200-1 reads the device ID of the air purifier bound in advance and transmits the device ID of the air purifier to thecellular phone 100. Thecell phone 100 may upload the device ID of the air purifier 200-1 pre-bound by the tracker 200-1 to the smart home cloud, which searches for the presence of the device under the user account name. If not, prompting the user to add the information of the equipment, and if so, not prompting. Suppose that an air purifier exists under an account name of an intelligent home cloud search user. As shown in fig. 7A, themobile phone 100 displays aprompt box 15 with an identifier of thesmart life 10, and displays prompt information on the prompt box 15: "air purifier is not yet in your device list" and the button "add now" is displayed 16. After the user clicks the button "add soon" 16, the network configuration interface is displayed as shown in FIG. 7B. After the user enters the Wi-Fi password and clicks the next step, as shown in fig. 7C, themobile phone 100 starts scanning the surrounding devices and displays the scanning process (e.g., 8% in the figure). After the 100% scanning process is completed, as shown in fig. 7D, the prompt information is displayed: "air purifier connection was successful". As shown in fig. 7E, in the operation interface of the tracker displayed on themobile phone 100, if themobile phone 100 is successfully connected to the air purifier 300-1, the device name of the bound device is displayed, for example, the device name of the bound device is displayed on the air purifier.
Example two: other devices are granted the right to control the air purifier 300-1 within a certain range.
Different from the first embodiment, in the second embodiment, the user may share the control right of the air purifier 300-1 with other electronic devices, and the holder of the electronic device granted with the control right may control the air purifier 300-1 through the tracker 200-1 within a certain range. Therefore, the electronic equipment granted with the control right can control the air purifier 300-1, and the control right is limited within a certain range, so that the control safety is improved.
Fig. 8 is a schematic view illustrating an application scenario of a positioning control method of an electronic device according to an embodiment of the present application.
As shown in fig. 8, the scenario further includes a thirdelectronic device 400, as compared to the scenario shown in fig. 1. The firstelectronic device 100 grants the control right of the plurality of second electronic devices 300-1 to 300-n to the thirdelectronic device 400. So that the thirdelectronic device 400 can control the plurality of second electronic devices 300-1 to 300-n within a certain range.
It is understood that the thirdelectronic device 400 suitable for the embodiment of the present application may be various devices having a user operation function such as a touch screen, for example:cell phone 100, a computer, a laptop, a tablet, a television, a display device, an outdoor display screen, a vehicle mounted terminal, etc. The rest of the scenario has the same concept as that shown in fig. 1 and will not be described again here.
Fig. 9 is a flowchart illustrating a positioning control method for an electronic device in the scenario illustrated in fig. 8 according to an embodiment of the present application, where as illustrated in fig. 9, the method includes:
step 901:cell phone 100 shares control of air purifier 300-1 withcell phone 400.
In some embodiments, thehandset 100 may share control of the air purifier 300-1 to other devices in a code-scanning manner;cell phone 100 may also share control of air purifier 300-1 by sending an authorization link for air purifier 300-1 to another device.
Step 902: thehandset 100 obtains identification information of thehandset 400 and grants control of the tracker 200-1 of thehandset 400.
It is understood that the identification information is used to determine the device to which the identification information corresponds. May be an account number of the smart life application of thecell phone 100. And may also be a communication address, e.g., an IP address, of thehandset 100. But may also be a physical address, such as a MAC address.
In some embodiments, after themobile phone 400 successfully scans the graphic code (e.g., barcode, two-dimensional code) shared by themobile phone 100, themobile phone 100 obtains the identification information of themobile phone 400, and at this time, themobile phone 400 grants the control right to the tracker 200-1.
In other embodiments, after thecell phone 400 clicks on the authorization link, thecell phone 400 grants thecell phone 100 the right to obtain the identification information of thecell phone 400, at which point thecell phone 400 is granted control of the tracker 200-1.
Step 903: thehandset 100 detects a preset range selected by the user, where the preset range is a range within which thehandset 100 can control the tracker 200-1.
How the user selects the preset range will be described in further detail below.
Step 904: thehandset 100 sends the tracker 200-1 the identification information and the preset range of thehandset 400.
The identification information of thehandset 400 is used by the tracker 200-1 to find the device to which the identification information of thehandset 400 corresponds.
Step 905: thecellular phone 400 detects a control operation of the air purifier 300-1 selected by the user, and generates a control instruction.
In some embodiments,handset 400 detects a control operation of air purifier 300-1 selected by a user at a location display interface of the respective device, and generates a control instruction.
Since thecell phone 400 is able to control the air purifier 300-1 within a certain range, thecell phone 400 is able to acquire the location information characterizing the air purifier 300-1 from the tracker 200-1 within a preset range. Specifically, thecellular phone 100 transmits a position information acquisition request to the trackers 200-1 to 200-4. The position information acquisition request is used to acquire the position information of the trackers 200-1 to 200-4 from the trackers 200-1 to 200-4.
The tracker 200-1 acquires the current position information of itself, determines whether the current position information is within a preset range according to the current position information and the position information of themobile phone 100, and if the current position information is within the preset range, the trackers 200-1 to 200-4 send the position information to themobile phone 100. If not, a prompt message that air purifier 300-1 is not in the control range ofmobile phone 100 is sent tomobile phone 400.
Step 906: thehandset 100 sends a tracker 200-1 control instruction to the tracker 200-1, the control instruction including location information of thehandset 400 and identification information of thehandset 400.
Step 907: the tracker 200-1 obtains the current position information of itself, determines whether the current position information is within the preset range according to the current position information and the position information of themobile phone 100, if so, the process goes to step 909, if not, the process indicates that the air purifier 300-1 is not within the control range of themobile phone 100, the tracker 200-1 does not send a function control instruction to the air purifier 300-1, and the process is ended.
Step 908: tracker 200-1 sends control instructions to air purifier 300-1.
For example, air purifier 300-1 is air purifier 300-1 and tracker 200-1 sends an instruction to air purifier 300-1 to control the air purifier wind speed to a preset value.
Step 909: air purifier 300-1 performs the function corresponding to the control instruction.
For example, based on the above explanation, the air purifier performs an instruction to control the wind speed to a preset value.
Therefore, the electronic equipment granted with the control right can control the household equipment, the control right is limited within a certain range, and the control safety is improved.
It is understood that thecell phone 100 may determine the location of the air purifier 300-1 bound to the tracker 200-1 through the location information of the tracker 200-1. It is also possible that themobile phone 100 directly acquires the position of the air purifier 300-1, for example, themobile phone 100 determines the position of the air purifier 300-1 by receiving the infrared light signal and the bluetooth signal transmitted by the air purifier 300-1.
For step 904 above: thehandset 100 sends the tracker 200-1 the identification information and the preset range of thehandset 400. The technical solutions of the embodiments of the present application are further described in detail with reference to the drawings and the embodiments.
In some implementations, the predetermined range may be within an area with the location of the tracker 200-1 as a center and a radius as a predetermined value, or may be within any irregular area. The setting process of the preset range is exemplarily described below.
In some embodiments, the preset range may also be a physical address set by the user on the mobile phone. For example, fig. 10A to 10H are schematic diagrams illustrating changes in the operation interface by which the user sets the preset range of the air purifier 300-1 of themobile phone 400 on themobile phone 100 according to the embodiment of the present application.
As shown in fig. 10A, assume that the user clicks the "visible range"control 17 on the control interface of the tracker 200-1 to enter the range setting interface, and the user clicks the "visible range"control 17 in the range setting interface to enter the visible range setting interface. As shown in FIG. 10B, the visible range setting interface includes a variety of range setting options. For example: only visible by oneself, visible within range, all visible, visible range setting. Assuming that the user is visible within the selected range and clicks the "go setup"control 18, thecell phone 100 displays a visible range setup interface. As shown in fig. 10C, the visible range includes home, company. Scopes may also continue to be added and the place names of the named scopes may be customized.
Assuming that the user needs to add the range again, the "add range"control 19 is clicked, themobile phone 100 detects an operation of clicking the "add range"control 19 by the user, and if themobile phone 100 determines that the bound tracker 200-1 does not have a WIFI module, an operation interface of editing a common place as shown in fig. 10D is displayed, where the operation interface of editing the common place includes an "address to be set"control 20.
If themobile phone 100 determines that the bound tracker 200-1 has a WIFI module, an editing common place operation interface as shown in fig. 10E is displayed, where the editing common place operation interface includes an "address to be set"control 21 and a "WLAN APP-with"control 22, and when the user clicks the "address to be set"control 21, the editing common place operation interface as shown in fig. 10F is entered, where the editing common place operation interface includes a plurality of setting controls related to range setting, for example, a visible rangename setting control 13, a visible centeraddress setting control 24, and a visibleregion setting control 25. The user can drag the visibleregion setting control 25 to set a visible range having a preset distance, which is set by dragging the visibleregion setting control 25 by the user, with the visible center address as a center and the radius as a radius.
In addition, in some other embodiments, the preset range may also be determined by the wireless access point identification. For example, in the operation interface shown in fig. 10E, when the user clicks the "WLAN APP-with"control 22, themobile phone 100 detects this operation and enters the operation interface shown in fig. 10G, which displays the available WLAN list 26 and the "add other networks"control 27. Thehandset 100 determines the range in which the radio access identities in the available WLAN list 26 can be identified as visible range. Specifically, themobile phone 100 may match the wireless access identifier scanned by the WIFI module with the wireless access identifiers in the available WLAN list 26, and if the matching is successful, themobile phone 100 determines the range in which the wireless access identifier in the available WLAN list 26 can be identified as the visible range. If the match fails, thehandset 100 determines that the range of radio access identities in the available WLAN list 26 is not visible.
In addition, when the user needs to add a wireless access identifier to the available WLAN list 26 and click the "add other network"control 27, themobile phone 100 detects that the user clicks the "add other network"control 27, and displays theinput box 25 for the user to actively input the WLAN name, as shown in fig. 10H, the user inputs the WLAN name, i.e., the wireless access point identifier, in the input box of the WLAN name, and clicks to determine, then the wireless access point identifier for determining the visible range is added.
Example three: automatic switching air purifier 300-1
Since there is a possibility that the tracker 200-1 may be transferred to a different device/object, such as removing the tracker 200-1 attached to the air purifier, placing it with an air conditioner, or wearing it on a puppy. When the binding state changes, the tracker 200-1 sends a notification message to themobile phone 100 of the user to prompt the user that the tracker 200-1 may have device binding transfer at present and prompt the user to modify the device, so that the user is timely notified that the device bound changes to prompt the user to change the setting information of the bound device on themobile phone 100, and user experience is improved. The method and the device provide more convenient and intelligent setting of equipment binding change, and reduce the operation steps of manual setting of a user.
Fig. 11 is a flow chart illustrating a method for using the tracker 200-1 according to an embodiment of the present application, as shown in fig. 11, the method includes:
step 1101: tracker 200-1 detects that tracker 200-1 switches bound air purifier 300-1.
In some embodiments, the tracker 200-1 determines that the tracker 200-1 has switched the bound air purifier 300-1 by detecting that the tracker 200-1 body and the fitting are changed from the fitted state to the separated state. Specifically, the attaching member may be fixedly disposed on the air purifier 300-1, and the main body of the tracker 200-1 and the attaching member may have metal connecting members, respectively, which contact each other when the main body of the tracker 200-1 and the attaching member fixed on the air purifier 300-1 are attached to each other. When the body of the tracker 200-1 is separated from the fitting member fixed to the air cleaner 300-1, the metal connecting member is separated. By the connection state of the metal connection key, the tracker 200-1 can recognize whether there is now a possibility of being transferred to another object/device.
In other embodiments, tracker 200-1 determines that tracker 200-1 switched the bound air purifier 300-1 by detecting a change between tracker 200-1 and air purifier 300-1 from a docked state to a undocked state.
In other embodiments, tracker 200-1 determines that tracker 200-1 switched the bound air purifier 300-1 by detecting that tracker 200-1 changed from a charged state to a non-charged state for air purifier 300-1.
Step 1102: the tracker 200-1 sends a notification message to thehandset 100 to switch the bound device.
For example, in case the tracker 200-1 switches the bound device from the air purifier (small tomato) to the smart screen (small pepper), the tracker 200-1 sends thecell phone 100 information that the tracker 200-1 switches the air purifier 300-1.
Step 1103: thehandset 100 displays a notification message for switching the bound device.
After the tracker 200-1 detects that the bound air purifier 300-1 is changed, themobile phone 100 receives a notification message sent by the positioning device to switch the bound device, and may prompt the user to change the device name of the bound air purifier 300-1. As shown in fig. 12A, themobile phone 100 displays aprompt box 29 with thesmart life application 10, where theprompt box 29 includes prompt information: the "tracker binding changed" and "set now" controls 30.
Step 1104: themobile phone 100 changes the switched device information according to the user operation, and displays the switched device information.
For example, fig. 12A to 12E are schematic diagrams illustrating changes in the operation interface by which the user sets the preset range of the air purifier 300-1 of themobile phone 400 on themobile phone 100 according to the embodiment of the present application.
As shown in fig. 12A, the user clicks the "immediate setting"control 30, and the mobile phone responds to this to display the device setting interface, and as shown in fig. 12B, the user may select the device name originally bound to the pointing device, for example, a small tomato. Then, the user clicks the "custom"control 31 in the device setting interface to enter the device name setting interface. As shown in fig. 12C, thecellular phone 100 displays a device name setting interface. The user may set up an interface at the device name to custom name the switched air purifier 300-1, for example, to modify "tomato" to "chili pepper". After the user enters the custom name and clicks on confirmation, as shown in fig. 12D, a newly named "capsicum" air purifier 300-1 appears in the entry of the bound device, and a "start to use"control 32, i.e., the air purifier 300-1 switched by the custom project designation, is clicked. As shown in fig. 12E, the replaced device name is displayed in the column of the bound device. Such as a capsicum.
It is understood that in some embodiments, the user may also add the location information of the device to the device name, which is convenient for the user to accurately find the device to be controlled. For example, a small tomato (room 1). Thehandset 100 may display the device name with the location information. In other embodiments, the user may also add the device's type and location information in the device name, for example, a small tomato-air purifier (room 1).
FIG. 13 illustrates a schematic diagram of a tracker 200-1, according to some embodiments of the present application. As shown in fig. 13, the tracker 200-1 may include: a control device 203, a positioning device 201, a communication device 203 and the like.
According to some embodiments of the present application, the control device 203 processes data and may further generate operation control signals according to the instruction operation code and the timing signal to perform instruction fetching and executing control. The control device 203 may be used to control various operations of the tracker 200-1. In the embodiment of the present application, the control device 203 stores a positioning control method. For example, control device 203 may send air purifier 300-1 control instructions to air purifier 300-1. Or, the tracker 200-1 acquires the current position information of itself, determines whether the current position information is within the preset range according to the current position information and the position information of themobile phone 100, and if the current position information is within the preset range, the control device 203 determines to send a control command to the air purifier 300-1. For another example, the tracker 200-1 receives a position information obtaining request sent by themobile phone 100, and generates a positioning function starting instruction, thereby obtaining position information.
Referring to fig. 13, the positioning device 201 may include at least one of a GPS/beidou positioning module 2011, aWIFI positioning module 2012, and a base station (UWB)positioning module 2013, or may also include other positioning modules not shown in fig. 13. Generally speaking, the positioning device 201 must include a GPS/beidou positioning module, and other modules can be flexibly set according to different requirements or different application scenarios. When the positioning device 201 includes a plurality of positioning modules, the tracker 200-1 may determine the position information of the tracker 200-1 comprehensively according to the plurality of positioning modules, for example, may average the position information obtained from the plurality of positioning modules; alternatively, the final position information may be determined from the position information with a small phase difference among the plurality of position information acquired by the plurality of positioning modules. In the embodiment of the present application, the tracker 200-1 may implement a positioning function through positioning technologies such as base station positioning, GPS positioning, WiFi positioning, and the like, and acquire location information.
According to some embodiments of the present application, the communication device 203 may include acellular communication module 2021, a BLE (Bluetooth Low Energy)module 2022, and aWIFI module 2023.
In the embodiment of the present application, the tracker 200-1 may establish a communication connection with themobile phone 100, the air purifier 300-1, and themobile phone 400 through the communication device 203.
Tracker 200-1 may be used to enable near field communication with air purifier 300-1 viabluetooth module 2022. The tracker 200-1 may scan the peripheral WIFI broadcast signals through the WIFI positioning module without accessing the WIFI hotspot, for example, theWIFI module 2023 may periodically scan the WIFI broadcast signals according to an instruction received from the control device 203, and send information in the scanned WIFI broadcast signals to the control device 203. According to some embodiments of the present application, the scanning period may be set or adjusted by a user according to actual needs, and a default value, for example, 120s, may be preset in the device. In other embodiments, the communications device 203 may also include more or fewer devices or modules than shown in fig. 13, or include other communications devices or modules than those shown.
A schematic structural diagram of amobile phone 100 implementing the technical solution of the present application is described below. Fig. 14 shows a schematic structural diagram of amobile phone 100 according to an embodiment of the present application, as shown in fig. 14, specifically, the mobile phone includes: themobile phone 100 may include a processor 110110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, acharging management module 140, apower management module 141, abattery 142, an antenna 1, an antenna 2, amobile communication module 150, a wireless communication module 160, anaudio module 170, a speaker 170A, a receiver 170B, amicrophone 170C, an earphone interface 170D, asensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. Thesensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit themobile phone 100. In other embodiments of the present application, thehandset 100 may include more or fewer components than shown, or some components may be combined, some components may be separated, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: theprocessor 110 may include an Application Processor (AP), a modem processor, a graphics processor 110 (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors. Theprocessor 110 may be used to control various operations of thehandset 100. In the embodiment of the present application, theprocessor 110 stores the positioning control method. For example, themobile phone 100 detects a user operation of acquiring the location information of thehome device 300 bound to thepositioning device 200, and presents the device information of thehome device 300 bound to thepositioning device 200 to the user.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided inprocessor 110 for storing instructions and data. In some embodiments, the memory in theprocessor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by theprocessor 110. If theprocessor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of theprocessor 110, thereby increasing the efficiency of the system.
In some embodiments,processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, amobile industry processor 110 interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
Thecharging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, thecharging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, thecharging management module 140 may receive a wireless charging input through a wireless charging coil of thecell phone 100. Thecharging management module 140 may also supply power to the electronic device through thepower management module 141 while charging thebattery 142.
Thepower management module 141 is used to connect thebattery 142, thecharging management module 140 and theprocessor 110. Thepower management module 141 receives input from thebattery 142 and/or thecharge management module 140, and supplies power to theprocessor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. Thepower management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, thepower management module 141 may also be disposed in theprocessor 110. In other embodiments, thepower management module 141 and thecharging management module 140 may be disposed in the same device.
The wireless communication function of themobile phone 100 can be realized by the antenna 1, the antenna 2, themobile communication module 150, the wireless communication module 160, themodem processor 110, thebaseband processor 110, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in thehandset 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
Themobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to thehandset 100. Themobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. Themobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the filtered electromagnetic wave to themodem processor 110 for demodulation. Themobile communication module 150 may also amplify the signal modulated by themodem processor 110, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of themobile communication module 150 may be disposed in theprocessor 110. In some embodiments, at least some of the functional modules of themobile communication module 150 may be disposed in the same device as at least some of the modules of theprocessor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to themobile phone 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to theprocessor 110. The wireless communication module 160 may also receive a signal to be transmitted from theprocessor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of thehandset 100 is coupled to themobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that thehandset 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
Themobile phone 100 implements the display function through the GPU, the display screen 194, theapplication processor 110, and the like. The GPU is amicroprocessor 110 for image processing, connected to a display screen 194 and anapplication processor 110. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Theprocessor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, thecell phone 100 may include 1 or N display screens 194, with N being a positive integer greater than 1. The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor may pass the detected touch operation to theapplication processor 110 to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of themobile phone 100, different from the position of the display 194. The thirdelectronic device 300 may also be themobile phone 100, and the structure is the same as fig. 14, which is not described herein again.
The thirdelectronic device 100 is taken as an air purifier as an example, and the technical solution of the present application is described in detail below. Fig. 15 shows a schematic structural diagram of anair purifier 300, according to an embodiment of the present application, as shown in fig. 15, specifically including:air purifier 300 may include a control device 310, a motor 311, a fan 312, an air screen 313, acommunication device 314, and an airquality detection system 315.
The control device 310 can generate operation control signals according to the instruction operation code and the timing signal, and complete the control of instruction fetching and instruction execution. For example, in the embodiment of the present application, the control device 310 stores a program corresponding to the positioning control method, so that themobile phone 100 supports the function of the positioning control method of the electronic device. For example, the control device 310 receives a wind speed control command sent by themobile phone 100, controls the rotation speed of the motor 311, and further adjusts the fan 312 to a preset value.
Motor 311 and fan 312: the motor fan is also an essential accessory as the most core of the air purifier, and mainly plays a role in controlling air to circulate. The air with pollutants is sucked in and then filtered, and then clean air is blown out.
Air filter (screen) 313: air purifier all mainly realizes air-purifying's purpose through the filtration of filter screen, and the filter screen mainly divide into: particulate matter filter screens and organic matter filter screens. The particle filter screens are divided into coarse filter screens and fine particle filter screens; the organic filter screens include formaldehyde-removing filter screens, deodorizing filter screens, activated carbon filter screens and the like. The pollution sources mainly aimed at by each filter screen are different, and the filtering principle is also different.
According to some embodiments of the present disclosure, thecommunication device 314 is configured to establish a wireless communication connection with other devices, and may include a cellular communication module, a BLE (Bluetooth Low Energy) module, and a WIFI module, for example, in an embodiment of the present disclosure, theair purifier 300 may establish a communication connection relationship with the positioning device through thecommunication device 314.
Air quality detection system 315: the airquality detection system 315 can make a good or bad judgment on the quality of the air in real time through a built-in monitoring device, and send the air quality detection result to the control device 310 for processing.
Embodiments of the present application also provide a readable medium, on which instructions are stored, and when the instructions are executed on an electronic device, the instructions cause the electronic device to execute the positioning control method of the electronic device.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
An embodiment of the present application further provides an electronic device, including:
a memory to store instructions for execution by one or more processors of an electronic device; and
the processor is one of the processors of the electronic equipment, and is used for executing the positioning control method of the electronic equipment. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.