Wireless camera detection method, device, terminal equipment and storage medium

By implementing a wireless camera detection method and device on the terminal device, detecting the wireless camera by scanning and analyzing data packets, the problem of low detection efficiency of wireless cameras is solved and a more efficient detection process is achieved.

CN114423036BActive Publication Date: 2025-02-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210164959.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-22
Publication Date
2025-02-18
Estimated Expiration
2042-02-22

AI Technical Summary

Technical Problem

How to effectively detect wireless cameras, especially under their strong hidden characteristics, to prevent them from being illegally used to invade privacy.

Method used

By implementing a detection method and device on the terminal device, the channel to be scanned sequentially, the data packets of the current channel within the first time length are captured. If the number of data packets reaches the threshold, the capture continues until the second time length is Characterization analysis is performed to determine the presence of wireless cameras.

Benefits of technology

This method can shorten the channel scanning time of the terminal device, improve the detection efficiency of the wireless camera, avoid long-term scanning of each channel, and thus improve the detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114423036B_ABST
    Figure CN114423036B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a detection method, device, terminal device and storage medium for a wireless camera. The detection method may include: the scanning process of the channel to be scanned includes: capturing the data packets transmitted by the current channel to be scanned within the first time length; if the number of data packets transmitted on the current channel to be scanned captured within the first time length is greater than or equal to the data packet threshold, then continue to capture the data packets transmitted on the current channel to be scanned until the second time length is reached, and perform feature analysis on the captured data packets within the second time length, and determine the detection result for the wireless camera based on the feature analysis result; if the number of data packets captured within the first time length is less than the data packet threshold, then scan the next channel to be scanned until all channels to be scanned are scanned. By implementing this method, it is beneficial to shorten the channel scanning time of the terminal device, thereby improving the detection efficiency of the wireless camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a detection method, device, terminal equipment and storage medium for a wireless camera. Background Art

[0002] Wireless cameras are increasingly used in real life due to their convenience of installation without the need for wiring. Whether it is indoor places such as enterprises and shopping malls, or public places such as streets and parks, or even ordinary residents' homes, wireless cameras may be installed actively or passively.

[0003] However, in practice, it has been found that wireless cameras, due to their highly hidden nature, are often used illegally by some people to infringe on the privacy of others. Therefore, how to detect wireless cameras has become a technical problem that the industry urgently needs to solve. Summary of the invention

[0004] The embodiments of the present application provide a detection method, apparatus, terminal device and storage medium for a wireless camera, which can help shorten the channel scanning time of the terminal device, thereby improving the detection efficiency of the wireless camera.

[0005] A first aspect of an embodiment of the present application provides a method for detecting a wireless camera, the method being applicable to a terminal device, and the method comprising:

[0006] Scan the channels to be scanned in sequence;

[0007] Capture the data packets transmitted by the current channel to be scanned within the first time period;

[0008] If the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to the data packet threshold, continue to capture data packets transmitted on the current channel to be scanned until a second time period is reached, perform feature analysis on the captured data packets within the second time period, and determine the detection result for the wireless camera according to the feature analysis result;

[0009] If the number of data packets captured within the first time period is less than the data packet threshold, the next channel to be scanned is scanned until all channels to be scanned are scanned.

[0010] A second aspect of an embodiment of the present application provides a detection device for a wireless camera, the detection device being installed on a terminal device, and the detection device comprising:

[0011] A channel scanning unit, used for sequentially scanning channels to be scanned;

[0012] The channel scanning unit is further used to capture data packets transmitted on the current channel to be scanned within a first time period, and if the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to a data packet threshold, continue to capture data packets transmitted on the current channel to be scanned until a second time period is reached;

[0013] A feature analysis unit, used to perform feature analysis on the captured data packets within the second time period, and determine a detection result for the wireless camera according to the feature analysis result;

[0014] The channel scanning unit is further configured to scan the next channel to be scanned if the number of data packets captured within the first time period is less than the data packet threshold, until all channels to be scanned are scanned.

[0015] A third aspect of the embodiments of the present application provides a terminal device, which may include:

[0016] A memory storing executable program code;

[0017] and a processor coupled to the memory;

