Method, apparatus and device for determining device position, and storage medium

By sending directional signals and status flags to smart home devices, the problem of inaccurate location tracking after device changes is solved, enabling accurate positioning and coordinated control of smart home devices.

CN116668947BActive Publication Date: 2026-05-08GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2023-06-21
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing smart home devices cannot accurately obtain their new location after a change in position, causing the linkage control to fail.

Method used

The first device sends a directional target signal to the second device via the first communication method and sends a status flag bit via the second communication method, so that the second device generates unit information and determines the position of the first device based on the received unit information.

Benefits of technology

It enables timely and accurate determination of the location of smart home devices when their positions change, improving the intelligence and accuracy of linkage control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668947B_ABST
    Figure CN116668947B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to a device position determination method, device, computer device and storage medium, the method comprising: sending a target signal to a second device through a first communication mode, the first device being associated with the second device; sending a state flag corresponding to the target signal to the second device through a second communication mode, so that the second device generates second unit information of the second device according to the target signal and the state flag; and determining the position of the first device according to the second unit information when the second unit information is received. Thus, the position of the first device can be determined by sending the target signal and the state flag to the second device, and the position of the first device can be found in time when the position of the first device changes, thereby improving the accuracy of determining the position of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of smart home technology, and in particular to a method, apparatus, device and storage medium for determining the location of a device. Background Technology

[0002] With the advancement of technology, there are more and more smart home devices of various types. The functions of each smart home device can reflect its intelligence, and the linkage between each smart home device also reflects the level of intelligence of home devices.

[0003] In existing smart home device linkage control technologies, the linkage control of air conditioners and other smart home devices is achieved through network configuration via routing devices, followed by the sending and receiving of commands. When smart home devices are linked for control, control commands are sent to the paired designated devices. However, during this process, the smart home devices easily overlook changes in their position relative to the controlled devices. When a smart home device changes location, its new location cannot be accurately determined, making it impossible to promptly switch linked devices. Therefore, accurately determining the location of smart home devices has become a pressing issue that needs to be addressed. Summary of the Invention

[0004] In view of this, in order to solve the above-mentioned technical problem of determining the location of smart home devices, embodiments of the present invention provide a method, apparatus, device and storage medium for determining the location of devices.

[0005] In a first aspect, embodiments of the present invention provide a method for determining the location of a device, applied to a first device, comprising:

[0006] A target signal is sent to a second device through a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects.

[0007] The second device sends a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device generates second unit information of the second device according to the target signal and the status flag bit, wherein the status flag bit indicates that the target signal has been sent.

[0008] When the second unit information is received, the location of the first device is determined based on whether the second unit information meets preset conditions.

[0009] In one possible implementation, determining the location of the first device based on whether the second unit information meets preset conditions upon receiving the second unit information includes:

[0010] When the second unit information is received via the second communication method, it is determined whether the second unit information is consistent with the first unit information stored in the first device;

[0011] If they match, then the information of the second unit is determined to meet the preset conditions, and the location of the first device is determined to be the first location, which belongs to the space where the second device is located;

[0012] Alternatively, if they are inconsistent, it is determined that the information of the second unit does not meet the preset conditions, and the location of the first device is determined to be the second location, which does not belong to the space where the second device is located.

[0013] In one possible implementation, the second device generates second unit information based on the target signal and the status flag bit, including:

[0014] When the second device receives the status flag, it determines whether the target signal has been received within a preset time period;

[0015] If so, the second unit information is generated based on the unique identifier of the second device, and the second unit information is sent to the first device through the second communication method;

[0016] If not, a first reminder message is generated to be sent to the first device via the second communication method.

[0017] In one possible implementation, the method further includes:

[0018] When the second unit information sent by the second device is not received, the location of the first device is determined to be the second location;

[0019] Alternatively, when the first reminder message sent by the second device is received, the location of the first device is determined to be the second location.

[0020] In one possible implementation, sending the target signal to the second device via the first communication method includes:

[0021] The information of the first unit is obtained by scanning the barcode information of the second device;

[0022] Generate the association between the first unit information and the second device for storage;

[0023] The target signal is sent to the second device via infrared communication.

