Device identification method and related device

By analyzing the transmission path of the data packet, determining whether the device is an image acquisition device, the problem of connecting Wi-Fi in the prior art is solved, and efficient and accurate device identification is achieved.

CN114567770BActive Publication Date: 2024-12-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210159153.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-12-06
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

In the prior art, the camera device detects through a mobile phone needs to be connected to the same Wi-Fi network as the camera device, which has limitations and has low recognition accuracy, which affects the user experience.

Method used

By scanning the communication channel of the surrounding environment, obtaining and analyzing data packets, and determining whether the source address device in the data transmission path is an image acquisition device, without connecting to the Wi-Fi of the camera device, thus realizing device identification.

Benefits of technology

Improves the accuracy and efficiency of device identification, and users can detect camera devices in the surrounding environment without connecting to Wi-Fi, simplifying the operation process and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114567770B_ABST
    Figure CN114567770B_ABST
Patent Text Reader

Abstract

The present application provides a device identification method and related apparatus, including: obtaining at least one data packet transmitted by a communication channel, at least one data packet including an uplink data packet; if at least one data packet includes an uplink data packet, and the number of uplink data packets is greater than a preset number, then dividing the at least one data packet into at least one data packet group; performing device category detection according to each data packet group in at least one data packet group to obtain a target detection result, and the target detection result is used to characterize whether the source address device in the data transmission path corresponding to the currently processed data packet group is an image acquisition device. In this way, the user can complete the identification of the camera device in the surrounding environment without connecting to the Wi‑Fi to which the camera is connected, which optimizes the identification scheme and improves the identification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of device identification, and specifically relates to a device identification method and related apparatus. Background Art

[0002] Currently, detecting camera devices through mobile phones requires that the mobile phone and camera devices be connected to the same Wi-Fi network, which is demanding and has limitations, and has low recognition accuracy, affecting user experience. Summary of the invention

[0003] The present application provides a device identification method and related devices, in order to optimize the identification scheme and improve the identification efficiency.

[0004] In a first aspect, an embodiment of the present application provides a device identification method, the method comprising:

[0005] Acquire at least one data packet transmitted by a communication channel, wherein the at least one data packet comprises an uplink data packet;

[0006] If the at least one data packet includes the uplink data packet, and the number of the uplink data packets is greater than a preset number, the at least one data packet is divided into at least one data packet group, the data transmission paths corresponding to any two data packets in the same data packet group are the same, and the data transmission paths corresponding to different data packet groups are different from each other;

[0007] Device category detection is performed on each data packet group in the at least one data packet group to obtain a target detection result, wherein the target detection result is used to indicate whether a source address device in a data transmission path corresponding to a currently processed data packet group is an image acquisition device.

[0008] In a second aspect, an embodiment of the present application provides a device identification method, the method comprising:

[0009] Obtaining image acquisition device detection instructions according to the user's click operation;

[0010] In response to the image acquisition device detection instruction, display a first prompt screen, where the first prompt screen is used to prompt that the electronic device is in a detection state;

[0011] When the target image acquisition device list is obtained, a second prompt screen is displayed, wherein the second prompt screen includes the target image acquisition device list.

[0012] In a third aspect, an embodiment of the present application provides a device identification apparatus, the apparatus comprising:

[0013] An acquisition unit is used to acquire at least one data packet transmitted through a communication channel, wherein the at least one data packet includes an uplink data packet; a classification unit is used to classify the at least one data packet into at least one data packet group if the at least one data packet includes the uplink data packet and the number of the uplink data packets is greater than a preset number, wherein the data transmission paths corresponding to any two data packets in the same data packet group are the same, and the data transmission paths corresponding to different data packet groups are different; a detection unit is used to perform device category detection on each data packet group in the at least one data packet group to obtain a target detection result, wherein the target detection result is used to characterize whether a source address device in a data transmission path corresponding to a currently processed data packet group is an image acquisition device.

[0014] In a fourth aspect, an embodiment of the present application provides a device identification apparatus, the apparatus comprising:

[0015] An acquisition unit is used to acquire an image acquisition device detection instruction according to a user's click operation; a response unit is used to respond to the image acquisition device detection instruction and display a first prompt screen, wherein the first prompt screen is used to prompt that the electronic device is in a detection state; a display unit is used to display a second prompt screen when a target image acquisition device list is obtained, wherein the second prompt screen includes the target image acquisition device list.

[0016] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect or the second aspect of the embodiment of the present application.

[0017] In a sixth aspect, an embodiment of the present application provides a computer storage medium for storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect or the second aspect of the embodiment.

[0018] In the seventh aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute part or all of the steps described in the first aspect or the second aspect of the embodiment of the present application.

[0019] It can be seen that in the embodiment of the present application, the electronic device first obtains at least one data packet transmitted by the communication channel, and the at least one data packet includes an uplink data packet. If the at least one data packet includes the uplink data packet, and the number of the uplink data packets is greater than the preset number, the at least one data packet is divided into at least one data packet group, and finally the device category detection is performed according to each data packet group in the at least one data packet group to obtain the target detection result, and the target detection result is used to characterize whether the source address device in the data transmission path corresponding to the currently processed data packet group is an image acquisition device. In this way, the user can complete the identification of the camera device in the surrounding environment without connecting to the Wi-Fi to which the camera is connected, which optimizes the identification scheme and improves the identification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1a is a structural block diagram of an electronic device provided in an embodiment of the present application;

[0022] Figure 1b It is a flowchart of a device identification method provided in an embodiment of the present application;

[0023] Figure 2 It is a flowchart of a device identification method provided in an embodiment of the present application;

[0024] Figure 3 This is an interactive schematic diagram of a camera detection function provided by an embodiment of the present application;

[0025] Figure 4 is another interactive schematic diagram of searching for a camera detection function provided in an embodiment of the present application;

[0026] Figure 5 is another interactive schematic diagram of searching for a camera detection function provided in an embodiment of the present application;

[0027] Figure 6 is a schematic diagram of a first prompt screen provided in an embodiment of the present application;

[0028] Figure 7 is a schematic diagram of a second prompt screen provided in an embodiment of the present application;

[0029] Figure 8aThis is a block diagram of the functional units of a device identification apparatus provided in an embodiment of the present application;

[0030] Figure 8b It is a block diagram of the functional units of another device identification device provided in an embodiment of the present application;

[0031] Figure 9a This is a block diagram of the functional units of a device identification apparatus provided in an embodiment of the present application;

[0032] Figure 9b It is a block diagram of the functional units of another device identification apparatus provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0036] The following is an introduction to the relevant terms involved in this application.

[0037] Wireless-Fidelity (Wi-Fi): is a technology that allows electronic devices to connect to a wireless local area network (WLAN), usually using 2.4G or 5G radio frequency bands. Connections to wireless LANs are usually password-protected.