[0018] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiment of the present application.

[0019] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method described in the first aspect of the embodiment of the present application is implemented.

[0020] A fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes any one of the methods disclosed in the first aspect of the embodiments of the present application.

[0021] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes any one of the methods disclosed in the first aspect of the embodiment of the present application.

[0022] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0023] In an embodiment of the present application, the scanning process of the channel to be scanned includes: capturing data packets transmitted by the current channel to be scanned within a first time length; if the number of data packets transmitted on the current channel to be scanned captured within the first time length is greater than or equal to the data packet threshold, continuing to capture data packets transmitted on the current channel to be scanned until a second time length is reached, and performing feature analysis on the captured data packets within the second time length, and determining the detection result for the wireless camera based on the feature analysis result; if the number of data packets captured within the first time length is less than the data packet threshold, scanning the next channel to be scanned until all channels to be scanned are scanned.

[0024] By implementing this method, when the terminal device performs channel scanning, if the data packet transmitted on the currently scanned channel to be scanned within the first time period is less than the data packet threshold, the scanning of the channel to be scanned is terminated, and the next channel to be scanned is scanned instead. This channel scanning method does not require the terminal device to perform a long-term scan on each channel to be scanned during the process of detecting wireless cameras, which is conducive to shortening the channel scanning time of the terminal device, thereby improving the detection efficiency of wireless cameras. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.

[0026] Figure 1A It is a scene schematic diagram of a detection method of a wireless camera disclosed in an embodiment of the present application;

[0027] Figure 1B It is a flow chart of a detection method of a wireless camera disclosed in an embodiment of the present application;

[0028] Figure 2 It is a flow chart of another wireless camera detection method disclosed in an embodiment of the present application;

[0029] Figure 3 It is a structural block diagram of a detection device for a wireless camera disclosed in an embodiment of the present application;

[0030] Figure 4 It is a structural block diagram of a terminal device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application provide a detection method, apparatus, terminal device and storage medium for a wireless camera, which are conducive to shortening the channel scanning time of the terminal device, thereby improving the detection efficiency of the wireless camera.

[0032] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.

[0033] It can be understood that the terminal devices involved in the embodiments of the present application may include general handheld screen electronic terminal devices, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (PDA), portable multimedia players (Personal Media Player, PMP) devices, laptop computers, notebooks (Note Pad), wireless broadband (Wireless Broadband, Wibro) terminals, tablet computers (Personal Computer, PC), smart PCs, sales terminals (Point of Sales, POS) and car computers, etc.

[0034] Terminal devices may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: computing function, positioning function, and alarm function. They can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the feet (such as shoes, socks, or other products worn on the legs), Glass supported by the head (such as glasses, helmets, headbands, etc.), and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.

[0035] It should be noted that the detection device of the wireless camera disclosed in the embodiment of the present application can be installed on the above-mentioned terminal device. The execution subject of the detection method of the wireless camera disclosed in the embodiment of the present application can be a terminal device or a detection device, and the embodiment of the present application does not limit it. The following embodiments are mainly described with the terminal device as the execution subject.

[0036] See also Figure 1A , Figure 1A Schematic diagram of a scene of a wireless camera detection method disclosed in an embodiment of the present application. Figure 1AThe scene diagram shown may include a terminal device 10, which may be a smart phone. The specific method is as follows: when the terminal device 10 sequentially scans the channels to be scanned, if the data packet transmitted on the currently scanned channel to be scanned within the first time period is less than the data packet threshold, the scanning of the channel to be scanned is terminated, and the next channel to be scanned is scanned instead. It can be seen that this channel scanning method does not require the terminal device 10 to perform a long-term scan on each channel to be scanned during the process of detecting the wireless camera, which is conducive to shortening the channel scanning time of the terminal device 10 and improving the detection efficiency of the wireless camera.

[0037] See also Figure 1B , Figure 1B FIG. 1 is a flow chart of a detection method for a wireless camera disclosed in an embodiment of the present application. Figure 1B The detection method of the wireless camera shown may include the following steps:

[0038] 101. Scan the channels to be scanned in sequence.

