Search

CN-116668947-B - Method, device, equipment and storage medium for determining equipment position

CN116668947BCN 116668947 BCN116668947 BCN 116668947BCN-116668947-B

Abstract

The embodiment of the invention relates to a device position determining method, a device, a computer device and a storage medium, wherein the method comprises the steps of sending a target signal to second equipment in a first communication mode, and the first equipment and the second equipment are mutually related; transmitting a status flag bit corresponding to the target signal to the second device in a second communication mode, so that the second device generates second unit information of the second device according to the target signal and the status flag bit; and when the second unit information is received, determining the position of the first equipment according to the second unit information. Therefore, the position of the first equipment can be determined by sending the target signal and the status flag bit to the second equipment, and the position of the first equipment can be found in time when the position of the first equipment changes, so that the accuracy of determining the position of the equipment is improved.

Inventors

  • SONG TONGMING
  • YE TIEYING
  • LAI DONGFENG
  • WANG XIAOJUAN

Assignees

  • 珠海格力电器股份有限公司

Dates

Publication Date
20260508
Application Date
20230621

Claims (9)

  1. 1. A method for determining a location of a device, applied to a first device, comprising: Transmitting a target signal to a second device through a first communication mode, wherein the first device and the second device are mutually related, and the first communication mode has directivity and cannot penetrate an object; Transmitting a status flag bit corresponding to the target signal to the second device in a second communication mode, 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 is transmitted, and the second unit information indicates a unique identifier of the second device; When the second unit information is received, determining the position of the first equipment according to whether the second unit information accords with a preset condition, wherein the preset condition is that the first unit information is consistent with the second unit information, and the first equipment stores the first unit information of the second equipment in advance; the second device generates second unit information of the second device according to the target signal and the status flag bit, and the second unit information comprises: when the second device receives the status flag bit, judging whether the target signal is received in a preset time period; if yes, generating the second unit information according to the unique identifier of the second equipment, and sending the second unit information to the first equipment in the second communication mode; if not, generating a first reminding message, and sending the first reminding message to the first equipment in the second communication mode; If the first unit information and the second unit information are not consistent, determining that the position of the first device is any position in the space where other second devices are located, switching the device controlled by the first device in a linkage manner from the second device to the other second devices, wherein the other second devices are used for generating the second unit information and sending the second unit information to the first device.
  2. 2. The method of claim 1, wherein the determining the location of the first device according to whether the second unit information meets a preset condition when the second unit information is received comprises: when the second unit information is received through the second communication mode, judging whether the second unit information is consistent with the first unit information stored in the first equipment; if the first unit information is consistent with the second unit information, determining that the second unit information meets a preset condition, and determining that the position of the first equipment is a first position, wherein the first position belongs to a space where the second equipment is located; Or if the first unit information does not accord with the preset condition, determining that the second unit information does not accord with the preset condition, and determining that the position of the first equipment is a second position, wherein the second position does not belong to the space where the second equipment is located.
  3. 3. The method according to claim 2, wherein the method further comprises: when the second unit information sent by the second equipment is not received, determining the position of the first equipment as the second position; Or when the first reminding information sent by the second equipment is received, determining the position of the first equipment as the second position.
  4. 4. The method of claim 2, wherein the transmitting the target signal to the second device via the first communication means comprises: Acquiring the first unit information by scanning bar code information of the second equipment; Generating an association relationship between the first unit information and the second device for storage; and transmitting the target signal to the second equipment in an infrared communication mode.
  5. 5. The method of claim 1, wherein the sending, by the second communication manner, the status flag bit corresponding to the target signal to the second device includes: when receiving the information of the completion of the transmission of the target signal, generating the status flag bit based on the information of the completion of the transmission; And sending the status flag bit to the second equipment in a GPRS communication mode.
  6. 6. The method according to claim 2, wherein the method further comprises: when the second unit information is not received and third unit information of third equipment is received, determining the position of the first equipment as a third position, wherein the third position belongs to a space where the third equipment is located, and the first equipment and the third equipment are mutually related; When the position of the first equipment is the second position or the third position, generating a second reminding message; And sending the second reminding message to a terminal corresponding to the first equipment.
  7. 7. A device location determining apparatus, for use with a first device, comprising: A first transmitting module, configured to transmit a target signal to a second device through a first communication mode, where the first device and the second device are associated with each other, and the first communication mode has directionality and cannot penetrate an object; The second sending module is used for sending a status flag bit corresponding to the target signal to the second equipment in a second communication mode, so that the second equipment generates second unit information of the second equipment according to the target signal and the status flag bit, the status flag bit indicates that the target signal is sent, and the second unit information indicates a unique identifier of the second equipment; The determining module is used for determining the position of the first equipment according to whether the second unit information accords with a preset condition when the second unit information is received, wherein the preset condition is that the first unit information is consistent with the second unit information, and the first equipment stores the first unit information of the second equipment in advance; the second device generates second unit information of the second device according to the target signal and the status flag bit, and the second unit information comprises: when the second device receives the status flag bit, judging whether the target signal is received in a preset time period; if yes, generating the second unit information according to the unique identifier of the second equipment, and sending the second unit information to the first equipment in the second communication mode; if not, generating a first reminding message, and sending the first reminding message to the first equipment in the second communication mode; the determining module is further configured to determine that the position of the first device is any position in a space where other second devices are located if the first unit information and the second unit information are determined to be inconsistent, switch the device controlled by the first device in a linkage manner from the second device to the other second devices, and the other second devices are used for generating the second unit information and sending the second unit information to the first device.
  8. 8. The device is characterized by comprising a processor and a memory, wherein the processor is used for executing a determining program of the device position stored in the memory so as to realize the determining method of the device position according to any one of claims 1-6.
  9. 9. A storage medium storing one or more programs executable by one or more processors to implement the method of determining a device location of any of claims 1-6.