[0038] Maximum Transmission Unit (MTU): refers to the maximum data packet size that can be passed on a certain layer of a communication protocol.

[0039] Source Address (SA): The IP address of the source device that sends the data packet;

[0040] Destination Address (DA): The IP address of the device that receives the data packet sent from the source address device.

[0041] Uplink data packet: A data packet that is uploaded from the source address device to the destination address.

[0042] Downlink data packet: The data packet downloaded by the source address device from the destination address.

[0043] Currently, detecting camera devices through mobile phones requires that the mobile phone and camera devices be connected to the same Wi-Fi network, and then initiate a LAN scan for seconds, using the specific port and specific protocol content features of known specific cameras to identify whether it is a camera. In actual application scenarios, most of the time, users do not know the Wi-Fi password and cannot access all surrounding Wi-Fi networks. Therefore, it has limitations and the recognition accuracy is low, affecting the user experience.

[0044] To solve the above problems, the embodiments of the present application provide a device identification method and related apparatus, which are applied to electronic devices used by users. By scanning the channels with data transmission in the surrounding environment and obtaining the data packets transmitted therein, the data packets are analyzed for characteristics to determine whether the corresponding device is a camera device, so that users can complete the identification of camera devices in the surrounding environment without connecting to the Wi-Fi connected to the camera. The present application can detect whether there are hidden Wi-Fi cameras in hotel rooms, including but not limited to the application scenarios mentioned above.

[0045] See also Figure 1a , Figure 1a is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 1a As shown, the electronic device 10 may include one or more of the following components: a processor 11, a memory 12 coupled to the processor 11, wherein the memory 12 may store one or more computer programs, and the one or more computer programs may be configured to implement the method described in the following embodiment when executed by one or more processors 11. The electronic device may be a mobile phone terminal, a tablet computer, a laptop computer, and a wearable smart device.

[0046] The processor 11 may include one or more processing cores. The processor 11 uses various interfaces and lines to connect various parts of the entire electronic device 10, and executes various functions and processes data of the electronic device 10 by running or executing instructions, programs, code sets or instruction sets stored in the memory 12, and calling data stored in the memory 12. Optionally, the processor 11 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 11 can integrate one or a combination of a central processing unit (CPU), a 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 11, but may be implemented separately through a communication chip.

[0047] The memory 12 may include a random access memory (RAM) or a read-only memory (ROM). The memory 12 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 12 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 electronic device 10 during use, etc.

[0048] It is understandable that the electronic device 10 may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a Wi-Fi module, a speaker, a Bluetooth module, a sensor, etc., which are not limited here.

[0049] A device identification method provided by an embodiment of the present application is introduced below.

[0050] See also Figure 1b , Figure 1b is a flow chart of a device identification method provided in an embodiment of the present application, wherein the device identification method is applied to Figure 1a The electronic device 10, as Figure 1bAs shown, the device identification method includes:

[0051] Step 101: Acquire at least one data packet transmitted by a communication channel, wherein the at least one data packet includes an uplink data packet.

[0052] Among them, when the electronic device scans the communication channel, it can choose to obtain data packets within a preset time, parse the data packet header information of the obtained data packets, obtain the source address and destination address corresponding to each data packet, and divide the obtained data packets into uplink data packets and downlink data packets according to the source address and destination address, and use the source address of the data packet as the key to record the number of uplink data packets.

[0053] Step 102: If the at least one data packet includes the uplink data packet, and the number of the uplink data packets is greater than a preset number, the at least one data packet is divided into at least one data packet group.

[0054] The data transmission paths corresponding to any two data packets in the same data packet group are the same, and the data transmission paths corresponding to different data packet groups are different. Exemplarily, the electronic device can parse the data packet header information of the at least one data packet to obtain the source address, destination address and MAC address of the wireless access point corresponding to each data packet, determine the data transmission path according to the above three addresses, and group the data packets according to the data transmission path to obtain at least one data packet group.

[0055] Optionally, if the at least one data packet only includes the downlink data packet, the device connected to the channel does not include an image acquisition device, and the scanning operation for the channel is skipped, and the scanning and processing of the next channel is directly performed.

[0056] Step 103: Perform device category detection on each data packet group in the at least one data packet group to obtain a target detection result.

[0057] Among them, the target detection result is used to characterize whether the source address device in the data transmission path corresponding to the currently processed data packet group is an image acquisition device. It can be seen that in this example, the electronic device first obtains at least one data packet transmitted by the communication channel, and through the conditional judgment of at least one data packet of the channel, it first quickly excludes the transmission of only downlink data packets, or the transmission of uplink data packets with a small amount of data. These two categories obviously do not belong to the application scenarios of image acquisition devices transmitting image data. After further classifying at least one data packet according to the data transmission path, the data packets of each data transmission path are analyzed to determine whether the device type of the source address device in the communication channel is an image acquisition device. In this way, the data packet is analyzed to complete the detection of whether the device type of the source address device in the communication channel is an image acquisition device.

[0058] Compared with the prior art solution of only analyzing the Mac address of the data packet to realize device type identification, the present application adopts a gradient detection strategy, which can quickly identify the scenes of non-camera devices to improve the efficiency of the algorithm; at the same time, through comprehensive analysis of the data transmission path, the comprehensiveness and accuracy of the algorithm detection can be improved. Due to the analysis of the data transmission path dimension, it can include not only the source address and destination address in the Mac address, but also the Mac address of the wireless access point (Wireless Access Point, AP) used to transfer data in the middle. Therefore, the number of considered features is more than that of the solution that only provides the Mac address of the data packet, so it can improve the comprehensiveness and accuracy of the algorithm detection.

[0059] In one possible example, performing device category detection based on each data packet group in the at least one data packet group to obtain a target detection result includes: determining at least one type of characteristic parameter based on the data packet group currently being processed; analyzing each type of characteristic parameter in the at least one type of characteristic parameter to obtain at least one reference detection result corresponding one-to-one to the at least one type of characteristic parameter; and determining the target detection result based on the at least one reference detection result.

[0060] Among them, the characteristic parameters are used to characterize the data characteristics of the data packets in the data packet group, and the reference detection results are used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device from the dimension of the characteristic parameters corresponding to itself.

[0061] It can be seen that in this example, after the electronic device divides the data packets into data packet groups through the data transmission path, since a single data packet group corresponds to a single data transmission path and thus corresponds to a single source address device, the single source address device corresponding to the single data packet group can be determined to be a camera device by analyzing the characteristic parameters corresponding to the data packets in the data packet group, thereby improving the accuracy of recognition.

[0062] In one possible example, the at least one type of characteristic parameter includes at least one of the following: ① number of data packets, ② full packet ratio, ③ ratio of the number of uplink data packets to the number of downlink data packets, ④ maximum packet length, ⑤ standard deviation coefficient of maximum packet length ratio and the time each uplink data packet needs to monopolize the channel, and ⑥ downlink packet length.