[0039] In some embodiments, a wireless network channel list may be stored in the terminal device, and the wireless network channel list may include at least one channel to be scanned. Optionally, scanning the channels to be scanned in sequence may include: scanning the channels to be scanned in the wireless network channel list in sequence.

[0040] In some embodiments, the wireless network channel list may include all or part of the wireless network channels in the 2.4G band and the 5G band in the Wi-Fi wireless network, which is not limited in the embodiments of the present application. For example, the wireless network channels in the 2.4G band may include 2.412G, 2.417G, 2.422G, 2.427G, 2.432G, 2.437G, 2.442G, 2.447G, 2.452G, 2.457G, 2.462G, 2.467G, 2.472G, etc.; the wireless network channels in the 5G band may include 5.180G, 5.200G, 5.220G, 5.240G, 5.260G, 5.280G, 5.300G, 5.320G, 5.745G, 5.765G, 5.785G, 5.805G, 5.825G, etc.

[0041] In some embodiments, when the wireless network channel list includes some wireless network channels of the 2.4G frequency band and the 5G frequency band, the channels to be scanned in the wireless network channel list can be wireless network channels with a usage frequency higher than a frequency threshold, and / or wireless network channels corresponding to wireless access points that can be connected around the terminal device, which is not limited in the embodiments of the present application.

[0042] In some embodiments, the wireless network channel list may be generated completely autonomously by the terminal device or in response to user operations, which is not limited in the embodiments of the present application.

[0043] It should be noted that, regarding the process of the terminal device sequentially scanning the channels to be scanned, please refer to the description of the following steps 102 to 105.

[0044] 102. Capture data packets transmitted by the current channel to be scanned within a first time period.

[0045] The first duration may be a shorter time period obtained from a large number of experiments. For example, the first duration may be 1 second, 2 seconds, etc. The current channel to be scanned may be any channel to be scanned except the last channel to be scanned in the wireless network channel list.

[0046] In some embodiments, the data packets transmitted on the current channel to be scanned can be captured through the Sniffer related interface of the operating system of the terminal device or a third-party tool, which is not limited in the embodiments of the present application. Among them, the third-party tool may include but is not limited to WirelessMon, Xirrus WiFi Inspector, etc.

[0047] 103. Determine whether the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to the data packet threshold. If so, execute step 104; if not, execute step 105.

[0048] The data packet threshold may be obtained through a large number of experiments. For example, the data packet threshold may be 5, 6, or 7.

[0049] 104. Continue to capture data packets transmitted on the current channel to be scanned until a second duration is reached, perform feature analysis on the captured data packets within the second duration, and determine a detection result for the wireless camera based on the feature analysis result.

[0050] The second duration includes the first duration. Exemplarily, the second duration may be 5s, 6s or 7s, etc. It is understandable that when the first duration is 1s and the second duration is 5s, first capture the data packets of the current scanning channel 1s before, if the number of data packets in the 1s is greater than or equal to the data packet threshold, then continue to capture the data packets of the current scanning channel within 4s. At this time, the data packets in the second duration include the data packets of the current scanning channel 1s before and the data packets of the current scanning channel within 4s.

[0051] In some embodiments, the terminal device can pre-set parameter conditions when the wireless camera sends a data packet, and the parameter conditions can be obtained by analyzing the characteristics of the data packets sent by the wireless camera multiple times. The parameter conditions may include at least one of the following: the number of data packets, the full packet rate, the ratio of uplink data packets to downlink data packets, and the minimum packet length of downlink data packets. Among them, the full packet rate refers to the ratio of full packets to total data packets, and the ratio of uplink data packets to downlink data packets refers to the ratio of the number of uplink data packets to the number of downlink data packets. The parameter conditions can be: the number of data packets is greater than 20, the full packet rate is between 0.1-0.95, the ratio of uplink data packets to downlink data packets is greater than 60%, and the minimum packet length range of downlink data packets is greater than 600B (bytes).