Description

Method, device, equipment and storage medium for determining equipment position Technical Field The embodiment of the invention relates to the technical field of intelligent home, in particular to a method, a device, equipment and a storage medium for determining equipment positions. Background Along with the progress of science and technology, various types of intelligent home devices are more and more, the functions of each intelligent home can embody the intelligence of the intelligent home device, and the linkage between each intelligent home also embodies the intelligent degree of home equipment. In the existing intelligent home device linkage control technology, the linkage control of an air conditioner and other intelligent home devices realizes control by receiving and transmitting instructions after the network distribution is completed through routing equipment. When the intelligent home performs linkage control, a control instruction is sent to the matched designated equipment, and in the process, the intelligent home easily ignores the position change of the intelligent home relative to the equipment to be controlled. When the intelligent home equipment switches positions, the positions of the intelligent home equipment after movement cannot be accurately obtained, and further the linked equipment cannot be timely switched, so that how to accurately determine the positions of the intelligent home equipment becomes a problem to be solved urgently. Disclosure of Invention In view of the above, in order to solve the above-mentioned technical problem of determining the location of an intelligent home device, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for determining the location of a device. In a first aspect, an embodiment of the present invention provides a method for determining a device location, which is applied to a first device, including: Transmitting a target signal to a second device through a first communication mode, the first device and the second device being associated with each other, the first communication mode being directional and not capable of penetrating an object; Transmitting a status flag bit corresponding to the target signal to the second device in a second communication mode, 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 is transmitted; And when the second unit information is received, determining the position of the first equipment according to whether the second unit information accords with a preset condition. In one possible implementation manner, when the second unit information is received, determining the location of the first device according to whether the second unit information meets a preset condition includes: when the second unit information is received through the second communication mode, judging whether the second unit information is consistent with the first unit information stored in the first equipment; if the first unit information is consistent with the second unit information, determining that the second unit information meets a preset condition, and determining that the position of the first equipment is a first position, wherein the first position belongs to a space where the second equipment is located; Or if the first unit information does not accord with the preset condition, determining that the second unit information does not accord with the preset condition, and determining that the position of the first equipment is a second position, wherein the second position does not belong to the space where the second equipment is located. In one possible implementation manner, the second device generates second unit information of the second device according to the target signal and the status flag bit, including: when the second device receives the status flag bit, judging whether the target signal is received in a preset time period; if yes, generating the second unit information according to the unique identifier of the second equipment, and sending the second unit information to the first equipment in the second communication mode; if not, generating a first reminding message, and sending the first reminding message to the first equipment in the second communication mode. In one possible embodiment, the method further comprises: when the second unit information sent by the second equipment is not received, determining the position of the first equipment as the second position; Or when the first reminding information sent by the second equipment is received, determining the position of the first equipment as the second position. In one possible implementation manner, the sending, by the first communication manner, the target signal to the second device includes: Acquiring the first unit information by scanning bar code information of the s