[0024] In one possible implementation, sending the status flag bit corresponding to the target signal to the second device via the second communication method includes:

[0025] When the information indicating that the target signal transmission is complete is received, the status flag bit is generated based on the information indicating that the transmission is complete;

[0026] The status flag is sent to the second device via GPRS communication.

[0027] In one possible implementation, the method further includes:

[0028] When the second unit information is not received, but the third unit information of the third device is received, the location of the first device is determined to be the third location, the third location belongs to the space where the third device is located, and the first device and the third device are mutually associated.

[0029] When the location of the first device is the second or third location, a second reminder message is generated;

[0030] The second reminder message is sent to the terminal corresponding to the first device.

[0031] Secondly, embodiments of the present invention provide a device for determining the location of a device, applied to a first device, comprising:

[0032] A first transmitting module is used to transmit a target signal to a second device via a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects.

[0033] The second transmitting module is used to send a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device can generate second unit information of the second device according to the target signal and the status flag bit, wherein the status flag bit indicates that the target signal has been sent.

[0034] The determination module is used to determine the location of the first device based on whether the second unit information meets preset conditions when the second unit information is received.

[0035] Thirdly, embodiments of the present invention provide a computer device, including: a processor and a memory, wherein the processor is configured to execute a device location determination program stored in the memory to implement the device location determination method described in any one of the first aspects above.

[0036] Fourthly, embodiments of the present invention provide a storage medium storing one or more programs, which can be executed by one or more processors to implement the device location determination method described in any of the first aspects above.

[0037] The device location determination scheme provided in this embodiment of the invention sends a target signal to a second device via a first communication method. The first and second devices are interconnected. The first communication method is directional and cannot penetrate objects. A status flag corresponding to the target signal is sent to the second device via a second communication method. The status flag indicates that the target signal has been sent, enabling the second device to generate second unit information based on the target signal and the status flag. When the second unit information is received, the location of the first device is determined based on the second unit information. Therefore, the location of the first device can be determined by sending a target signal and a status flag to the second device. Since the first communication method cannot penetrate objects, when the second and first devices are in the same space, the second device can simultaneously receive the target signal and the status flag and return unit information to the first device. At this time, it can be determined that the location of the first device and the second device are in the same space, thus improving the accuracy of device location determination. Attached Figure Description

[0038] Figure 1 A flowchart illustrating a method for determining the location of a device according to an embodiment of the present invention;

[0039] Figure 2 A flowchart illustrating another method for determining the location of a device provided in an embodiment of the present invention;

[0040] Figure 3 A flowchart illustrating another method for determining the location of a device provided in an embodiment of the present invention;

[0041] Figure 4 A schematic diagram of a device for determining the location of an object provided in an embodiment of the present invention;

[0042] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0044] To facilitate the understanding of the embodiments of the present invention, the following will further explain and illustrate with specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation to the embodiments of the present invention.

[0045] Figure 1 The following is a schematic flowchart of a method for determining the position of a device provided by an embodiment of the present invention. As Figure 1 shown, the method specifically includes:

[0046] S11. Send a target signal to a second device through a first communication method. The first device and the second device are associated with each other.

[0047] The method for determining the position of a device provided by an embodiment of the present invention is applied to a first device. The first device is a smart home device. The first device can move actively or be moved by a user to any position in different spaces. It can be a device equipped with an environmental sensor, such as a smart cleaning device, an air purifier device, a humidifier device, or a smart speaker device. The second device is a smart home device, usually fixed in a certain area within a space and cannot move, such as an air conditioner device. The first device and the second device are associated with each other and can be联动 controlled through the first device. Specifically, the first device sends a target signal and a status flag bit to the second device, and determines the position of the first device according to the received unit information.

[0048] In this embodiment, the first communication method is a wireless communication method. This method emits a target signal, and the target signal is a signal with directionality and cannot penetrate objects. For example, the first communication method can be to emit a signal through an infrared emission module, and the target signal can be an infrared signal.

