Abstract:
An anti-theft method and apparatus relating to the field of anti-theft technologies, and to reduce costs. The anti-theft method includes 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 an available network, and performs an alarm operation when the detection signal meets a preset condition. The anti-theft method may be applied in daily life in order to ensure family property security.

Description:
CROSS-REFERENCE TO RELATED APPLICATION 
       [0001]    This application is a U.S. National Stage of International Patent Application No. PCT/CN2014/094328 filed on Dec. 19, 2014, which is hereby incorporated by reference in its entirety. 
     
    
     TECHNICAL FIELD 
       [0002]    The present disclosure relates to the field of anti-theft technologies, and in particular, to an anti-theft method and apparatus. 
       BACKGROUND 
       [0003]    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. 
       SUMMARY 
       [0004]    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. 
         [0005]    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 sent by the terminal device when the terminal device detects an available network, and performing an alarm operation when the detection signal meets a preset condition. 
         [0006]    With reference to the first aspect, in a first possible implementation manner, after obtaining a detection signal from a terminal device, the method further includes obtaining a signal strength value of the detection signal, where 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. 
         [0007]    With reference to the first aspect, in a second possible implementation manner, after 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 the detection signal meets a preset condition includes the identifier of the terminal device is included in a preset identifier table. 
         [0008]    With reference to the first aspect, in a third possible implementation manner, after obtaining a detection signal from a terminal device, the method further includes obtaining a signal strength value of the detection signal, where determining whether an identifier of the terminal device is included in a preset identifier table includes determining an identifier of the terminal device is included in a preset identifier table when the signal strength value of the detection signal is greater than or equal to a preset value. 
         [0009]    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, 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 instructs 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 instructs the alarm apparatus to output an alarm message. 
         [0010]    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 sent by the terminal device when the terminal device detects there is an available network, and an alarm unit configured to perform an alarm operation when the detection signal meets a preset condition. 
         [0011]    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 the detection signal meets a preset condition includes that the signal strength value of the detection signal is greater than or equal to a preset value. 
         [0012]    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 in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that the identifier of the terminal device is included in a preset identifier table. 
         [0013]    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 further configured to parse the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that 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. 
         [0014]    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 instructs 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 instructs the alarm apparatus to output an alarm message. 
         [0015]    According to a third aspect, an anti-theft apparatus is provided, including a memory and a processor. 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 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. 
         [0016]    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 the detection signal meets a preset condition includes that the signal strength value of the detection signal is greater than or equal to a preset value. 
         [0017]    With reference to the third aspect, in a second possible implementation manner, the processor is further configured to parse the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that the identifier of the terminal device is included in a preset identifier table. 
         [0018]    With reference to the third aspect, in a third possible implementation manner, the processor is further configured to obtain a signal strength value of the detection signal, and parse the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that 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. 
         [0019]    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 further configured to send an alarm message to a preset terminal device, send an alarm indication message to an image collection apparatus, where the alarm indication message instructs 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 instructs the alarm apparatus to output an alarm message. 
         [0020]    According to the anti-theft method and apparatus 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 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. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0021]    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. 
           [0022]      FIG. 1  is a flowchart of an anti-theft method according to Embodiment 1 of the present disclosure; 
           [0023]      FIG. 2  is a flowchart of an anti-theft method according to Embodiment 2 of the present disclosure; 
           [0024]      FIG. 3  is a schematic structural diagram of an anti-theft apparatus according to Embodiment 3 of the present disclosure; 
           [0025]      FIG. 4  is a schematic structural diagram of another anti-theft apparatus according to Embodiment 3 of the present disclosure; and 
           [0026]      FIG. 5  is a schematic structural diagram of an anti-theft apparatus according to Embodiment 4 of the present disclosure. 
       
    
    
     DESCRIPTION OF EMBODIMENTS 
       [0027]    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. 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. 
         [0028]    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 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. 
         [0029]    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. 
         [0030]    The character “/” 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. 
       Embodiment 1 
       [0031]    This embodiment of the present disclosure provides an anti-theft method, as shown in  FIG. 1 , the method includes the following steps. 
         [0032]    Step  101 : Obtain a detection signal from a terminal device, where the detection signal is sent by the terminal device when the terminal device detects an available network. 
         [0033]    In this embodiment of the present disclosure, the method may be executed by a network device, and may be a WI-FI network device, such as a router or a smart television, or may be 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. 
         [0034]    Further, “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. 
         [0035]    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. Further, 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. 
         [0036]    Step  102 : Perform an alarm operation when the detection signal meets a preset condition. 
         [0037]    Optionally, after step  101 , the method may further include obtaining a signal strength value of the detection signal, where 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. 
         [0038]    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 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 testing, signal strength of a WI-FI network that is 50 meters from a WI-FI router with no block is −90 decibel-milliwatts (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. 
         [0039]    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. 
         [0040]    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. 
         [0041]    Optionally, after step  101 , the method may further include parsing the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that the identifier of the terminal device is included in a preset identifier table. 
         [0042]    Exemplarily, the identifier of the terminal device may be a MAC address, a device identifier (Device ID), or the like of the terminal device. 
         [0043]    Further, 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. 
         [0044]    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. 
         [0045]    Further, during specific implementation of step  101 , the network device may obtain the identifier of the terminal device according to a WI-FI protocol when the detection signal is a WI-FI detection signal, and the network device may obtain the identifier of the terminal device according to a BLUETOOTH protocol when the detection signal is a BLUETOOTH detection signal. 
         [0046]    Optionally in order 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 in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that 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. 
         [0047]    Further, the detection signal meets a preset condition may include 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 that 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. 
         [0048]    Optionally, during specific implementation of the performing an alarm operation, the following manners may be used. 
         [0049]    Manner 1: Send an alarm message to a preset terminal device. 
         [0050]    Manner 2: Send an alarm indication message to an image collection apparatus, where the alarm indication message instructs the image collection apparatus to collect an image of a user corresponding to the terminal device. 
         [0051]    Manner 3: Send an alarm indication message to an alarm apparatus, where the alarm indication message instructs the alarm apparatus to output an alarm message. 
         [0052]    During specific implementation of manner 1, there may be one or more preset terminal devices. Further, 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. 
         [0053]    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. 
         [0054]    During specific implementation of manner 3, the alarm apparatus may be further an alarm bell. Similarly, the alarm apparatus may be disposed in a room or outside a room. 
         [0055]    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. 
         [0056]    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. 
         [0057]    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. 
       Embodiment 2 
       [0058]    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  FIG. 2 , the method may include the following steps. 
         [0059]    Step  201 : Start an anti-theft system. 
         [0060]    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. 
         [0061]    Step  202 : Obtain a WI-FI detection signal from a terminal device. 
         [0062]    Step  203 : Parse the WI-FI detection signal in order to obtain a MAC address of the terminal device according to a WI-FI protocol. 
         [0063]    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. 
         [0064]    Step  204 : Obtain a signal strength value of the WI-FI detection signal. 
         [0065]    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, step  204  may be performed first and step  203  may be executed, or step  203  and step  204  may be simultaneously performed. 
         [0066]    Step  205 : Determine whether the MAC address of the terminal device is included in a preset MAC address table when the signal strength value of the WI-FI detection signal is greater than or equal to a preset value. 
         [0067]    Step  206  is executed if the MAC address of the terminal device is included in the preset MAC address table, or the process ends if the MAC address of the terminal device is not included in the preset MAC address table. 
         [0068]    Step  206 : Send an alarm indication message to a video camera, where the alarm indication message instructs the video camera to collect an image of a user corresponding to the terminal device. 
         [0069]    Further, the video camera may be disposed at a door, a window, or the like of a room. 
         [0070]    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. 
       Embodiment 3 
       [0071]    This embodiment of the present disclosure provides an anti-theft apparatus  30  configured to execute the anti-theft method shown in  FIG. 1 . As shown in  FIG. 3 , the anti-theft apparatus  30  includes an obtaining unit  301  and an alarm unit  302 . 
         [0072]    The obtaining unit  301  is configured to obtain a detection signal from a terminal device, where the detection signal is a signal sent by the terminal device when the terminal device detects an available network. 
         [0073]    The alarm unit  302  is configured to perform an alarm operation when the detection signal meets a preset condition. 
         [0074]    Optionally, the obtaining unit  301  is further configured to obtain a signal strength value of the detection signal, where the detection signal meets a preset condition includes that the signal strength value of the detection signal is greater than or equal to a preset value. 
         [0075]    Optionally, as shown in  FIG. 4 , the anti-theft apparatus  30  further includes a parsing unit  303  configured to parse the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that the identifier of the terminal device is included in a preset identifier table. 
         [0076]    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 in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that 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. 
         [0077]    Optionally, the alarm unit  302  is configured to send an alarm message to a preset terminal device, send an alarm indication message to an image collection apparatus, where the alarm indication message instructs 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 instructs the alarm apparatus to output an alarm message. 
         [0078]    According to the anti-theft apparatus  30  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. 
       Embodiment 4 
       [0079]    In hardware implementation, each unit in Embodiment 3 may be embedded in or independent of a processor of the anti-theft apparatus  30  in a hardware form, or may be stored in a memory of the anti-theft apparatus  30  in a software form such 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. 
         [0080]      FIG. 5  shows an anti-theft apparatus  50  provided in this embodiment of the present disclosure configured to execute the anti-theft method shown in  FIG. 1 . The anti-theft apparatus  50  includes a memory  501 , a processor  502 , and a bus system  503 . 
         [0081]    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 . 
         [0082]    The memory  501  is configured to store a group of code. 
         [0083]    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 an available network, and performing an alarm operation when the detection signal meets a preset condition. 
         [0084]    Optionally, the processor  502  is further configured to obtain a signal strength value of the detection signal, where the detection signal meets a preset condition includes that the signal strength value of the detection signal is greater than or equal to a preset value. 
         [0085]    Optionally, the processor  502  is further configured to parse the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that the identifier of the terminal device is included in a preset identifier table. 
         [0086]    Optionally, the processor  502  is further configured to obtain a signal strength value of the detection signal, and parse the detection signal in order to obtain an identifier of the terminal device, where the detection signal meets a preset condition includes that 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. 
         [0087]    Optionally, the processor  502  is configured to send an alarm message to a preset terminal device, the processor  502  is configured to send an alarm indication message to an image collection apparatus, where the alarm indication message instructs 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 instructs the alarm apparatus to output an alarm message. 
         [0088]    According to the anti-theft apparatus  50  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. 
         [0089]    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. 
         [0090]    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. 
         [0091]    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. 
         [0092]    The integrated unit may be stored in a computer-readable storage medium when the foregoing integrated unit is implemented in a form of a software functional unit. 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. 
         [0093]    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.