CN111970678B - Method and device for capturing air interface data packet, electronic equipment and storage medium - Google Patents

Method and device for capturing air interface data packet, electronic equipment and storage medium Download PDF

Info

Publication number
CN111970678B
CN111970678B CN202010784012.3A CN202010784012A CN111970678B CN 111970678 B CN111970678 B CN 111970678B CN 202010784012 A CN202010784012 A CN 202010784012A CN 111970678 B CN111970678 B CN 111970678B
Authority
CN
China
Prior art keywords
hotspot
air interface
information
data packet
wireless hotspot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010784012.3A
Other languages
Chinese (zh)
Other versions
CN111970678A (en
Inventor
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010784012.3A priority Critical patent/CN111970678B/en
Publication of CN111970678A publication Critical patent/CN111970678A/en
Application granted granted Critical
Publication of CN111970678B publication Critical patent/CN111970678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0205Traffic management, e.g. flow control or congestion control at the air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application discloses a method, a device, electronic equipment and a storage medium for capturing an air interface data packet. The method comprises the following steps: outputting a first display interface comprising a wireless hotspot list, wherein the wireless hotspot list comprises at least one wireless hotspot; responding to a hotspot selection operation aiming at the wireless hotspot list, and acquiring hotspot information of a selected target wireless hotspot; and capturing the air interface data packet of the target wireless hotspot according to the hotspot information. The method, the device, the electronic equipment and the storage medium for grabbing the air interface data packet can simplify the operation of grabbing the air interface data packet and improve the grabbing efficiency of the air interface data packet.

Description

Method and device for capturing air interface data packet, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for capturing an air interface data packet.
Background
When the electronic device encounters a wireless communication problem (such as slow network, inability to network, etc.), because some signal transmission flows between the electronic device and the network device such as a router cannot be known, a wireless network card or a wireless sniffer needs to be used for capturing a wireless air interface packet, so that the situation of wireless communication can be accurately known by analyzing the wireless air interface packet.
At present, when a user needs to control the electronic equipment to grasp the air interface data packet, the user needs to accurately know the whole process of grasping the air interface data packet and various instructions, so that the operation is very complicated, and the grasping efficiency is too low.
Disclosure of Invention
The embodiment of the application discloses a method, a device, electronic equipment and a storage medium for grabbing an air interface data packet, which can simplify the operation of grabbing the air interface data packet and improve the grabbing efficiency of the air interface data packet.
The embodiment of the application discloses a method for grabbing an air interface data packet, which comprises the following steps:
outputting a first display interface comprising a wireless hotspot list, wherein the wireless hotspot list comprises at least one wireless hotspot;
responding to a hotspot selection operation aiming at the wireless hotspot list, and acquiring hotspot information of a selected target wireless hotspot;
and capturing the air interface data packet of the target wireless hotspot according to the hotspot information.
The embodiment of the application discloses a snatch device of air interface data package, include:
the interface output module is used for outputting a first display interface comprising a wireless hotspot list, wherein the wireless hotspot list comprises at least one wireless hotspot;
the hotspot information acquisition module is used for responding to the hotspot selection operation aiming at the wireless hotspot list and acquiring the hotspot information of the selected target wireless hotspot;
And the grabbing module is used for grabbing the air interface data packet of the target wireless hotspot according to the hotspot information.
The embodiment of the application discloses electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to enable the processor to realize the method.
The present embodiments disclose a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as described above.
According to the method, the device, the electronic equipment and the storage medium for capturing the air interface data packet, a first display interface comprising a wireless hotspot list is output, the wireless hotspot list comprises at least one wireless hotspot, hotspot information of a target wireless hotspot is obtained in response to hotspot selection operation aiming at the wireless hotspot list, the air interface data packet of the target wireless hotspot is captured according to the hotspot information, a user is guided through the output-friendly display interface, the user can capture the air interface data packet of the wireless hotspot only through simple interaction operation, operation of capturing the air interface data packet can be simplified, and capturing efficiency of the air interface data packet is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an application scenario diagram of a method of capturing air interface packets in one embodiment;
FIG. 2 is a flow chart of a method of grabbing an air interface packet in one embodiment;
FIG. 3A is a schematic diagram of a first display interface in one embodiment;
FIG. 3B is a schematic diagram of a first display interface according to another embodiment;
FIG. 4 is a flowchart of acquiring hotspot information of a target wireless hotspot in an embodiment;
fig. 5A is a schematic diagram showing displaying band selection information on a first display interface according to an embodiment;
FIG. 5B is a schematic diagram showing a first prompt on a first display interface according to one embodiment;
FIG. 6A is a schematic diagram of a second display interface in one embodiment;
FIG. 6B is a schematic diagram of a second display interface according to another embodiment;
FIG. 6C is a schematic diagram showing a second prompt on a second display interface according to one embodiment;
FIG. 7 is a flow chart of a method of capturing air interface packets in another embodiment;
FIG. 8 is a schematic diagram of a second display interface according to another embodiment;
FIG. 9A is a schematic diagram of a third display interface in one embodiment;
FIG. 9B is a schematic diagram showing an upload progress in a third display interface according to an embodiment;
FIG. 9C is a diagram of a third display interface according to another embodiment;
FIG. 10 is a block diagram of an apparatus for capturing air interface packets in one embodiment;
FIG. 11 is a block diagram of an electronic device in one embodiment.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments and figures herein are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first display interface may be referred to as a second display interface, and similarly, a second display interface may be referred to as a first display interface, without departing from the scope of the present application. Both the first display and the second display are displays, but they are not the same display.
Currently, sniffer (sniffer) for capturing air-interface data packets by electronic devices such as mobile phones is usually implemented in an engineering mode, and needs to use some secret instructions to enter the engineering mode of the sniffer to capture the air-interface data packets. When a user grabs the air interface data packet, the user needs to know a lot of information in advance, for example, needs to know how to enter an engineering mode of a sniffer of the electronic device, needs to know a channel corresponding to a wireless hot spot for grabbing the air interface data packet, needs to know a connection operation process and set parameters of each device in the middle, and the like.
The embodiment of the application provides a method for grabbing an air interface data packet, which can grab the air interface data packet of a wireless hot spot only through simple interactive operation, can simplify the operation of grabbing the air interface data packet and improves the grabbing efficiency of the air interface data packet.
Fig. 1 is an application scenario diagram of a method for capturing an air interface packet in one embodiment. As shown in fig. 1, the test terminal 30 may establish a wireless communication connection with the network device 40, and the user 10 may grasp, through the electronic device 20, an air interface packet transmitted in a wireless network in which the test terminal 30 is connected to the network device 40. The Air Interface data packet refers to a data packet transmitted through an Air Interface (Air Interface), and a link established between Air ports is called a wireless link, and by analyzing the captured Air Interface data packet, a wireless network problem of the test terminal 30 may be analyzed, or a network device 40 may be debugged. When the user 10 needs to grab the air interface data packet transmitted between the test terminal 30 and the network device 40, the electronic device 20 may output a first display interface including a wireless hotspot list, where the wireless hotspot list may at least include wireless hotspots corresponding to the network device 40. The user may perform a hotspot selection operation on the first display interface, and select a target wireless hotspot required to capture the air interface data packet as a wireless hotspot corresponding to the network device 40. The electronic device 20 may respond to the hotspot selection operation, obtain hotspot information of the target wireless hotspot selected by the user 10, and grab the air interface data packet transmitted between the test terminal 30 and the network device 40 according to the hotspot information.
In some embodiments, the electronic device 20 may include, but is not limited to, a mobile phone, a tablet computer, a smart wearable device, and the like. The test terminal 30 may include, but is not limited to, a mobile phone, a tablet computer, a smart wearable device, etc., and the network device 40 may include, but is not limited to, a router, a wireless bridge, etc.
As shown in fig. 2, in one embodiment, a method for capturing an air interface packet is provided, which may be applied to the above electronic device, and the method may include the following steps:
step 210, outputting a first display interface including a wireless hotspot list, where the wireless hotspot list includes at least one wireless hotspot.
The first display interface may be an interface for displaying a wireless hotspot capable of capturing an air interface data packet, where the wireless hotspot refers to an Access Point capable of providing a wireless network Access service, and the wireless hotspot may also be referred to as an Access Point (AP). In some embodiments, a gripping tool for gripping the air interface data packet may be integrated into an operating system of the electronic device, and the gripping tool may be integrated into a system of the electronic device by way of APP (Application). As a specific implementation manner, the electronic device may provide an application icon corresponding to the grabbing tool on the desktop, and the user may access and open the grabbing tool by triggering the application icon, and enter into an application interface of the grabbing tool.
As another specific embodiment, the electronic device may not provide an application icon corresponding to the gripping tool on the desktop, and the user may input an opening instruction for opening the gripping tool in the electronic device, and when the electronic device receives the opening instruction, may access and open the gripping tool installed on the electronic device, and enter into an application interface of the gripping tool. Optionally, the opening instruction may be a preset simple instruction, for example, by inputting an instruction such as an instruction #1 through a dial of the electronic device, where the gripping tool may be accessed, and it is understood that the specific instruction content of the opening instruction is not limited in the embodiments of the present application. Upon entering the application interface of the grasping tool, a first display interface may be displayed on the screen.
In some embodiments, when the capture tool is turned on, the electronic device may scan surrounding wireless hotspots and generate a wireless hotspot list according to each scanned wireless hotspot. Further, surrounding wireless hotspots may be scanned by invoking a wireless network scanning interface, such as wireless hotspots that may be scanned within a preset range (e.g., within 30 meters, within 50 meters, etc.), where the wireless network may include, but is not limited to, wiFi (Wireless Fidelity ) networks, etc. Optionally, the electronic device may scan for the wireless hotspot in an active scan or a passive scan. The active scanning refers to that the electronic device sends a Probe Request (Probe Request) data frame on each channel in an active manner, and scans surrounding wireless hotspots according to Probe Response (Probe Response) frames returned by each wireless hotspot. Passive scanning refers to that the electronic device does not need to transmit any signal, but switches on each channel and receives data packets broadcast by each wireless hotspot, such as Beacon (Beacon) frames, etc., so as to realize scanning of surrounding wireless hotspots. By means of passive scanning, power consumption of the electronic equipment in the process of scanning the wireless hot spot can be saved.
In some embodiments, the first display interface may include a wireless hotspot list, which may include hotspot names of one or more (multiple refers to two or more) wireless hotspots scanned. FIG. 3A is a schematic diagram of a first display interface according to one embodiment. After the electronic device opens the capture tool, a first display interface 310 may be displayed, where the first display interface 310 may include a wireless hotspot list 302, where the wireless hotspot list 302 may include scanned WiFi hotspots, for example, fig. 3A may include 5 scanned WiFi hotspots, and names of the respective WiFi hotspots may be displayed in the wireless hotspot list 302. Further, a selection prompt 304 may be displayed in the first display interface 310, where the selection prompt 304 may be used to prompt the user to select a wireless hotspot that needs to grab an air interface packet, for example, in fig. 3A, the selection prompt 304 is "please select a WiFi hotspot that needs to grab an air interface packet", and the user may accurately know how to perform an operation based on the selection prompt 304.
Step 220, in response to the hotspot selection operation for the wireless hotspot list, acquiring hotspot information of the selected target wireless hotspot.
And the user can select the wireless hot spot needing to grab the air interface data packet in the wireless hot spot list of the first display interface. The electronic device can respond to the hotspot selection operation aiming at the wireless hotspot list to determine a target wireless hotspot selected by the user, wherein the target wireless hotspot is a wireless hotspot needing to capture the air interface data packet. Optionally, the hotspot selection operation may include, but is not limited to, touch operation (such as clicking a wireless hotspot required to capture an air interface data packet), voice control operation (such as collecting a wireless hotspot name required to capture an air interface data packet spoken by a user), line-of-sight selection operation (such as collecting an eye image of the user through a camera, and analyzing a position of a focus on a screen according to the eye image, so as to determine a target wireless hotspot required to be selected by the focus), or a blank gesture.
In some embodiments, the electronic device may obtain a hotspot name of the selected target wireless hotspot in response to a hotspot selection operation for the wireless hotspot list, and determine whether the hotspot name meets a preset naming rule. Because the air interface data packet with the hot spot name including the Chinese character cannot be analyzed when the captured air interface data packet is analyzed, the hot spot name of the selected target wireless hot spot needs to meet the naming rule without the Chinese character. The obtained hotspot name of the target wireless hotspot can be subjected to character recognition, whether the hotspot name comprises Chinese characters or not is judged, if so, prompt information for modifying the name can be displayed on the first display interface, and the prompt information can be used for prompting a user to modify the hotspot name of the target wireless hotspot.
Fig. 3B is a schematic diagram of a first display interface according to another embodiment. As shown in fig. 3B, after the user selects a wireless hotspot in the wireless hotspot list 302, where the wireless hotspot is required to capture an air interface packet, if the hotspot name of the selected target wireless hotspot is detected to include a chinese character, a prompt message 306 for modifying the name may be displayed in the first display interface 310. For example, "WiFi hotspot air interface packages supporting only grabbing WiFi names 'english' and 'digital' may be displayed in the prompt message 306 for modifying the name, please modify the WiFi name". The user can clearly know the operation to be performed by modifying the prompt message 306 of the name, thereby playing an effective guiding role. It should be understood that the above-mentioned selection prompt information and the prompt information for modifying the name may be output by voice, and the like, and is not limited to the manner of displaying on the first display interface.
The hotspot information of the target wireless hotspot may include, but is not limited to, a hotspot identification, a frequency band, a channel, a bandwidth, and the like of the target wireless hotspot. The hotspot identification may include a hotspot name, a service set identification (Service Set Identifier, SSID), etc. The frequency band may refer to an operating frequency range of a wireless hotspot, alternatively, the frequency band may include 2.4GHz (gigahertz), 5GHz, and the like. A channel refers to a data signal transmission channel using a wireless signal as a transmission medium, and channels included in different frequency bands may be different, and one frequency band may include one or more channels. Bandwidth refers to the amount of data transmitted over a wireless link per unit time and may be used to represent the data transmission capabilities of a wireless communication link.
In some embodiments, the hotspot information of the target wireless hotspot may be hotspot information acquired when the target wireless hotspot is scanned. When the electronic equipment scans surrounding wireless hotspots, the hotspot information of each wireless hotspot can be obtained and stored according to the broadcast data packet sent by each wireless hotspot. After the target wireless hotspot selected by the user is determined, hotspot information acquired during scanning of the target wireless hotspot can be acquired, and the air interface data packet of the target wireless hotspot is grabbed according to the hotspot information.
In some embodiments, the hotspot information of the target wireless hotspot may also be hotspot information acquired when the electronic device is connected to the target wireless hotspot. After the electronic device obtains the target wireless hotspot selected by the user, a wireless communication module (such as a WiFi module and the like) at the bottom layer can be called to establish wireless communication connection with the target wireless hotspot, and hotspot information of the target wireless hotspot is obtained through the established wireless communication connection, and after the communication connection with the target wireless hotspot is disconnected, an air interface data packet of the target wireless hotspot can be grabbed according to the hotspot information.
And 230, capturing the air interface data packet of the target wireless hotspot according to the hotspot information.
In some embodiments, after the electronic device obtains the hotspot information of the target wireless hotspot, a target channel needing to capture a packet may be determined, and an air interface data packet transmitted by the target wireless hotspot may be monitored on the target channel, and the monitored air interface data packet may be captured. After the air interface data packet is grabbed, the air interface data packet can be analyzed according to the hotspot identification of the target wireless hotspot, and analyzed air interface packet data is obtained. In some embodiments, if the target wireless hotspot is an encryption hotspot, the password of the target wireless hotspot may be obtained, and the captured air interface packet is parsed according to the SSID and the password of the target wireless hotspot, so as to obtain parsed air interface packet data. Optionally, the captured air interface data packet may be further filtered according to a terminal identifier of the test terminal to obtain an air interface data packet transmitted between the test terminal and the target non-terminal hot spot, where the terminal identifier may include, but is not limited to, any one of a media access control (Media Access Control, MAC) address, a terminal number, and the like of the test terminal.
In the embodiment of the application, the user is guided through the output-friendly display interface, the user can finish grabbing the air interface data packet transmitted by the target wireless hotspot only through simple interactive operation, the user does not need to know the instruction and the specific process of each step, does not need to know the hotspot information of the target wireless hotspot in advance and set corresponding parameters and the like, and the operation of grabbing the air interface data packet can be simplified.
In the embodiment of the application, a first display interface including a wireless hotspot list is output, the wireless hotspot list includes at least one wireless hotspot, hotspot information of a selected target wireless hotspot is obtained in response to hotspot selection operation for the wireless hotspot list, an air interface data packet of the target wireless hotspot is grabbed according to the hotspot information, a user is guided through the output-friendly display interface, the user can grab the air interface data packet of the wireless hotspot only through simple interaction operation, operation of grabbing the air interface data packet can be simplified, and grabbing efficiency of the air interface data packet is improved.
As shown in fig. 4, in one embodiment, the step of obtaining hotspot information of the selected target wireless hotspot includes the following steps:
Step 402, acquiring first hotspot information of the selected target wireless hotspot, where the first hotspot information is hotspot information obtained when the target wireless hotspot is scanned.
In some embodiments, when the electronic device scans the target wireless hotspot, the electronic device may receive a broadcast data packet sent by the target wireless hotspot, and parse the broadcast data packet to obtain first hotspot information of the target wireless hotspot, where the first hotspot information may include, but is not limited to, a frequency band, a channel, a hotspot identifier, and the like of the target wireless hotspot. Optionally, the air interface data packet of the target wireless hotspot can be directly grabbed according to the first hotspot information, and the air interface data packet transmitted by the target wireless hotspot is monitored and grabbed on a channel contained in the first hotspot information.
Step 404, establishing a communication connection with the target wireless hotspot through the wireless communication module, and obtaining second hotspot information of the target wireless hotspot through the communication connection.
In some embodiments, in order to further ensure that the air interface data packet transmitted by the target wireless hotspot can be accurately captured, the first hotspot information obtained when the target wireless hotspot is scanned may be verified. The wireless communication module can be used for establishing wireless communication connection with the target wireless hotspot, and after the connection is successful, the data packet transmitted by the target wireless hotspot is analyzed to obtain second hotspot information transmitted by the target wireless hotspot, and the second hotspot information can also comprise information such as frequency bands, channels, hotspot identifiers and the like of the target wireless hotspot.
In some embodiments, since some networks support dual-band integration, some wireless hotspots exist in at least two frequency bands. The electronic equipment acquires the selected target wireless hot spot, if the target wireless hot spot is identified to comprise at least two frequency bands, the frequency band selection information can be displayed on the first display interface, and the frequency band selection information can comprise all frequency bands included in the target wireless hot spot for a user to select, so that when the electronic equipment grabs an air interface data packet, the monitored frequency bands and channels are the same as those used by the test terminal, and the air interface data packet to be grabbed can be accurately grabbed.
Fig. 5A is a schematic diagram of displaying band selection information on a first display interface according to an embodiment. As shown in fig. 5A, after the user selects a wireless hotspot that needs to capture an air interface packet in the wireless hotspot list 302, if the selected target wireless hotspot includes two frequency bands, namely 2.4GHz and 5GHz, the user may display frequency band selection information 502 in the first display interface 310, and the user may select the frequency band that needs to capture the air interface packet in the frequency band selection information 502, so as to ensure that the frequency band monitored by the electronic device is consistent with the frequency band used by the test terminal.
The electronic equipment can respond to the frequency band selection operation aiming at the frequency band selection information to acquire a selected target frequency band, wherein the target frequency band is the frequency band to be monitored, and the wireless communication module can be controlled to establish communication connection with the target wireless hotspot through the target frequency band and acquire second hotspot information of the target wireless hotspot.
In some embodiments, if the target wireless hotspot is an encrypted hotspot, the user may be prompted to enter a password for the target wireless hotspot. Before communication connection is established between the electronic device and the target wireless hotspot through the wireless communication module, when the target wireless hotspot is an encrypted hotspot, the electronic device can display first prompt information on a first display interface, and the first prompt information can be used for prompting to input a password of the target wireless hotspot. After the electronic equipment acquires the input password, the input password can be verified, the wireless communication module can be controlled to establish communication connection with the target wireless hotspot by adopting the input password, if the connection is successful, the verification password is correct, and if the connection is failed, the verification password is wrong.
Fig. 5B is a schematic diagram of displaying a first prompt message on the first display interface in one embodiment. As shown in fig. 5B, after the user selects a wireless hotspot that needs to capture the air interface packet in the wireless hotspot list 302, if the selected target wireless hotspot is an encrypted hotspot, a first prompt message 504 may be displayed in the first display interface 310, where the first prompt message 504 may be used to prompt the user to input a password of the selected target wireless hotspot. When the user triggering the confirm key is detected, the password input by the user in the first prompt information 504 can be obtained, and the input password is verified.
In some embodiments, if the input password is verified to be wrong, the wireless communication module cannot connect with the target wireless hotspot by adopting the input password, and then the user can be prompted for the wrong password and the first prompt information is redisplayed, so that the user can re-input the password of the target wireless hotspot. If the wireless communication connection is successfully established between the input password and the target wireless hotspot, second hotspot information of the target wireless hotspot can be obtained.
Step 406, verifying the first hotspot information according to the second hotspot information, and obtaining the complete hotspot information of the target wireless hotspot according to the verification result.
If the first hotspot information is consistent with the second hotspot information, for example, the information such as the frequency band and the channel is consistent, the verification result is that the verification is successful, and any one of the first hotspot information or the second hotspot information can be used as the hotspot information of the target wireless hotspot. If the first hot spot information is inconsistent with the second hot spot information, for example, the information of the frequency band or the channel is inconsistent, the verification result is verification failure. If the verification fails, the second hotspot information is used as the criterion, and the hotspot information of the target wireless hotspot is updated. After verification, the electronic device can also acquire complete hotspot information of the target wireless hotspot. Optionally, the complete hotspot information may include hotspot identification, frequency band, channel, bandwidth of the target wireless hotspot, and the above information such as the password, the key for encrypting the message, and the like. And capturing the air interface data packet of the target wireless hotspot according to the complete hotspot information.
In some embodiments, after the electronic device obtains the second hotspot information through the wireless communication connection established between the wireless communication module and the target wireless hotspot, the communication connection between the wireless communication module and the target wireless hotspot may be disconnected, and a second display interface may be output, where the second display interface may include the hotspot information of the target wireless hotspot after verification, so as to facilitate the user to confirm the hotspot information of the target wireless hotspot.
FIG. 6A is a schematic diagram of a second display interface in one embodiment. As shown in fig. 6A, the electronic device may display a second display interface 610 on a screen, where the second display interface 610 may include hotspot information 602 of the target wireless hotspot, and the hotspot information 602 includes a frequency band of 2.4G, a channel 11, and a bandwidth band of 20MHz (megahertz).
Fig. 6B is a schematic diagram of a second display interface according to another embodiment. As shown in fig. 6B, the electronic device may display a second display interface 610 on the screen, where the second display interface 610 may include the hotspot information 604 of the target wireless hotspot, and the hotspot information 604 includes the frequency band 5G, the channel 36, and the bandwidth band 80MHz. Further, the second display interface 610 may also include a start grab button 606 and an end grab button 608, as well as log list buttons.
Alternatively, the user may select the bandwidth, for example, 20MHz, 40MHz, 80MHz, 160MHz, etc., but is not limited thereto. And the complete hotspot information of the target wireless hotspot can be updated according to the bandwidth selected by the user. In some embodiments, the second display interface may also include complete hotspot information of the target wireless hotspot, so that the user may completely obtain the hotspot information of the target wireless hotspot.
In some embodiments, the second display interface may further include a start grabbing button and an end grabbing button, and the user may control the electronic device to start grabbing an air interface data packet transmitted between the test terminal and the target wireless hotspot by triggering the start grabbing button. When a command for starting grabbing is received, a sniffer interface of the bottom layer can be called, and an air interface data packet of the target wireless hotspot is grabbed through the sniffer interface. And capturing the air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information of the target wireless hotspot. Alternatively, the capture instruction may be generated by triggering a capture start button, or may be generated by a voice instruction, for example, when a voice instruction of "capture start" issued by the user is collected, it is determined that the capture start instruction is received. The manner of triggering the grab instruction is not limited in the embodiments of the present application. As shown in fig. 6A and 6B, the user may control the electronic device to start grabbing the air interface data packet by triggering the start grabbing button 606.
In order to completely capture the air interface data packet transmitted between the test terminal and the target wireless hotspot, the air interface data packet transmitted when the test terminal is connected with the target wireless hotspot needs to be captured, so that the wireless connection between the test terminal and the target wireless hotspot needs to be disconnected first in the process of capturing the air interface data packet, and the wireless communication between the test terminal and the target wireless hotspot needs to be reestablished again. In some embodiments, when the electronic device receives the instruction to start grabbing, a second prompting message may be displayed on the second display interface, where the second prompting message is used to prompt to disconnect the communication connection between the test terminal and the target wireless hotspot, and reestablish the communication connection with the target wireless hotspot again.
Alternatively, the second prompt may be displayed using a time window mechanism. The display time threshold of the second prompt message, for example, 10 seconds, 20 seconds, etc., may be preset, and the display duration is counted down when the second prompt message is displayed, and when the count down is finished, that is, the display duration of the second prompt message has reached the display time threshold, the display of the second prompt message is canceled, so as to prevent the second prompt message from affecting the subsequent interaction.
Fig. 6C is a schematic diagram illustrating displaying a second prompt message on the second display interface according to an embodiment. As shown in fig. 6C, when the electronic device receives the command to start grabbing, a second prompt 620 may be displayed on the second display interface 610, where the second prompt 620 displays "please turn the testing machine off, turn it on, and connect the selected WiFi again", so as to prompt the user to disconnect the communication connection between the testing terminal and the target wireless hotspot, and re-establish the communication connection with the target wireless hotspot again. The second prompt 620 may employ a time window mechanism and may display the countdown duration. The user can clearly know that the test terminal needs to be disconnected from the target wireless hotspot and reconnected through the second prompt information, so that the operation required to be executed by the user can be guided in a friendly way, and even if the user does not clearly grasp the specific operation in the process of capturing the air interface data packet, the user can successfully grasp the air interface data packet under the guidance of the second display interface.
In some embodiments, the capturing, according to the complete hotspot information, the air interface data packet transmitted between the test terminal and the target wireless hotspot may include: determining a target channel according to the complete hot spot information, monitoring an air interface data packet transmitted by a target wireless hot spot on the target channel, capturing the monitored air interface data packet, generating a filtering condition according to a terminal identification of a test terminal, and filtering the captured air interface data packet according to the filtering condition.
When receiving the command for starting grabbing, the method can start grabbing the air interface data packet at this time. The target channel to be monitored can be determined according to the complete hotspot information of the target wireless hotspot, and the air interface data packet transmitted by the target wireless hotspot is monitored on the target channel. Because the grabbed air interface data packets are all air interface data packets transmitted by the target wireless hotspot, the grabbed air interface data packets can be filtered in order to acquire the air interface data packets transmitted between the test terminal and the target wireless hotspot. The filtering condition may be generated according to a terminal identifier of the test terminal, where the filtering condition may include a terminal identifier such as a MAC address of the test terminal, and in some embodiments, a data protocol and a transmission port of the transmitted air interface packet may be filtered in addition to the terminal identifier filtering.
In some embodiments, the user may control the electronic device to stop grabbing the air interface data packet by triggering the end grabbing key, as shown in fig. 6A and 6B, and the user may control the electronic device to stop grabbing the air interface data packet by triggering the end grabbing key 608. After the capturing of the air interface data packet is stopped, the captured air interface data packet can be filtered according to the generated filtering condition, and the air interface data packet transmitted between the test terminal and the target wireless hotspot is obtained. Optionally, if the target wireless hotspot is an encryption hotspot, the grabbed air interface data packet is an encrypted message, and after the grabbed air interface data packet is filtered, the encrypted message can be decrypted according to information such as an SSID and a password of the target wireless hotspot to obtain a plaintext of the air interface data packet, so that a wireless network between the test terminal and the target wireless hotspot is conveniently analyzed according to the grabbed air interface data packet.
In the embodiment of the application, the hot spot information of the target wireless hot spot can be verified to ensure that the grabbed air interface data packet is more accurate, and the user can be guided to accurately execute each operation through the output friendly interactive interface, so that even if the user does not clearly grab the specific operation of the air interface data packet in advance, the grabbing of the air interface data packet can be accurately completed under guidance, and the grabbing efficiency of the air interface data packet is improved.
As shown in fig. 7, in one embodiment, another method for capturing an air interface packet is provided, which may be applied to the electronic device described above, and the method may include the following steps:
step 702, outputting a first display interface including a wireless hotspot list, where the wireless hotspot list includes at least one wireless hotspot.
In step 704, in response to the hotspot selection operation for the wireless hotspot list, when the selected target wireless hotspot is an encrypted hotspot, first prompt information is displayed on the first display interface, where the first prompt information is used to prompt for inputting a password of the target wireless hotspot.
Step 706, obtaining the input password, and controlling the wireless communication module to establish communication connection with the target wireless hotspot by adopting the input password.
Step 708, obtain first hotspot information of the selected target wireless hotspot, where the first hotspot information is hotspot information obtained when the target wireless hotspot is scanned.
Step 710, obtaining second hotspot information of the target wireless hotspot through the communication connection.
Step 712, verifying the first hotspot information according to the second hotspot information, and obtaining the complete hotspot information of the target wireless hotspot according to the verification result.
Step 714, disconnecting the communication connection between the wireless communication module and the target wireless hotspot, and outputting a second display interface including the complete hotspot information.
And 716, when a command for starting grabbing is received, grabbing the air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information.
The descriptions of steps 702-716 may refer to the descriptions related to the above embodiments, and are not repeated herein, but it should be noted that step 708 may be performed before step 704 or after step 706, and the execution sequence is not limited herein.
In some embodiments, when receiving the instruction to start grabbing, the electronic device may acquire the current remaining memory, where the remaining memory may refer to the current available memory, and optionally may acquire the current remaining memory by calling an available memory acquisition interface, such as a getmemryinfo () interface. Whether the current residual memory is smaller than a first threshold value or not can be judged, if so, the fact that the current residual memory is smaller than the first threshold value can be indicated, and the method is not suitable for grabbing the empty data packet. If the current remaining memory is smaller than the first threshold, a third prompt message may be output, where the third prompt message may be used to prompt to release the memory, where the third prompt message may be displayed on the second display interface, or may be output by voice, for example, the third prompt message of "the current memory is insufficient, please release part of the memory and then start to be grabbed" may be output by voice, and the prompting mode of the third prompt message is not limited herein. After receiving the third prompt information, the user can release the memory of the electronic equipment by closing the process which does not need to be used. In some embodiments, if the current remaining memory is less than the first threshold, the electronic device may also directly kill the process currently running in the background and having a lower priority, thereby freeing up memory.
When the electronic equipment releases the memory, the current residual memory can be detected in real time, and when the current residual memory is not smaller than a first threshold value, the air interface data packet of the target wireless hotspot can be grabbed according to the hotspot information of the target wireless hotspot. The captured air interface data packet can be stored, after the air interface data packet is stored, whether the residual memory is smaller than a second threshold value can be judged, and if the residual memory is smaller than the second threshold value, the capturing of the air interface data packet can be stopped. Alternatively, the first threshold and the second threshold may be set according to actual requirements, for example, the first threshold is 5GB (gigabytes), the second threshold is 2GB, and the like, but not limited thereto. The electronic equipment can actively stop grabbing the empty data packet according to the currently available memory, so that the situation that the user forgets to stop grabbing the empty data packet and explodes the memory can be prevented, and the performance of the electronic equipment is reduced.
In some embodiments, the data packets of the grabbed air interface may be stored once each data packet is grabbed, or may be stored according to a certain period of time, for example, the grabbed data packets may be stored every 10 seconds, etc. Alternatively, the user may trigger a stop grabbing button, that is, after the electronic device receives the stop grabbing instruction, store all the data packets grabbed at this time, and so on.
As a specific implementation manner, the grabbed air interface data packet is stored, and when the data volume of the grabbed air interface data packet reaches the third threshold value, the grabbing operation is paused, and the grabbed air interface data packet is stored. Optionally, the third threshold may be set according to actual requirements, for example, the grabbed air interface packet reaches 2GB, and the grabbing operation may be paused first, and the grabbed air interface packet is saved. After the grabbed air interface data packet is stored, if the current residual memory is not smaller than the second threshold value, the air interface data packet can be grabbed continuously. The data amount of the air interface data packet stored each time is only a third threshold value, so that the problem that the copying or the transmission is too slow due to the fact that the stored air interface data packet is too large when the stored air interface data packet is copied or transmitted in the follow-up process can be prevented, and the efficiency of copying, transmitting and the like of the air interface data packet can be improved.
In some embodiments, when the grabbed air interface data packet is stored, name input prompt information can be displayed on the second display interface, and the name input prompt information can be used for prompting a user to input the name of the stored air interface data packet. After the name of the air interface data packet input by the user is obtained, the save progress can be displayed, so that the user can know the save progress of the air interface data packet conveniently.
Fig. 8 is a schematic diagram of a second display interface in another embodiment. As shown in fig. 8 (a), when the electronic device stores the captured air interface packet, the name input prompt 802 may be displayed on the second display interface 610, the user may input the name of the air interface packet in the display name input prompt 802, and after the user confirms the input name, the saving progress 802 may be displayed on the second display interface 610 as shown in fig. 8 (b).
Step 718, outputting a third display interface including an air interface packet list, where the air interface packet list includes at least one grabbed air interface packet.
After the electronic device stops grabbing the air interface data packet, that is, after the grabbing of the air interface data packet is finished, a third display interface including an air interface packet list may be output, where the air interface packet list may at least include the air interface data packet stored this time. Optionally, the user may also display the air interface packet list by triggering a log list button in the second display interface to jump to the third display interface.
Any one or more air interface data packets in the air interface packet list can be selected by a user to be uploaded to the server, and the deleting operation of deleting the air interface data packets, the renaming operation of the air interface data packets and the like can be performed on the third display interface.
Step 720, in response to the upload operation for the target air interface data packet in the air interface packet list, uploading the target air interface data packet to the server, and displaying the uploading progress.
When the user is detected to upload the target air interface data packet in the air interface packet list, the target air interface data packet which is required to be uploaded by the user can be determined, the target air interface data packet selected by the user can be uploaded to the server, and the uploading progress is synchronously displayed.
FIG. 9A is a diagram of a third display interface according to one embodiment. As shown in fig. 9A, the electronic device may display a third display interface 910 on the screen, where the third display interface 910 may include an air interface packet list 902, and the air interface packet list 902 may include an air interface packet stored this time, or may include an air interface packet stored when the air interface packet is grabbed in the past. The user may select an air interface packet to upload in the air interface packet list 902. FIG. 9B is a diagram illustrating an upload progress displayed in a third display interface according to an embodiment. As shown in fig. 9B, if the user selects the air interface packet 2 to upload to the server, the air interface packet corresponding to the air interface packet 2 may be uploaded to the server, and the uploading progress may be synchronously displayed.
Fig. 9C is a schematic diagram of a third display interface according to another embodiment. As shown in fig. 9C, the user may trigger the operation menu 904 for displaying the air interface packet through a long-press touch operation, where the operation menu 904 may include operations that may be performed, such as renaming, deleting, etc., and the user may select a corresponding operation according to a requirement to rename the air interface packet, delete the air interface packet, etc.
In the embodiment of the application, the user is guided through the output-friendly display interface, and can grasp the air interface data packet of the wireless hot spot only through simple interactive operation, so that the operation of grasping the air interface data packet can be simplified, and the grasping efficiency of the air interface data packet is improved. And moreover, the user can select an air interface data packet to upload according to the requirements, so that the wireless network connected with the test terminal can be conveniently analyzed, the network equipment can be debugged, and the operation difficulty is effectively reduced.
As shown in fig. 10, in one embodiment, an apparatus 1000 for capturing an air interface packet is provided and may be applied to the above-mentioned electronic device. The apparatus 1000 for capturing an air interface packet may include an interface output module 1010, a hotspot information obtaining module 1020, and a capturing module 1030.
The interface output module 1010 is configured to output a first display interface including a wireless hotspot list, where the wireless hotspot list includes at least one wireless hotspot.
The hotspot information obtaining module 1020 is configured to obtain hotspot information of the selected target wireless hotspot in response to a hotspot selection operation for the wireless hotspot list.
And the grabbing module 1030 is configured to grab the air interface data packet of the target wireless hotspot according to the hotspot information.
In the embodiment of the application, a first display interface including a wireless hotspot list is output, the wireless hotspot list includes at least one wireless hotspot, hotspot information of a selected target wireless hotspot is obtained in response to hotspot selection operation for the wireless hotspot list, an air interface data packet of the target wireless hotspot is grabbed according to the hotspot information, a user is guided through the output-friendly display interface, the user can grab the air interface data packet of the wireless hotspot only through simple interaction operation, operation of grabbing the air interface data packet can be simplified, and grabbing efficiency of the air interface data packet is improved.
In one embodiment, the hotspot information obtaining module 1020 is further configured to obtain first hotspot information of the selected target wireless hotspot, where the first hotspot information is hotspot information obtained when the target wireless hotspot is scanned.
The capturing module 1030 is further configured to capture an air interface data packet of the target wireless hotspot according to the first hotspot information.
In one embodiment, the hotspot information obtaining module 1020 is further configured to establish a communication connection with the target wireless hotspot through the wireless communication module, obtain second hotspot information of the target wireless hotspot through the communication connection, verify the first hotspot information according to the second hotspot information, and obtain complete hotspot information of the target wireless hotspot according to a verification result.
And the capturing module 1030 is further configured to capture an air interface data packet of the target wireless hotspot according to the complete hotspot information.
In one embodiment, the apparatus 1000 for capturing air interface data packets includes an interface output module 1010, a hotspot information obtaining module 1020, a capturing module 1030, and a password input module and a password verification module.
And the password input module is used for displaying first prompt information on the first display interface when the target wireless hotspot is the encryption hotspot, wherein the first prompt information is used for prompting to input the password of the target wireless hotspot.
The password verification module is used for acquiring the input password and controlling the wireless communication module to establish communication connection with the target wireless hotspot by adopting the input password, if the connection is successful, the password is verified to be correct, and if the connection is failed, the password is verified to be wrong.
In one embodiment, the apparatus 1000 for capturing air interface data packets includes an interface output module 1010, a hotspot information obtaining module 1020, a capturing module 1030, a password input module, and a password verification module, and further includes a frequency band selection module.
The interface output module 1010 is further configured to display, on the first display interface, frequency band selection information if the target wireless hotspot is identified to include at least two frequency bands, where the frequency band selection information includes at least two frequency bands.
The frequency band selection module is used for responding to the frequency band selection operation aiming at the frequency band selection information and acquiring the selected target frequency band.
The capturing module 1030 is further configured to control the wireless communication module to establish a communication connection with the target wireless hotspot through the target frequency band.
In one embodiment, the hotspot information obtaining module 1020 is further configured to disconnect the communication connection between the wireless communication module and the target wireless hotspot after obtaining the complete hotspot information of the target wireless hotspot according to the verification result.
In one embodiment, the interface output module 1010 is further configured to output a second display interface including complete hotspot information, and when receiving the instruction to start grabbing, display second prompting information on the second display interface, where the second prompting information is used to prompt to disconnect the communication connection between the test terminal and the target wireless hotspot, and reestablish the communication connection with the target wireless hotspot again.
And the grabbing module 1030 is further configured to grab an air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information.
In one embodiment, the grabbing module 1030 includes a listening unit and a filtering unit.
And the monitoring unit is used for determining a target channel according to the complete hot spot information, monitoring the air interface data packet transmitted by the target wireless hot spot on the target channel, and capturing the monitored air interface data packet.
And the filtering unit is used for generating filtering conditions according to the terminal identification of the test terminal and filtering the grabbed air interface data packet according to the filtering conditions.
In the embodiment of the application, the hot spot information of the target wireless hot spot can be verified to ensure that the grabbed air interface data packet is more accurate, and the user can be guided to accurately execute each operation through the output friendly interactive interface, so that even if the user does not clearly grab the specific operation of the air interface data packet in advance, the grabbing of the air interface data packet can be accurately completed under guidance, and the grabbing efficiency of the air interface data packet is improved.
In one embodiment, the grabbing module 1030 is further configured to output, through the interface output module 1010, a third prompting message for prompting to release the memory if the current remaining memory is less than the first threshold, grab the air interface packet of the target wireless hotspot according to the hotspot information if the current remaining memory is not less than the first threshold, store the grabbed air interface packet, and stop grabbing the air interface packet when the remaining memory is less than the second threshold.
In one embodiment, the grabbing module 1030 is further configured to suspend the grabbing operation when the data amount of the grabbed air interface data packet reaches the third threshold, save the grabbed air interface data packet, and continue grabbing the air interface data packet.
In one embodiment, the apparatus 1000 for capturing an air interface packet includes an interface output module 1010, a hotspot information obtaining module 1020, a capturing module 1030, a password input module, a password verification module, and a frequency band selection module, and further includes an uploading module.
The interface output module 1010 is further configured to output a third display interface including an air interface packet list, where the air interface packet list includes at least one grabbed air interface packet.
And the uploading module is used for responding to the uploading operation of the target air interface data packet in the air interface packet list, uploading the target air interface data packet to the server and displaying the uploading progress.
In the embodiment of the application, the user is guided through the output-friendly display interface, and can grasp the air interface data packet of the wireless hot spot only through simple interactive operation, so that the operation of grasping the air interface data packet can be simplified, and the grasping efficiency of the air interface data packet is improved. And moreover, the user can select an air interface data packet to upload according to the requirements, so that the wireless network connected with the test terminal can be conveniently analyzed, the network equipment can be debugged, and the operation difficulty is effectively reduced.
FIG. 11 is a block diagram of an electronic device in one embodiment. As shown in fig. 11, the electronic device may include: radio frequency module 1110, memory 1120, input unit 1130, display unit 1140, sensor 1150, audio circuit 1160, wiFi module 1170, processor 1180, power supply 1190, and the like. Those skilled in the art will appreciate that the electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
The radio frequency module 1110 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by the processor 1180; in addition, the data of the design uplink is sent to the base station. Typically, the radio frequency module 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (low noise amplifier, LNA), a duplexer, and the like. In addition, the radio frequency module 1110 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communications standard or protocol including, but not limited to, global system for mobile communications (global system of mobile communication, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution, email, short message service (short messaging service, SMS), etc.
The memory 1120 may be used to store software programs and modules, and the processor 1180 executes the software programs and modules stored in the memory 1120 to perform various functional applications and data processing of the electronic device. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 1130 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the electronic device. In particular, the input unit 1130 may include a touch panel 1132 and other input devices 1134. The touch panel 1132, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1132 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1132 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device and converts it into touch point coordinates, which are then sent to the processor 1180, and can receive commands from the processor 1180 and execute them. In addition, the touch panel 1132 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1134 in addition to the touch panel 1132. In particular, other input devices 1134 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 1140 may be used to display information input by a user or information provided to a user and various menus of an electronic device. The display unit 1140 may include a display panel 1142, and optionally, the display panel 1142 may be configured in the form of a liquid crystal display (liquid crystal display, LCD), an organic light-Emitting diode (OLED), or the like. Further, the touch panel 1132 may overlay the display panel 1142, and when the touch panel 1132 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 1180 to determine the type of touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1142 according to the type of touch event. Although in fig. 11, the touch panel 1132 and the display panel 1142 are two separate components to implement the input and input functions of the electronic device, in some embodiments, the touch panel 1132 may be integrated with the display panel 1142 to implement the input and output functions of the electronic device.
The electronic device may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1142 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1142 and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 1160, speakers 1162, and microphone 1164 may provide an audio interface between a user and the electronic device. The audio circuit 1160 may transmit the received electrical signal converted from audio data to the speaker 1162, and may be converted into a sound signal by the speaker 1162 to be output; on the other hand, the microphone 1164 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are processed by the audio data output processor 1180 for transmission to, for example, another electronic device via the radio frequency module 1110, or for output to the memory 1120 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 1170, so that wireless broadband Internet access is provided for the user.
The processor 1180 is a control center of the electronic device, and connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, thereby performing overall monitoring of the electronic device. In the alternative, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1180.
The electronic device also includes a power supply 1190 (e.g., a battery) for powering the various components, which may be logically connected to the processor 1180 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein.
In one embodiment, a computer program stored in memory 1120, when executed by processor 1180, causes processor 1180 to implement the methods described in the embodiments above.
The present embodiments disclose a computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method as described in the above embodiments.
The present embodiments disclose a computer program product comprising a non-transitory computer readable storage medium storing a computer program, which when executed by a processor, implements a method as described in the above embodiments.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments and that the acts and modules referred to are not necessarily required in the present application.
In various embodiments of the present application, it should be understood that the size of the sequence numbers of the above processes does not mean that the execution sequence of the processes is necessarily sequential, and the execution sequence of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a memory, including several requests for a computer device (which may be a personal computer, a server or a network device, etc., in particular may be a processor in the computer device) to perform part or all of the steps of the above-mentioned method of the various embodiments of the present application.
The above detailed description of a method, an apparatus, an electronic device, and a storage medium for capturing an air interface packet disclosed in the embodiments of the present application applies specific examples to illustrate the principles and embodiments of the present application, where the above description of the embodiments is only used to help understand the method and core ideas of the present application. Meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (11)

1. A method for capturing an air interface packet, comprising:
outputting a first display interface comprising a wireless hotspot list, wherein the wireless hotspot list comprises at least one scanned wireless hotspot within a preset range;
responding to a hotspot selection operation aiming at the wireless hotspot list, and acquiring first hotspot information of a selected target wireless hotspot, wherein the first hotspot information is hotspot information obtained when the target wireless hotspot is scanned;
establishing communication connection with the target wireless hotspot through a wireless communication module, and acquiring second hotspot information of the target wireless hotspot through the communication connection;
Verifying the first hotspot information according to the second hotspot information, and obtaining complete hotspot information of the target wireless hotspot according to a verification result;
and grabbing the air interface data packet of the target wireless hotspot according to the complete hotspot information.
2. The method of claim 1, wherein prior to said establishing a communication connection with said target wireless hotspot via a wireless communication module, the method further comprises:
when the target wireless hotspot is an encryption hotspot, displaying first prompt information on the first display interface, wherein the first prompt information is used for prompting to input a password of the target wireless hotspot;
the establishing communication connection with the target wireless hotspot through the wireless communication module comprises the following steps:
and acquiring an input password, controlling the wireless communication module to establish communication connection with the target wireless hotspot by adopting the input password, if the connection is successful, verifying that the password is correct, and if the connection is failed, verifying that the password is wrong.
3. The method of claim 1, wherein prior to said establishing a communication connection with said target wireless hotspot via a wireless communication module, the method further comprises:
If the target wireless hotspot is identified to comprise at least two frequency bands, displaying frequency band selection information on the first display interface, wherein the frequency band selection information comprises the at least two frequency bands;
responding to the frequency band selection operation aiming at the frequency band selection information, and acquiring a selected target frequency band;
the establishing communication connection with the target wireless hotspot through the wireless communication module comprises the following steps:
and controlling the wireless communication module to establish communication connection with the target wireless hotspot through the target frequency band.
4. A method according to any one of claims 1-3, wherein after the obtaining of the complete hotspot information of the target wireless hotspot according to the verification result, the method further comprises:
disconnecting the communication connection between the wireless communication module and the target wireless hotspot;
outputting a second display interface comprising the complete hot spot information;
the capturing the air interface data packet of the target wireless hotspot according to the complete hotspot information comprises the following steps:
when a command for starting grabbing is received, displaying second prompt information on the second display interface, wherein the second prompt information is used for prompting disconnection of the communication connection between the test terminal and the target wireless hotspot, and reestablishing communication connection with the target wireless hotspot again;
And capturing an air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information.
5. The method of claim 4, wherein the capturing, according to the complete hotspot information, an air interface packet transmitted between the test terminal and the target wireless hotspot comprises:
determining a target channel according to the complete hotspot information, monitoring an air interface data packet transmitted by the target wireless hotspot on the target channel, and capturing the monitored air interface data packet;
and generating a filtering condition according to the terminal identification of the test terminal, and filtering the grabbed air interface data packet according to the filtering condition.
6. The method of claim 1, wherein the capturing the air interface packet of the target wireless hotspot according to the complete hotspot information comprises:
if the current residual memory is smaller than the first threshold, outputting third prompt information, wherein the third prompt information is used for prompting to release the memory;
and if the current residual memory is not smaller than the first threshold, capturing the air interface data packet of the target wireless hotspot according to the complete hotspot information, storing the captured air interface data packet, and stopping capturing the air interface data packet when the residual memory is smaller than the second threshold.
7. The method of claim 6, wherein the storing the grabbed air interface packet comprises:
and when the data quantity of the grabbed air interface data packet reaches a third threshold value, suspending the grabbing operation, storing the grabbed air interface data packet, and continuing to grab the air interface data packet.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
outputting a third display interface comprising an air interface packet list, wherein the air interface packet list comprises at least one grabbed air interface data packet;
and responding to the uploading operation aiming at the target air interface data packet in the air interface packet list, uploading the target air interface data packet to a server, and displaying the uploading progress.
9. An apparatus for capturing an air interface packet, comprising:
the interface output module is used for outputting a first display interface comprising a wireless hotspot list, wherein the wireless hotspot list comprises at least one scanned wireless hotspot within a preset range;
the hotspot information acquisition module is used for responding to the hotspot selection operation aiming at the wireless hotspot list and acquiring first hotspot information of the selected target wireless hotspot, wherein the first hotspot information is obtained when the target wireless hotspot is scanned; establishing communication connection with the target wireless hotspot through a wireless communication module, and acquiring second hotspot information of the target wireless hotspot through the communication connection; verifying the first hotspot information according to the second hotspot information, and obtaining complete hotspot information of the target wireless hotspot according to a verification result;
And the grabbing module is used for grabbing the air interface data packet of the target wireless hotspot according to the complete hotspot information.
10. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 1 to 8.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any one of claims 1 to 8.
CN202010784012.3A 2020-08-06 2020-08-06 Method and device for capturing air interface data packet, electronic equipment and storage medium Active CN111970678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010784012.3A CN111970678B (en) 2020-08-06 2020-08-06 Method and device for capturing air interface data packet, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010784012.3A CN111970678B (en) 2020-08-06 2020-08-06 Method and device for capturing air interface data packet, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111970678A CN111970678A (en) 2020-11-20
CN111970678B true CN111970678B (en) 2023-04-28

Family

ID=73365053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010784012.3A Active CN111970678B (en) 2020-08-06 2020-08-06 Method and device for capturing air interface data packet, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111970678B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958083A (en) * 2012-12-07 2013-03-06 广州杰赛科技股份有限公司 Network optimization equipment, wireless local area network optimization system and method
CN105636082A (en) * 2016-03-25 2016-06-01 广东欧珀移动通信有限公司 Method for acquiring channel information and mobile terminal
CN105682134A (en) * 2016-03-28 2016-06-15 上海物联网有限公司 WIFI-based intelligent terminal real-time sniffing method and real-time sniffing system
CN106354601A (en) * 2016-08-12 2017-01-25 深圳Tcl数字技术有限公司 Storage space management method and device for data partition
CN107360040A (en) * 2017-08-18 2017-11-17 上海斐讯数据通信技术有限公司 A kind of method and system for capturing, preserving router data bag
CN109308899A (en) * 2018-09-12 2019-02-05 连尚(新昌)网络科技有限公司 A kind of hotspot connection method, equipment and the storage medium of voice control
CN110336712A (en) * 2019-07-01 2019-10-15 Oppo广东移动通信有限公司 Mobile terminal grabs method, apparatus, storage medium and the mobile terminal wrapped in the air
CN110875858A (en) * 2018-08-31 2020-03-10 北京京东尚科信息技术有限公司 Application test data capturing method, system, equipment and storage medium
CN111078769A (en) * 2019-11-26 2020-04-28 苏宁云计算有限公司 Metadata capturing method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110205364A1 (en) * 2009-11-09 2011-08-25 Charles Lampe Method and apparatus to transmit video data
CN103281754B (en) * 2013-04-25 2017-02-22 深信服网络科技(深圳)有限公司 Local forwarding mode-based wireless access point information acquisition method and device
CN103532782B (en) * 2013-10-15 2017-07-28 东南大学 A kind of WLAN wireless network testers and its method of testing
CN107046688B (en) * 2017-03-07 2019-01-29 腾讯科技(深圳)有限公司 A kind of connection method of WLAN and device
CN107018543A (en) * 2017-04-06 2017-08-04 杭州亚古科技有限公司 Scan the method and system of WiFi equipment
US20190230323A1 (en) * 2018-01-22 2019-07-25 Magna Electronics Inc. Vehicle vision system with wireless camera pairing
CN109309535A (en) * 2018-10-26 2019-02-05 四川长虹电器股份有限公司 AP equipment wireless automatic detection system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958083A (en) * 2012-12-07 2013-03-06 广州杰赛科技股份有限公司 Network optimization equipment, wireless local area network optimization system and method
CN105636082A (en) * 2016-03-25 2016-06-01 广东欧珀移动通信有限公司 Method for acquiring channel information and mobile terminal
CN105682134A (en) * 2016-03-28 2016-06-15 上海物联网有限公司 WIFI-based intelligent terminal real-time sniffing method and real-time sniffing system
CN106354601A (en) * 2016-08-12 2017-01-25 深圳Tcl数字技术有限公司 Storage space management method and device for data partition
CN107360040A (en) * 2017-08-18 2017-11-17 上海斐讯数据通信技术有限公司 A kind of method and system for capturing, preserving router data bag
CN110875858A (en) * 2018-08-31 2020-03-10 北京京东尚科信息技术有限公司 Application test data capturing method, system, equipment and storage medium
CN109308899A (en) * 2018-09-12 2019-02-05 连尚(新昌)网络科技有限公司 A kind of hotspot connection method, equipment and the storage medium of voice control
CN110336712A (en) * 2019-07-01 2019-10-15 Oppo广东移动通信有限公司 Mobile terminal grabs method, apparatus, storage medium and the mobile terminal wrapped in the air
CN111078769A (en) * 2019-11-26 2020-04-28 苏宁云计算有限公司 Metadata capturing method and system

Also Published As

Publication number Publication date
CN111970678A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN108845853B (en) Application program starting method and mobile terminal
US10269163B2 (en) Method and apparatus for switching real-time image in instant messaging
CN107222613B (en) Display method and terminal
CN108924037B (en) Display method of rich media communication RCS message and mobile terminal
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
CN107038245B (en) Page switching method, mobile terminal and storage medium
CN109068167B (en) Screen recording interaction method, mobile terminal, wearable device and storage medium
CN107592416B (en) Voice message transmitting method, terminal and computer readable storage medium
CN108200632B (en) Method for accessing terminal to LTE network and terminal
CN107959952B (en) Method and terminal for detecting inter-system cell
CN107465841B (en) Fault information reporting method and terminal
CN109819489B (en) Terminal calling method and terminal
WO2015131768A1 (en) Video processing method, apparatus and system
CN111970683A (en) Method and device for switching SIM (subscriber identity Module) card, terminal equipment and storage medium
CN111010663B (en) Information sharing method and device, storage medium and computer equipment
CN110913455B (en) Method for forbidding abnormal cell, electronic equipment and server
CN108282834B (en) Method for accessing terminal to LTE network and terminal
US20220150788A1 (en) Communication processing method, terminal device, and medium
CN109151081B (en) Production comprehensive testing method and device, intelligent terminal and readable storage medium
CN106020945B (en) Shortcut item adding method and device
CN112770279B (en) Network sharing method, mobile terminal and computer readable storage medium
CN111970678B (en) Method and device for capturing air interface data packet, electronic equipment and storage medium
CN108541003B (en) VoWiFi call control method and device
CN107995669B (en) Display method of wireless access point AP information and mobile terminal

Legal Events

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