[0052] In some embodiments, performing feature analysis on the captured data packets within the second time period may include: performing feature analysis on the captured data packets within the second time period to obtain corresponding feature parameters, and determining whether the corresponding feature parameters meet the above parameter conditions, and if so, determining that the captured data packets within the second time period include data packets sent by the wireless camera, and vice versa, determining that the captured data packets within the second time period do not include data packets sent by the wireless camera. The corresponding feature parameters may include at least one of the following: the number of data packets, the full packet rate, the ratio of uplink data packets to downlink data packets, and the minimum packet length of downlink data packets.

[0053] The detection result for the wireless camera refers to the detection result for the wireless camera corresponding to the current channel to be scanned. The detection result for the wireless camera may include: there are data packets from the wireless camera in the data packets transmitted in the current channel to be scanned, that is, there are wireless cameras around the terminal device; or there are no data packets from the wireless camera in the data packets transmitted in the current channel to be scanned, that is, there are no wireless cameras around the terminal device.

[0054] 105. Scan the next channel to be scanned until all channels to be scanned are scanned.

[0055] The scanning process of the next channel to be scanned may refer to the scanning process of the current channel to be scanned, which will not be described in detail here.

[0056] It is understandable that the terminal device can scan each channel to be scanned in turn to capture data packets transmitted on each channel to be scanned, perform feature analysis on the captured data packets, and determine the detection results for the wireless camera corresponding to each channel to be scanned based on the feature analysis results.

[0057] By implementing the above method, when the terminal device sequentially scans the channels to be scanned, if the data packet transmitted on the currently scanned channel to be scanned within the first time period is less than the data packet threshold, the scanning of the channel to be scanned is terminated, and the next channel to be scanned is scanned instead. It can be seen that this channel scanning method does not require the terminal device to perform a long-term scan on each channel to be scanned during the process of detecting wireless cameras, which is conducive to shortening the channel scanning time of the terminal device and improving the detection efficiency of wireless cameras.

[0058] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another wireless camera detection method disclosed in an embodiment of the present application. Figure 2 The detection method of the wireless camera shown may include the following steps:

[0059] 201. Obtain a list of connectable wireless access points, where the list of connectable wireless access points includes access point information of each connectable wireless access point around a terminal device.

[0060] In some embodiments, the list of connectable wireless access points can be obtained through the native interface of the operating system of the terminal device or a third-party interface. For example, if the terminal device is an Android operating system, the list of connectable wireless access points can be obtained through the getScanResults interface of the Android system. It should be noted that by obtaining the list of connectable wireless access points through the native interface of the operating system of the terminal device, there is no need to install other applications or plug-ins on the terminal device, which is conducive to simplifying user operations.

[0061] 202. Determine a channel corresponding to each connectable wireless access point according to access point information of each connectable wireless access point.

[0062] In some embodiments, the access point information of the wireless access point may include information such as the physical address and name of the wireless access point. The name is used to identify the wireless access point and can be modified by the user. The physical address is usually set when the device leaves the factory and generally cannot be modified by the user.

[0063] In some embodiments, determining the channel corresponding to each connectable wireless access point based on access point information of each connectable wireless access point may include: extracting the physical address of each connectable wireless access point from the access point information of each connectable wireless access point, and then determining the channel corresponding to each connectable wireless access point based on the physical address of each connectable wireless access point. Optionally, the physical address of the wireless access point may include information such as the manufacturer and product model corresponding to the wireless access point.

[0064] In some embodiments, a channel query list may be stored on the terminal device. The terminal device may search for channels corresponding to each connectable wireless access point from the channel query list according to the physical address of each connectable wireless access point. The channel query list may record channels corresponding to various product models of each manufacturer among multiple manufacturers corresponding to the wireless access point. It should be noted that there is at least one channel corresponding to any product model of any manufacturer.

[0065] 203. Generate a list of wireless network channels to be scanned according to the channels corresponding to each connectable wireless access point.

[0066] In some embodiments, generating a list of wireless network channels to be scanned based on channels corresponding to each connectable wireless access point may include: arranging channels corresponding to each connectable wireless access point based on signal strength of each connectable wireless access point to generate a list of wireless network channels to be scanned.