[0063] It should be noted that in order to reduce bandwidth usage, reduce network congestion and improve video fluency, Wi-Fi network cameras will transmit video streams in a differential transmission mode; at the same time, considering the irreversible picture loss caused by frame loss, the differential algorithm will retransmit the current latest complete picture every once in a while, and then repeat the previous differential process. The full-screen frame data volume is large, and the amount of data that can be sent at a single time at the network link layer is upper bounded (MTU), so it is bound to be packetized, resulting in an increase in the amount of full packets for a period of time. And because the ratio of full-screen frames to differential frames is regular, the change in the number of full packets is also regular. The full packet ratio refers to the ratio of the number of data packets with a maximum data volume (MTU) to the total number of data packets per frame number, and the maximum packet length ratio refers to the ratio of the number of data packets with a maximum data volume (MTU) to the total number of data packets within a preset time.

[0064] In one possible example, the at least one type of characteristic parameter includes the number of data packets; the at least one reference detection result includes a first reference detection result corresponding to the number of data packets, and the first reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the number of data packets.

[0065] Among them, the electronic device can obtain the number of data packets by parsing the data packet header information of the data packets in the currently processed data packet group. If the number of data packets is greater than the reference number of data packets, it means that the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the number of data packets. Among them, the reference number of data packets refers to the number of data packets corresponding to the pictures captured by the image acquisition device within a preset time in the image acquisition application scenario. If the number of data packets corresponding to the captured picture is less than the reference number, there may be problems such as freeze and blur, and the purpose of image acquisition cannot be achieved. Exemplarily, the reference number of data packets can be 20, that is, when the number of data packets in the currently processed data packet group is greater than 20, it can be determined that the data packet group meets the data characteristics corresponding to the camera in terms of the number of data packets.

[0066] It can be seen that in this example, the electronic device determines whether the data packet group meets the data characteristics corresponding to the image acquisition device by analyzing the number of data packets in the data packet group, and further determines whether the source address device corresponding to the data packet group is an image acquisition device.

[0067] In one possible example, the at least one type of characteristic parameter includes the full packet ratio; the at least one reference detection result includes a second reference detection result corresponding to the full packet ratio, and the second reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the full packet ratio.

[0068] Among them, the electronic device can parse the data packet header information of the data packets in the currently processed data packet group to obtain the number of data packets with the maximum data volume in the currently processed data packet group, and determine the full packet ratio according to the number of data packets with the maximum data volume in the currently processed data packet group and the total number of data packets in the currently processed data packet group. If the full packet ratio is in the full packet ratio reference value interval, it means that the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the full packet ratio. Among them, in the application scenario of image acquisition, in order to ensure the continuity and smoothness of the picture, the data volume corresponding to the picture is usually larger than the MTU, so there will be a full packet situation, and different pictures have different data volumes and the corresponding number of full packets is also different. Therefore, the full packet ratio of the image acquisition device has an interval value, that is, the full packet ratio reference value interval. When the full packet ratio of the data packet group corresponding to a certain device is within the reference value interval, it can be determined that the data packet group meets the data characteristics corresponding to the image acquisition device in terms of the full packet ratio. Exemplarily, the reference value interval of the full packet ratio may be [0.1, 0.95], that is, when the full packet ratio of the currently processed data packet group is in [0.1, 0.95], it can be determined that the data packet group meets the data characteristics corresponding to the camera in terms of the full packet ratio.

[0069] It can be seen that in this example, the electronic device determines whether the full packet ratio in the data packet group meets the data characteristics corresponding to the image acquisition device, and further determines whether the source address device corresponding to the data packet group is the image acquisition device.

[0070] In one possible example, the at least one type of characteristic parameter includes the ratio of the number of uplink data packets to the number of downlink data packets; the at least one reference detection result includes a third reference detection result corresponding to the ratio of the number of uplink data packets to the number of downlink data packets, and the third reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the ratio of the number of uplink data packets to the number of downlink data packets.

[0071] Wherein, the electronic device can obtain the number of uplink data packets in the currently processed data packet group by parsing the data packet header information of the data packets in the currently processed data packet group, and determine the ratio of the number of uplink data packets to the number of downlink data packets in the currently processed data packet group according to the number of uplink data packets in the currently processed data packet group and the total number of data packets in the currently processed data packet group. If the ratio of the number of uplink data packets to the number of downlink data packets is greater than the reference ratio, it means that the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the ratio of the number of uplink data packets to the number of downlink data packets. Wherein, the number of downlink data packets can be obtained by taking the difference between the total number of data packets and the number of uplink data packets. Since the image acquisition device is mainly used to upload data, the number of uplink data packets should be greater than the number of downlink data packets, and from the experimental analysis results, under normal circumstances, the ratio of the number of uplink data packets to the number of downlink data packets is generally greater than 0.6. Exemplarily, the reference ratio can be 0.6, that is, when the ratio of the number of uplink data packets to the number of downlink data packets in the currently processed data packet group is greater than 0.6, it can be determined that the data packet group meets the data characteristics corresponding to the camera in terms of the ratio of the number of uplink data packets to the number of downlink data packets.

[0072] It can be seen that in this example, the electronic device determines whether it meets the data characteristics corresponding to the image acquisition device by analyzing the ratio of the number of uplink data packets to the number of downlink data packets in the data packet group, and further determines whether the source address device corresponding to the data packet group is an image acquisition device.

[0073] In one possible example, the at least one type of characteristic parameter includes the maximum packet length; the at least one reference detection result includes a fourth reference detection result corresponding to the maximum packet length, and the fourth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length.

[0074] Among them, the electronic device can parse the data packet header information of the data packets in the currently processed data packet group to obtain the data packet length corresponding to the data packet with the largest data packet length in the data packet group, that is, the maximum packet length. If the maximum packet length is greater than the reference packet length, it means that the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length. Exemplarily, the reference packet length can be 600 bytes, that is, when the maximum packet length in the currently processed data packet group is greater than 600 bytes, it can be determined that the data packet group meets the data characteristics corresponding to the camera in terms of the maximum packet length.

[0075] It can be seen that in this example, the electronic device determines whether the maximum packet length in the data packet group meets the data characteristics corresponding to the image acquisition device, and further determines whether the source address device corresponding to the data packet group is an image acquisition device.

[0076] In one possible example, the at least one type of characteristic parameters includes the maximum packet length ratio and the standard deviation coefficient of the time that each uplink data packet needs to exclusively occupy the channel; the at least one reference detection result includes a fifth reference detection result corresponding to the maximum packet length ratio and the standard deviation coefficient of the time that each uplink data packet needs to exclusively occupy the channel, and the fifth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length ratio and the standard deviation coefficient of the time that each uplink data packet needs to exclusively occupy the channel.

[0077] Wherein, the electronic device can obtain the number of data packets with the maximum data volume in the currently processed data packet group and the standard deviation coefficient of the time that each uplink data packet in the currently processed data packet group needs to occupy the channel exclusively by parsing the data packet header information of the data packets in the currently processed data packet group, wherein the standard deviation coefficient of the time that each uplink data packet in the currently processed data packet group needs to occupy the channel exclusively refers to the ratio of the standard deviation of the time that each uplink data packet in the data packet needs to occupy the channel exclusively to the average value, and the maximum packet length ratio is determined according to the number of data packets with the maximum data volume in the currently processed data packet group and the total number of data packets in the currently processed data packet group. Optionally, the maximum packet length ratio and the standard deviation coefficient are input as two feature vectors into a pre-trained random forest model to obtain a prediction result, and if the prediction result indicates that the source address device corresponding to the data packet group is an image acquisition device, it means that the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length ratio and the standard deviation coefficient of the time that each uplink data packet needs to occupy the channel exclusively.

[0078] It can be seen that in this example, the electronic device uses the random forest model to analyze the standard deviation coefficient of the maximum packet length ratio in the data packet group and the time that each uplink data packet needs to monopolize the channel to determine whether it meets the data characteristics corresponding to the image acquisition device.

[0079] In one possible example, the at least one type of characteristic parameter includes the downlink packet length; the at least one reference detection result includes a sixth reference detection result corresponding to the downlink packet length, and the sixth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the downlink packet length.

[0080] Among them, the electronic device can obtain the packet length of the downlink data packet in the packet group by parsing the packet header information of the data packet in the currently processed data packet group. If the packet length of the downlink data packet is less than the reference packet length, it means that the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the downlink packet length. Among them, since the camera is mainly used to upload data, the downlink data packet length in its corresponding data packet group is relatively short, that is, the characteristic parameter of the downlink data packet length has a strong correlation when judging whether the device is an image acquisition device. Therefore, in the application scenario of image acquisition, the downlink data packet length in the data packet group generally does not exceed the reference packet length. Exemplarily, the reference packet length can be 600 bytes, that is, when the packet length of the downlink data packet in the currently processed data packet group is less than 600 bytes, it can be determined that the data packet group meets the data characteristics corresponding to the camera in terms of the downlink packet length.

[0081] It can be seen that in this example, the electronic device determines whether the downlink packet length in the data packet group meets the data characteristics corresponding to the image acquisition device, and further determines whether the source address device corresponding to the data packet group is an image acquisition device.

[0082] In a possible example, the at least one type of characteristic parameter includes any N of the following: ① the number of data packets, ② the full packet ratio, ③ the ratio of the number of uplink data packets to the number of downlink data packets, ④ the maximum packet length, ⑤ the standard deviation coefficient of the maximum packet length ratio and the time that each uplink data packet needs to exclusively occupy the channel, and ⑥ the downlink packet length, wherein N is a positive integer less than or equal to 6; the at least one reference detection result includes any N of the following: ① a first reference detection result corresponding to the number of data packets, ② a second reference detection result corresponding to the full packet ratio, ③ a third reference detection result corresponding to the ratio of the number of uplink data packets to the number of downlink data packets, ④ a fourth reference detection result corresponding to the maximum packet length, ⑤ a fifth reference detection result corresponding to the maximum packet length ratio and the standard deviation coefficient of the time that each uplink data packet needs to exclusively occupy the channel, and ⑥ a sixth reference detection result corresponding to the downlink packet length, wherein N is a positive integer less than or equal to 6.

[0083] The reference detection result is used to characterize whether the currently processed data packet group conforms to the data feature corresponding to the image acquisition device from the dimension of the feature parameter corresponding to the reference detection result.

[0084] In one possible example, determining the target detection result based on the at least one reference detection result includes: determining a target reference event group based on the N reference detection results; querying a pre-stored probability table based on the target reference event group to obtain a target probability, the probability table including multiple reference event groups and probability values ​​corresponding one-to-one to the multiple reference event groups, the reference event group consisting of N reference events corresponding to the N reference detection results, the target probability being used to characterize the probability that the source address device in the data transmission path corresponding to the currently processed data packet group determined by the target reference event is an image acquisition device; obtaining the target detection result based on the target probability and a preset probability.

[0085] Wherein, the target reference event group is one of the reference event groups, and each reference event corresponding to each reference detection result has two results, one is a positive event and the other is a negative event. The event in the reference detection result used to characterize that the data packet group meets the data characteristics corresponding to the image acquisition device is recorded as a positive event, and the event in the reference detection result used to characterize that the data packet group does not meet the data characteristics corresponding to the image acquisition device is recorded as a negative event. Exemplarily, the target reference event group can be composed of a positive event in the first reference detection result, a negative event in the second reference detection result, a positive event in the third reference detection result, a negative event in the fourth reference detection result, a positive event in the fifth reference detection result, and a positive event in the sixth reference detection result. At this time, N=6, then in the pre-stored probability table, the target probability corresponding to the target reference event can be found. If the target probability is greater than the preset probability, a target detection result is obtained for characterizing that the source address device in the data transmission path corresponding to the currently processed data packet group is an image acquisition device. If the target probability is less than the preset probability, a target detection result is obtained for characterizing that the source address device in the data transmission path corresponding to the currently processed data packet group is not an image acquisition device. Exemplarily, the preset probability can be 0.5.

[0086] It can be seen that in this example, the electronic device obtains the target probability by querying the probability table through the target reference event group, thereby determining whether the device corresponding to the data packet group is an image acquisition device, thereby improving the recognition accuracy.

[0087] In a possible example, determining the target detection result based on the at least one reference detection result further includes: obtaining the target detection result based on the N types of feature parameters and a pre-trained prediction model.

[0088] The prediction model can be obtained by training a feature vector composed of the N types of feature parameters through a training set composed of training data.

[0089] Optionally, the electronic device may input the N types of feature parameters as feature vectors into the pre-trained prediction model to obtain the target detection result.

[0090] Optionally, the electronic device may first preprocess the N types of feature parameters, for example, process the N types of feature parameters to obtain N reference events corresponding to the N types of feature parameters, and input the N reference events as feature vectors into the pre-trained prediction model to obtain the target detection result.

[0091] It can be seen that in this example, the electronic device obtains the target detection result through N types of feature parameters and a pre-trained prediction model, thereby improving the detection efficiency.

[0092] In a possible example, before acquiring at least one data packet transmitted on a communication channel, the method further includes: acquiring at least one channel on which data is transmitted on a Wi-Fi hotspot within a preset range; marking the at least one channel as a channel to be scanned; and selecting a channel from the channels to be scanned as the communication channel for scanning.

