The present disclosure relates to the field of anti-theft technologies, and in particular, to an anti-theft method and apparatus.
Common anti-theft systems for home use include an infrared alarm system based on infrared rays, a laser alarm system based on lasers, and the like. The infrared alarm system and the laser alarm system both need to be installed indoor and are relatively expensive, which increases costs.
Embodiments of the present disclosure provide an anti-theft method and apparatus to reduce costs.
To achieve the foregoing objective, the following technical solutions are used in the embodiments of the present disclosure.
According to a first aspect, an anti-theft method is provided, including obtaining a detection signal from a terminal device, where the detection signal is a signal that is sent by the terminal device when the terminal device detects whether there is an available network and performing an alarm operation when the detection signal meets a preset condition.
With reference to the first aspect, in a first possible implementation manner, after the obtaining a detection signal from a terminal device, the method further includes obtaining a signal strength value of the detection signal, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value.
With reference to the first aspect, in a second possible implementation manner, after the obtaining a detection signal from a terminal device, the method further includes parsing the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the identifier of the terminal device is included in a preset identifier table.
With reference to the first aspect, in a third possible implementation manner, after the obtaining a detection signal from a terminal device, the method further includes obtaining a signal strength value of the detection signal, where the determining whether an identifier of the terminal device is included in a preset identifier table includes when the signal strength value of the detection signal is greater than or equal to a preset value, determining whether an identifier of the terminal device is included in a preset identifier table.
With reference to any one of the first aspect, or the first possible implementation manner to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the performing an alarm operation includes sending an alarm message to a preset terminal device, or sending an alarm indication message to an image collection apparatus, where the alarm indication message is used to instruct the image collection apparatus to collect an image of a user corresponding to the terminal device, or sending an alarm indication message to an alarm apparatus, where the alarm indication message is used to instruct the alarm apparatus to output an alarm message.
According to a second aspect, an anti-theft apparatus is provided, including an obtaining unit configured to obtain a detection signal from a terminal device, where the detection signal is a signal that is sent by the terminal device when the terminal device detects whether there is an available network, and an alarm unit configured to perform an alarm operation when the detection signal meets a preset condition.
With reference to the second aspect, in a first possible implementation manner, the obtaining unit is further configured to obtain a signal strength value of the detection signal, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value.
With reference to the second aspect, in a second possible implementation manner, the anti-theft apparatus further includes a parsing unit configured to parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the identifier of the terminal device is included in a preset identifier table.
With reference to the second aspect, in a third possible implementation manner, the obtaining unit is further configured to obtain a signal strength value of the detection signal, and the parsing unit is specifically configured to parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value, and the identifier of the terminal device is included in a preset identifier table.
With reference to any one of the second aspect, or the first possible implementation manner to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the alarm unit is configured to send an alarm message to a preset terminal device, or send an alarm indication message to an image collection apparatus, where the alarm indication message is used to instruct the image collection apparatus to collect an image of a user corresponding to the terminal device, or send an alarm indication message to an alarm apparatus, where the alarm indication message is used to instruct the alarm apparatus to output an alarm message.
According to a third aspect, an anti-theft apparatus is provided, including a memory and a processor, and the memory is configured to store a group of code, and the code is configured to control the processor to execute the following actions obtaining a detection signal from a terminal device, where the detection signal is a signal that is sent by the terminal device when the terminal device detects whether there is an available network, and performing an alarm operation when the detection signal meets a preset condition.
With reference to the third aspect, in a first possible implementation manner, the processor is further configured to obtain a signal strength value of the detection signal, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value.
With reference to the third aspect, in a second possible implementation manner, the processor is further configured to parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the identifier of the terminal device is included in a preset identifier table.
With reference to the third aspect, in a third possible implementation manner, the processor is specifically configured to obtain a signal strength value of the detection signal, and parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value, and the identifier of the terminal device is included in a preset identifier table.
With reference to any one of the third aspect, or the first possible implementation manner to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the processor is specifically configured to send an alarm message to a preset terminal device, or send an alarm indication message to an image collection apparatus, where the alarm indication message is used to instruct the image collection apparatus to collect an image of a user corresponding to the terminal device, or send an alarm indication message to an alarm apparatus, where the alarm indication message is used to instruct the alarm apparatus to output an alarm message.
According to the anti-theft method and apparatus that are provided in the embodiments of the present disclosure, a network device may obtain a detection signal from a terminal device, and implement anti-theft according to the detection signal. Compared with the other approaches, the anti-theft method provided in the embodiments of the present disclosure may be implemented using an existing network device (such as a router or a web television), and no new hardware needs to be installed, which can greatly reduce costs.
To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show merely some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
The following clearly and completely describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely some but not all of the embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
Currently, with popularity of smart terminal devices, almost everyone carries a terminal device having a Wi-Fi/BLUETOOTH function. After a Wi-Fi/BLUETOOTH function is enabled in the terminal device having a Wi-Fi/BLUETOOTH function, the terminal device may send a detection signal at any time. The detection signal is a signal sent by the terminal device when the terminal device detects whether there is an available network. When a network device obtains the detection signal, even if the terminal device has no permission to access a network of the network device, the network device still obtains information about the terminal device. The information includes a media access control (MAC) address of the terminal device, signal strength of a detection signal, and the like.
Embodiments of the present disclosure provide an anti-theft method and apparatus. During specific implementation, it is assumed that everyone carries a terminal device whose Wi-Fi/BLUETOOTH function is enabled, and that when there is an illegal intruder indoor, in most cases, the illegal intruder has no relationship with a family member.
The character “I” in this specification generally indicates an “or” relationship between the associated objects. In addition, the term “more” in this specification refers to two or more than two.
This embodiment of the present disclosure provides an anti-theft method, as shown in
101: Obtain a detection signal from a terminal device, where the detection signal is a signal that is sent by the terminal device when the terminal device detects whether there is an available network.
In this embodiment of the present disclosure, the method may be executed by a network device, and may be specifically a Wi-Fi network device, such as a router or a smart television, or may be specifically a BLUETOOTH network device, such as a smart television having a BLUETOOTH function. It should be noted that, these network devices have database functions, and can store and query information about a terminal device that interacts with the network devices. The anti-theft method provided in this embodiment of the present disclosure may be applied to household anti-theft, or may be applied to anti-theft in public places. This embodiment of the present disclosure is described using an example in which the method is applied to household anti-theft.
Specifically, “the detection signal” currently may be a Wi-Fi signal, a BLUETOOTH signal, or the like; and “the available network” may be a Wi-Fi network, a BLUETOOTH network, or the like.
In addition, before step 101, the method may further include starting an anti-theft system, where the anti-theft system is configured to implement the anti-theft method provided in this embodiment of the present disclosure. Specifically, a user of the network device may manually start the anti-theft system. For example, when a button for starting the anti-theft system is set on the network device, the user starts the anti-theft system using the button when he or she is leaving a house. The network device may automatically start the anti-theft system. For example, when the network device does not obtain the detection signal from the terminal device in a preset time segment, the network device automatically starts the anti-theft system. In addition, after leaving the house, the user may start the anti-theft system through remote control using his or her own terminal device.
102: Perform an alarm operation when the detection signal meets a preset condition.
Optionally, after step 101, the method may further include obtaining a signal strength value of the detection signal, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value.
It should be noted that, a closer distance between the terminal device and the network device indicates a larger signal strength value of the detection signal that is obtained by the network device from the terminal device, that is, stronger signal strength, and the signal strength of the detection signal attenuates in an order of magnitude when there is a wall or a door between the terminal device and the network device. That is, when doors and windows of a room are closed, signal strength of a detection signal obtained by the network device from the terminal device when the terminal device is in the room differs in an order of magnitude from signal strength of a detection signal obtained by the network device from the terminal device when the terminal device is outside the room. To reduce a false alarm rate of performing an alarm operation by the network device, the preset value may be set relatively appropriately by means of testing. For example, after the testing, signal strength of a Wi-Fi network that is 50 meters from a Wi-Fi router with no block is −90 decibel meters (dbm), and the signal strength ensures that the terminal device can use the Wi-Fi network for normal Wi-Fi communication. Signal strength of a Wi-Fi network that is 10 meters from the Wi-Fi router with no block is −70 dbm, and in this case, it may be considered that the terminal device and the Wi-Fi router are in a same room. Therefore, the preset value may be set to −70 dbm.
Certainly, the preset signal strength value of the detection signal may be set according to other conditions or specific cases, which is not limited in this embodiment of the present disclosure.
During specific implementation of the optional method, after obtaining the detection signal from the terminal device, the network device may directly determine the signal strength value of the detection signal.
Optionally, after step 101, the method may further include parsing the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the identifier of the terminal device is included in a preset identifier table.
Exemplarily, the identifier of the terminal device may be a media access control (MAC) address, a device identifier (Device ID), or the like of the terminal device.
Specifically, the preset identifier table may be a set including identifiers of one or more terminal devices. The set is obtained by the network device according to detection signals from the one or more terminal devices when the anti-theft system is not started, and stores the identifiers of the one or more terminal devices. In addition, the set may be manually set by the user and include the identifiers of the one or more terminal devices.
It should be noted that, in the anti-theft method provided in this embodiment of the present disclosure, the anti-theft system is started by default. After the anti-theft system is started, the network device obtains a detection signal sent by each terminal device, and obtains an identifier of the terminal device according to the detection signal, but does not store the identifier in the preset identifier table.
Specifically, during specific implementation of step 1), when the detection signal is a Wi-Fi detection signal, the network device may obtain the identifier of the terminal device according to a Wi-Fi protocol; and when the detection signal is a BLUETOOTH detection signal, the network device may obtain the identifier of the terminal device according to a BLUETOOTH protocol.
Optionally, to improve accuracy of the anti-theft method, after step 101, the method may further include obtaining a signal strength value of the detection signal, and parsing the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value, and the identifier of the terminal device is included in a preset identifier table.
Specifically, that the detection signal meets a preset condition may be other cases, which is not limited in this embodiment of the present disclosure. For example, that the detection signal meets a preset condition may further include the signal strength value of the detection signal from the terminal device is greater than or equal to a preset value, and the terminal device has no permission to access a network device that executes the anti-theft method.
Optionally, during specific implementation of the performing an alarm operation, the following manners may be used.
Manner 1: Send an alarm message to a preset terminal device.
Manner 2: Send an alarm indication message to an image collection apparatus, where the alarm indication message is used to instruct the image collection apparatus to collect an image of a user corresponding to the terminal device.
Manner 3: Send an alarm indication message to an alarm apparatus, where the alarm indication message is used to instruct the alarm apparatus to output an alarm message.
During specific implementation of manner 1, there may be one or more preset terminal devices. Specifically, the preset terminal device may be a terminal device of the user of the network device, or may be a terminal device designated by the user of the network device.
During specific implementation of manner 2, the image collection apparatus may be a camera or a video camera. The image collection apparatus may be disposed in a room or outside a room, for example, at a door outside a room, or in a passageway outside a room.
During specific implementation of manner 3, the alarm apparatus may be specifically an alarm bell. Similarly, the alarm apparatus may be disposed in a room or outside a room.
During specific implementation of manner 2 and manner 3, the network device may send an alarm indication message to the image collection apparatus or the alarm apparatus through a network.
It should be noted that, the network device may perform the alarm operation in other manners. This embodiment of the present disclosure is merely exemplary description, and does not limit the manners.
According to the anti-theft method provided in this embodiment of the present disclosure, a network device may obtain a detection signal from a terminal device, and implement anti-theft according to the detection signal. Compared with the other approaches, the anti-theft method provided in this embodiment of the present disclosure may be implemented using an existing network device (such as a router or a web television), and no new hardware needs to be installed, which can greatly reduce costs.
This embodiment exemplarily describes the anti-theft method provided in Embodiment 1. In this embodiment, the method is executed by a Wi-Fi router. For related explanations, refer to the foregoing embodiment. As shown in
201: Start an anti-theft system.
During specific implementation of step 201, when a button for starting the anti-theft system is set on a network device, a user of the network device starts the anti-theft system using the button when he or she is leaving a house.
202: Obtain a Wi-Fi detection signal from a terminal device.
203: Parse the Wi-Fi detection signal to obtain a MAC address of the terminal device according to a Wi-Fi protocol.
It should be noted that, any device on a network has a MAC address, and the MAC address is generally factory set, and does not change.
204: Obtain a signal strength value of the Wi-Fi detection signal.
It should be noted that, there is no particular sequence between step 203 and step 204. That is, step 203 may be performed first and step 204 may be executed; or, step 204 may be performed first and step 203 may be executed; or, step 203 and step 204 may be simultaneously performed.
205: When the signal strength value of the Wi-Fi detection signal is greater than or equal to a preset value, determine whether the MAC address of the terminal device is included in a preset MAC address table.
If yes, step 206 is executed; or if not, the process ends.
206: Send an alarm indication message to a video camera, where the alarm indication message is used to instruct the video camera to collect an image of a user corresponding to the terminal device.
Specifically, the video camera may be disposed at a door, a window, or the like of a room.
According to the anti-theft method provided in this embodiment of the present disclosure, a network device may obtain a detection signal from a terminal device, and implement anti-theft according to the detection signal. Compared with the other approaches, the anti-theft method provided in this embodiment of the present disclosure may be implemented using an existing network device (such as a router or a web television), and no new hardware needs to be installed, which can greatly reduce costs.
This embodiment of the present disclosure provides an anti-theft apparatus 30 configured to execute the anti-theft method shown in
The obtaining unit 301 is configured to obtain a detection signal from a terminal device, where the detection signal is a signal that is sent by the terminal device when the terminal device detects whether there is an available network.
The alarm unit 302 is configured to perform an alarm operation when the detection signal meets a preset condition.
Optionally, the obtaining unit 301 is further configured to obtain a signal strength value of the detection signal, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value.
Optionally, as shown in
Optionally, the obtaining unit 301 is further configured to obtain a signal strength value of the detection signal; and the parsing unit 303 is further configured to parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value, and the identifier of the terminal device is included in a preset identifier table.
Optionally, the alarm unit 302 is configured to send an alarm message to a preset terminal device; or, send an alarm indication message to an image collection apparatus, where the alarm indication message is used to instruct the image collection apparatus to collect an image of a user corresponding to the terminal device; or, send an alarm indication message to an alarm apparatus, where the alarm indication message is used to instruct the alarm apparatus to output an alarm message.
According to the anti-theft apparatus provided in this embodiment of the present disclosure, a network device may obtain a detection signal from a terminal device, and implement anti-theft according to the detection signal. Compared with the other approaches, the anti-theft method provided in this embodiment of the present disclosure may be implemented using an existing network device (such as a router or a web television), and no new hardware needs to be installed, which can greatly reduce costs.
In hardware implementation, each unit in Embodiment 3 may be embedded in or independent of a processor of the anti-theft apparatus in a hardware form, or may be stored in a memory of the anti-theft apparatus in a software form, so that a processor invokes and executes an operation corresponding to the unit, where the processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, or the like.
The memory 501 and the processor 502 are coupled with each other through the bus system 503. In addition to a data bus, the bus system 503 may further include a power bus, a control bus, a status signal bus, and the like. However, for the purpose of clear description, various buses in the figure are all marked as the bus system 503.
The memory 501 is configured to store a group of code.
The code stored in the memory 501 is configured to control the processor 502 to execute the following actions obtaining a detection signal from a terminal device, where the detection signal is a signal sent by the terminal device when the terminal device detects whether there is an available network; and performing an alarm operation when the detection signal meets a preset condition.
Optionally, the processor 502 is further configured to obtain a signal strength value of the detection signal, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value.
Optionally, the processor 502 is further configured to parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the identifier of the terminal device is included in a preset identifier table.
Optionally, the processor 502 is further configured to obtain a signal strength value of the detection signal; and parse the detection signal to obtain an identifier of the terminal device, where that the detection signal meets a preset condition includes the signal strength value of the detection signal is greater than or equal to a preset value, and the identifier of the terminal device is included in a preset identifier table.
Optionally, the processor 502 is configured to send an alarm message to a preset terminal device; or, the processor 502 is configured to send an alarm indication message to an image collection apparatus, where the alarm indication message is used to instruct the image collection apparatus to collect an image of a user corresponding to the terminal device; or, the processor 502 is configured to send an alarm indication message to an alarm apparatus, where the alarm indication message is used to instruct the alarm apparatus to output an alarm message.
According to the anti-theft apparatus provided in this embodiment of the present disclosure, a network device may obtain a detection signal from a terminal device, and implement anti-theft according to the detection signal. Compared with the other approaches, the anti-theft method provided in this embodiment of the present disclosure may be implemented using an existing network device (such as a router or a web television), and no new hardware needs to be installed, which can greatly reduce costs.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of hardware in addition to a software functional unit.
When the foregoing integrated unit is implemented in a form of a software functional unit, the integrated unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform some of the steps of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes any medium that can store program code, such as a universal serial bus (USB) flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure but not for limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof, without departing from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
This application is a continuation of U.S. patent application Ser. No. 16/418,137, filed on May 21, 2019, which is a continuation of U.S. patent application Ser. No. 15/528,039, filed on May 18, 2017, now U.S. Pat. No. 10,319,215, which is a national stage of International Application No. PCT/CN2014/094328, filed on Dec. 19, 2014. All of the aforementioned applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | 16418137 | May 2019 | US |
Child | 16859378 | US | |
Parent | 15528039 | May 2017 | US |
Child | 16418137 | US |