[0067] In some embodiments, according to the signal strength of each connectable wireless access point, the channels corresponding to each connectable wireless access point are arranged to generate a list of wireless network channels to be scanned, which may include: determining at least one target wireless access point whose signal strength is greater than a strength threshold from each connectable wireless access point, and sorting the channels corresponding to each target wireless access point to generate a list of wireless network channels to be scanned. It should be noted that the channels to be scanned in the wireless network channel list are different, and the channels corresponding to different target wireless access points may overlap.

[0068] By implementing this method, the channels corresponding to wireless access points with smaller signal strengths can be eliminated, so that the terminal device can only scan the channels corresponding to wireless access points at a shorter distance, thereby facilitating improving the effectiveness of channel scanning.

[0069] 204. Scan the to-be-scanned channels included in the wireless network channel list in sequence.

[0070] 205. Capture data packets transmitted by the current channel to be scanned within the first time period.

[0071] In some embodiments, capturing data packets transmitted in the first time period on the current channel to be scanned may include: setting the wireless network card of the terminal device to a sniffing mode; and capturing data packets transmitted in the first time period on the current channel to be scanned by the wireless network card in the sniffing mode. The sniffing mode is a data receiving mode of the wireless network card, and the wireless network card in the sniffing mode can actively intercept data packets in various channels.

[0072] 206. Determine whether the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to the data packet threshold. If so, execute step 207; if not, execute step 208.

[0073] 207. Continue to capture data packets transmitted on the current channel to be scanned until a second duration is reached, perform feature analysis on the captured data packets within the second duration, and determine a detection result for the wireless camera based on the feature analysis result.

[0074] In some embodiments, feature analysis of the captured data packets within the second time period may include: obtaining the source physical address corresponding to each data packet from the packet header of each data packet within the captured second time period; dividing the data packets corresponding to the same source physical address into a data packet set to obtain at least one data packet set; feature analysis of each data packet set to obtain feature parameters corresponding to each data packet set; wherein the feature parameters include at least one of the following: the number of data packets corresponding to the data packet set, the full packet ratio, the ratio of uplink data packets to downlink data packets, and the minimum packet length of downlink data packets; if there is a target data packet set whose corresponding feature parameters meet the preset parameter conditions in the at least one data packet set, it is determined that the data packets in the target data packet set originate from the wireless camera. The source physical address refers to the physical address of the device that sends the data packet.

[0075] It can be understood that if the characteristic parameters corresponding to any data packet set include the number of data packets, the full packet ratio, the ratio of uplink data packets to downlink data packets, and the minimum packet length of downlink data packets, then when the number of data packets in the data packet set satisfies the above-mentioned number of data packets condition, the full packet ratio corresponding to the data packet set satisfies the above-mentioned full packet ratio condition, the ratio of uplink data packets to downlink data packets corresponding to the data packet set satisfies the above-mentioned ratio condition of uplink data packets to downlink data packets, and the minimum packet length in the downlink data packets corresponding to the data packet set satisfies the minimum packet length condition of the downlink data packets, the data packet set is determined to be the target data packet set.

[0076] In some embodiments, if there is a target data packet set whose corresponding characteristic parameters meet preset parameter conditions in the at least one data packet set, it is determined that the data packets in the target data packet set originate from a suspicious device; the device information of the suspicious device is obtained; if the suspicious device is judged to be a wireless camera based on the device information, it is determined that there are wireless cameras around the terminal device.

[0077] In some embodiments, the device information of the suspicious device may include a device name and / or a physical address, wherein the device name is used to identify the suspicious device and is usually modifiable by the user, and the physical address is usually set when the device leaves the factory and is generally not modifiable by the user.

[0078] When the device information is a physical address, the device information of the suspicious device may be a source physical address corresponding to the target data packet set. The physical address of the suspicious device may include information such as the manufacturer, product type, and product model corresponding to the suspicious device. Based on the physical address of the suspicious device, it is possible to identify whether the suspicious device is a wireless camera.

[0079] In some embodiments, judging whether the suspicious device is a wireless camera based on the device information may include but is not limited to the following methods:

[0080] The device information is sent to the server, so that the server determines whether the suspicious device is a wireless camera according to the device information, and sends the determination result to the terminal device, and receives the determination result.

[0081] or,

[0082] The terminal device autonomously identifies the device information to determine whether the suspicious device is a wireless camera.