[0049] Specifically, the first device and the second device are pre-associated and bound. A target signal sending end is set in the first device, and a signal receiving end is set on the second device. When the two are in the same space, they can be联动 controlled. Whether the first device has moved is judged through the environmental sensor or position sensor on the first device. When it is detected that the first device has moved, it is necessary to judge whether the current position of the first device can still be联动 with the second device. Therefore, a target signal is sent to the second device through the target signal sending end.

[0050] S12. Send the status flag bit corresponding to the target signal to the second device through the second communication method, so that the second device generates the second unit information of the second device according to the target signal and the status flag bit.

[0051] In this embodiment, the second communication method is a wireless communication method. The status flag bit sent by this method can penetrate objects, that is, the second device can also receive the status flag bit sent by the first device when the first device and the second device are in two different spaces. The status flag bit is used to indicate that the first device has sent a target signal. For example, the second communication method can send the status flag bit through a GPRS module. The status flag bit can indicate that "a target signal has been sent once".

[0052] Specifically, both the first and second devices are equipped with GPRS modules. When the first device sends a target signal, it sends a status flag bit through the GPRS module. Since the second communication method can penetrate objects, allowing the first and second devices to communicate in two different spaces, while the first communication method cannot penetrate objects and can only communicate within the same space, when the second device receives the status flag bit, it indicates that the first device has already sent the target signal through the first communication method. At this point, the second device determines whether it has received the target signal. Once it confirms that the target signal has been received, the second device generates second unit information. This second unit information represents the unique identifier of the second device and may include, but is not limited to: the second device's barcode, MAC code, project number, GPRS module IMEI, serial number, and if the second device is an air conditioner, it may also include the indoor unit IP, outdoor unit IP, etc. The second unit information is then returned to the first device through the second communication method.

[0053] In one possible implementation, if the second device does not receive the target signal but only receives the status flag, it indicates that the second device and the first device are not in the same space. In this case, the second device does not send the second unit information to the first device.

[0054] S13. When the second unit information is received, the location of the first device is determined based on whether the second unit information meets the preset conditions.

[0055] In this embodiment, when the second unit information is received, it means that the second device has received the target signal and status flag. The first and second devices after the movement are still in the same space. The position of the first device is determined to be any position in the same space as the second device, and the second device can continue to be linked for control.

[0056] Specifically, when the first device and the second device are bound, the first device pre-stores the first unit information of the second device. The first unit information represents the unique identifier of the second device and may include, but is not limited to, the second device's barcode, MAC code, project number, internal IP address, external IP address, GPRS module IMEI, serial number, etc. The preset condition is that the first unit information and the second unit information are consistent. When the first device receives the second unit information, it determines whether the second unit information is consistent with the first unit information. If they are consistent, it means that the received second unit information was sent by the second device, and at this time, the location of the first device is determined to be any location within the space where the second device is located.

[0057] If there is a discrepancy, it is determined that the second unit information was not sent by the second device. Since other second devices are also located in other spaces, these other second devices can also receive the status flag. When the first device is in the same space as other devices, the other second devices receive the target signal and the status flag, but the second device only receives the status flag and does not send the second unit information. Only the other second devices will generate the second unit information and send it to the first device. At this point, it is determined that the first device and the second device are not in the same space, and the position of the first device is determined to be any position within the space where the other second devices are located. At this time, the device linked and controlled by the first device is switched from the second device to another second device.

[0058] For example, the first device is an environmental sensor. This first device is attached to the first air conditioner in room A. After moving to room B, it sends an infrared signal to control the second air conditioner in room B. The first air conditioner in room A cannot receive the infrared signal. The first device then sends a status flag to all air conditioning units, indicating that an infrared signal has been sent. At this time, the first air conditioner will not return unit information, but the second air conditioner will. After receiving the unit information, the first device determines its location within the room where the second air conditioner is located.

[0059] The device location determination method provided in this invention involves sending a target signal to a second device via a first communication method, wherein the first and second devices are mutually associated; sending a status flag bit corresponding to the target signal to the second device via a second communication method, so that the second device generates second unit information based on the target signal and the status flag bit; and determining the location of the first device based on the second unit information upon receiving it. Therefore, the location of the first device can be determined by sending a target signal and a status flag bit to the second device, and changes in the location of the first device can be detected promptly, improving the accuracy of device location determination.

[0060] Figure 2A flowchart illustrating another method for determining the location of a device provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method specifically includes:

[0061] S21. Obtain the first unit information by scanning the barcode information of the second device; generate the association relationship between the first unit information and the second device for storage; send the target signal to the second device via infrared communication.

[0062] In this embodiment, the second device is described as an air conditioner, the first communication method is infrared communication, and the second communication method is GPRS communication. Both the first and second devices are equipped with GPRS modules. The first device has a transmitter for the infrared module, and the second device has a receiver for the infrared module. The second device pre-uploads unit information to a server for storage via the GPRS module. This unit information includes, but is not limited to, the unit's barcode, MAC code, project number, indoor unit IP, outdoor unit IP, GPRS module IMEI, and serial number. Users can use the first device to scan the QR code on the second device's casing to obtain the unit barcode. The first device logs into the server via the GPRS module and uses the unit barcode to query the corresponding unit information. The first device uses the scanned unit information as the first unit information and generates an association between the second device and the first unit information for storage.

[0063] Furthermore, the target signal is an infrared signal emitted by an infrared module. The first device can emit the target signal once at preset intervals, or when the first device is detected to have moved.

[0064] S22. When the information indicating that the target signal has been transmitted is received, the status flag bit is generated based on the information indicating that the transmission has been completed; the status flag bit is sent to the second device via GPRS communication.

[0065] In this embodiment, when the target signal is transmitted, if the first device and the second device are in the same space, the second device can receive the target signal. If they are in different spaces, the second device cannot receive the target signal. Regardless of whether the second device receives the target signal, the first device will generate a transmission completion message to trigger the generation of a status flag. The status flag indicates that the target signal has been transmitted. The status flag is sent through the GPRS module of the first device. At this time, the second device will receive the status flag regardless of whether it is in the same space as the first device. In addition to the second device, other devices equipped with GPRS modules can also receive the status flag.

[0066] S23. When the second device receives the status flag, it determines whether the target signal has been received within a preset time period; and sends information to the first device based on the target signal.

[0067] In this embodiment, when the second device receives the status flag bit through the GPRS module, it determines that the first device has sent the target signal. It then determines whether the target signal was received within a preset time period before the status flag bit was received. If so, it indicates that the first device and the second device are in the same space. The second device generates second unit information by using the MAC code, project number, internal IP, external IP, GPRS module IMEI, and serial number stored inside the second device. The second unit information is then sent to the first device through the GPRS module of the second device.

[0068] If the target signal is not received within the preset time period, it means that the second device and the first device are not in the same space. At this time, a first reminder message is generated to remind the first device that the second device has not received the target signal. The second device sends the first reminder message to the first device through the GPRS module.

[0069] In one possible implementation, if the target signal is not received within a preset time period, the second device may not return any information to the first device until the target signal is received before performing the step of generating the second unit information.

[0070] S24. When the second unit information is received through the second communication method, determine whether the second unit information is consistent with the first unit information stored in the first device; determine the location of the first device based on the determination result.

[0071] In this embodiment, since the target signal and status flag sent by the first device may be received by other devices, the second unit information is first verified. When the first device receives any second unit information, it needs to determine whether it is the unit information corresponding to the second device. Specifically, it determines whether the first unit information of the second device that the first device has stored is consistent with the received second unit information.

[0072] If they match, it means that the received information from the second unit was sent by the second device. At this time, the location of the first device is determined to be the first location. The first location belongs to the space where the second device is located. That is, the first device and the second device are in the same space, and the location of the first device can be any location in the space where the second device is located.

[0073] If there is a discrepancy, it means that the received second unit information was sent by another device. In this case, the location of the first device is determined to be the second location. The second location does not belong to the space where the second device is located. That is, the first device and the second device are in different spaces, and the location of the first device is a location in a space that is not where the second device is located.

[0074] Furthermore, if the first device is in the first position, the linkage between the first and second devices will continue; if the first device is in the second position, the linkage between the first and second devices will stop, a reminder message will be sent to the user's terminal, and the system will determine whether to switch the linked devices based on the user's selection.