[0093] Among them, exemplarily, the Wi-Fi hotspot includes all channels of 2.4G and 5G, and the frequency list is as follows: 2.4G: {2912, 2917, 2422, 2427, 2432, 2437, 2442, 2447, 2452, 2457, 2462, 2467, 2472}, 5G: {5180, 5200, 5220, 5290, 5260, 5280, 5800, 5320, 5745, 5765, 5785, 5805, 5825}, and data transmission exists only on some of the channels. For example, data transmission exists only on the four channels of 2917, 2432, 5200, and 5220. The information of these four channels can be directly obtained through the Android native interface, and the four channels are marked as channels to be scanned, and one of the channels is selected as the communication channel for scanning.

[0094] It can be seen that in this example, the electronic device shortens the scanning time and improves the recognition efficiency by screening out the channels with data transmission and only scanning the channels with data transmission.

[0095] In one possible example, after performing device category detection on each data packet group in the at least one data packet group to obtain a target detection result, the method further includes: processing the next group of data packet groups until all data packet groups in the communication channel are detected, and outputting a list of image acquisition devices corresponding to the communication channel; acquiring and processing data packets of the next channel until all channels to be scanned are scanned, and obtaining a list of image acquisition devices corresponding to each channel; and obtaining a list of target image acquisition devices by combining the list of image acquisition devices corresponding to each channel.

[0096] Among them, after the electronic device completes the analysis of the currently processed data packet group, a target detection result is obtained. If the target detection result indicates that the source address device in the data transmission path corresponding to the data packet group is an image acquisition device, the image acquisition device is marked, and then the next group of data packet groups in the communication channel are analyzed until all data packet groups in the channel are analyzed, and an image acquisition device list corresponding to the channel is obtained, and then the next channel is scanned, and the above steps are repeated to finally obtain several image acquisition device lists, and the target image acquisition device list is obtained by combining the several image acquisition device lists, wherein the target image acquisition device list includes the address information of the image acquisition device.

[0097] It can be seen that in this example, after the electronic device completes processing the current data packet group, it continues to process other data packet groups of the current channel until all channels are processed, and finally obtains a list of target image acquisition devices, thereby improving recognition accuracy.

[0098] In one possible example, after performing device category detection on each data packet group in the at least one data packet group to obtain a target detection result, the method further includes: sorting the data volumes of the data packets in the currently processed data packet group in chronological order to obtain a data volume sequence; if there is at least one data volume grouping in the data volume sequence whose adjacent data volume change is greater than a preset amplitude, and the at least one data volume grouping is associated with at least one screen adjustment operation of the current space performed by the user, then it is determined that there is an image acquisition device corresponding to the currently processed data packet group in the current space.

[0099] Wherein, exemplarily, the current space may be a hotel room, and the at least one picture adjustment operation of the current space performed by the user may be at least one light on / off operation performed by the user in the hotel room. The light in the hotel room changes through the light on / off operation, thereby causing the picture captured by the hidden camera to change significantly, thereby causing at least one data volume group in the data volume sequence of the data packet group corresponding to the hidden camera to have an adjacent data volume change greater than a preset amplitude. Exemplarily, the user performs three light on / off operations in the current hotel room. If, before and after the time nodes of the three light on / off operations, there are three groups of data volume groups in the data volume sequence of the currently processed data packet group whose adjacent data volume change is greater than a preset amplitude, it is determined that there is a hidden camera in the current hotel room.

[0100] It can be seen that in this example, the electronic device detects whether there is a hidden camera in the current area by artificially creating scene changes in the current area, thereby optimizing the recognition scheme.

[0101] In one possible example, after dividing the at least one data packet into at least one data packet group if the at least one data packet includes the uplink data packet and the number of the uplink data packets is greater than a preset number, the method further includes: analyzing the currently processed data packet group to obtain a target Mac address corresponding to the currently processed data packet group; querying a pre-stored reference image acquisition device address to obtain a reference address feature, wherein the reference address feature is used to characterize the feature of the Mac address of the image acquisition device; if the target Mac address meets the reference address feature, performing the device category detection on the currently processed data packet group; if the target Mac address does not meet the reference address feature, skipping the device category detection on the currently processed data packet group.

[0102] The reference address feature may refer to the common features of the Mac addresses of different image acquisition devices, including but not limited to the same first few digits of the Mac addresses. The Mac address corresponding to the currently processed data packet group is analyzed. If it does not meet the reference address feature, it indicates that the device corresponding to the data packet group is not an image acquisition device, that is, there is no need to continue the device category detection, and the detection of the data packet group is directly skipped; if it meets the reference address feature, it indicates that the device corresponding to the data packet group may be an image acquisition device, then the device category detection is continued to determine the device category corresponding to the data packet group.

[0103] It can be seen that in this example, the electronic device filters out the data packet group that meets the Mac address characteristics corresponding to the image acquisition device through the reference address characteristics, and then performs device category detection, skipping the data packet group that can be directly judged as not an image acquisition device based on the Mac address, thereby improving the recognition efficiency and recognition accuracy and avoiding the problem of misidentification.

[0104] See also Figure 2 , Figure 2 is a flow chart of a device identification method provided in an embodiment of the present application, wherein the device identification method is applied to Figure 1a In the electronic device 10, Figure 2 As shown, the method includes:

[0105] Step 201: Obtain an image acquisition device detection instruction according to a user's click operation.

[0106] Where, optionally, see Figure 3 , Figure 3 is an interactive schematic diagram of a camera detection function provided by an embodiment of the present application. Figure 3 As shown, the user can open the "Mobile Manager" application program by clicking on the application program icon to obtain the target display screen, which includes the "Camera Detection" component.

[0107] Optionally, see Figure 4 , Figure 4 is another interactive schematic diagram of searching for a camera detection function provided by an embodiment of the present application. Figure 4 As shown, the user can pull down the function page, and the function page list may include a "mobile data" component, a "flight mode" component, a "ring" component, a "flashlight" component, a "Bluetooth" component, a "WLAN" component, a "positioning service" component, a "camera detection" component and an "automatic brightness" component.

[0108] Optionally, users can place the "Camera Detection" component into the negative one screen, see Figure 5 , Figure 5 is another interactive schematic diagram of searching for a camera detection function provided by an embodiment of the present application. Figure 5 As shown, the user slides right on the main page to open the negative one screen display page, which may include a "Health Code" component, a "Camera Detection" component, and a "Scan" component, and may also include an "Express Information" status bar and a "Weather Information" status bar; if it is the first time for the user to use the negative one screen, you can choose to add the "Camera Detection" component to the negative one screen display page according to the "+" sign in the upper right corner of the page.

[0109] The user can click on the above-mentioned "camera detection" component to enable the electronic device to obtain the image acquisition device detection instruction.

[0110] Step 202: In response to the image acquisition device detection instruction, a first prompt screen is displayed.

[0111] The first prompt screen is used to prompt that the electronic device is in a detection state. Figure 6 , Figure 6 is a schematic diagram of a first prompt screen provided in an embodiment of the present application. Figure 6 As shown, the first prompt screen may display “Detecting, please wait” to prompt the user that the electronic device is in a detecting state.