[0083] In some embodiments, when the detection result of the wireless camera indicates that there is a wireless camera around the terminal device, a prompt message is output. Optionally, the prompt message may be output in a manner including but not limited to text, voice or vibration.

[0084] 208. Scan the next channel to be scanned until all channels to be scanned are scanned.

[0085] By implementing the above method, on the one hand, in the process of the terminal device scanning the channels to be scanned in sequence, if the data packet transmitted on the currently scanned channel to be scanned within the first time period is less than the data packet threshold, the scanning of the channel to be scanned is terminated, and the next channel to be scanned is scanned instead. It can be seen that this channel scanning method does not require the terminal device to scan each channel to be scanned for a long time during the process of detecting the wireless camera, which is conducive to shortening the channel scanning time of the terminal device, thereby improving the detection efficiency of the wireless camera. On the other hand, based on the access point information of each connectable wireless access point around the terminal device, a wireless network channel list is generated, and the channels to be scanned included in the wireless network channel list are scanned, which can avoid scanning invalid channels, which is conducive to further shortening the channel scanning time, thereby further improving the detection efficiency of the wireless camera.

[0086] See also Figure 3 , Figure 3 is a structural block diagram of a detection device for a wireless camera disclosed in an embodiment of the present application. Figure 3 The detection device shown may include a channel scanning unit 301 and a feature analysis unit 302;

[0087] The channel scanning unit 301 is used to sequentially scan the channels to be scanned;

[0088] The channel scanning unit is further used to capture data packets transmitted on the current channel to be scanned within a first time period, and if the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to the data packet threshold, continue to capture data packets transmitted on the current channel to be scanned until a second time period is reached;

[0089] A feature analysis unit 302 is used to perform feature analysis on the captured data packets within the second time period, and determine the detection result for the wireless camera according to the feature analysis result;

[0090] The channel scanning unit 301 is further configured to scan the next channel to be scanned if the number of data packets captured within the first time period is less than the data packet threshold, until all channels to be scanned are scanned.

[0091] In some embodiments, the channel scanning unit 301 is further used to scan the current channel to be scanned within a first time period to obtain a list of connectable wireless access points before capturing data packets transmitted on the current channel to be scanned, the list of connectable wireless access points including access point information of each connectable wireless access point around the terminal device; determine the channel corresponding to each connectable wireless access point based on the access point information of each connectable wireless access point; and generate a list of wireless network channels to be scanned based on the channels corresponding to each connectable wireless access point.

[0092] Furthermore, the channel scanning unit 301 may be used to sequentially scan the channels to be scanned, which may specifically include: the channel scanning unit 301 may be used to sequentially scan the channels to be scanned included in the wireless network channel list.

[0093] In some embodiments, the channel scanning unit 301 is used to generate a list of wireless network channels to be scanned according to the channels corresponding to each connectable wireless access point, which may specifically include: the channel scanning unit 301 is used to arrange the channels corresponding to each connectable wireless access point according to the signal strength of each connectable wireless access point to generate a list of wireless network channels to be scanned.

[0094] In some embodiments, the channel scanning unit 301 is used to capture data packets transmitted on the current channel to be scanned within a first time period, which may specifically include: the channel scanning unit 301 is used to set the wireless network card of the terminal device to a sniffing mode; through the wireless network card in the sniffing mode, capture data packets transmitted on the current channel to be scanned within a first time period.

[0095] In some embodiments, the feature analysis unit 302 is used to perform feature analysis on the captured data packets within the second time period, which may specifically include: the feature analysis unit 302 is used to obtain the source physical address corresponding to each data packet from the packet header of the captured data packet within the second time period; the data packets corresponding to the same source physical address are divided into a data packet set to obtain at least one data packet set; feature analysis is performed on each data packet set to obtain feature parameters corresponding to each data packet set; wherein the feature parameters include at least one of the following: the number of data packets corresponding to the data packet set, the full packet ratio, the ratio of uplink data packets to downlink data packets, and the minimum packet length of downlink data packets; if in at least one data packet set, there is a target data packet set whose corresponding feature parameters meet the preset parameter conditions, it is determined that the data packets in the target data packet set originate from the wireless camera.