[0075] In one possible implementation, when no second unit information is received from the second device, the location of the first device is determined as the second location. Alternatively, when a first reminder message is received from the second device, the location of the first device is determined as the second location.

[0076] In one possible implementation, when no second unit information is received, but third unit information of the third device is received, the location of the first device is determined to be the third location; or, when the received second unit information is inconsistent with the first unit information, and the second unit information is consistent with the third unit information of the third device pre-stored in the first device, the location of the first device is determined to be the third location, and the third location belongs to the space where the third device is located.

[0077] Specifically, the first device pre-stores unit information for multiple devices, and each unit information is associated with the corresponding device and the first device. The first device and the third device are interconnected. The third device can be an air conditioning unit. The third device and the second device can be the same type of device. The third device is also equipped with an infrared module and a GPRS module, which can receive target signals and status flags. When the first device determines that it has received the third unit information, it means that the third device has received the target signal and status flags. That is, the first device and the third device are in the same space. The first device has moved to the space where the third device is located, and the position of the first device is determined as the third position. The third position can be any position within the space where the third device is located.

[0078] Furthermore, when the location of the first device is the second or third location, a second reminder message is generated to remind the user that the location of the first device is likely to move and that it is no longer in the space where the second device is located; the second reminder message is sent to the terminal corresponding to the first device to be displayed to the user.

[0079] As an example, such as Figure 3As shown, this is another method for determining the location of equipment provided by an embodiment of the present invention. In S31, the air conditioning equipment uploads unit information to the server through the GPRS module. The information includes the unit's barcode, etc. The environmental sensor logs into the server through the GPRS module and uses the unit barcode to query the corresponding unit for information binding.

[0080] S32. The air conditioning unit acts as the infrared receiver, and the environmental sensor acts as the transmitter. During implementation, before the environmental sensor needs to perform control, it sends an infrared signal and then sends a status flag bit via the GPRS module. This status flag bit indicates "one infrared signal transmission has been performed". After receiving the status flag bit, the air conditioning unit performs a judgment process. If the unit has received an infrared signal, it returns unit information via the GPRS module.

[0081] S33. The environmental sensor determines whether its position has changed based on the returned unit information. Infrared signals are not used for control; instead, they utilize the directionality and inability of infrared light to penetrate objects. When the environmental sensor moves from one enclosed space to another, it can only communicate with the air conditioning equipment in the current space, determining the position change by comparing its communication with the communicating air conditioning equipment.

[0082] If the environmental sensor sends infrared signals and status flags but receives no unit information from the air conditioning unit, it assumes its location has changed. If the received unit information matches the information from the previous control command, it assumes its location has not changed. If the received unit information differs from the information from the previous control command, it assumes its location has changed. Control commands and status data are transmitted and received via a GPRS module.

[0083] S34. When the environmental sensor determines that the position has changed, the following linkage methods can be selected: 1. Automatically switch to the current space device for control; 2. Prompt the user that the device position has changed, and the user can choose whether to switch the linkage device.

[0084] The device location determination method provided in this embodiment of the invention obtains the first unit information by scanning the barcode information of the second device; generates an association relationship between the first unit information and the second device for storage; sends the target signal to the second device via infrared communication; when receiving information indicating that the target signal transmission is complete, generates a status flag bit based on the transmission completion information; sends the status flag bit to the second device via GPRS communication; when the second device receives the status flag bit, it determines whether it has received the target signal within a preset time period; sends information to the first device based on the target signal; when receiving the second unit information via the second communication method, it determines whether the second unit information is consistent with the first unit information stored in the first device; and determines the location of the first device based on the determination result. Therefore, it can automatically identify changes in device location, intelligently switch the corresponding linked devices, improve the intelligence of air conditioning equipment linkage control, enhance the accuracy of device location determination, and improve user experience.

[0085] Figure 4 This is a schematic diagram of a device for determining the location of an object according to an embodiment of the present invention, as shown below. Figure 4 As shown, the method specifically includes:

[0086] The first transmitting module 41 is used to transmit a target signal to the second device through a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects.