[0112] Step 203: When the target image acquisition device list is obtained, a second prompt screen is displayed.

[0113] Among them, see Figure 7 , Figure 7 is a schematic diagram of a second prompt screen provided in an embodiment of the present application. Figure 7 As shown, the second prompt screen will prompt the user that the detection is completed, and the second prompt screen includes the target image acquisition device list, and the target image acquisition device list includes the address information of the detected image acquisition device.

[0114] In a possible example, after acquiring the image acquisition device detection instruction according to the user's click operation, the method further includes: displaying a third prompt information, wherein the third prompt information is used to prompt that the electronic device has turned on the Sniffer mode to perform image acquisition device detection.

[0115] The Sniffer mode is used to obtain data packets of all channels under the Wi-Fi hotspot for encapsulation and feature analysis to obtain target detection results.

[0116] In a possible example, after acquiring the image acquisition device detection instruction according to the user's click operation, the method further includes: displaying fourth prompt information, wherein the fourth prompt information is used to prompt the user that the detection process does not require access to a wireless access point.

[0117] It can be seen that in this example, the electronic device first obtains the image acquisition device detection instruction according to the user's click operation, and then responds to the image acquisition device detection instruction and displays the first prompt screen, the first prompt screen is used to prompt that the electronic device is in the detection state, and finally, when the target image acquisition device list is obtained, the second prompt screen is displayed, and the second prompt screen includes the target image acquisition device list. In this way, the electronic device does not need to prompt the user to perform lengthy interface interaction operations, but directly responds to the image acquisition device detection instruction determined according to the user's click operation, and then jumps to the background to perform algorithm detection, which simplifies the complexity of the interactive operation and improves the operation efficiency and user experience.

[0118] In accordance with the above-mentioned embodiments, please refer to Figure 8a , Figure 8a is a block diagram of the functional units of a device identification apparatus provided in an embodiment of the present application, such as Figure 8a As shown, the device identification apparatus 80 includes: an acquisition unit 801, used for acquiring at least one data packet transmitted on a communication channel, wherein the at least one data packet includes an uplink data packet; a classification unit 802, used for classifying the at least one data packet into at least one data packet group if the at least one data packet includes the uplink data packet and the number of the uplink data packets is greater than a preset number, wherein the data transmission paths corresponding to any two data packets in the same data packet group are the same, and the data transmission paths corresponding to different data packet groups are different; a detection unit 803, used for performing device category detection according to each data packet group in the at least one data packet group to obtain a target detection result, wherein the target detection result is used to characterize whether the source address device in the data transmission path corresponding to the currently processed data packet group is an image acquisition device.

[0119] In one possible example, in performing device category detection according to each of the at least one data packet group to obtain a target detection result, the detection unit 803 is specifically used to: determine at least one type of characteristic parameters according to the currently processed data packet group, and the characteristic parameters are used to characterize the data characteristics of the data packets in the data packet group; analyze each type of characteristic parameters in the at least one type of characteristic parameters to obtain at least one reference detection result corresponding to the at least one type of characteristic parameters, and the reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device from the characteristic parameter dimension corresponding to itself; and determine the target detection result according to the at least one reference detection result.

[0120] In a possible example, the detection unit 803 is specifically used to determine that the at least one type of characteristic parameter includes at least one of the following: ① the number of data packets, ② the full packet ratio, ③ the ratio of the number of uplink data packets to the number of downlink data packets, ④ the maximum packet length, ⑤ the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to exclusively occupy the channel, and ⑥ the downlink packet length.

[0121] In a possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameter includes the number of data packets; the at least one reference detection result includes a first reference detection result corresponding to the number of data packets, and the first reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the number of data packets.

[0122] In a possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameter includes the full packet ratio; the at least one reference detection result includes a second reference detection result corresponding to the full packet ratio, and the second reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the full packet ratio.

[0123] In one possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameter includes the ratio of the number of uplink data packets to the number of downlink data packets; the at least one reference detection result includes a third reference detection result corresponding to the ratio of the number of uplink data packets to the number of downlink data packets, and the third reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the ratio of the number of uplink data packets to the number of downlink data packets.

[0124] In a possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameters includes the maximum packet length; the at least one reference detection result includes a fourth reference detection result corresponding to the maximum packet length, and the fourth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length.

[0125] In a possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameters includes the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively; the at least one reference detection result includes a fifth reference detection result corresponding to the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively, and the fifth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively.

[0126] In a possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameter includes the downlink packet length; the at least one reference detection result includes a sixth reference detection result corresponding to the downlink packet length, and the sixth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the downlink packet length.

[0127] In a possible example, the detection unit 803 is specifically used to: determine that the at least one type of characteristic parameter includes any N of the following: ① the number of data packets, ② the full packet ratio, ③ the ratio of the number of uplink data packets to the number of downlink data packets, ④ the maximum packet length, ⑤ the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to exclusively occupy the channel, and ⑥ the downlink packet length, wherein N is a positive integer less than or equal to 6; the at least one reference detection result includes any N of the following: ① a first reference detection result corresponding to the number of data packets, ② a second reference detection result corresponding to the full packet ratio, ③ a third reference detection result corresponding to the ratio of the number of uplink data packets to the number of downlink data packets, ④ a fourth reference detection result corresponding to the maximum packet length, ⑤ a fifth reference detection result corresponding to the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to exclusively occupy the channel, and ⑥ a sixth reference detection result corresponding to the downlink packet length, wherein N is a positive integer less than or equal to 6.

[0128] In one possible example, in terms of determining the target detection result based on the at least one reference detection result, the detection unit 803 is specifically used to: determine a target reference event based on the N reference detection results; query a pre-stored probability table based on the target reference event to obtain a target probability, the probability table including multiple groups of reference events and probability values ​​corresponding one-to-one to the multiple groups of reference events, the target probability being used to characterize the probability that a source address device in a data transmission path corresponding to the currently processed data packet group determined by the target reference event is an image acquisition device; and obtain the target detection result based on the target probability and a preset probability.

[0129] In a possible example, in determining the target detection result according to the at least one reference detection result, the detection unit 803 is specifically used to: obtain the target detection result according to the N types of feature parameters and a pre-trained prediction model.

[0130] In a possible example, before acquiring at least one data packet transmitted on a communication channel, the device identification device 80 is further used to: acquire at least one channel on a Wi-Fi hotspot within a preset range where data transmission exists; mark the at least one channel as a channel to be scanned; and select one channel from the channels to be scanned as the communication channel for scanning.

[0131] In one possible example, after performing device category detection on each data packet group in the at least one data packet group to obtain a target detection result, the device identification device 80 is further used to: process the next group of data packet groups until all data packet groups in the communication channel are detected, and output a list of image acquisition devices corresponding to the communication channel; obtain and process data packets of the next channel until all channels to be scanned are scanned, and obtain a list of image acquisition devices corresponding to each channel; and obtain a list of target image acquisition devices by combining the list of image acquisition devices corresponding to each channel.