[0096] In some embodiments, the feature analysis unit 302 is also used to determine that the data packets in the target data packet set originate from a suspicious device when there is a target data packet set whose corresponding feature parameters satisfy preset parameter conditions in at least one data packet set; obtain device information of the suspicious device; and if the suspicious device is judged to be a wireless camera based on the device information, determine that there are wireless cameras around the terminal device.

[0097] In some embodiments, the feature analysis unit 302 is further configured to output a prompt message when the detection result indicates that there is a wireless camera around the terminal device.

[0098] See also Figure 4 , Figure 4 is a structural block diagram of a terminal device disclosed in an embodiment of the present application. Figure 4 The terminal device shown may include: a processor 401 and a memory 402 coupled to the processor 401 , wherein the memory 402 may store one or more computer programs.

[0099] The processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts of the entire terminal device, and executes various functions of the terminal device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 402, and calling data stored in the memory 402. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and may be implemented separately through a communication chip.

[0100] The memory 402 may include a random access memory (RAM) or a read-only memory (ROM). The memory 402 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the terminal device during use, etc.

[0101] In the embodiment of the present application, the processor 401 also has the following functions:

[0102] Scan the channels to be scanned in sequence;

[0103] Capture the data packets transmitted by the current channel to be scanned within the first time period;

[0104] If the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to the data packet threshold, continue to capture data packets transmitted on the current channel to be scanned until the second time period is reached, perform feature analysis on the captured data packets within the second time period, and determine the detection result for the wireless camera based on the feature analysis result;

[0105] If the number of data packets captured within the first time period is less than the data packet threshold, the next channel to be scanned is scanned until all channels to be scanned are scanned.

[0106] In the embodiment of the present application, the processor 401 also has the following functions:

[0107] Obtain a list of connectable wireless access points, the list of connectable wireless access points including access point information of each connectable wireless access point around the terminal device;

[0108] Determine the channel corresponding to each connectable wireless access point according to the access point information of each connectable wireless access point;

[0109] Generate a list of wireless network channels to be scanned according to the channels corresponding to each connectable wireless access point;

[0110] Scan the channels to be scanned included in the wireless network channel list in sequence.

[0111] In the embodiment of the present application, the processor 401 also has the following functions:

[0112] According to the signal strength of each connectable wireless access point, the channels corresponding to each connectable wireless access point are arranged to generate a wireless network channel list to be scanned.

[0113] In the embodiment of the present application, the processor 401 also has the following functions:

[0114] The wireless network card of the terminal device is set to the sniffing mode; through the wireless network card in the sniffing mode, the data packets transmitted in the current channel to be scanned within the first time period are captured.

[0115] In the embodiment of the present application, the processor 401 also has the following functions:

[0116] The source physical address corresponding to each data packet is obtained from the packet header of the captured data packet within the second time length respectively; the data packets corresponding to the same source physical address are divided into a data packet set to obtain at least one data packet set; characteristic analysis is performed on each data packet set to obtain characteristic parameters corresponding to each data packet set; wherein the characteristic parameters include at least one of the following: the number of data packets corresponding to the data packet set, the full packet ratio, the ratio of uplink data packets to downlink data packets, and the minimum packet length of downlink data packets; if in at least one data packet set, there is a target data packet set whose corresponding characteristic parameters meet the preset parameter conditions, it is determined that the data packets in the target data packet set originate from the wireless camera.

[0117] In the embodiment of the present application, the processor 401 also has the following functions:

[0118] When there is a target data packet set whose corresponding characteristic parameters meet the preset parameter conditions in at least one data packet set, determining that the data packets in the target data packet set originate from a suspicious device;

[0119] Obtain device information of suspicious devices;

[0120] If the suspicious device is determined to be a wireless camera based on the device information, it is determined that there are wireless cameras around the terminal device.

[0121] In the embodiment of the present application, the processor 401 also has the following functions:

[0122] If the detection result indicates that there are wireless cameras around the terminal device, a prompt message is output.

[0123] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor implements part or all of the steps executed by the terminal device in the above embodiment.