[0087] The second sending module 42 is used to send a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device can generate second unit information of the second device according to the target signal and the status flag bit, wherein the status flag bit indicates that the target signal has been sent.

[0088] The determination module 43 is used to determine the location of the first device based on whether the second unit information meets preset conditions when the second unit information is received.

[0089] In one possible implementation, the determination module 44 is used to determine whether the second unit information is consistent with the first unit information stored in the first device when the second unit information is received through the second communication method.

[0090] The determining module is specifically used to determine that the second unit information meets the preset conditions if they are consistent, and to determine that the location of the first device is the first location, wherein the first location belongs to the space where the second device is located;

[0091] Alternatively, if they are inconsistent, it is determined that the information of the second unit does not meet the preset conditions, and the location of the first device is determined to be the second location, which does not belong to the space where the second device is located.

[0092] In one possible implementation, the determination module is specifically used to determine whether the target signal has been received within a preset time period when the second device receives the status flag bit;

[0093] The second sending module is specifically used to generate the second unit information based on the unique identifier of the second device if the condition is met, and to send the second unit information to the first device through the second communication method.

[0094] If not, a first reminder message is generated to be sent to the first device via the second communication method.

[0095] In one possible implementation, the determining module is further configured to determine the location of the first device as the second location when the second unit information sent by the second device is not received;

[0096] Alternatively, when the first reminder message sent by the second device is received, the location of the first device is determined to be the second location.

[0097] In one possible implementation, the acquisition module 45 is used to acquire the first unit information by scanning the barcode information of the second device;

[0098] The generation module 46 is used to generate the association relationship between the first unit information and the second device for storage;

[0099] The first transmitting module is specifically used to transmit the target signal to the second device via infrared communication.

[0100] In one possible implementation, the generation module is specifically used to generate the status flag bit based on the information indicating that the target signal has been transmitted when the transmission completion information is received.

[0101] The second sending module is specifically used to send the status flag bit to the second device via GPRS communication.

[0102] In one possible implementation, the determining module is further configured to determine the location of the first device as a third location when the second unit information is not received and the third unit information of the third device is received, wherein the third location belongs to the space where the third device is located, and the first device and the third device are mutually associated.

[0103] The generation module is further configured to generate a second reminder message when the location of the first device is a second location or a third location;

[0104] The third sending module 47 is used to send the second reminder message to the terminal corresponding to the first device.

[0105] The device for determining the location of the equipment provided in this embodiment can be as follows: Figure 4 The apparatus shown can perform, for example Figure 1-3 All steps of the method, thus achieving Figure 1-3 For details on the technical effects of the Chinese method, please refer to [link / reference]. Figure 1-3 The relevant descriptions are presented concisely and will not be elaborated upon here.

[0106] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 5 The computer device 500 shown includes at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the computer device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to implement communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 5 The general designated all buses as Bus System 505.

[0107] The user interface 503 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).

[0108] It is understood that the memory 502 in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0109] In some implementations, memory 502 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 5021 and application program 5022.

[0110] The operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 5022 includes various applications, such as a media player and a browser, used to implement various application functions. The program implementing the method of this embodiment can be included in the application program 5022.

[0111] In this embodiment of the invention, by calling the program or instructions stored in memory 502, specifically the program or instructions stored in application program 5022, processor 501 executes the method steps provided in each method embodiment, including, for example:

[0112] A target signal is sent to a second device through a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects.

[0113] The second device sends a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device generates second unit information of the second device according to the target signal and the status flag bit, wherein the status flag bit indicates that the target signal has been sent.

[0114] When the second unit information is received, the location of the first device is determined based on whether the second unit information meets preset conditions.

[0115] In one possible implementation, when the second unit information is received via the second communication method, it is determined whether the second unit information is consistent with the first unit information stored in the first device.

[0116] If they match, then the information of the second unit is determined to meet the preset conditions, and the location of the first device is determined to be the first location, which belongs to the space where the second device is located;

[0117] Alternatively, if they are inconsistent, it is determined that the information of the second unit does not meet the preset conditions, and the location of the first device is determined to be the second location, which does not belong to the space where the second device is located.

[0118] In one possible implementation, when the second device receives the status flag, it determines whether the target signal has been received within a preset time period.

