CN113473379B - Method for judging whether target returns to designated place - Google Patents

Method for judging whether target returns to designated place Download PDF

Info

Publication number
CN113473379B
CN113473379B CN202010245225.9A CN202010245225A CN113473379B CN 113473379 B CN113473379 B CN 113473379B CN 202010245225 A CN202010245225 A CN 202010245225A CN 113473379 B CN113473379 B CN 113473379B
Authority
CN
China
Prior art keywords
equipment
target
communication connection
local area
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010245225.9A
Other languages
Chinese (zh)
Other versions
CN113473379A (en
Inventor
吴浪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anker Innovations Co Ltd
Original Assignee
Anker Innovations Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anker Innovations Co Ltd filed Critical Anker Innovations Co Ltd
Priority to CN202010245225.9A priority Critical patent/CN113473379B/en
Publication of CN113473379A publication Critical patent/CN113473379A/en
Application granted granted Critical
Publication of CN113473379B publication Critical patent/CN113473379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of intelligent equipment, and discloses a method for judging whether a target returns to a specified place. The method comprises the following steps: judging whether a first device at a specified place receives a trigger instruction or not; if so, judging whether the position of the first equipment is matched with the position of second equipment carried by the target or not; and if the position of the first equipment is matched with the position of the second equipment carried by the target, judging that the target returns to the specified place. Through the mode, the method and the device can accurately judge whether the target returns to the specified place.

Description

Method for judging whether target returns to designated place
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a method for judging whether a target returns to a specified place.
Background
With the continuous popularization of smart devices, smart devices are gradually changing the life style of people. For example, the intelligent access control device can judge whether the owner returns home or not, so that the judgment result that the owner returns home is responded, the door, the lamp, the air conditioner and the like are automatically opened, and a great deal of convenience is brought to the life of people.
However, the current intelligent access control device cannot accurately judge whether the owner returns home, so that the user experience of the current intelligent access control device is poor.
Disclosure of Invention
In view of the above, the present invention provides a method for determining whether a target returns to a specific location, which can accurately determine whether the target returns to the specific location.
In order to solve the technical problems, the invention adopts a technical scheme that: a method of determining whether a target returns to a specified location is provided. The method comprises the following steps: judging whether a first device at a specified place receives a trigger instruction or not; if yes, judging whether the position of the first equipment is matched with the position of second equipment carried by the target or not; and if the position of the first equipment is matched with the position of the second equipment carried by the target, judging that the target returns to the specified place.
The invention has the beneficial effects that: different from the prior art, the invention provides a method for judging whether the target returns to the specified place. By judging whether the first device at the specified place receives the trigger instruction or not, under the condition that the first device at the specified place receives the trigger instruction, whether the position of the first device is matched with the position of the second device carried by the target or not is further judged. If the position of the first device is matched with the position of the second device carried by the target, the target is close to the specified place, and therefore the target can be judged to return to the specified place. Through the mode, the method and the device can accurately judge whether the target returns to the specified place.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. Moreover, the drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
FIG. 1 is a flowchart illustrating a first embodiment of a method for determining whether a target is returned to a specified location according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of the method for determining whether the target is returned to the designated location according to the present invention;
FIG. 3 is a flowchart illustrating a third embodiment of the method for determining whether the target is returned to the designated location according to the present invention;
fig. 4 is a flowchart illustrating a first embodiment of a specific manner of determining whether a first device and a second device are connected to the same lan according to the present invention;
FIG. 5 is a flowchart illustrating a second embodiment of a specific manner of determining whether a first device and a second device are connected to the same LAN according to the present invention;
fig. 6 is a flowchart illustrating an embodiment of a specific manner of determining whether the first device establishes the first communication connection with the second device according to the present invention;
FIG. 7 is a flowchart illustrating a fourth embodiment of the method for determining whether the target is returned to the designated location according to the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages 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 embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for determining whether a target returns to a designated location according to a first embodiment of the present invention.
The method for determining whether the target returns to the designated location described in this embodiment may be applied to electronic devices, such as an intelligent access device, an intelligent doorbell, and an intelligent monitoring device, which are installed at the designated location to determine whether the target returns to the designated location. The target may be a person or a pet, and the designated location may be a specific scene such as a home, an office, and the like, which is not limited herein.
It is to be understood that the method for determining whether the target returns to the specified location set forth in the present embodiment is not limited to the following steps.
S101: judging whether a first device at a specified place receives a trigger instruction;
in the present embodiment, the first device is installed at a specified place. When the suspected target object appears in the designated place, the first device receives the trigger instruction, that is, the first device senses that the suspected target object appears in the designated place, and further needs to judge whether the suspected target object is the target, so as to judge whether the target returns to the designated place.
S102: if yes, judging whether the position of the first equipment is matched with the position of second equipment carried by the target or not;
in this embodiment, if the first device at the designated location receives the trigger instruction, it indicates that the object suspected of being the target appears at the designated location, and therefore it is necessary to further determine whether the location of the first device matches the location of the second device carried by the target to determine whether the target returns to the designated location.
S103: if the position of the first equipment is matched with the position of second equipment carried by the target, judging that the target returns to the appointed place;
in this embodiment, if the position of the first device matches the position of the second device carried by the target, it indicates that the distance between the first device and the second device is very close, that is, the distance between the target and the designated location is very close, and at this time, the target may be considered to be at the designated location or in the vicinity of the designated location, and thus it may be determined that the target returns to the designated location.
For example, the method for determining whether the target returns to the specified location described in the embodiment can be applied to a specific application environment for determining whether the host returns to home. Specifically, the target is an owner, the designated location is a home of the owner, the first device is installed at the designated location, and the second device is carried by the owner. When a first device in a home senses that an object suspected of an owner appears near the home, it is determined whether a location of the first device in the home and a location of a second device carried with the owner match, and when the locations of the first device and the second device match, it is determined that the owner returns to the home. Of course, the target at this time is not necessarily the owner of the house, and all users carrying the second device are the targets, such as the roommates of the owner, relatives, and the like, and then the scheme provided by the embodiment monitors whether the target returns to the designated place or not, so as to respond to completing the work such as turning on the corresponding household appliance.
It should be noted that the execution subject of each step in the method for determining whether the target returns to the specified location described in this embodiment may be the first device or the second device, which will be described in detail below, and is not limited herein.
In the method for judging whether the target returns to the specified location, provided by the invention, by judging whether the first device in the specified location receives the trigger instruction, under the condition that the first device in the specified location receives the trigger instruction, whether the position of the first device is matched with the position of the second device carried by the target is further judged. If the position of the first device is matched with the position of the second device carried by the target, the target is close to the specified place, and therefore the target can be judged to return to the specified place. Through the mode, the method and the device can accurately judge whether the target returns to the specified place.
Referring to fig. 2, fig. 2 is a flowchart illustrating a second embodiment of a method for determining whether a target returns to a specific location according to the present invention. It is to be understood that the method for determining whether the target returns to the specified location set forth in the present embodiment is not limited to the following steps.
S201: the first equipment judges whether a specified image is detected or not;
in this embodiment, if the first device determines that the designated image is detected, step S202 is executed; if the first device determines that the designated image is not detected, the process continues to step S201.
The first device is located at the appointed place, and the specific form of judging whether the trigger instruction is received is to judge whether the appointed image is detected. Specifically, the first device may have a camera module, and when the target is a person, the designated image is an image of the person, and the first device determines whether the target returns to the designated location, that is, determines whether the designated image detected by the first device is an image of the target. And the first device is always in a state of detecting the image, and when the appointed image appears in the appointed place, the first device triggers the work of further judging whether the appointed image is the target image.
Further, the first device determines whether the specified image is detected by determining whether a human shape or a human face exists in the image detected by the first device.
Of course, in other embodiments of the present invention, the specific form of the first device receiving the trigger instruction is not limited to the form of detecting the specific image. For example, the first device may be an access control device with a doorbell, and when the doorbell is triggered to ring, the first device receives a trigger instruction, and the like, which is not limited herein.
S202: the first equipment judges that a trigger instruction is received;
in this embodiment, if the first device determines that the designated image is detected, the first device determines that the trigger instruction is received.
S203: the first equipment sends an activation instruction to the second equipment to activate the second equipment;
in this embodiment, if the first device determines that the trigger instruction is received, the first device sends an activation instruction to the second device to activate the second device, so as to trigger the first device and the second device to cooperate to confirm whether the target returns to the specified location. The second device is activated after receiving the activation instruction, and then the second device is triggered to cooperate with the first device to confirm whether the target returns to the designated place, so that the second device is prevented from always waiting for cooperating with the first device to confirm whether the target returns to the designated place, and the workload of the second device can be reduced.
Further, the first device may silently push the activation instruction to the second device through VOIP or FCM. The silent pushing process through the VOIP or the FCM is completed in the background of the second device, and meanwhile, the activated second device is also matched with the first device in the background to confirm whether the target returns to the designated place or not, so that the target carrying the second device is not perceived, and the use experience of a user is favorably improved.
The IOS system realizes silent pushing of the activation instruction based on VOIP (Voice over Internet Protocol). And the Android system realizes silent pushing of the activation instruction based on FCM (Cloud Messaging).
S204: the first equipment judges whether to establish second communication connection with the second equipment;
in this embodiment, if the first device determines that the second communication connection with the second device can not be established, step S205 is executed, and if the first device determines that the second communication connection with the second device cannot be established, the process is ended.
Since the transmission mode of the first device sending the activation instruction to the second device is generally unidirectional, that is, from the first device to the second device, and the work of the first device and the second device in cooperation to confirm whether the target returns to the specified location generally requires that there is bidirectional information interaction between the first device and the second device, before the subsequent steps are performed, it is often required that the first device and the second device establish a second communication connection, where the second communication connection provides a channel for bidirectional interaction between the first device and the second device.
Alternatively, the second communication connection may be a P2P (Peer-to-Peer) communication connection, which is not limited herein.
S205: the first equipment judges whether to receive the identity information from the second equipment;
in this embodiment, to confirm that the second device interacting with the first device is indeed the second device carried by the target, so as to prevent malicious interference from a third party, the first device needs to check the identity of the second device, and if the check is passed, it is indicated that the second device interacting with the first device is indeed the second device carried by the target.
Specifically, the first device needs to determine whether to receive identity information from the second device. If the first device receives the identity information from the second device, step S206 is executed; if the first device determines that the identity information from the second device cannot be received, the process is ended.
S206: comparing the identity information with preset identity information;
in this embodiment, after the first device receives the identity information from the second device, the first device compares the identity information with the preset identity information, if the identity information matches the preset identity information, the identity verification is passed, and then step S207 is executed; and if the identity information is not matched with the preset identity information, the identity verification fails, and the process is ended.
The preset identity information is identity information of second equipment carried by a representation target prestored in the first equipment.
S207: judging whether the first equipment establishes a first communication connection with the second equipment and/or judging whether the first equipment is connected with the second equipment through the same local area network;
in this embodiment, after the identity verification is passed, the distance between the first device and the second device needs to be determined to determine whether the specified image detected by the first device is the target image.
Specifically, if it is determined that the first device and the second device establish the first communication connection or that the first device and the second device are connected to the same local area network, step S208 is executed; if it is determined that the first device does not establish the first communication connection with the second device and it is determined that the first device is not connected to the same local area network as the second device, step S209 is performed.
It should be noted that, in this embodiment, the distance between the first device and the second device may be confirmed by determining whether the first device establishes the first communication connection with the second device; or determining the distance between the first device and the second device by judging whether the first device and the second device are connected to the same local area network. Preferably, in this embodiment, the distance between the first device and the second device is determined by determining whether the first device establishes the first communication connection with the second device and also determining whether the first device is connected to the same lan as the second device, where when it is determined that the first device establishes the first communication connection with the second device or that the first device is connected to the same lan as the second device, it is determined that the designated image is the image of the target, and accuracy and success rate of distance determination between the first device and the second device can be greatly improved.
S208: determining an image with the designated image as a target;
in this embodiment, if the first device determines that it establishes the first communication connection with the second device and/or determines that it is connected to the same local area network as the second device, it indicates that the distance between the first device and the second device is very short, that is, the distance between the target and the specified location is very short, and at this time, the target may be considered to be at the specified location or in the vicinity of the specified location, and thus it may be determined that the specified image detected by the first device is the image of the target, that is, it may be determined that the target returns to the specified location. The flow is then ended.
S209: determining that the designated image is not the target image;
in this embodiment, the first device does not establish the first communication connection with the second device, and does not connect to the same local area network with the second device, which means that the distance between the first device and the second device is long, that is, the distance between the target and the specified location is long, and at this time, it may be determined that the target has not returned to the specified location, that is, it may be determined that the specified image detected by the first device is not an image of the target.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for determining whether a target returns to a designated location according to a third embodiment of the present invention. It is to be understood that the method for determining whether the target returns to the specified location set forth in the present embodiment is not limited to the following steps.
S301: the second equipment judges whether an activation instruction from the first equipment is received or not;
in this embodiment, after the first device detects the designated image, the first device sends an activation instruction to the second device to further trigger the first device and the second device to cooperate to confirm whether the target returns to the designated location. Specifically, the second device determines whether an activation instruction from the first device is received. If yes, determining that the first device receives the trigger instruction, and executing step S302 correspondingly; if not, determining that the first device does not receive the trigger instruction, and continuing to execute step S301.
S302: activating the second device;
in this embodiment, if the second device receives an activation instruction from the first device, it is determined that the first device receives a trigger instruction. Correspondingly, the second device is activated to cooperate with the first device to confirm whether the target returns to the specified location.
S303: judging whether the flag bit represents that the second equipment returns to the specified place or not;
in this embodiment, the second device is provided with a flag bit for indicating whether the second device returns to the specified location, that is, indicating whether the target carrying the second device returns to the specified location. Specifically, when the flag bit does not represent that the second device returns to the designated location, step S304 is executed, that is, a subsequent job of confirming whether the target returns to the designated location in cooperation with the first device is triggered; when the flag bit indicates that the second device returns to the designated location, it indicates that the target has returned to the designated location, and the designated image detected by the first device is not necessarily the image of the target, so that there is no need to perform subsequent operations, and the process is ended.
For example, the first device may be an access control device installed outside a door for detecting whether a specific image appears within a certain range outside the door. When the target returns home, the designated image appears outdoors and is detected by the first device, which indicates that the first device detects that the designated image is not necessarily the image of the target.
S304: the second equipment judges whether to establish second communication connection with the first equipment;
in this embodiment, if the second device determines that the second communication connection with the first device can not be established, step S305 is executed, and if the second device determines that the second communication connection with the first device can not be established, the process is ended.
S305: the second equipment transmits the identity information to the first equipment, so that the first equipment compares the identity information with preset identity information;
in this embodiment, after the second device establishes the second communication connection with the first device, the second device transmits the identity information to the first device, so that the first device compares the identity information with the preset identity information to perform identity verification, and the specific process of the identity verification is described in detail in the above embodiments and is not described herein again.
Further, to further prevent malicious interference of a third party and improve security, before the second device transmits the identity information to the first device, the identity information is further encrypted, for example, by using AES (Advanced Encryption Standard).
S306: the distance between the first equipment and the second equipment is confirmed by matching with the first equipment;
in this embodiment, the manner in which the second device cooperates with the first device to determine the distance between the first device and the second device may specifically be to determine the distance between the first device and the second device by determining whether the first device establishes the first communication connection with the second device and/or determining whether the first device is connected to the same local area network as the second device, which is not described herein again.
It should be noted that, after the target is determined to return to the specified location, the second device modifies the flag bit to indicate that the second device returns to the specified location, that is, to indicate that the target returns to the specified location. Of course, the target may operate on the second device and modify the flag to characterize the second device as returning to the designated location. When the target leaves the designated location again, the target needs to modify the flag bit to an uncharacterized second device to return to the designated location in person, or to implement the modification by other means, which is not limited herein.
Moreover, the second device may install an APP (Application program) to implement the method for determining whether the target returns to the specified location as set forth in the foregoing embodiments. Of course, the second device itself may be integrated with a function of determining whether the target returns to the specified location, which is not limited herein.
A scheme for confirming the distance between the first device and the second device by determining whether the first device and the second device are connected to the same local area network will be described below.
In this embodiment, the coverage area of the local area network is usually small, and if the first device and the second device are connected to the same local area network, it is indicated that the first device and the second device are in the coverage area of the same local area network, that is, the distance between the first device and the second device is considered to be very close. Specifically, the first device interacts with the second device through the second communication connection, so as to determine whether the first device or the second device is connected to the same local area network. The local area network may be a WiFi network or a bluetooth network, and it is determined whether the first device and the second device are connected to the same local area network, that is, whether the first device and the second device are connected to the local area network radiated by the same network source. The local area network is taken as an example of a WiFi network for explanation, which is only needed for discussion and is not limited herein.
Referring to fig. 4, fig. 4 is a flowchart illustrating a first embodiment of a specific manner of determining whether a first device and a second device are connected to the same lan according to the present invention.
In an embodiment, the process of determining whether the first device and the second device are connected to the same local area network may include the following steps.
S401: the first equipment acquires the information of the WiFi network currently connected with the first equipment, transmits the information of the WiFi network currently connected with the first equipment to the second equipment through second communication connection, and judges whether the first equipment and the second equipment are connected with the same local area network or not by the second equipment;
in this embodiment, the second device determines whether the first device and the second device are connected to the same local area network. Specifically, the first device acquires information of a WiFi network currently connected to the first device, and transmits the information of the WiFi network currently connected to the first device to the second device through the second communication connection, so that the second device determines whether the first device and the second device are connected to the same local area network.
S402: judging whether the first equipment receives information from the second equipment, wherein the information is used for representing that the WiFi network currently connected with the first equipment is the same as the WiFi network currently connected with the second equipment;
in this embodiment, if the second device determines that the first device and the second device are connected to the same local area network, the second device may send, to the first device, information that characterizes that a WiFi network currently connected to the first device is the same as a WiFi network currently connected to the second device, that is, the first device receives, from the second device, information that characterizes that a WiFi network currently connected to the first device is the same as a WiFi network currently connected to the second device, and then step S403 is executed; if the second device determines that the first device is not connected to the same local area network as the second device, the second device sends information indicating that the WiFi network currently connected to the first device is different from the WiFi network currently connected to the second device to the first device, that is, the first device receives information indicating that the WiFi network currently connected to the first device is different from the WiFi network currently connected to the second device from the second device, and then step S404 is executed.
S403: judging that the first device and the second device are connected with the same WiFi network;
in this embodiment, the second device sends, to the first device, information indicating that a WiFi network to which the first device is currently connected is the same as a WiFi network to which the second device is currently connected, and the first device receives, from the second device, information indicating that the WiFi network to which the first device is currently connected is the same as the WiFi network to which the second device is currently connected, so that it is determined that the first device and the second device are connected to the same WiFi network. The flow is then ended.
S404: determining that the first device is not connected to the same WiFi network as the second device;
in this embodiment, the second device sends, to the first device, information indicating that a WiFi network currently connected to the first device is different from a WiFi network currently connected to the second device, and the first device receives, from the second device, information indicating that the WiFi network currently connected to the first device is different from the WiFi network currently connected to the second device, so that it is determined that the first device is not connected to the same WiFi network as the second device.
Referring to fig. 5, fig. 5 is a flowchart illustrating a second embodiment of a specific manner of determining whether a first device and a second device are connected to the same lan according to the present invention.
In an alternative embodiment, the process of determining whether the first device and the second device are connected to the same local area network may further include the following steps.
S501: the second equipment acquires the information of the WiFi network currently connected with the second equipment, transmits the information of the WiFi network currently connected with the second equipment to the first equipment through the second communication connection, and judges whether the first equipment is connected with the second equipment through the first equipment to form the same local area network.
S502: judging whether the WiFi network currently connected with the first equipment is the same as the WiFi network currently connected with the second equipment or not;
in this embodiment, the first device compares the WiFi network currently connected to the first device with the WiFi network currently connected to the second device, and if the first device determines that the WiFi network currently connected to the first device is the same as the WiFi network currently connected to the second device, step S503 is executed; if the first device determines that the WiFi network currently connected to the first device is different from the WiFi network currently connected to the second device, step S504 is executed.
S503: and judging that the first device and the second device are connected with the same WiFi network. The flow is then ended.
S504: and determining that the first device is not connected with the same WiFi network as the second device.
The following describes a scheme for confirming a distance between a first device and a second device by determining whether the first device establishes a first communication connection with the second device.
In this embodiment, when the distance between the first device and the second device is short, the first communication connection is allowed to be established between the first device and the second device, and therefore, the distance between the first device and the second device can be confirmed by determining whether the first communication connection is established between the first device and the second device. It is to be understood that the first communication connection may be a bluetooth communication connection or a WiFi communication connection, and the first communication connection is a bluetooth communication connection for example, which is only required for discussion and not limiting.
Referring to fig. 6, fig. 6 is a flowchart illustrating an embodiment of a specific method for determining whether a first communication connection is established between a first device and a second device according to the present invention.
In an embodiment, the process of determining whether the first device establishes the first communication connection with the second device may include the following steps.
S601: the first device broadcasts bluetooth information and the second device searches for and attempts to connect to the bluetooth information broadcast by the first device.
S602: judging whether the first equipment establishes Bluetooth connection with the second equipment or not;
in this embodiment, if the first device establishes a bluetooth connection with the second device, step S603 is executed; if the first device does not establish a bluetooth connection with the second device, step S604 is executed. The main body performing the determination in step S602 may be the first device or the second device, which is not limited herein.
Further, it may be determined whether the first device establishes a bluetooth connection with the second device within a preset time. If the Bluetooth connection is established between the first device and the second device within the preset time, it can be judged that the first communication connection is established between the first device and the second device; if the first device does not establish the bluetooth connection with the second device within the preset time, the first device stops broadcasting the bluetooth information continuously, and the second device stops searching the bluetooth information broadcasted by the first device, which indicates that the distance between the first device and the second device is longer. The preset time can be set by a user according to needs. By the method, time consumption of the judging process is reduced, and workload of the first equipment and the second equipment can be reduced.
S603: and determining that the first communication connection is established between the first device and the second device. The flow is then ended.
S604: it is determined that the first device has not established the first communication connection with the second device.
Of course, in other embodiments of the present invention, the second device may broadcast the bluetooth information, and the first device searches for and attempts to connect to the bluetooth information broadcast by the second device, which is not limited herein.
Referring to fig. 7, fig. 7 is a flowchart illustrating a fourth embodiment of a method for determining whether a target returns to a designated location according to the present invention. It is to be understood that the method for determining whether the target returns to the specified location set forth in the present embodiment is not limited to the following steps.
S701: the first equipment judges whether the specified image is detected or not;
in this embodiment, if the first device determines that the designated image is detected, step S702 is executed; if the first device determines that the designated image is not detected, the process continues to step S701.
S702: the first equipment judges that a trigger instruction is received;
in this embodiment, if the first device determines that the designated image is detected, the first device determines that the trigger instruction is received.
S703: the method comprises the steps that a first device sends an activation instruction to a second device, and the second device judges whether the activation instruction from the first device is received or not;
in this embodiment, if the second device receives the activation instruction from the first device, step S704 is executed; if the first device does not send the activation instruction to the second device, or the second device does not receive the activation instruction from the first device, the process is ended.
S704: activating the second device;
in this embodiment, if the second device receives an activation instruction from the first device, it is determined that the first device receives a trigger instruction. Correspondingly, the second device is activated to cooperate with the first device to confirm whether the target returns to the specified location.
S705: the second equipment judges whether the zone bit represents that the second equipment returns to the appointed place;
in this embodiment, when the flag bit does not represent that the second device returns to the designated location, step S706 is executed, that is, the subsequent work of determining whether the target returns to the designated location in cooperation with the first device is triggered; when the flag bit indicates that the second device returns to the designated location, it indicates that the target has returned to the designated location, and the designated image detected by the first device is not necessarily the image of the target, so that subsequent operations are not necessary, and the process is ended.
S706: judging whether the first equipment and the second equipment establish second communication connection;
in this embodiment, if the first device and the second device establish the second communication connection, step S707 is executed, and if the first device and the second device cannot establish the second communication connection, the process is ended.
S707: the second equipment transmits identity information to the first equipment, and the first equipment judges whether to receive the identity information from the second equipment or not;
in this embodiment, if the first device receives the identity information from the second device, step S708 is executed; if the second device does not transmit the identity information to the first device, or the first device determines that the identity information from the second device cannot be received, the process is ended.
S708: the first equipment compares the identity information with preset identity information;
in this embodiment, after the first device receives the identity information from the second device, the first device compares the identity information with the preset identity information, if the identity information matches the preset identity information, the identity verification is passed, and then step S709 is executed; and if the identity information is not matched with the preset identity information, the identity verification fails, and the process is ended.
S709: judging whether a first communication connection is established between a first device and a second device or not, and also judging whether the first device and the second device are connected to the same local area network or not;
in this embodiment, if it is determined that the first device and the second device establish the first communication connection or that the first device and the second device are connected to the same local area network, step S710 is executed; if it is determined that the first device does not establish the first communication connection with the second device and it is determined that the first device is not connected to the same local area network as the second device, step S711 is executed.
S710: the designated image is determined as the target image. The flow is then ended.
S711: it is determined that the designated image is not the target image.
In summary, in the method for determining whether the target returns to the specified location provided by the present invention, by determining whether the first device in the specified location receives the trigger instruction, under the condition that the first device in the specified location receives the trigger instruction, it is further determined whether the location of the first device matches the location of the second device carried by the target. If the position of the first device is matched with the position of the second device carried by the target, the target is close to the specified place, and therefore the target can be judged to return to the specified place. Through the mode, the method and the device can accurately judge whether the target returns to the specified place.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
In an embodiment, the electronic device 1 comprises a communication module 11, and the communication module 11 is used for information transmission. The electronic device 1 further comprises a judging module 12, and the judging module 12 is connected with the communication module 11. The judging module 12 is configured to judge whether the first device at the designated location receives a trigger instruction; if yes, the determining module 12 is further configured to determine whether the position of the first device matches the position of the second device carried by the target; if the position of the first device matches the position of the second device carried by the target, the determining module 12 determines that the target returns to the designated location.
It should be noted that the electronic apparatus 1 may be a first device or a second device, which is capable of implementing the method for determining whether the target returns to the specified location as set forth in the foregoing embodiments, and therefore, the description is omitted here.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A method for determining whether a target returns to a specified location, the method comprising:
judging whether the first equipment at the appointed place receives a trigger instruction or not;
if yes, judging whether the position of the first equipment is matched with the position of second equipment carried by the target or not;
and if the position of the first equipment is matched with the position of second equipment carried by the target, judging that the target returns to the specified place.
2. The method of claim 1,
the step of judging whether the first device at the specified place receives a trigger instruction comprises the following steps:
the first equipment judges whether a specified image is detected or not;
if yes, the first device judges that the trigger instruction is received;
the step of judging whether the position of the first device is matched with the position of the second device carried by the target comprises:
the first equipment judges whether to establish first communication connection with the second equipment and/or judges whether to connect the same local area network with the second equipment;
and if the first communication connection is established between the first device and the second device or the first device and the second device are connected with the same local area network, judging that the designated image is the target image.
3. The method of claim 2,
the step of the first device determining whether to establish the first communication connection with the second device and/or determining whether to connect to the same local area network as the second device includes:
the first device sends an activation instruction to the second device to activate the second device;
the step of the first device determining whether to establish a first communication connection with the second device and/or determining whether to connect to the same local area network as the second device includes:
and the first equipment judges whether to establish first communication connection with the activated second equipment and/or judges whether to connect the same local area network with the activated second equipment.
4. The method of claim 3, wherein the step of the first device sending an activation instruction to the second device comprises:
the first device pushes the activation instruction to the second device through VOIP or FCM in a silent mode.
5. The method according to claim 2, wherein the step of the first device determining whether to establish the first communication connection with the second device and/or determining whether to connect to the same local area network as the second device is preceded by:
the first equipment judges whether identity information from the second equipment is received or not;
if so, comparing the identity information with preset identity information;
and if the identity information is matched with the preset identity information, executing the step that the first equipment judges whether to establish first communication connection with the second equipment and/or judges whether to connect the same local area network with the second equipment.
6. The method of claim 2, wherein the step of the first device determining whether to connect to the same local area network as the second device is preceded by:
the first equipment judges whether to establish second communication connection with the second equipment;
if so, the first device interacts with the second device through the second communication connection to judge whether the first device or the second device is connected with the same local area network or not.
7. The method of claim 6,
the step that the first device interacts information of the local area network to which the first device is currently connected with the second device through the second communication connection comprises the following steps:
the first device acquires information of a WiFi network currently connected with the first device, transmits the information of the WiFi network currently connected with the first device to the second device through the second communication connection, so that the second device judges whether the WiFi network currently connected with the first device is the same as the WiFi network currently connected with the second device or not, and judges whether information representing that the WiFi network currently connected with the first device is the same as the WiFi network currently connected with the second device is received or not;
if information from the second device, which indicates that the WiFi network currently connected with the first device is the same as the WiFi network currently connected with the second device, is received, the first device judges that the first device and the second device are connected with the same WiFi network;
the step that the first device interacts with the second device through the second communication connection and the information of the local area network currently connected with the second device comprises the following steps:
the first equipment receives the information of the WiFi network currently connected with the second equipment and judges whether the WiFi network currently connected with the first equipment is the same as the WiFi network currently connected with the second equipment or not;
if so, the first device judges that the first device and the second device are connected with the same WiFi network.
8. The method of claim 1, wherein the step of determining whether the location of the first device matches the location of the second device carried by the target comprises:
the first device determines whether to establish a first communication connection with the second device and also determines whether to connect to the same local area network as the second device.
9. The method of claim 2, wherein the step of the first device determining whether to establish the first communication connection with the second device comprises:
the first device broadcasts Bluetooth information, and if the first device establishes Bluetooth connection with the second device, the first device judges that the first communication connection is established with the second device.
10. The method of claim 9, wherein the step of the first device broadcasting bluetooth information comprises:
the first equipment broadcasts Bluetooth information and judges whether Bluetooth connection is established with the second equipment within preset time;
if not, the first equipment stops continuously broadcasting the Bluetooth information.
11. The method of claim 1, wherein the second device is provided with a flag bit for indicating whether the second device returns to the designated location;
the step of determining that the first device at the specified location receives the triggering instruction comprises the following steps:
judging whether the flag bit represents that the second equipment returns to the specified place or not;
if not, executing the step of judging whether the position of the first equipment is matched with the position of second equipment carried by the target;
in response to the target returning to the specified location, modifying the flag bit to characterize the second device returning to the specified location.
12. The method of claim 11,
the step of judging whether the first device at the specified place receives a trigger instruction comprises the following steps:
the second equipment judges whether an activation instruction from the first equipment is received or not;
if yes, the first device in the appointed place receives the trigger instruction, the second device is activated, and when the zone bit does not represent that the second device returns to the appointed place, the second device transmits identity information to the first device, so that the first device compares the identity information with preset identity information;
the step of the second device transmitting identity information to the first device comprises before:
and encrypting the identity information.
CN202010245225.9A 2020-03-31 2020-03-31 Method for judging whether target returns to designated place Active CN113473379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010245225.9A CN113473379B (en) 2020-03-31 2020-03-31 Method for judging whether target returns to designated place

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010245225.9A CN113473379B (en) 2020-03-31 2020-03-31 Method for judging whether target returns to designated place

Publications (2)

Publication Number Publication Date
CN113473379A CN113473379A (en) 2021-10-01
CN113473379B true CN113473379B (en) 2022-08-30

Family

ID=77865545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010245225.9A Active CN113473379B (en) 2020-03-31 2020-03-31 Method for judging whether target returns to designated place

Country Status (1)

Country Link
CN (1) CN113473379B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198632A (en) * 2013-04-09 2013-07-10 姚争辉 Indoor security and protection system achieving intelligent human-body identification and master identification
WO2013162140A1 (en) * 2012-04-26 2013-10-31 서울시립대학교 산학협력단 Method and system for determining location and position of image matching-based smartphone
CN104219630A (en) * 2014-09-23 2014-12-17 深圳先进技术研究院 Combined searching and positioning system based on cellphone base station simulator and video monitoring
CN105357480A (en) * 2015-11-10 2016-02-24 杭州敦崇科技股份有限公司 Public place wireless internet access security management system and operation method thereof
CN109887131A (en) * 2019-01-22 2019-06-14 胡渐佳 Intelligent door lock unlocking information is stolen recognition methods
CN109993520A (en) * 2018-01-03 2019-07-09 周祥宇 A kind of system and method based on position payment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013162140A1 (en) * 2012-04-26 2013-10-31 서울시립대학교 산학협력단 Method and system for determining location and position of image matching-based smartphone
CN103198632A (en) * 2013-04-09 2013-07-10 姚争辉 Indoor security and protection system achieving intelligent human-body identification and master identification
CN104219630A (en) * 2014-09-23 2014-12-17 深圳先进技术研究院 Combined searching and positioning system based on cellphone base station simulator and video monitoring
CN105357480A (en) * 2015-11-10 2016-02-24 杭州敦崇科技股份有限公司 Public place wireless internet access security management system and operation method thereof
CN109993520A (en) * 2018-01-03 2019-07-09 周祥宇 A kind of system and method based on position payment
CN109887131A (en) * 2019-01-22 2019-06-14 胡渐佳 Intelligent door lock unlocking information is stolen recognition methods

Also Published As

Publication number Publication date
CN113473379A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN110602692B (en) Data updating method and device and electronic equipment
CN110740460B (en) Network access method and device of equipment, network equipment and storage medium
CN104580265A (en) Equipment binding method and equipment binding device
CN104635501A (en) Intelligent home control method and system
JP2017507628A (en) Device binding method, apparatus, program, and recording medium
US20230344811A1 (en) Distributed encryption
CN110690996A (en) Configuration method, system and device of intelligent household terminal equipment and terminal equipment
CN109816826A (en) Method, apparatus, system, mobile terminal and the storage medium of door lock control
JP2007274208A (en) Power supply control method, and controller and terminal device utilizing the same
CN109996229B (en) Data transmission method and device based on DHT network, electronic equipment and storage medium
CN105069875A (en) Electronic key, electronic devices and electronic device networking/pairing method
CN105960027A (en) ZigBee network networking method and ZigBee coordinator
CN105245556A (en) Intelligent mobile phone remote control method and device
KR20200053949A (en) Method for home networking using AI voice recognition speakers and network devices installed in the household, device and system using the same
CN112433836A (en) Automatic application program awakening method and device and computer equipment
CN112867102A (en) PLC-IoT equipment networking method and device
WO2022247373A1 (en) Method and apparatus for controlling home appliance, and appliance
CN109889927B (en) Intercommunication method and device in intercommunication system and indoor unit
CN105227627B (en) A kind of playback equipment packet control process and user terminal
CN105915416B (en) Information processing method and terminal equipment
CN113473379B (en) Method for judging whether target returns to designated place
CN110910541A (en) Access control method, system, network device and computer readable storage medium
JP2003101545A (en) Method for controlling access to lan from wireless lan terminal, wireless lan base station apparatus and wireless lan terminal apparatus
CN110803591B (en) Elevator floor control method, system and related equipment
CN106341905B (en) File sharing method, equipment and system based on wireless network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant