USB wireless network card log capturing method and system and user client

Through the communication connection and log data transmission between the user client and the wireless network card device in the USB wireless network card log crawling system, the problem of the USB wireless network card abnormal log cannot be transmitted is solved, and efficient and accurate log crawling and analysis is achieved.

CN120075855APending Publication Date: 2025-05-30XINYI INFORMATION TECH(SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510218550.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When the USB wireless network card is connected to the user client, the abnormal log cannot be transmitted, resulting in difficulty in diagnosis.

Method used

It provides a USB wireless network card log crawling method and system. After the user client establishes a communication connection with the wireless network card device, it sends a log crawling instruction, generates and transmits the original log data, and the user client converts and stores the received log data in format.

Benefits of technology

It realizes automatic identification and communication connection between wireless network card equipment and user clients, ensuring that log data can be efficiently and accurately crawled and analyzed, and improving the readability and reusability of log information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075855A_ABST
    Figure CN120075855A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of wireless communication, and provides a USB wireless network card log capturing method and system and a user client, and the method comprises the steps that after the user client establishes communication connection with wireless network card equipment, a log capturing instruction is sent to the wireless network card equipment, and the log capturing instruction is sent to the wireless network card equipment; the wireless network card device generates and sends original log data to the user client according to the log capture instruction; and the user client converts the format of the original log data and then stores the original log data, so that the analysis and diagnosis terminal executes corresponding lookup, analysis and diagnosis operations on the original log subjected to format conversion processing according to a terminal operation instruction sent by the user client. The wireless network card equipment is responsible for generating original log data, the user client side executes format conversion processing and storage on the original log data, and the operation efficiency of the wireless network card equipment is improved under the condition that stable operation is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of wireless communication, and particularly relates to a method, a system and a user client for capturing USB wireless network card logs. Background Art

[0002] With the popularization of wireless communication, USB wireless network cards (also known as CDC ECM devices) have become the preferred way for many devices to access wireless networks due to their portability and flexibility. During use, USB wireless network cards may encounter problems such as unstable connections and degraded performance. Solving these problems often depends on the results of in-depth analysis and diagnosis of the working logs of USB wireless network cards by a diagnostic terminal. Currently, during the use of USB wireless network cards, it is necessary to maintain a stable communication connection with the diagnostic terminal to ensure that the diagnostic terminal can stably capture the working logs of USB wireless network cards.

[0003] However, in actual applications, when a USB wireless network card is inserted into a device of a user client, the USB port of the USB wireless network card is occupied by the user client and cannot communicate with the computer. Once the Internet access function of the USB wireless network card is abnormal, it is difficult to diagnose the cause of the abnormality because the abnormal logs cannot be transmitted out.

[0004] Therefore, it is necessary to provide a method, a system and a user client for capturing USB wireless network card logs to solve the above problems existing in the prior art. Summary of the Invention

[0005] To solve the problem that abnormal logs cannot be transmitted out when a wireless network card device is connected to a user client in the prior art, the present application provides a method, a system and a user client for capturing USB wireless network card logs.

[0006] The method, the system and the user client for capturing USB wireless network card logs provided by the present application adopt the following technical solutions: A method for capturing USB wireless network card logs, which is applied to a USB wireless network card log capture system. The USB wireless network card log capture system includes a user client and a wireless network card device. The log capture method includes: After the user client establishes a communication connection with the wireless network card device, it sends a log capture instruction to the wireless network card device, so that the wireless network card device generates original log data according to the log capture instruction and sends the original log data to the user client through a log data transmission channel; The user client receives the original log data through the log data transmission channel, and stores and outputs the original log data after converting the format.

[0007] Optionally, establishing a communication connection between the user client and the wireless network card device includes: After detecting the wireless network card device, the user client reads the identity information of the wireless network card device; after the identity information is verified, a candidate data transmission channel formed between the user client and the wireless network card is mapped and displayed on the user interaction interface; the user client selects the candidate data transmission channel as the target data transmission channel according to a selection instruction from the user, and establishes a communication connection with the wireless network card device based on the target data transmission channel; wherein, the target data transmission channel includes a log data transmission channel.

[0008] Optionally, after establishing a communication connection between the user client and the wireless network card device, sending a log capture instruction to the wireless network card device includes: the user client displays a parameter configuration template on the user interaction interface according to a log capture request from the user; based on target parameters input by the user on the user interaction interface, combining with the parameter configuration template, generating a log capture instruction and a heartbeat packet; the user client sends the log capture instruction and the heartbeat packet to the wireless network card device for the wireless network card device to execute the log capture instruction according to the heartbeat packet to obtain original log data.

[0009] Optionally, when the target parameter indicates that the log capture instruction is in the command channel transmission format, the target data transmission channel further includes a command data transmission channel; the user client sends the log capture instruction to the wireless network card device through the command data transmission channel; When the target parameter indicates that the log capture instruction is in the log channel transmission format, the user client sends the log capture instruction to the wireless network card device through the log data transmission channel Optionally, the wireless network card device generates original log data according to the log capture instruction and sends the original log data to the user client through the log data transmission channel, including: The wireless network card device receives the log capture instruction from the user client, executes the operations corresponding to the log capture instruction, generates original log data, and sends the original log data to the user client through the log data transmission channel.

[0010] Optionally, the user client receives the original log data through the log data transmission channel, and stores and outputs the original log data after converting the format, including: The user client receives the original log data from the wireless network card device through the log data transmission channel, performs format conversion processing on the original log data to generate target log data, and stores the target log data in a target memory at a specified location; The user client reads the target log data from the target memory and displays it based on a viewing request from the user; The user client sends the target log data and an operation instruction to the analysis and diagnosis terminal based on an output request from the user, so that the analysis and diagnosis terminal performs a corresponding operation on the target log data according to the operation instruction.

[0011] Optionally, the operation instruction includes a viewing instruction, an analysis instruction, and a diagnosis instruction; the analysis and diagnosis terminal displays the target log data according to the viewing instruction, the analysis and diagnosis terminal analyzes the target log data according to the analysis instruction to obtain an analysis result, and the analysis and diagnosis terminal diagnoses the target log data according to the diagnosis instruction to obtain a diagnosis result.

[0012] The present invention also provides a user client, which includes a first receiving unit, a first sending unit, a log capture control unit, a log processing unit, a log storage unit, a log viewing unit, and an output unit; The log capture control unit is used to display a parameter configuration template on the user interaction interface according to a log capture request from the user, and generate a log capture instruction according to the input target parameters in combination with the parameter configuration template; The first sending unit is used to send the log capture instruction to the wireless network card device after establishing a communication connection between the user client and the wireless network card device, for the wireless network card device to generate raw log data according to the log capture instruction; The first receiving unit is used to receive the raw log data from the wireless network card device through the log data transmission channel after establishing a communication connection between the user client and the wireless network card device, and send it to the log processing unit; The log processing unit is used to perform format conversion processing on the raw log data to generate target log data, and send it to the log storage unit at a specified location; The log storage unit is used to store the target log data; The log viewing unit is used to read the target log data from the target memory and display it according to a viewing request from the user; The output unit is used to send the target log data and an operation instruction from the user to the analysis and diagnosis terminal, so that the analysis and diagnosis terminal performs a corresponding operation on the target log data according to the operation instruction.

[0013] The present invention also provides a wireless network card device for cooperating with a user client, which is characterized by including a second sending unit, a second receiving unit, and a log generation unit; The second receiving unit is configured to receive a log capture instruction generated by the user client according to a log capture request after the user client establishes a communication connection with the wireless network card device; The log generation unit is configured to generate original log data according to the log capture instruction; The second sending unit is configured to send the original log data to the user client through a log data transmission channel after the user client establishes a communication connection with the wireless network card device, so that the user client can generate target log data according to the original log data, store the target log data, and execute operation instructions from the user.

[0014] The present invention further provides a USB wireless network card log capture system, including an analysis and diagnosis terminal, the above-mentioned user client, and the above-mentioned wireless network card device, for implementing the above-mentioned USB wireless network card log capture method.

[0015] In summary, the present application includes at least one of the following beneficial technical effects: 1. After the wireless network card device is inserted, the user client automatically recognizes and establishes a communication connection with the wireless network card device without manual intervention by the user, improving the operation convenience.

[0016] 2. The wireless network card device and the user client cooperate with each other. The wireless network card device only needs to be responsible for generating original log data, and the user client performs format conversion processing on the original log data and analyzes and diagnoses the original log data after format conversion processing. Through the cooperation of the wireless network card device and the user client, the overall operation function remains unchanged. The wireless network card device in this case has higher operating efficiency, which is generally beneficial to efficiently and accurately capture log information during operation.

[0017] 3. In this case, the user client automatically performs format conversion processing on the original log data into target log data, and the target log data adopts an easy-to-process format, improving the readability and reusability of the target log information.

[0018] 4. In this case, the user client generates operation instructions based on the user interaction interface, calls the target log information, and executes the corresponding content of the operation instructions, providing rich log viewing and analysis functions to meet the needs of different users. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic flowchart of a USB wireless network card log capture method provided by the first embodiment of the present invention; Figure 2 is Figure 1 a schematic flowchart of step 101 in Figure 3 a schematic diagram showing a user display interface presenting selectable data channels; Figure 4 Schematic diagram of establishing a communication connection between a user client and a wireless network card device Figure 5 Schematic diagram of a parameter configuration template displayed on a user display interface Figure 6 For Figure 1 Schematic flowchart of step 102 in Figure 7 Module schematic diagram of a user client provided by the second embodiment of the present invention Figure 8 Module schematic diagram of a wireless network card device provided by the third embodiment of the present invention Figure 9 Structural schematic diagram of a USB wireless network card log capture system provided by the fourth embodiment of the present invention Specific embodiments

[0020] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts shall fall within the protection scope of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein shall have the ordinary meaning as understood by those of ordinary skill in the art in the field to which the present invention belongs. The words such as "including" used herein mean that the elements or items appearing before the word cover the elements or items listed after the word and their equivalents, without excluding other elements or items.

[0021] The first embodiment of the present invention provides a method for capturing USB wireless network card logs, which is applied to a USB wireless network card log capture system as shown in Figure 7 The USB wireless network card log capture system 200 includes a user client 10 and a wireless network card device 20.

[0022] Referring to Figure 1 As shown, the method for capturing USB wireless network card logs includes the following steps: Step 101, after the user client 10 establishes a communication connection with the wireless network card device 20, it sends a log capture instruction to the wireless network card device 20, so that the wireless network card device 20 generates original log data according to the log capture instruction and sends the original log data to the user client 10 through a log data transmission channel.

[0023] Specifically, there are multiple ways for the user client 10 to establish a communication connection with the wireless network card device 20. It can establish a communication connection with the wireless network card device 20 through a wired communication transmission method such as a data transmission signal line, or through a wireless communication transmission method, or through an interface communication method such as a USB communication interface.

[0024] Implementation reference for step 101 Figure 2 As shown, it includes: S1-1, the user client 10 establishes a communication connection with the wireless network card device 20; S1-2, the user client 10 sends a log capture instruction to the wireless network card device 20; S1-3, the wireless network card device 20 generates original log data according to the log capture instruction; S1-4, the wireless network card device 20 sends the original log data to the user client 10.

[0025] In some embodiments, S1-1, the user client 10 establishes a communication connection with the wireless network card device 20, including: After the user client 10 detects the wireless network card device 20, it reads the identity information of the wireless network card device 20; after the identity information verification is passed, the user client 10 maps out the candidate data transmission channels formed between the user client 10 and the wireless network card device 20, and displays these candidate data channels on the user interaction interface; The user client 10 selects the candidate data transmission channel as the target data transmission channel according to the selection instruction from the user, and establishes a communication connection with the wireless network card device 20 based on the target data transmission channel.

[0026] Among them, the manifestations of the user client 10 detecting the wireless network card device 20 include: (1) The wireless network card device 20 is set as a USB wireless network card, and the user client 10 is provided with a USB slot. When in use, the user inserts the USB socket of the wireless network card device 20 into the USB slot of the user client 10, and the connection between the wireless network card device 20 and the user client 10 is fixed, so that the user client 10 detects the insertion of the wireless network card device 20. (2) The user client 10 keeps detecting the objects within a preset distance (for example, 0.2m) nearby. When it detects that there is a wireless network card device 20 within the corresponding range of the preset distance, it is determined that the wireless network card device 20 is detected. (3) The user client 10 is provided with a plug, and the wireless network card device 20 has a socket corresponding to the plug. When in use, the user inserts the plug of the user client 10 into the socket of the wireless network card device 20. When the user client 10 detects that the A plug is inserted into the wireless network card device 20, it is determined that the user client 10 detects the wireless network card device 20.

[0027] Each wireless network card device 20 has identity information representing its own model and performance. This identity information can be unique or shared by wireless network card devices 20 with the same performance of the same model and batch. When the user client 10 fails to read the identity information of the wireless network card device 20, it is determined that the wireless network card device 20 is invalid, and usually an alarm is directly issued externally. The alarm method can be that the user client 10 emits a warning sound, lights up an alarm light, sends an alarm message to a preset contact, etc.

[0028] When the user client 10 successfully reads the identity information of the wireless network card device 20, the user client 10 verifies the identity information according to the pre-stored identity standard range in itself. When the identity information falls within the identity standard range, it is determined that the identity verification is passed. When the identity information is not within the identity standard range, it is determined that the identity verification is not passed. At this time, an alarm is also issued externally, and the alarm method is the same as above. Among them, the identity standard range usually indicates the model range of the wireless network card device 20 supported by the user client 10.

[0029] After the identity information of the wireless network card device 20 is verified by the user client 10, a candidate data transmission channel formed between the user client 10 and the wireless network card device 20 is mapped. There are multiple candidate data channels, and the same candidate data channel can have one or more.

[0030] The user interaction interface is the interface displayed by the user client 10 after the user identity verification is passed in the specified application. Specifically, the user opens the specified application app on the user client 10, enters the user identity information in the app, and the user client 10 compares the user identity information with the standard user identity information set. When the user identity information belongs to the standard user identity information set, it is determined that the user identity verification is passed, and then the user client 10 displays the user interaction interface. This user client 10 supports displaying these candidate data channels on the user interaction interface. For example: referring to Figure 3 the shown user interaction interface, where three candidate data channels are displayed on the user interaction interface. The name of the candidate data channel in the first row is "COM0", indicating the candidate data channel XY USB Serial AT, which belongs to the command transmission channel; the name of the candidate data channel in the second row is "COM1", indicating the candidate data channel XY USB Serial Log, which belongs to the log data transmission channel; the name of the candidate data channel in the third row is "COM2", indicating the candidate data channel USB serial device.

[0031] The user client 10 selects a target data transfer channel from these candidate data transfer channels according to a selection instruction from the user. The selection instruction of the user can be generated by the user manipulating the user client 10. For example, it can be obtained by editing the keys of the user client 10, generated on the user interaction interface of the user client 10, directly input into the user client 10 through a third-party remote control, etc. for the user client 10 to collect. The user client 10 establishes a communication connection with the wireless network card device 20 based on the target data transfer channel. Specifically: Reference Figure 4 , when the target data transfer channel is specified as the command data transfer channel AT, a data connection is established between the user client 10 and the wireless network card device 20 through the command data transfer channel AT, and command instructions can be transmitted between the two parties; When the target data transfer channel is specified as the log data transfer channel (such as Log), a communication connection is established between the user client 10 and the wireless network card device 20 through the log data transfer channel. The wireless network card device 20 can transmit the original log data generated by itself to the user client 10 at the other end through the log data transfer channel. The user client 10 can also package its own command instructions through a log protocol (such as the Log communication protocol) and send them to the wireless network card device 20 through the log data transfer channel for the wireless network card device 20 to execute the command instructions.

[0032] In some embodiments, after the S1-2 user client 10 establishes a communication connection with the wireless network card device 20, it sends a log capture instruction to the wireless network card device 20, specifically including: the user client 10 displays a parameter configuration template on the user interaction interface according to the user's log capture request; based on the target parameters input by the user on the user interaction interface, combined with the parameter configuration template, a log capture instruction is generated; the user client 10 sends the log capture instruction to the wireless network card device 20.

[0033] Specifically, the log capture request can be input into the user client 10 directly by the user through a third-party device representing his own identity, or input by the user directly manipulating input devices such as buttons on the user client 10, or input by the user through the user display interface on the user client 10.

[0034] When the user client 10 receives / detects a log capture request, the user client 10 displays the reference Figure 5 The parameter configuration template shown. There are a timing confirmation item 50, a time interval setting item 51, an instruction format item 52, an instruction channel control item 53, a command input item 54, a command sending item 55, an email address setting item 56, a capture control item 57, and an email sending control item 58 in this parameter configuration template.

[0035] Among them, the user client 10 sends a heartbeat packet to the wireless network card device 20 according to the timing confirmation item 50 ( Figure 5 "whether" in it is timed) and the time interval setting item 51 ( Figure 5 1000 ms in it). The wireless network card device 20 will output the original log information only when it receives the heartbeat packet and the log capture instruction. The user client 10 determines the data format of the generated log capture instruction according to the instruction format item ( Figure 5 "whether" in it is Hex).

[0036] The user client 10 determines whether the channel format adapted by the log capture instruction is the command channel transmission format or the Figure 5 log channel transmission format in it according to the instruction channel control item ( Figure 4 "whether" in it is AT). When the target parameter indicates that the log capture instruction is in the command channel transmission format, the target data transmission channel for establishing a communication connection between the user client 10 and the wireless network card device 20 further includes the command data transmission channel AT; the user client 10 sends the log capture instruction to the wireless network card device 20 through the command data transmission channel AT. When the target parameter indicates that the log capture instruction is in the log channel transmission format, the log capture instruction generated by the user client 10 conforms to the Figure 4 log channel transmission format in it, and the user client 10 sends the log capture instruction to the wireless network card device 20 through the log data transmission channel Log.

[0037] The user client 10 edits the command instructions sent out according to the command input item and the command sending item. When the user client 10 is connected to the wireless network card device 20, these command instructions are sent to the wireless network card device 20 to control the wireless network card device 20 to execute the corresponding operations of these command instructions. Among them, the command instructions include the log capture instruction in this example, that is, the log capture instruction can be edited through the command input item in this case. The command instructions can also be other control instructions for controlling the wireless network card device 20. When the user client 10 is connected to the analysis and diagnosis terminal 30, these command instructions are sent to the analysis and diagnosis terminal 30, such as the operation instructions below (including the inquiry instruction, the analysis instruction, and the diagnosis instruction), to control the analysis and diagnosis device to execute the corresponding operations.

[0038] The user client 10 sends the target log data stored in itself to the analysis and diagnosis terminal 30 in the form of an email according to the email address setting item ( Figure 5 toolman@xinyisemi.com in it) and the email sending control item ( Figure 5 SEND LOG in it) for the analysis and diagnosis terminal 30 to view, analyze, and diagnose the target log data.

[0039] The user client 10 grabs the control item ( Figure 5 CATCHLOG in the wireless network card device 20 sends a log capture instruction with default command content. When the content of the log capture instruction changes, the log capture instruction can be generated by the command input item in the previous text, and sent to the wireless network card device 20 after being triggered by the command sending item.

[0040] In some embodiments, in step S1-3, the wireless network card device 20 generates raw log data according to the log capture instruction. After the wireless network card device 20 establishes a communication connection with the user client 10, the wireless network card device 20 supports receiving information (including log capture instructions) from the user client 10. When the log capture instruction is received, the operation corresponding to the log capture instruction is executed to generate raw log data. In step S1-4, the wireless network card device 20 transmits the raw log data back to the user client 10 that has established a communication connection through the log data transmission channel.

[0041] Step 102 : the user client 10 receives original log data through a log data transmission channel, converts the format of the original log data, and stores and outputs the data.

[0042] Specifically, the implementation of step 102, refer to Figure 6 Shown include: S2-1, the user client 10 receives the original log data from the wireless network card device 20 through the log data transmission channel; S2-2, the user client 10 performs format conversion processing on the original log data to generate target log data, and stores the target log data in a target storage at a specified location; S2-3, the user client 10 reads and displays the target log data from the target storage based on the query request from the user; S2-4, the user client 10 sends the target log data and the operation instruction to the analysis and diagnosis terminal 30 based on the output request from the user, so that the analysis and diagnosis terminal 30 performs the corresponding operation on the target log data according to the operation instruction.

[0043] In some examples, in step S2-1 and step S2-2, a communication connection of a log data transmission channel has been established between the user client 10 and the wireless network card device 20, and the user client 10 receives the original log data generated by the wireless network card device 20. The user client 10 has a built-in log processing unit to automatically sort the original log data, convert the original log data into a format that is easy to process, that is, generate target log data, and improve the readability and usefulness of the log information in the target log data.

[0044] In some examples, the target memory for storing the target log data in the user client 10 in S2-2 can be one or multiple. When the user client 10 generates the target log data, it stores the target log data in the corresponding specified target memory according to the established storage rules.

[0045] In some examples, the display method in S2-3 can be to display through the user interface, or to send an email containing the target log data to a specified person, print the target log data, etc. The target log data is stored in the target memory at the specified location, and the user can view the content of these target log data through the user interface. Here, the user client 10 supports a rough view when viewing the target log data.

[0046] In some examples, the operation instructions in S2-4 include a viewing instruction, an analysis instruction, and a diagnosis instruction. The analysis and diagnosis terminal 30 displays the target log data according to the viewing instruction, analyzes the target log data according to the analysis instruction to obtain an analysis result, and diagnoses the target log data according to the diagnosis instruction to obtain a diagnosis result.

[0047] In the USB wireless network card log capture method of this case, the wireless network card device 20 and the user client 10 cooperate with each other. The wireless network card device 20 only needs to be responsible for generating the original log data. The user client 10 performs format conversion processing on the original log data, and analyzes and diagnoses the original log data after format conversion processing. Through the cooperation between the wireless network card device 20 and the user client 10, the overall operation function remains unchanged, making the operation efficiency of the wireless network card device 20 in this case higher.

[0048] The user client 10 automatically identifies the wireless network card device 20, and the user client 10 automatically connects to the wireless network card device 20. The wireless network card device 20 efficiently captures logs according to the log capture instruction of the user client 10 to obtain the original log data. After the user client 10 performs intelligent log processing (format conversion processing) on the original log data, the storage and viewing enrich the user interaction, realizing the fast and accurate capture, conversion, and storage of USB wireless network card log information. Moreover, the user client 10 in this case also supports visualizing the target log data generated after format conversion, storing it at the specified location in the system, and sending it by email for subsequent processing.

[0049] The step division of the above various methods is only for clear description. When implemented, they can be combined into one step or some steps can be split into multiple steps. As long as the same logical relationship is included, it is within the protection scope of this patent. Making insignificant modifications to the algorithm or adding insignificant designs to the process, but without changing the core design of the algorithm and process, are all within the protection scope of this patent.

[0050] The second embodiment of the present invention also provides a user client 10, as shown in Figure 7 the figure. The user client 10 cooperates with the wireless network card device 20. The user client 10 includes a first receiving unit 12, a first sending unit 11, a log capture control unit 14, a log processing unit 15, a log storage unit 16, a log viewing unit 13, and an output unit 17.

[0051] The log capture control unit 14 is configured to display a parameter configuration template in the user interaction interface according to a log capture request from the user, and generate a log capture instruction by combining the input target parameters with the parameter configuration template; The first sending unit 11, connected to the log capture control unit 14, is configured to send the log capture instruction to the wireless network card device 20 after the user client 10 establishes a communication connection with the wireless network card device 20, so that the wireless network card device 20 generates raw log data according to the log capture instruction; The first receiving unit 12 is configured to receive the raw log data from the wireless network card device 20 through the log data transmission channel after the user client 10 establishes a communication connection with the wireless network card device 20, and send it to the log processing unit 15; The log processing unit 15, connected to the first receiving unit 12, is configured to perform format conversion processing on the raw log data to generate target log data, and send it to the log storage unit 16 at a specified location; The log storage unit 16, connected to the log processing unit 15, the log viewing unit 13, and the output unit 17, is configured to store the target log data in a specified target memory; The log viewing unit 13, connected to the log storage unit 16, is configured to read the target log data from the target memory and display it according to a viewing request from the user; The output unit 17, connected to the log storage unit 16, is configured to send the target log data and the operation instructions from the user to the analysis and diagnosis terminal 30, so that the analysis and diagnosis terminal 30 performs corresponding operations on the target log data according to the operation instructions; the operation instructions include a viewing instruction, an analysis instruction, and a diagnosis instruction; Among them, when the operation instruction includes a viewing instruction, the analysis and diagnosis terminal 30 retrieves target log data from the target memory in the log storage unit 16; when the operation instruction includes an analysis instruction, the analysis and diagnosis terminal 30 reads the target log data from the target memory in the log storage unit 16 and analyzes the target log data; when the operation instruction includes a diagnosis instruction, the analysis and diagnosis terminal 30 reads the target log data from the target memory in the log storage unit 16 and diagnoses the target log data. The data transmission method between the output unit 17 and the analysis and diagnosis terminal 30 supports transmission via email (refer to Figure 5 ), data transmission line, and port connection.

[0052] The log storage unit 16 includes one or more target memories at different locations. The log storage unit stores the target log data into the target memory according to a preset storage rule. A user interaction interface is set in the specified application of the user client 10. The user interaction interface is displayed after the user authentication is passed. The user interaction interface can be used to display the identity information of the wireless network card device 20 read by the user client 10 itself, can be used to display multiple candidate data transmission channels mapped by the user client 10 for the user to select at least one as the target data transmission channel to establish a communication connection between the user client 10 and the wireless network card device 20, can be used to display a parameter configuration template for the user to edit target parameters to generate a log capture instruction, and can be used for the log viewing unit 13 to display the retrieved target log data.

[0053] Other implementation details and working methods of the user client 10 disclosed in this application are the same as or similar to those described in the previous USB wireless network card log capture method, and will not be elaborated here.

[0054] The third embodiment of the present invention provides a wireless network card device 20, refer to Figure 8 as shown. The wireless network card device 20 includes a second sending unit 21, a second receiving unit 22, and a log generation unit 23; The second receiving unit 22 is configured to receive a log capture instruction generated by the user client 10 according to a log capture request after the user client 10 and the wireless network card device 20 establish a communication connection; The log generation unit 23 is connected to the second receiving unit 22 and is configured to generate raw log data according to the log capture instruction; The second sending unit 21 is connected to the log generation unit 23 and is configured to send the raw log data to the user client 10 through a log data transmission channel after the user client 10 and the wireless network card device 20 establish a communication connection, so that the user client 10 can generate target log data according to the raw log data, store it, and execute operation instructions from the user.

[0055] In this solution, the wireless network card device 20 cooperates with the user client 10 described above. The wireless network card device 20 only needs to be responsible for generating the original log data. The user client 10 performs the format conversion process on the original log data, and analyzes and diagnoses the original log data after the format conversion process. The overall operation function is ensured to remain unchanged through the cooperation between the wireless network card device 20 and the user client 10. Compared with the existing wireless network card device 20 that needs to generate original log data, convert log formats, analyze logs, diagnose logs, etc. during operation, the wireless network card device 20 in this case has higher operation efficiency, which is overall conducive to efficiently and accurately capturing the log information during operation. Other implementation details and working methods of the wireless network card device 20 disclosed in this application are the same as or similar to those of the USB wireless network card log capture method described above, and will not be elaborated here.

[0056] The present invention also provides a USB wireless network card log capture system. Refer to Figure 9 as shown, it includes an analysis and diagnosis terminal 30, the above-mentioned user client 10, and the above-mentioned wireless network card device 20, which are used to implement the above-mentioned USB wireless network card log capture method.

[0057] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the foregoing method embodiment and will not be elaborated here.

[0058] Although the embodiments of the present invention have been described in detail above, it will be obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are all within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and can be implemented or realized in various ways. It should be noted that in the specific description of these embodiments, for the sake of concise description, this specification cannot describe in detail all the features of the actual embodiments. Without departing from the spirit and scope of the present invention, those skilled in the art can modify and replace the embodiments of the present invention, and the obtained embodiments are also within the protection scope of the present invention.

Claims

1. A USB wireless network card log capture method, characterized in that: Applied to a USB wireless network card log capture system, the USB wireless network card log capture system includes a user client and a wireless network card device, and the log capture method includes: After the user client establishes a communication connection with the wireless network card device, the user client sends a log capture instruction to the wireless network card device, so that the wireless network card device generates original log data according to the log capture instruction, and sends the original log data to the user client through the log data transmission channel; The user client receives the original log data through the log data transmission channel, and converts the format of the original log data before storing and outputting it.

2. The USB wireless network card log capture method according to claim 1, characterized in that: The user client establishes a communication connection with the wireless network card device, including: After detecting the wireless network card device, the user client reads the identity information of the wireless network card device; after the identity information is verified, a candidate data transmission channel formed between the user client and the wireless network card is mapped and displayed on a user interaction interface; The user client selects the candidate data transmission channel as the target data transmission channel according to the selection instruction from the user, and establishes a communication connection based on the target data transmission channel with the wireless network card device; wherein the target data transmission channel includes a log data transmission channel.

3. The USB wireless network card log capture method according to claim 2, characterized in that: After the user client establishes a communication connection with the wireless network card device, a log capture instruction is sent to the wireless network card device, including: The user client displays a parameter configuration template on a user interaction interface according to a log capture request from the user; generates a log capture instruction and a heartbeat packet based on the target parameters input by the user on the user interaction interface and in combination with the parameter configuration template; The user client sends a log capture instruction and a heartbeat packet to the wireless network card device, so that the wireless network card device executes the log capture instruction according to the heartbeat packet to obtain original log data.

4. The USB wireless network card log capture method according to claim 3, characterized in that: When the target parameter indicates that the log capture instruction is in a command channel transmission format, the target data transmission channel further includes a command data transmission channel; the user client sends the log capture instruction to the wireless network card device through the command data transmission channel; When the target parameter indicates that the log capture instruction is in the log channel transmission format, the user client sends the log capture instruction to the wireless network card device through the log data transmission channel.

5. The USB wireless network card log capture method according to claim 1, characterized in that: The wireless network card device generates original log data according to the log capture instruction, and sends the original log data to the user client through the log data transmission channel, including: The wireless network card device receives a log capture instruction from the user client, executes an operation corresponding to the log capture instruction, generates original log data, and sends the original log data to the user client through the log data transmission channel.

6. The USB wireless network card log capture method according to claim 1, characterized in that: The user client receives the original log data through the log data transmission channel, and converts the format of the original log data into storage and output, including: The user client receives the original log data from the wireless network card device through the log data transmission channel, performs format conversion on the original log data to generate target log data, and stores the target log data in a target storage at a specified location; The user client reads and displays the target log data from the target storage based on a query request from the user; The user client sends the target log data and the operation instruction to the analysis and diagnosis terminal based on the output request from the user, so that the analysis and diagnosis terminal performs a corresponding operation on the target log data according to the operation instruction.

7. The USB wireless network card log capture method according to claim 6, characterized in that: The operation instructions include review instructions, analysis instructions and diagnosis instructions; the analysis and diagnosis terminal displays the target log data according to the review instructions, the analysis and diagnosis terminal analyzes the target log data according to the analysis instructions to obtain analysis results, and the analysis and diagnosis terminal diagnoses the target log data according to the diagnosis instructions to obtain diagnosis results.

8. A user client, used to cooperate with a wireless network card device, characterized in that: The user client comprises a first receiving unit, a first sending unit, a log capture control unit, a log processing unit, a log storage unit, a log review unit and an output unit; A log capture control unit, used to display a parameter configuration template on a user interaction interface according to a log capture request from a user, and generate a log capture instruction according to an input target parameter combined with the parameter configuration template; The first sending unit is used to send the log capture instruction to the wireless network card device after the user client establishes a communication connection with the wireless network card device, so that the wireless network card device generates original log data according to the log capture instruction; The first receiving unit is used to receive the original log data from the wireless network card device through the log data transmission channel after the user client establishes a communication connection with the wireless network card device, and send the original log data to the log processing unit; The log processing unit is used to perform format conversion processing on the original log data to generate target log data, and send the target log data to the log storage unit at a specified location; The log storage unit is used to store the target log data; The log review unit is used to read and display the target log data from the target storage according to a review request from the user; The output unit is used to send the target log data and an operation instruction from a user to the analysis and diagnosis terminal, so that the analysis and diagnosis terminal performs a corresponding operation on the target log data according to the operation instruction.

9. A wireless network card device, used to cooperate with a user client, characterized in that: It includes a second sending unit, a second receiving unit, and a log generating unit; The second receiving unit is used to receive a log capture instruction generated by the user client according to the log capture request after the user client establishes a communication connection with the wireless network card device; The log generating unit is used to generate original log data according to the log grabbing instruction; The second sending unit is used to send the original log data to the user client through the log data transmission channel after the user client establishes a communication connection with the wireless network card device, so that the user client can generate and store target log data according to the original log data.

10. A USB wireless network card log capture system, characterized in that: It comprises an analysis and diagnosis terminal, a user client as described in claim 8 and a wireless network card device as described in claim 9, and is used to implement the USB wireless network card log capture method as described in any one of claims 1-7.