[0119] If so, the second unit information is generated based on the unique identifier of the second device, and the second unit information is sent to the first device through the second communication method;

[0120] If not, a first reminder message is generated to be sent to the first device via the second communication method.

[0121] In one possible implementation, when the second unit information sent by the second device is not received, the location of the first device is determined to be the second location;

[0122] Alternatively, when the first reminder message sent by the second device is received, the location of the first device is determined to be the second location.

[0123] In one possible implementation, the information of the first unit is obtained by scanning the barcode information of the second device;

[0124] Generate the association between the first unit information and the second device for storage;

[0125] The target signal is sent to the second device via infrared communication.

[0126] In one possible implementation, when information indicating that the target signal transmission is complete is received, the status flag bit is generated based on the information indicating that the transmission is complete;

[0127] The status flag is sent to the second device via GPRS communication.

[0128] In one possible implementation, when the second unit information is not received, but the third unit information of the third device is received, the location of the first device is determined as the third location, the third location belongs to the space where the third device is located, and the first device and the third device are associated with each other;

[0129] When the location of the first device is the second or third location, a second reminder message is generated; the second reminder message is sent to the terminal corresponding to the first device.

[0130] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the above method.

[0131] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.

[0132] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

[0133] The computer device provided in this embodiment may be as follows: Figure 5 The computer device shown can perform, for example Figure 1-3 All steps of the method for determining the location of the device in the middle, thereby achieving Figure 1-2 For details on the technical advantages of the method for determining the location of the equipment shown, please refer to [link / reference needed]. Figure 1-3 The relevant descriptions are presented concisely and will not be elaborated upon here.

[0134] This invention also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory may also include combinations of the above types of memory.

[0135] When one or more programs in the storage medium can be executed by one or more processors to implement the above-described method for determining the device location executed on the device side.

[0136] The processor is configured to execute a device location determination program stored in memory to implement the steps of the device location determination method executed on the device side:

[0137] A target signal is sent to a second device through a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects.

[0138] The second device sends a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device generates second unit information of the second device according to the target signal and the status flag bit, wherein the status flag bit indicates that the target signal has been sent.

[0139] When the second unit information is received, the location of the first device is determined based on whether the second unit information meets preset conditions.

[0140] In one possible implementation, when the second unit information is received via the second communication method, it is determined whether the second unit information is consistent with the first unit information stored in the first device.

[0141] If they match, then the information of the second unit is determined to meet the preset conditions, and the location of the first device is determined to be the first location, which belongs to the space where the second device is located;

[0142] Alternatively, if they are inconsistent, it is determined that the information of the second unit does not meet the preset conditions, and the location of the first device is determined to be the second location, which does not belong to the space where the second device is located.

[0143] In one possible implementation, when the second device receives the status flag, it determines whether the target signal has been received within a preset time period.

[0144] If so, the second unit information is generated based on the unique identifier of the second device, and the second unit information is sent to the first device through the second communication method;

[0145] If not, a first reminder message is generated to be sent to the first device via the second communication method.

[0146] In one possible implementation, when the second unit information sent by the second device is not received, the location of the first device is determined to be the second location;

[0147] Alternatively, when the first reminder message sent by the second device is received, the location of the first device is determined to be the second location.

[0148] In one possible implementation, the information of the first unit is obtained by scanning the barcode information of the second device;

[0149] Generate the association between the first unit information and the second device for storage;

[0150] The target signal is sent to the second device via infrared communication.

[0151] In one possible implementation, when information indicating that the target signal transmission is complete is received, the status flag bit is generated based on the information indicating that the transmission is complete;

[0152] The status flag is sent to the second device via GPRS communication.

[0153] In one possible implementation, when the second unit information is not received, but the third unit information of the third device is received, the location of the first device is determined as the third location, the third location belongs to the space where the third device is located, and the first device and the third device are associated with each other;

[0154] When the location of the first device is the second or third location, a second reminder message is generated;

[0155] The second reminder message is sent to the terminal corresponding to the first device.