[0132] In one possible example, after performing device category detection on each data packet group in the at least one data packet group to obtain a target detection result, the device identification device 80 is further used for: after performing device category detection on each data packet group in the at least one data packet group to obtain a target detection result, the method further includes: sorting the data volumes of the data packets in the currently processed data packet group in chronological order to obtain a data volume sequence; if there is at least one data volume grouping in the data volume sequence whose adjacent data volume change is greater than a preset amplitude, and the at least one data volume grouping is associated with at least one current space screen adjustment operation performed by the user, then it is determined that there is an image acquisition device corresponding to the currently processed data packet group in the current space.

[0133] In one possible example, if the at least one data packet includes the uplink data packet and the number of the uplink data packets is greater than a preset number, then after the at least one data packet is divided into at least one data packet group, the device identification device 80 is further used to: analyze the currently processed data packet group to obtain the target Mac address corresponding to the currently processed data packet group; query the pre-stored reference image acquisition device address to obtain a reference address feature, wherein the reference address feature is used to characterize the feature of the Mac address of the image acquisition device; if the target Mac address meets the reference address feature, perform the device category detection on the currently processed data packet group; if the target Mac address does not meet the reference address feature, skip the device category detection on the currently processed data packet group.

[0134] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.

[0135] In the case of integrated units, such as Figure 8b As shown, Figure 8b This is a block diagram of the functional units of another device identification device provided in an embodiment of the present application. Figure 8b In the embodiment, the device identification device 81 includes: a processing module 812 and a communication module 811. The processing module 812 is used to control and manage the actions of the device identification device, for example, to execute the steps of the acquisition unit 801, the classification unit 802 and the detection unit 803, and / or to execute other processes of the technology described herein. The communication module 811 is used to support the interaction between the device identification device and other devices. Figure 8b As shown, the device identification apparatus may further include a storage module 813, and the storage module 813 is used to store program codes and data of the device identification apparatus.

[0136] Among them, the processing module 812 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 811 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 813 can be a memory.

[0137] All relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above device identification device 81 can execute the device identification method shown in FIG1 above.

[0138] In accordance with the above-mentioned embodiments, please refer to Figure 9a , Figure 9a is a block diagram of the functional units of a device identification apparatus provided in an embodiment of the present application, such as Figure 9a As shown, the device identification apparatus 90 includes: an acquisition unit 901, used for acquiring an image acquisition device detection instruction according to a user's click operation; a response unit 902, used for responding to the image acquisition device detection instruction and displaying a first prompt screen, wherein the first prompt screen is used to prompt that the electronic device is in a detection state; a display unit 903, used for displaying a second prompt screen when obtaining a list of target image acquisition devices, wherein the second prompt screen includes the list of target image acquisition devices.

[0139] In a possible example, after acquiring the image acquisition device detection instruction according to the user's click operation, the display unit 903 is further used to: display a third prompt information, and the third prompt information is used to prompt that the electronic device has turned on the Sniffer mode to perform image acquisition device detection.

[0140] In a possible example, after acquiring the image acquisition device detection instruction according to the user's click operation, the display unit 903 is further used to: display fourth prompt information, and the fourth prompt information is used to prompt the user that the detection process does not require access to a wireless access point.

[0141] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.

[0142] In the case of integrated units, such as Figure 9b As shown, Figure 9b This is a block diagram of the functional units of another device identification device provided in an embodiment of the present application. Figure 9b In the embodiment, the device identification device 91 includes: a processing module 912 and a communication module 911. The processing module 912 is used to control and manage the actions of the device identification device, for example, to execute the steps of the acquisition unit 901, the response unit 902 and the display unit 903, and / or to execute other processes of the technology described herein. The communication module 911 is used to support the interaction between the device identification device and other devices. Figure 9b As shown, the device identification apparatus may further include a storage module 913, and the storage module 913 is used to store program codes and data of the device identification apparatus.

[0143] Among them, the processing module 912 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 911 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 913 can be a memory.

[0144] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above device identification device 91 can execute the above Figure 2 The device identification method shown.

[0145] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or 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 can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0146] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments.

[0147] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any method recorded in the above method embodiments.

[0148] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0150] 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.

[0151] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included 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 hardware plus software functional units.

[0152] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus random access memory (DR RAM), among other media that can store program code.

[0153] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.

Claims

1. A device identification method, characterized in that: include: Acquire at least one channel with data transmission on a Wi-Fi hotspot within a preset range, and mark the at least one channel as a channel to be scanned; Selecting a channel from the channels to be scanned as a communication channel for scanning, and acquiring at least one data packet transmitted by the communication channel, wherein the at least one data packet includes an uplink data packet; If the at least one data packet includes the uplink data packet, and the number of the uplink data packets is greater than a preset number, the at least one data packet is divided into at least one data packet group, the data transmission paths corresponding to any two data packets in the same data packet group are the same, and the data transmission paths corresponding to different data packet groups are different from each other; Performing device category detection on each data packet group in the at least one data packet group to obtain a target detection result, wherein the target detection result is used to indicate whether a source address device in a data transmission path corresponding to a currently processed data packet group is an image acquisition device; Processing the next group of data packets until all data packets in the communication channel are detected, and outputting a list of image acquisition devices corresponding to the communication channel; Acquire and process the data packet of the next channel until all the channels to be scanned are scanned, and obtain the image acquisition device list corresponding to each channel; The target image acquisition device list is obtained by synthesizing the image acquisition device list corresponding to each channel.

2. The method according to claim 1, characterized in that: The performing device category detection according to each data packet group in the at least one data packet group to obtain a target detection result includes: Determine at least one type of characteristic parameter according to the currently processed data packet group, wherein the characteristic parameter is used to characterize data characteristics of the data packets in the data packet group; Analyze each of the at least one type of characteristic parameters to obtain at least one reference detection result corresponding to the at least one type of characteristic parameters, wherein the reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device from the dimension of the characteristic parameters corresponding to the reference detection result; The target detection result is determined according to the at least one reference detection result.

3. The method according to claim 2, characterized in that: The at least one type of characteristic parameters includes at least one of the following: ① the number of data packets, ② the full packet ratio, ③ the ratio of the number of uplink data packets to the number of downlink data packets, ④ the maximum packet length, ⑤ the standard deviation coefficient of the maximum packet length ratio and the time each uplink data packet needs to monopolize the channel, and ⑥ the downlink packet length.

4. The method according to claim 3, characterized in that: The at least one type of characteristic parameter includes the number of data packets; the at least one reference detection result includes a first reference detection result corresponding to the number of data packets, and the first reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the number of data packets.