[0124] An embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute part or all of the steps executed by the terminal device in the above embodiment.

[0125] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps executed by the terminal device in the above embodiment.

[0126] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0127] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk Solid State Disk (SSD)), etc.

[0128] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0133] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting a wireless camera, characterized in that: The method is applicable to a terminal device, and the method comprises: Scan the channels to be scanned in sequence; Capture the data packets transmitted by the current channel to be scanned within the first time period; If the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to the data packet threshold, continue to capture data packets transmitted on the current channel to be scanned until a second time period is reached, perform feature analysis on the captured data packets within the second time period, and determine the detection result for the wireless camera according to the feature analysis result; If the number of data packets captured within the first time period is less than the data packet threshold, the next channel to be scanned is scanned until all channels to be scanned are scanned.

2. The method according to claim 1, characterized in that Before sequentially scanning the channels to be scanned, the method further includes: Acquire a list of connectable wireless access points, wherein the list of connectable wireless access points includes access point information of each connectable wireless access point around the terminal device; Determining, according to the access point information of each of the connectable wireless access points, a channel corresponding to each of the connectable wireless access points; Generate a list of wireless network channels to be scanned according to the channels corresponding to the connectable wireless access points; The sequentially scanning the channels to be scanned includes: sequentially scanning the channels to be scanned included in the wireless network channel list.

3. The method according to claim 2, characterized in that The step of generating a list of wireless network channels to be scanned according to the channels corresponding to the connectable wireless access points includes: According to the signal strength of each of the connectable wireless access points, the channels corresponding to each of the connectable wireless access points are arranged to generate a list of wireless network channels to be scanned.

4. The method according to any one of claims 1 to 3, characterized in that: The capturing of data packets transmitted by the current channel to be scanned within the first time period includes: Setting the wireless network card of the terminal device to a sniffing mode; The wireless network card in the sniffing mode is used to capture data packets transmitted on the current channel to be scanned within the first time period.

5. The method according to any one of claims 1 to 3, characterized in that: The performing feature analysis on the captured data packets within the second time period includes: Obtaining a source physical address corresponding to each data packet from the packet headers of the captured data packets within the second time period; Grouping data packets corresponding to the same source physical address into a data packet set to obtain at least one data packet set; Performing feature analysis on each data packet set to obtain feature parameters corresponding to each data packet set; wherein the feature parameters include at least one of the following: the number of data packets corresponding to the data packet set, the full packet ratio, the ratio of uplink data packets to downlink data packets, and the minimum packet length of the downlink data packets; If, in the at least one data packet set, there exists a target data packet set whose corresponding characteristic parameters satisfy the preset parameter conditions, it is determined that the data packets in the target data packet set originate from the wireless camera.

6. The method according to claim 5, characterized in that The method further comprises: If there is a target data packet set whose corresponding characteristic parameters meet the preset parameter conditions in the at least one data packet set, it is determined that the data packets in the target data packet set are from a suspicious device; Obtaining device information of the suspicious device; If it is determined according to the device information that the suspicious device is a wireless camera, it is determined that the wireless camera exists around the terminal device.

7. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If the detection result indicates that the wireless camera exists around the terminal device, a prompt message is output.

8. A detection device for a wireless camera, characterized in that: The detection device is installed on the terminal device, and the detection device includes: A channel scanning unit, used for sequentially scanning channels to be scanned; The channel scanning unit is further used to capture data packets transmitted on the current channel to be scanned within a first time period, and if the number of data packets transmitted on the current channel to be scanned captured within the first time period is greater than or equal to a data packet threshold, continue to capture data packets transmitted on the current channel to be scanned until a second time period is reached; A feature analysis unit, used to perform feature analysis on the captured data packets within the second time period, and determine a detection result for the wireless camera according to the feature analysis result; The channel scanning unit is further configured to scan the next channel to be scanned if the number of data packets captured within the first time period is less than the data packet threshold, until all channels to be scanned are scanned.

9. A terminal device, characterized in that: include A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the processor is caused to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Detection method, electronic device and computer readable storage medium

    CN113556533A

  • Wireless camera detecting and locating method based on network traffic

    WO2019222947A1