[0156] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0157] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0158] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for determining the location of equipment, characterized in that, Applied to the first device, including: A target signal is sent to a second device through a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects. The second device sends a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device generates second unit information of the second device based on the target signal and the status flag bit. The status flag bit indicates that the target signal has been sent, and the second unit information represents the unique identifier of the second device. When the second unit information is received, the location of the first device is determined according to whether the second unit information meets a preset condition. The preset condition is that the first unit information and the second unit information are consistent. The first device pre-stores the first unit information of the second device. The second device generates second unit information based on the target signal and the status flag, including: When the second device receives the status flag, it determines whether the target signal has been received within a preset time period; If so, the second unit information is generated based on the unique identifier of the second device, and the second unit information is sent to the first device through the second communication method; If not, a first reminder message is generated to be sent to the first device via the second communication method; The method further includes: if it is determined that the first unit information and the second unit information are inconsistent, then the location of the first device is determined to be any location within the space where the other second device is located, and the device controlled by the first device is switched from the second device to the other second device, wherein the other second device is used to generate second unit information and send it to the first device.

2. The method according to claim 1, characterized in that, When the second unit information is received, determining the location of the first device based on whether the second unit information meets preset conditions includes: When the second unit information is received via the second communication method, it is determined whether the second unit information is consistent with the first unit information stored in the first device; If they match, then the information of the second unit is determined to meet the preset conditions, and the location of the first device is determined to be the first location, which belongs to the space where the second device is located; Alternatively, if they are inconsistent, it is determined that the information of the second unit does not meet the preset conditions, and the location of the first device is determined to be the second location, which does not belong to the space where the second device is located.

3. The method according to claim 2, characterized in that, The method further includes: When the second unit information sent by the second device is not received, the location of the first device is determined to be the second location; Alternatively, when the first reminder message sent by the second device is received, the location of the first device is determined to be the second location.

4. The method according to claim 2, characterized in that, Sending the target signal to the second device via the first communication method includes: The information of the first unit is obtained by scanning the barcode information of the second device; Generate the association between the first unit information and the second device for storage; The target signal is sent to the second device via infrared communication.

5. The method according to claim 1, characterized in that, Sending the status flag bit corresponding to the target signal to the second device via the second communication method includes: When the information indicating that the target signal transmission is complete is received, the status flag bit is generated based on the information indicating that the transmission is complete; The status flag is sent to the second device via GPRS communication.

6. The method according to claim 2, characterized in that, The method further includes: When the second unit information is not received, but the third unit information of the third device is received, the location of the first device is determined to be the third location, the third location belongs to the space where the third device is located, and the first device and the third device are mutually associated. When the location of the first device is the second or third location, a second reminder message is generated; The second reminder message is sent to the terminal corresponding to the first device.

7. A device for determining the location of equipment, characterized in that, Applied to the first device, including: A first transmitting module is used to transmit a target signal to a second device via a first communication method. The first device and the second device are interconnected. The first communication method is directional and cannot penetrate objects. The second sending module is used to send a status flag bit corresponding to the target signal to the second device through a second communication method, so that the second device generates second unit information of the second device according to the target signal and the status flag bit. The status flag bit indicates that the target signal has been sent, and the second unit information indicates the unique identifier of the second device. The determination module is used to determine the location of the first device when the second unit information is received, based on whether the second unit information meets a preset condition. The preset condition is that the first unit information and the second unit information are consistent. The first device pre-stores the first unit information of the second device. The second device generates second unit information based on the target signal and the status flag, including: When the second device receives the status flag, it determines whether the target signal has been received within a preset time period; If so, the second unit information is generated based on the unique identifier of the second device, and the second unit information is sent to the first device through the second communication method; If not, a first reminder message is generated to be sent to the first device via the second communication method; The determining module is further configured to, if it is determined that the first unit information and the second unit information are inconsistent, determine that the position of the first device is any position within the space where the other second device is located, and switch the device controlled by the first device from the second device to the other second device, wherein the other second device is used to generate second unit information and send it to the first device.

8. A device, characterized in that, include: A processor and a memory, the processor being configured to execute a device location determination program stored in the memory to implement the device location determination method according to any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the method for determining the device location according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Space recognition method, device and system and household appliance

    CN111796529A