5. The method according to claim 3, characterized in that: The at least one type of characteristic parameter includes the full packet ratio; the at least one reference detection result includes a second reference detection result corresponding to the full packet ratio, and the second reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the full packet ratio.

6. The method according to claim 3, characterized in that: The at least one type of characteristic parameter includes the ratio of the number of uplink data packets to the number of downlink data packets; the at least one reference detection result includes a third reference detection result corresponding to the ratio of the number of uplink data packets to the number of downlink data packets, and the third reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the ratio of the number of uplink data packets to the number of downlink data packets.

7. The method according to claim 3, characterized in that: The at least one type of characteristic parameter includes the maximum packet length; the at least one reference detection result includes a fourth reference detection result corresponding to the maximum packet length, and the fourth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length.

8. The method according to claim 3, characterized in that: The at least one type of characteristic parameters includes the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively; the at least one reference detection result includes a fifth reference detection result corresponding to the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively, and the fifth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively.

9. The method according to claim 3, characterized in that: The at least one type of characteristic parameter includes the downlink packet length; the at least one reference detection result includes a sixth reference detection result corresponding to the downlink packet length, and the sixth reference detection result is used to characterize whether the currently processed data packet group meets the data characteristics corresponding to the image acquisition device in terms of the downlink packet length.

10. The method according to claim 3, characterized in that: The at least one type of characteristic parameter includes any N of the following: ① the number of data packets, ② the full packet ratio, ③ the ratio of the number of uplink data packets to the number of downlink data packets, ④ the maximum packet length, ⑤ the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively, and ⑥ the downlink packet length, wherein N is a positive integer less than or equal to 6; the at least one reference detection result includes any N of the following: ① a first reference detection result corresponding to the number of data packets, ② a second reference detection result corresponding to the full packet ratio, ③ a third reference detection result corresponding to the ratio of the number of uplink data packets to the number of downlink data packets, ④ a fourth reference detection result corresponding to the maximum packet length, ⑤ a fifth reference detection result corresponding to the maximum packet length ratio and the standard deviation coefficient of the time each uplink data packet needs to occupy the channel exclusively, and ⑥ a sixth reference detection result corresponding to the downlink packet length, wherein N is a positive integer less than or equal to 6.

11. The method according to claim 10, characterized in that: The determining the target detection result according to the at least one reference detection result comprises: Determine a target reference event group according to the N reference detection results; A pre-stored probability table is queried according to the target reference event group to obtain a target probability, wherein the probability table includes a plurality of reference event groups and probability values ​​corresponding to the plurality of reference event groups one by one, wherein the reference event group is composed of N reference events corresponding to the N reference detection results, and the target probability is used to characterize the probability that the source address device in the data transmission path corresponding to the currently processed data packet group determined by the target reference event is an image acquisition device; The target detection result is obtained according to the target probability and a preset probability.

12. The method according to claim 11, characterized in that: The determining the target detection result according to the at least one reference detection result further includes: The target detection result is obtained according to the N types of feature parameters and a pre-trained prediction model.

13. The method according to claim 1, characterized in that: After performing device category detection according to each data packet group in the at least one data packet group to obtain a target detection result, the method further includes: Sorting the data volumes of the data packets in the currently processed data packet group in chronological order to obtain a data volume sequence; If there is at least one data volume group in the data volume sequence whose adjacent data volume change is greater than a preset amplitude, and the at least one data volume group is associated with at least one screen adjustment operation performed by the user in the current space, it is determined that there is an image acquisition device in the current space corresponding to the currently processed data packet group.

14. The method according to claim 1, characterized in that: After dividing the at least one data packet into at least one data packet group if the at least one data packet includes the uplink data packet and the number of the uplink data packets is greater than a preset number, the method further includes: Analyze the currently processed data packet group to obtain a target Mac address corresponding to the currently processed data packet group; Querying a pre-stored reference image acquisition device address to obtain a reference address feature, wherein the reference address feature is used to characterize a feature of a Mac address of the image acquisition device; If the target Mac address meets the reference address characteristics, performing the device category detection on the currently processed data packet group; If the target Mac address does not meet the reference address characteristics, the device category detection for the currently processed data packet group is skipped.

15. A device identification method, characterized in that: include: Obtaining image acquisition device detection instructions according to the user's click operation; In response to the image acquisition device detection instruction, display a first prompt screen, where the first prompt screen is used to prompt that the electronic device is in a detection state; When the target image acquisition device list is obtained, a second prompt screen is displayed, wherein the second prompt screen includes the target image acquisition device list, and the target image acquisition device list is obtained by any method as claimed in claims 1 to 14.

16. The method according to claim 15, characterized in that: After acquiring the image acquisition device detection instruction according to the user's click operation, the method further includes: The third prompt information is displayed, and the third prompt information is used to prompt that the electronic device has turned on the Sniffer mode to perform image acquisition device detection.

17. The method according to claim 16, characterized in that: After acquiring the image acquisition device detection instruction according to the user's click operation, the method further includes: The fourth prompt information is displayed, where the fourth prompt information is used to prompt the user that the detection process does not require access to a wireless access point.

18. A device identification apparatus, characterized in that: include: an acquisition unit, configured to acquire at least one channel on which data transmission exists on a Wi-Fi hotspot within a preset range, and mark the at least one channel as a channel to be scanned; and to select a channel from the channels to be scanned as a communication channel for scanning, and acquire at least one data packet transmitted by the communication channel, wherein the at least one data packet includes an uplink data packet; a classification unit, configured to classify the at least one data packet into at least one data packet group if the at least one data packet includes the uplink data packet and the number of the uplink data packets is greater than a preset number, wherein the data transmission paths corresponding to any two data packets in the same data packet group are the same, and the data transmission paths corresponding to different data packet groups are different from each other; a detection unit, configured to perform device category detection on each data packet group in the at least one data packet group to obtain a target detection result, wherein the target detection result is used to indicate whether a source address device in a data transmission path corresponding to a currently processed data packet group is an image acquisition device; and, used to process the next group of data packets until all the data packets in the communication channel are detected, and output the image acquisition device list corresponding to the communication channel; and, used to obtain and process the data packets of the next channel until all the channels to be scanned are scanned, and obtain the image acquisition device list corresponding to each channel; And, it is used to integrate the image acquisition device list corresponding to each channel to obtain a target image acquisition device list.

19. A device identification apparatus, characterized in that: include: An acquisition unit, used for acquiring an image acquisition device detection instruction according to a user's click operation; A response unit, configured to respond to the image acquisition device detection instruction and display a first prompt screen, wherein the first prompt screen is used to prompt that the electronic device is in a detection state; The display unit is used to display a second prompt screen when the target image acquisition device list is obtained, wherein the second prompt screen includes the target image acquisition device list, and the target image acquisition device list is obtained by any method as claimed in claims 1 to 14.

20. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 14 or claims 15 to 17.

21. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 14 or claims 15 to 17.