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

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

Info

Publication number
CN111970678A
CN111970678A CN202010784012.3A CN202010784012A CN111970678A CN 111970678 A CN111970678 A CN 111970678A CN 202010784012 A CN202010784012 A CN 202010784012A CN 111970678 A CN111970678 A CN 111970678A
Authority
CN
China
Prior art keywords
hotspot
air interface
data packet
wireless hotspot
interface data
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.)
Granted
Application number
CN202010784012.3A
Other languages
Chinese (zh)
Other versions
CN111970678B (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

Abstract

The embodiment of the application discloses a method and a device for capturing an air interface data packet, electronic equipment and a storage medium. 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 the hotspot selection operation aiming at the wireless hotspot list, and acquiring hotspot information of the selected target wireless hotspot; and capturing the air interface data packet of the target wireless hotspot according to the hotspot information. According to the method, the device, the electronic equipment and the storage medium for grabbing the air interface data packet, the operation of grabbing the air interface data packet can be simplified, and the grabbing efficiency of the air interface data packet is improved.

Description

Method and device for grabbing air interface data packet, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for capturing an air interface data packet, an electronic device, and a storage medium.
Background
When the electronic device encounters a wireless communication problem (e.g., a network is slow, networking is not possible), since some signal transmission flows between the electronic device and network devices such as a router cannot be known, a wireless air interface packet needs to be captured by using a tool such as a wireless network card or a wireless sniffer, so that the condition of wireless communication is accurately known by analyzing the wireless air interface packet.
When a user needs to control the electronic device to capture an air interface data packet at present, the user needs to accurately know the whole process of capturing the air interface data packet and various instructions, the operation is very complicated, and the capturing efficiency is too low.
Disclosure of Invention
The embodiment of the application discloses a method and a device for grabbing an air interface data packet, electronic equipment and a storage medium, 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 capturing 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 the hotspot selection operation aiming at the wireless hotspot list, and acquiring hotspot information of the 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 device for capturing an air interface data packet, which comprises:
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 hotspot selection operation aiming at the wireless hotspot list and acquiring 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 an electronic device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to realize the method.
An embodiment of the application discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method as described above.
The method, the device, the electronic equipment and the storage medium for grabbing the air interface data packet disclosed by the embodiment of the application output a first display interface comprising a wireless hotspot list, the wireless hotspot list comprises at least one wireless hotspot, the hotspot selection operation aiming at the wireless hotspot list is responded, the hotspot information of a selected target wireless hotspot is obtained, the 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, the operation of grabbing the air interface data packet can be simplified, and the grabbing efficiency of the air interface data packet is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used 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 it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is an application scenario diagram of a method for capturing an air interface data packet in an embodiment;
fig. 2 is a flowchart of a method for fetching an air interface data packet in an embodiment;
FIG. 3A is a diagram illustrating a first display interface, in accordance with an embodiment;
FIG. 3B is a diagram illustrating a first display interface in accordance with another embodiment;
fig. 4 is a flowchart of acquiring hotspot information of a target wireless hotspot in one embodiment;
FIG. 5A is a diagram illustrating frequency band selection information displayed on a first display interface, according to an embodiment;
FIG. 5B is a diagram illustrating displaying of a first prompt on a first display interface, in accordance with an embodiment;
FIG. 6A is a diagram illustrating a second display interface, in accordance with an embodiment;
FIG. 6B is a diagram illustrating a second display interface in accordance with another embodiment;
FIG. 6C is a diagram illustrating display of a second prompt on a second display interface, in accordance with an embodiment;
fig. 7 is a flowchart of a method for fetching an air interface data packet in another embodiment;
FIG. 8 is a diagram illustrating a second display interface in accordance with another embodiment;
FIG. 9A is a diagram illustrating a third display interface, in accordance with an embodiment;
FIG. 9B is a diagram illustrating uploading progress displayed in a third display interface, under an embodiment;
FIG. 9C is a diagram illustrating a third display interface in accordance with another embodiment;
fig. 10 is a block diagram of an apparatus for fetching an air interface packet in an embodiment;
FIG. 11 is a block diagram of an electronic device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the examples and figures of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. 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 interface and the second display interface are display interfaces, but they are not the same display interface.
At present, a sniffer (sniffer) for capturing an air interface data packet by electronic equipment such as a mobile phone is usually implemented in an engineering mode, and some secret instructions need to enter the engineering mode of the sniffer to capture the air interface data packet. When a user captures an 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 an electronic device, needs to know a channel corresponding to a wireless hotspot for capturing the air interface data packet, and needs to know a connection operation process and set parameters of each device in the middle.
The embodiment of the application provides a method for grabbing an air interface data packet, and a user can grab the air interface data packet of a wireless hotspot only through simple interactive operation, so that the operation of grabbing the air interface data packet can be simplified, and the grabbing efficiency of the air interface data packet is improved.
Fig. 1 is an application scenario diagram of a method for fetching an air interface data packet in an 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 grab an air interface data packet transmitted in a wireless network connecting the test terminal 30 and the network device 40 through the electronic device 20. The Air Interface data packet refers to a data packet transmitted through an Air Interface (Air Interface), a link established between Air ports is called a wireless link, and by analyzing the captured Air Interface data packet, the wireless network problem of the test terminal 30 can be analyzed, and the network device 40 can be debugged. When the user 10 needs to capture an 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 a wireless hotspot 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 where the air interface data packet needs to be captured as a wireless hotspot corresponding to the network device 40. The electronic device 20 may respond to the hotspot selection operation, acquire hotspot information of the target wireless hotspot selected by the user 10, and capture an 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, and the embodiments of the present application are not limited thereto. The test terminal 30 may include, but is not limited to, a mobile phone, a tablet computer, an intelligent wearable device, and the like, and the network device 40 may include, but is not limited to, a router, a wireless bridge, and the like, which is not limited in this embodiment of the present disclosure.
As shown in fig. 2, in an embodiment, a method for fetching an air interface data packet is provided, which is applicable to the electronic device described above, and the method may include the following steps:
step 210, outputting a first display interface including a wireless hotspot list, wherein the wireless hotspot list includes at least one wireless hotspot.
The first display interface may refer to 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 an air interface data packet may be integrated in an operating system of the electronic device, and the gripping tool may be integrated in a system of the electronic device by means of an APP (Application program). As a specific implementation manner, the electronic device may provide an application icon corresponding to the grappling tool on the desktop, and the user may access and open the grappling tool by triggering the application icon to enter an application interface of the grappling tool.
As another specific implementation, the electronic device may not provide an application icon corresponding to the grappling tool on the desktop, and the user may input an opening instruction for opening the grappling tool in the electronic device, and when the electronic device receives the opening instruction, the electronic device may access and open the grappling tool installed on the electronic device and enter an application interface of the grappling tool. Alternatively, the opening instruction may be a simple preset instruction, for example, an instruction such as #1# is input through a dial of the electronic device, and the grasping tool may be accessed. Upon entering an application interface of the crawling tool, a first display interface may be displayed on the screen.
In some embodiments, when the grasping 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, the Wireless network scanning interface may be invoked to scan surrounding Wireless hotspots, such as Wireless hotspots within a preset range (e.g., within 30 meters, within 50 meters, etc.), wherein the Wireless network may include, but is not limited to, a WiFi (Wireless Fidelity) network, etc. Optionally, the manner in which the electronic device scans for the wireless hotspot may be active scanning or passive scanning. 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. The passive scanning means that the electronic device switches and receives data packets broadcast by each wireless hotspot, such as Beacon (Beacon) frames, on each channel without transmitting any signal, so as to scan the surrounding wireless hotspots. By means of the passive scanning mode, power consumption of the electronic equipment in the process of scanning the wireless hotspot can be saved.
In some embodiments, a wireless hotspot list may be included in the first display interface, and the wireless hotspot list may include hotspot names of one or more (a plurality refers to two or more) scanned wireless hotspots. FIG. 3A is a diagram illustrating a first display interface in one embodiment. After the electronic device starts the capture tool, a first display interface 310 may be displayed, the first display interface 310 may include a wireless hotspot list 302, the wireless hotspot list 302 may include scanned WiFi hotspots, for example, fig. 3A may include 5 scanned WiFi hotspots, and names of the WiFi hotspots may be displayed in the wireless hotspot list 302. Further, a selection prompt message 304 may also be displayed in the first display interface 310, where the selection prompt message 304 may be used to prompt the user to select a wireless hotspot where an air interface data packet needs to be captured, for example, the selection prompt message 304 in fig. 3A is "please select a WiFi hotspot where you need to capture an air interface packet", and the user may accurately know how to perform an operation based on the selection prompt message 304.
Step 220, responding to the hotspot selection operation aiming at the wireless hotspot list, and acquiring the hotspot information of the selected target wireless hotspot.
The user can select the wireless hot spot needing to capture the air interface data packet from the wireless hot spot list of the first display interface. The electronic equipment can respond to the hotspot selection operation aiming at the wireless hotspot list and determine a target wireless hotspot selected by a user, wherein the target wireless hotspot is a wireless hotspot needing to capture an air interface data packet. Optionally, the hotspot selection operation may include, but is not limited to, a touch operation (e.g., clicking a wireless hotspot whose null data packet needs to be captured), a voice control operation (e.g., acquiring a name of the wireless hotspot whose null data packet needs to be captured and spoken by a user), a line of sight selection operation (e.g., acquiring 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 whose focus needs to be selected), and the like, and may also be an air-separating gesture, which is not limited herein.
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 satisfies a preset naming rule. When the captured air interface data packet is analyzed, the air interface data packet with the hotspot name comprising the Chinese character cannot be analyzed, so that the selected hotspot name of the target wireless hotspot needs to meet the naming rule without the Chinese character. The method comprises the steps of carrying out character recognition on the acquired hotspot name of the target wireless hotspot, judging whether the hotspot name comprises Chinese characters or not, if so, displaying prompt information for modifying the name on a first display interface, wherein the prompt information can be used for prompting a user to modify the hotspot name of the target wireless hotspot.
FIG. 3B is a diagram illustrating a first display interface in another embodiment. As shown in fig. 3B, after the user selects a wireless hotspot to be captured of an air interface data packet in the wireless hotspot list 302, if it is detected that the hotspot name of the selected target wireless hotspot contains a chinese character, a prompt message 306 for modifying the name may be displayed in the first display interface 310. For example, "only grabbing WiFi hotspot air interface packages with WiFi names of 'english' and 'number' can be supported, please modify the WiFi name" can be displayed in the prompt message 306 for modifying the name. The user can clearly know the operation required 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 prompt information for selecting and modifying the name may also be output by voice, and is not limited to the display 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, etc. of the target wireless hotspot. The hotspot identification may include a hotspot name, a Service Set Identifier (SSID), and the like. The frequency band may refer to an operating frequency range of the wireless hotspot, and optionally, the frequency band may include 2.4GHz (gigahertz), 5GHz, and the like. The channel refers to a data signal transmission channel using a wireless signal as a transmission medium, 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 capability of the wireless communication link.
In some embodiments, the hotspot information for the target wireless hotspot may be hotspot information obtained when scanning for the target wireless hotspot. When the electronic equipment scans each surrounding wireless hotspot, the hotspot information of each wireless hotspot can be obtained according to the broadcast data packet sent by each wireless hotspot and stored. After the target wireless hotspot selected by the user is determined, hotspot information acquired when the target wireless hotspot is scanned can be acquired, and an air interface data packet of the target wireless hotspot is captured according to the hotspot information.
In some embodiments, the hotspot information of the target wireless hotspot may also be hotspot information obtained when the electronic device is connected to the target wireless hotspot. After the electronic device acquires the target wireless hotspot selected by the user, the electronic device can call a bottom wireless communication module (such as a WiFi module) to establish wireless communication connection with the target wireless hotspot, and acquire hotspot information of the target wireless hotspot through the established wireless communication connection, and can capture an air interface data packet of the target wireless hotspot according to the hotspot information after the communication connection with the target wireless hotspot is disconnected.
And step 230, capturing an air interface data packet of the target wireless hotspot according to the hotspot information.
In some embodiments, after acquiring the hotspot information of the target wireless hotspot, the electronic device may determine a target channel that needs to be subjected to packet capturing, may monitor an air interface data packet transmitted by the target wireless hotspot in the target channel, and capture the monitored air interface data packet. After the air interface data packet is captured, the air interface data packet can be analyzed according to the hotspot identification of the target wireless hotspot, so that the 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 acquired, and the captured air interface data packet is analyzed according to the SSID and the password of the target wireless hotspot to obtain the analyzed air interface packet data. Optionally, the captured air interface data packet may also be filtered according to a terminal identifier of the test terminal, so as to obtain an air interface data packet transmitted between the test terminal and the target endless hotspot, where the terminal identifier may include, but is not limited to, any one of a 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 capture the air interface data packet transmitted by the target wireless hotspot 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, sets corresponding parameters and the like, and the operation of capturing the air interface data packet can be simplified.
In the embodiment of the application, a first display interface comprising a wireless hotspot list is output, the wireless hotspot list comprises at least one wireless hotspot, hotspot selection operation aiming at the wireless hotspot list is responded, hotspot information of a selected target wireless hotspot is acquired, an 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, the operation of capturing the air interface data packet can be simplified, and the capture efficiency of the air interface data packet is improved.
As shown in fig. 4, in an embodiment, the step of obtaining the hotspot information of the selected target wireless hotspot includes the following steps:
step 402, acquiring first hotspot information of the selected target wireless hotspot, wherein the first hotspot information is hotspot information acquired when the target wireless hotspot is scanned.
In some embodiments, when scanning a target wireless hotspot, an electronic device may receive a broadcast data packet sent by the target wireless hotspot, and analyze 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 may be directly captured according to the first hotspot information, and the air interface data packet transmitted by the target wireless hotspot is monitored and captured on a channel included in the first hotspot information.
And step 404, establishing communication connection with the target wireless hotspot through the wireless communication module, and acquiring second hotspot information of the target wireless hotspot through the communication connection.
In some embodiments, in order to further ensure that an air interface data packet transmitted by a target wireless hotspot can be accurately captured, first hotspot information acquired when the target wireless hotspot is scanned may be verified. The wireless communication connection with the target wireless hotspot can be established through the wireless communication module, 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, wherein the second hotspot information can also comprise information such as a frequency band, a channel, a hotspot identification and the like of the target wireless hotspot.
In some embodiments, there are at least two frequency bands for some wireless hotspots because some networks support dual-band-one. The electronic equipment acquires the selected target wireless hotspot, and if the target wireless hotspot is identified to comprise at least two frequency bands, frequency band selection information can be displayed on a first display interface, wherein the frequency band selection information can comprise each frequency band included by the target wireless hotspot so as to be selected by a user, so that the monitored frequency band and channel are the same as those used by the test terminal when the electronic equipment grabs an air interface data packet, and the air interface data packet to be grabbed can be accurately grabbed.
Fig. 5A is a schematic diagram illustrating frequency band selection information displayed on a first display interface according to an embodiment. As shown in fig. 5A, after the user selects a wireless hotspot needing to capture an air interface data packet in the wireless hotspot list 302, if the selected target wireless hotspot includes two frequency bands, which are 2.4GHz and 5GHz, respectively, frequency band selection information 502 may be displayed in the first display interface 310, and the user may select the frequency band needing to capture the air interface data 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 a frequency band needing to be monitored, and the electronic equipment can control the wireless communication module 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 first be prompted to enter a password for the target wireless hotspot. Before establishing communication connection with a target wireless hotspot through a 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, wherein the first prompt information can be used for prompting to input a password of the target wireless hotspot. The electronic equipment can verify the input password after acquiring the input password, and can control 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.
Fig. 5B is a diagram illustrating displaying of the first prompt message on the first display interface in one embodiment. As shown in fig. 5B, after the user selects a wireless hotspot where an air interface data packet needs to be captured 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 it is detected that the user triggers the confirmation key, the password input by the user in the first prompt message 504 may be acquired and verified.
In some embodiments, if the input password is verified to be incorrect, the wireless communication module cannot connect with the target wireless hotspot by adopting the input password, the user can be prompted that the password is incorrect, the first prompting message is displayed again, and the user can input the password of the target wireless hotspot again. And 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 acquired.
And 406, 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.
If the first hotspot information is consistent with the second hotspot information, for example, the frequency band information, the channel information and other information are 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 hotspot information is inconsistent with the second hotspot information, for example, the frequency band or channel information is inconsistent, the verification result is verification failure. And if the verification fails, updating the hotspot information of the target wireless hotspot with the second hotspot information as the standard. After verification, the electronic device can also acquire complete hotspot information of the target wireless hotspot. Optionally, the complete hotspot information may include a hotspot identifier, a frequency band, a channel, a bandwidth of the target wireless hotspot, and information such as the above password and a key of the encrypted message. 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 electronic device may disconnect the communication connection between the wireless communication module and the target wireless hotspot and output a second display interface, where the second display interface may include the verified hotspot information of the target wireless hotspot, so as to facilitate the user to confirm the hotspot information of the target wireless hotspot.
FIG. 6A is a diagram illustrating a second display interface, in accordance with an embodiment. As shown in fig. 6A, the electronic device may display a second display interface 610 on the screen, where the second display interface 610 may include hot spot information 602 of the target wireless hot spot, where the hot spot information 602 includes a frequency band of 2.4G, a channel of 11, and a bandwidth band of 20MHz (megahertz).
FIG. 6B is a diagram of a second display interface in 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 hot spot information 604 of the target wireless hot spot, and the hot spot information 604 includes a frequency band 5G, a channel 36, and a band with a wideband of 80 MHz. Further, the second display interface 610 may also include a start grab button 606 and an end grab button 608, and a log list button.
Alternatively, the user may select the bandwidth, for example, 20MHz, 40MHz, 80MHz, 160MHz, etc., but not limited thereto. 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 for the target wireless hotspot, so that the user may obtain the hotspot information for the target wireless hotspot completely.
In some embodiments, the second display interface may further include a start capture button and an end capture button, and the user may control the electronic device to start capturing the air interface data packet transmitted between the test terminal and the target wireless hotspot by triggering the start capture button. And when receiving a grabbing start instruction, calling a sniffer interface at the bottom layer, and grabbing an air interface data packet of the target wireless hotspot through the sniffer interface. The air interface data packet transmitted between the test terminal and the target wireless hotspot can be captured according to the complete hotspot information of the target wireless hotspot. Alternatively, the capture instruction may be generated by triggering the capture start button, or by a voice instruction, for example, when a voice instruction of "start capture" issued by the user is acquired, it is determined that the capture start instruction is received. The triggering manner of the grab instruction is not limited in the embodiment of the present application. As shown in fig. 6A and fig. 6B, the user may control the electronic device to start fetching air interface data packets by triggering the fetch start 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 firstly 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, second prompt information may be displayed on the second display interface, where the second prompt information is used to prompt the test terminal to disconnect the communication connection with the target wireless hotspot and to reestablish the communication connection with the target wireless hotspot again.
Optionally, the second prompting message may be displayed by using a time window mechanism. A display time threshold of the second prompt message may be preset, for example, 10 seconds, 20 seconds, and the like, and the display duration is counted down when the second prompt message is displayed, and when the counting down is finished, that is, the display duration of the second prompt message reaches the display time threshold, the display of the second prompt message is cancelled, so as to prevent the second prompt message from affecting subsequent interaction.
FIG. 6C is a diagram illustrating displaying of a second prompt on a second display interface, in accordance with an embodiment. As shown in fig. 6C, when the electronic device receives the instruction to start grabbing, a second prompt message 620 may be displayed on the second display interface 610, where the second prompt message 620 displays "please turn off the testing machine and turn on the testing machine again and reconnect the selected WiFi", and is used to prompt the user to disconnect the communication connection between the testing terminal and the target wireless hotspot and reestablish 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 message, the operation which the user needs to execute can be guided friendly, and even if the user does not know the specific operation in the process of grabbing the air interface data packet, the air interface data packet can be grabbed successfully under the guidance of the second display interface.
In some embodiments, the step of capturing the air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information may include: 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, capturing the monitored air interface data packet, generating a filtering condition according to a terminal identifier of the test terminal, and filtering the captured air interface data packet according to the filtering condition.
And when receiving the grabbing start instruction, starting to grab the air interface data packet. The target channel to be monitored can be determined according to the complete hotspot information of the target wireless hotspot, and an air interface data packet transmitted by the target wireless hotspot is monitored on the target channel. Since the captured air interface data packets are all air interface data packets transmitted by the target wireless hotspot, the captured air interface data packets can be filtered in order to obtain the air interface data packets transmitted between the test terminal and the target wireless hotspot. The filtering condition may be generated according to the terminal identifier of the test terminal, where the filtering condition may include the terminal identifier such as the MAC address of the test terminal, and in some embodiments, in addition to the terminal identifier filtering, the filtering condition may also filter the data protocol and the transmission port of the transmitted null interface data packet.
In some embodiments, the user may control the electronic device to stop fetching the air interface data packet by triggering the end-fetching key, as shown in fig. 6A and 6B, and the user may control the electronic device to stop fetching the air interface data packet by triggering the end-fetching 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 encrypted hotspot, the captured air interface data packet is an encrypted message, and after the captured air interface data packet is filtered, the encrypted message can be decrypted according to information such as SSID and password of the target wireless hotspot to obtain a plaintext of the air interface data packet, so that the wireless network between the test terminal and the target wireless hotspot can be conveniently analyzed according to the captured air interface data packet.
In the embodiment of the application, the hotspot information of the target wireless hotspot can be verified to ensure that the captured air interface data packet is more accurate, and the user can be guided to accurately execute each operation through the friendly output interactive interface, so that even if the user does not know the specific operation of capturing the air interface data packet in advance, the capturing of the air interface data packet can be accurately completed under the guidance, and the capturing efficiency of the air interface data packet is improved.
As shown in fig. 7, in an embodiment, another method for fetching an air interface data packet is provided, which is applicable 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, wherein the wireless hotspot list includes at least one wireless hotspot.
Step 704, responding to a hotspot selection operation for the wireless hotspot list, and when the selected target wireless hotspot is an encrypted hotspot, displaying first prompt information on a first display interface, where the first prompt information is used for prompting to input a password of the target wireless hotspot.
Step 706, acquiring 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, acquiring first hotspot information of the selected target wireless hotspot, wherein the first hotspot information is hotspot information acquired when the target wireless hotspot is scanned.
And step 710, acquiring second hotspot information of the target wireless hotspot through communication connection.
And 712, 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 714, disconnecting the communication connection between the wireless communication module and the target wireless hotspot, and outputting a second display interface comprising complete hotspot information.
And 716, capturing an air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information when the command of starting to capture is received.
The descriptions of steps 702 to 716 may refer to the descriptions of the above embodiments, and are not repeated herein, it should be noted that step 708 may be performed before step 704, or may be performed after step 706, and the execution sequence is not limited herein.
In some embodiments, when receiving the start grab instruction, the electronic device may obtain the current remaining memory, which may refer to the current available memory, and optionally may obtain the current remaining memory by calling an available memory obtaining interface, such as getMemoryInfo (). Whether the current residual memory is smaller than a first threshold value or not can be judged, and if the current residual memory is smaller than the first threshold value, the current residual memory is less and is not suitable for capturing an air interface 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 displayed on the second display interface, or may be output by voice or other means, for example, the third prompt message that "the current memory is insufficient, please release a part of the memory and then start to capture" may be output by voice, and the prompt mode of the third prompt message is not limited herein. And after the user receives the third prompt message, the memory of the electronic equipment can be released by closing the processes which are not required to be used. In some embodiments, if the current remaining memory is smaller than the first threshold, the electronic device may also directly kill the process that is currently running in the background and has a lower priority, thereby releasing the memory.
When the electronic device releases the memory, the current residual memory can be detected in real time, and when the current residual memory is not smaller than the first threshold, the air interface data packet of the target wireless hotspot can be captured 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 remaining memory is smaller than a second threshold value or not can be judged, and if the remaining memory is smaller than the second threshold value, the capturing of the air interface data packet can be stopped. Optionally, 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 may be 2GB, and the like, but is not limited thereto. The electronic equipment can actively stop grabbing the air interface data packet according to the currently available memory, and the situation that the memory is exploded when a user forgets to stop grabbing the air interface data packet can be prevented, so that the performance of the electronic equipment is reduced.
In some embodiments, the captured air interface data packets may be stored every time a data packet is captured, or may be stored according to a certain time period, for example, the captured data packets are stored every 10 seconds. Optionally, after the user triggers the capture stop button, that is, the electronic device receives the capture stop instruction, all data packets captured this time may be stored, and the like.
As a specific implementation, the grabbed air interface data packet is stored, and when the data amount of the grabbed air interface data packet reaches a third threshold, the grabbing operation may be suspended, and the grabbed air interface data packet is stored. Optionally, the third threshold may be set according to actual requirements, for example, when the captured air interface data packet reaches 2GB, the capture operation may be suspended first, and the captured air interface data packet is stored. After the captured air interface data packet is saved, if the current residual memory is not less than the second threshold value, the air interface data packet can be continuously captured. The data volume of the air interface data packet stored every time is only the third threshold, so that the problem that the stored air interface data packet is copied or transmitted too slowly 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 subsequently 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 storing the captured air interface data packet, a name input prompt message may be displayed on the second display interface, where the name input prompt message may be used to prompt the user to input a name of the stored air interface data packet. After the name of the air interface data packet input by the user is obtained, the storage progress can be displayed, so that the user can conveniently know the storage progress of the air interface data packet.
FIG. 8 is a diagram illustrating a second display interface in accordance with another embodiment. As shown in fig. 8 (a), when the electronic device stores the captured air interface data packet, the electronic device may display name input prompt information 802 on the second display interface 610, and after the user inputs the name of the air interface data packet in the displayed name input prompt information 802 and confirms the input name, as shown in fig. 8 (b), the electronic device may display a saving progress 802 on the second display interface 610.
Step 718, outputting a third display interface including an air interface packet list, where the air interface packet list includes at least one captured air interface data packet.
When the electronic device stops grabbing the air interface data packet, that is, after the current grabbing of the air interface data packet is finished, a third display interface including an air interface packet list can be output, wherein the air interface packet list can at least include the stored air interface data packet. Optionally, the user may also jump to the third display interface by triggering a log list key in the second display interface, and display the empty package list.
The user can select any one or more empty data packets in the empty packet list to upload to the server, and can also perform deletion operation for deleting the empty data packets on the third display interface, and rename the empty data packets.
And step 720, 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.
When detecting that the user uploads a target air interface data packet in the air interface packet list, determining the target air interface data packet which the user needs to upload, uploading the target air interface data packet selected by the user to a server, and synchronously displaying the uploading progress.
FIG. 9A is a diagram illustrating a third display interface in accordance with an 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 the air interface data packet stored this time, or may include the air interface data packet stored during previous air interface data packet capture. The user can select an air interface data packet to be uploaded from the air interface packet list 902 to upload. Fig. 9B is a schematic diagram illustrating the uploading progress displayed in the third display interface in one embodiment. As shown in fig. 9B, if the user selects the air interface packet 2 to upload to the server, the air interface data packet corresponding to the air interface packet 2 may be uploaded to the server, and the uploading progress is synchronously displayed.
FIG. 9C is a diagram illustrating a third display interface in accordance with another embodiment. As shown in fig. 9C, the user may trigger an operation menu 904 for displaying an air interface data packet through a long-time press or other touch operation, where the operation menu 904 may include operations that can be performed, such as renaming and deleting, and the user may select a corresponding operation according to a requirement to rename and delete the air interface data packet.
In the embodiment of the application, the 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 interactive operation, the operation of capturing the air interface data packet can be simplified, and the capturing efficiency of the air interface data packet is improved. Moreover, the user can select the air interface data packet to upload according to the requirement, so that the analysis of the wireless network connected with the test terminal is facilitated, the debugging of the network equipment is facilitated, and the operation difficulty is effectively reduced.
As shown in fig. 10, in an embodiment, an apparatus 1000 for fetching an air interface data packet is provided, which can be applied to the electronic device. The apparatus 1000 for fetching an air interface data packet may include an interface output module 1010, a hot spot information obtaining module 1020, and a fetching 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 respond to a hotspot selection operation for the wireless hotspot list, and obtain hotspot information of the selected target wireless hotspot.
And a fetching module 1030, configured to fetch an air interface data packet of the target wireless hotspot according to the hotspot information.
In the embodiment of the application, a first display interface comprising a wireless hotspot list is output, the wireless hotspot list comprises at least one wireless hotspot, hotspot selection operation aiming at the wireless hotspot list is responded, hotspot information of a selected target wireless hotspot is acquired, an 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, the operation of capturing the air interface data packet can be simplified, and the capture efficiency of the air interface data packet is improved.
In an 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 obtained when the target wireless hotspot is scanned.
The fetching module 1030 is further configured to fetch an air interface data packet of the target wireless hotspot according to the first hotspot information.
In an 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.
The fetching module 1030 is further configured to fetch an air interface data packet of the target wireless hotspot according to the complete hotspot information.
In an embodiment, the apparatus 1000 for fetching an air interface data packet includes a password input module and a password verification module in addition to the interface output module 1010, the hotspot information obtaining module 1020 and the fetching module 1030.
And the password input module is used for displaying first prompt information on the first display interface when the target wireless hotspot is the encrypted hotspot, wherein the first prompt information is used for prompting the input of the password of the target wireless hotspot.
And 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 an embodiment, the apparatus 1000 for fetching an air interface data packet further includes a frequency band selection module in addition to the interface output module 1010, the hotspot information obtaining module 1020, the fetching module 1030, the password input module, and the password verification module.
The interface output module 1010 is further configured to display frequency band selection information on a first display interface 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.
And 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 an 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 the complete hotspot information of the target wireless hotspot is obtained according to the verification result.
In an embodiment, the interface output module 1010 is further configured to output a second display interface including complete hotspot information, and when a grab start instruction is received, display second prompt information on the second display interface, where the second prompt information is used to prompt the test terminal to disconnect the communication connection between the test terminal and the target wireless hotspot and to reestablish the communication connection with the target wireless hotspot again.
The capturing module 1030 is further configured to capture 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 capture 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 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 the filtering unit is used for generating filtering conditions according to the terminal identification of the test terminal and filtering the captured air interface data packet according to the filtering conditions.
In the embodiment of the application, the hotspot information of the target wireless hotspot can be verified to ensure that the captured air interface data packet is more accurate, and the user can be guided to accurately execute each operation through the friendly output interactive interface, so that even if the user does not know the specific operation of capturing the air interface data packet in advance, the capturing of the air interface data packet can be accurately completed under the guidance, and the capturing efficiency of the air interface data packet is improved.
In an embodiment, the fetching module 1030 is further configured to output, through the interface output module 1010, third prompt information if the current remaining memory is smaller than the first threshold, where the third prompt information is used to prompt to release the memory, and if the current remaining memory is not smaller than the first threshold, fetch the air interface data packet of the target wireless hotspot according to the hotspot information, store the fetched air interface data packet, and stop fetching the air interface data packet when the remaining memory is smaller than the second threshold.
In an embodiment, the fetching module 1030 is further configured to suspend fetching when the data amount of the fetched air interface data packet reaches a third threshold, store the fetched air interface data packet, and then continue fetching the air interface data packet.
In an embodiment, the apparatus 1000 for fetching an air interface data packet further includes an uploading module, in addition to the interface output module 1010, the hotspot information obtaining module 1020, the fetching module 1030, the password input module, the password verification module, and the frequency band selection 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 captured air interface data packet.
And the uploading module is used for 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 the server and displaying the uploading progress.
In the embodiment of the application, the 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 interactive operation, the operation of capturing the air interface data packet can be simplified, and the capturing efficiency of the air interface data packet is improved. Moreover, the user can select the air interface data packet to upload according to the requirement, so that the analysis of the wireless network connected with the test terminal is facilitated, the debugging of the network equipment is facilitated, 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, sensors 1150, audio circuit 1160, WiFi module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The rf module 1110 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the downlink information to the processor 1180; in addition, the data for designing uplink is transmitted to the base station. Generally, 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 (LNA), a duplexer, and the like. In addition, the radio frequency module 1110 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), long term evolution, email, Short Message Service (SMS), etc.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory 1120. 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 by 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 (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the 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 generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, 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 of a user on or near the touch panel 1132 (e.g., operations of the user on or near the touch panel 1132 using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 1132 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction 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, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1132 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a 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 (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by a user or information provided to the user and various menus of the 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 (LCD), an organic light-Emitting diode (OLED), or the like. Further, the touch panel 1132 may cover the display panel 1142, and when the touch panel 1132 detects a touch operation on or near the touch panel 1132, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1142 according to the type of the touch event. Although in fig. 11, the touch panel 1132 and the display panel 1142 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1132 and the display panel 1142 may be integrated 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, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1142 according to the brightness of ambient light, and a proximity sensor that turns 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 magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the electronic device, vibration recognition related functions (such as pedometer, tapping) and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
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 electrical signal converted from the received audio data to the speaker 1162, and convert the electrical signal into a sound signal for output by the speaker 1162; on the other hand, the microphone 1164 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1160 and converted into audio data, and then the audio data is processed by the audio data output processor 1180, and then the audio data is sent to another electronic device through the rf module 1110, or the audio data is output to the memory 1120 for further processing.
WiFi belongs to short-range wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1170, and it provides wireless broadband internet access for the user.
The processor 1180 is a control center of the electronic device, connects various parts of the whole electronic device by 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 calling data stored in the memory 1120, thereby performing overall monitoring of the electronic device. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The electronic device also includes a power supply 1190 (e.g., a battery) for providing power to various components, which may be logically coupled to the processor 1180 via a power management system, such that the power management system may be configured to manage charging, discharging, and power consumption. Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In one embodiment, computer programs stored in the memory 1120, when executed by the processor 1180, cause the processor 1180 to implement the methods as described in the embodiments above.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program realizes the method described in the above embodiments when being executed by a processor.
Embodiments of the present application disclose a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the method as described in the embodiments above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. 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 non-volatile 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 (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and 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 should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, 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 causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
The method, the apparatus, the electronic device, and the storage medium for capturing an air interface data packet disclosed in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation manner of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A method for grabbing an air interface data packet is characterized by comprising 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 the hotspot selection operation aiming at the wireless hotspot list, and acquiring hotspot information of the selected target wireless hotspot;
and capturing the air interface data packet of the target wireless hotspot according to the hotspot information.
2. The method of claim 1, wherein the wireless hotspot list comprises at least one scanned wireless hotspot within a preset range;
the acquiring of the hotspot information of the selected target wireless hotspot includes:
acquiring first hotspot information of a selected target wireless hotspot, wherein the first hotspot information is hotspot information acquired when the target wireless hotspot is scanned;
the capturing the air interface data packet of the target wireless hotspot according to the hotspot information comprises:
and capturing the air interface data packet of the target wireless hotspot according to the first hotspot information.
3. The method of claim 2, wherein the obtaining hotspot information of the selected target wireless hotspot comprises:
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;
the capturing the air interface data packet of the target wireless hotspot according to the hotspot information comprises:
and capturing the air interface data packet of the target wireless hotspot according to the complete hotspot information.
4. The method of claim 3, wherein prior to said establishing a communication connection with the target wireless hotspot via a wireless communication module, the method further comprises:
when the target wireless hotspot is an encrypted 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 of the communication connection with the target wireless hotspot through the wireless communication module comprises:
and acquiring an input password, controlling a wireless communication module to establish communication connection with the target wireless hotspot by adopting the input password, verifying that the password is correct if the connection is successful, and verifying that the password is wrong if the connection is failed.
5. The method of claim 3, wherein prior to said establishing a communication connection with the 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, frequency band selection information is displayed 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 of the communication connection with the target wireless hotspot through the wireless communication module comprises:
and controlling a wireless communication module to establish communication connection with the target wireless hotspot through the target frequency band.
6. The method according to any of claims 3-5, wherein after obtaining 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 hotspot information;
the capturing the air interface data packet of the target wireless hotspot according to the complete hotspot information comprises:
when a grabbing starting instruction is received, displaying second prompt information on the second display interface, wherein the second prompt information is used for prompting that the communication connection between the test terminal and the target wireless hotspot is disconnected, and establishing 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.
7. The method of claim 6, wherein the capturing the air interface data packet transmitted between the test terminal and the target wireless hotspot according to the complete hotspot information 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 captured air interface data packet according to the filtering condition.
8. The method of claim 1, wherein the fetching of the air interface data packet of the target wireless hotspot according to the hotspot information comprises:
if the current residual memory is smaller than the first threshold value, outputting third prompt information, wherein the third prompt information is used for prompting the release of the memory;
and if the current residual memory is not less than the first threshold, capturing an air interface data packet of the target wireless hotspot according to the hotspot information, storing the captured air interface data packet, and stopping capturing the air interface data packet when the residual memory is less than a second threshold.
9. The method of claim 8, wherein the storing the grabbed air interface data packet comprises:
and when the data volume of the grabbed air interface data packet reaches a third threshold value, pausing the grabbing operation, storing the grabbed air interface data packet, and continuously grabbing the air interface data packet.
10. The method according to claim 8 or 9, 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 captured 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.
11. An apparatus for fetching an air interface data 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 wireless hotspot;
the hotspot information acquisition module is used for responding to hotspot selection operation aiming at the wireless hotspot list and acquiring 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.
12. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, causes the processor to carry out the method of any one of claims 1 to 10.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 10.
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 true CN111970678A (en) 2020-11-20
CN111970678B 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 (16)

* 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
CN102958083A (en) * 2012-12-07 2013-03-06 广州杰赛科技股份有限公司 Network optimization equipment, wireless local area network optimization system and method
CN103281754A (en) * 2013-04-25 2013-09-04 深信服网络科技(深圳)有限公司 Local forwarding mode-based wireless access point information acquisition method and device
CN103532782A (en) * 2013-10-15 2014-01-22 东南大学 WLAN (Wireless Local Area Network) wireless network tester and testing method thereof
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
CN107018543A (en) * 2017-04-06 2017-08-04 杭州亚古科技有限公司 Scan the method and system of WiFi equipment
CN107046688A (en) * 2017-03-07 2017-08-15 腾讯科技(深圳)有限公司 A kind of connection method of WLAN and device
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
CN109309535A (en) * 2018-10-26 2019-02-05 四川长虹电器股份有限公司 AP equipment wireless automatic detection system and method
US20190230323A1 (en) * 2018-01-22 2019-07-25 Magna Electronics Inc. Vehicle vision system with wireless camera pairing
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

Patent Citations (16)

* 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
CN102958083A (en) * 2012-12-07 2013-03-06 广州杰赛科技股份有限公司 Network optimization equipment, wireless local area network optimization system and method
CN103281754A (en) * 2013-04-25 2013-09-04 深信服网络科技(深圳)有限公司 Local forwarding mode-based wireless access point information acquisition method and device
CN103532782A (en) * 2013-10-15 2014-01-22 东南大学 WLAN (Wireless Local Area Network) wireless network tester and testing method thereof
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
CN107046688A (en) * 2017-03-07 2017-08-15 腾讯科技(深圳)有限公司 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
CN107360040A (en) * 2017-08-18 2017-11-17 上海斐讯数据通信技术有限公司 A kind of method and system for capturing, preserving router data bag
US20190230323A1 (en) * 2018-01-22 2019-07-25 Magna Electronics Inc. Vehicle vision system with wireless camera pairing
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
CN109309535A (en) * 2018-10-26 2019-02-05 四川长虹电器股份有限公司 AP equipment wireless automatic detection system and method
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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AYONG YE,ET AL: "ection of spoofing attacks in WLAN-based positioning systems using wifi hotspot tags", 《IEEE ACCESS》 *
吴纪芸,等: "无线数据采集与分析", 《网络安全技术与应用》 *

Also Published As

Publication number Publication date
CN111970678B (en) 2023-04-28

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
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
US9922438B2 (en) Method and apparatus for switching real-time image in instant messaging
CN109068167B (en) Screen recording interaction method, mobile terminal, wearable device and storage medium
CN108200632B (en) Method for accessing terminal to LTE network and terminal
CN107592416B (en) Voice message transmitting method, terminal and computer readable storage medium
CN109819489B (en) Terminal calling method and terminal
CN107959952B (en) Method and terminal for detecting inter-system cell
CN107465841B (en) Fault information reporting method and terminal
CN107592415B (en) Voice transmission method, terminal, and computer-readable storage medium
CN107995060B (en) Mobile terminal audio test method and device and computer readable storage medium
WO2015131768A1 (en) Video processing method, apparatus and system
CN108111676B (en) Application program control method, mobile terminal and computer readable storage medium
CN108459805B (en) Screen capture method, mobile terminal and computer-readable storage medium
US20220150788A1 (en) Communication processing method, terminal device, and medium
EP3742844A1 (en) Beam failure recovery method and terminal
CN110913455B (en) Method for forbidding abnormal cell, electronic equipment and server
CN106020945B (en) Shortcut item adding method and device
CN108260009B (en) Video processing method, mobile terminal and computer readable storage medium
CN109151081B (en) Production comprehensive testing method and device, intelligent terminal and readable storage medium
CN109033822B (en) External link management method, mobile terminal and computer-readable storage medium
CN111246528A (en) Network switching method and electronic equipment
CN107995669B (en) Display method of wireless access point AP information and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment

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