Log capture method, device, equipment and storage medium

By using the log collection component and the wireless transmission component in the wireless communication module to transmit logs in real time, the problem that existing tools cannot capture application and baseband processor logs is solved, and the logs of each processor in the wireless communication module are captured. Capture and real-time output to meet the needs of stress testing.

CN115209394BActive Publication Date: 2024-08-30FIBOCOM WIRELESS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210610653.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-08-30
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

Existing log capture tools cannot simultaneously capture the logs of the application processor and baseband processor in the wireless communication module, and cannot meet the requirements of stress testing because early logs will be discarded when the log file size exceeds the storage space.

Method used

By using the log collection component in the wireless communication module to obtain the processor's logs, and transmitting the logs to the target port of the host computer according to the target Internet protocol address through the wireless transmission component, socket real-time transmission is used to avoid relying on the physical process of collecting logs. Port to capture and output real-time logs of each processor.

Benefits of technology

It realizes the capture of logs of each processor in the wireless communication module, meets the needs of stress testing, avoids the problem of discarding early logs when the log file size exceeds the storage space, and can output logs stably for a long time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115209394B
    Figure CN115209394B
Patent Text Reader

Abstract

The present application relates to a log capture method, device, equipment and storage medium, and relates to the field of communications. The log capture method is implemented by the cooperation of a wireless communication module and a host computer, wherein the wireless communication module includes at least one processor and a wireless transmission component. The log capture method applied to the wireless communication module includes: using a log collection component in a processor to obtain the log of the processor, and transmitting the log of the processor to a wireless transmission component; using a wireless transmission component, according to a target Internet Protocol address, the log of the processor is transmitted to a target port of the host computer by wireless transmission. The present application is used to solve the problem that the same log capture tool in the host computer cannot capture the logs of each processor in the wireless communication module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a log capture method, device, equipment and storage medium. Background Art

[0002] As an indispensable part of the Internet of Things, wireless communication modules must face log capture and positioning issues. However, there are still some defects in capturing logs of wireless communication modules through host computers.

[0003] Wireless communication modules basically adopt a dual-core architecture, which is divided into AP (application processor) and CP (baseband processor). The logs of the application processor AP and the baseband processor CP are independent of each other. However, the log capture tool xlog in the host computer can only capture the logs of the baseband processor CP separately. It is necessary to rely on the host computer to install ADB (Android DebugBridge) or other tools to obtain the logs of the application processor AP, which often cannot meet the needs in customer usage scenarios.

[0004] At present, the log capture tool xlog under the host computer can only capture CP logs. The fundamental reason why it cannot capture AP logs is that xlog can only collect logs from ports. CP is configured with a USB port for collecting logs, so xlog can collect CP logs, but AP is not configured with a port for collecting logs, so xlog cannot collect AP logs. Summary of the invention

[0005] The present application provides a log capture method, apparatus, device and storage medium to solve the problem that the same log capture tool in a host computer cannot capture the logs of each processor in a wireless communication module.

[0006] In a first aspect, an embodiment of the present application provides a log capture method, which is applied to a wireless communication module, wherein the wireless communication module includes at least one processor and a wireless transmission component, and the log capture method includes:

[0007] Using the log collection component in the processor to obtain the log of the processor, and transmitting the log of the processor to the wireless transmission component;

[0008] The wireless transmission component is used to transmit the log of the processor to the target port of the host computer through wireless transmission according to the target Internet Protocol address.

[0009] Optionally, the wireless transmission component is used to transmit the log of the processor to a target port of a host computer by wireless transmission according to a target Internet Protocol address, including:

[0010] The wireless transmission component is used to transmit the log of the processor to the target port in real time through a socket according to the target Internet Protocol address.

[0011] Optionally, before the wireless transmission component is used to transmit the log of the processor to the target port in real time through a socket according to the target Internet Protocol address, the method further includes:

[0012] The log collection component is used to obtain a configuration file in the processor, wherein the configuration parameters in the configuration file are written by the host computer through AT instructions, and the configuration parameters include the target Internet Protocol address and the identifier of the target port;

[0013] The log collection component is used to obtain the identifier of the target Internet Protocol address and the target port from the configuration file.

[0014] In a second aspect, an embodiment of the present application provides a log capture method, which is applied to a host computer, wherein the host computer includes a log capture tool, including:

[0015] The log capture tool is used to monitor the target port of the host computer, wherein the target port is used to receive the log of the processor transmitted by the wireless communication module through the wireless transmission mode, and the wireless communication module includes the processor;

[0016] The log capture tool is used to read the log of the processor from the target port.

[0017] Optionally, the method further comprises:

[0018] The configuration parameters are written into the configuration file in the processor through AT instructions, wherein the configuration parameters include the target Internet Protocol address corresponding to the host computer and the identifier of the target port.

[0019] Optionally, after using the log capture tool to read the log of the processor from the target port, the method further includes:

[0020] The log capture tool is used to write the log of the processor into a log file corresponding to the processor, and the log of the processor is named according to the log capture time.

[0021] In a third aspect, an embodiment of the present application provides a log capture device, which is configured in a wireless communication module, wherein the wireless communication module includes at least one processor and a wireless transmission component, and the log capture device includes:

[0022] An acquisition module, configured to use a log collection component in the processor to acquire a log of the processor, and transmit the log of the processor to the wireless transmission component;

[0023] The processing module is used to use the wireless transmission component to transmit the log of the processor to the target port of the host computer through wireless transmission according to the target Internet Protocol address.

[0024] In a fourth aspect, an embodiment of the present application provides a log capture device, which is configured in a host computer, and the host computer includes a log capture tool, including:

[0025] A monitoring module, used to monitor the target port of the host computer using the log capture tool, wherein the target port is used to receive the log of the processor transmitted by the wireless communication module through wireless transmission, and the wireless communication module includes the processor;

[0026] The reading module is used to read the log of the processor from the target port using the log capture tool.

[0027] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;

[0028] The memory is used to store computer programs;

[0029] The processor is used to execute the program stored in the memory to implement the log capture method described in the first aspect, or to implement the log capture method described in the second aspect.

[0030] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the log capture method described in the first aspect is implemented, or the log capture method described in the second aspect is implemented.

[0031] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: in the embodiment of the present application, the wireless communication module includes at least one processor and a wireless transmission component, the wireless communication module uses the log collection component in the processor to obtain the log of the processor, and transmits the log of the processor to the wireless transmission component, and uses the wireless transmission component to transmit the log of the processor to the target port of the host computer by wireless transmission according to the target Internet Protocol address. The wireless communication module does not rely on the physical port for collecting logs. In the absence of a port for collecting logs, the log of the processor can also be transmitted to the agreed target port in the host computer by wireless transmission, and the log capture tool in the host computer is used to capture the log of the processor from the agreed target port. In this way, no matter how many processors there are in the wireless communication module, whether each processor is configured with a physical port for collecting logs, the same log capture tool in the host computer can capture the logs of each processor in the wireless communication module. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0034] Figure 1 This is a flow chart of a method for log capture applied to a wireless communication module in an embodiment of the present application;

[0035] Figure 2 This is a flow chart of a method for log capture applied to a host computer in an embodiment of the present application;

[0036] Figure 3 This is a structural diagram of a log capture device configured in a wireless communication module in an embodiment of the present application;

[0037] Figure 4 This is a schematic diagram of the structure of a log capture device configured on a host computer in an embodiment of the present application;

[0038] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0040] The inventor analyzed the existing ways in which the host computer obtains the application processor log in the wireless communication module and found that there are two main ways in which the host computer obtains the application processor log in the wireless communication module:

[0041] Method 1

[0042] Install the ADB (Android Debug Bridge) tool on the host computer, cut out the ADB port in the wireless communication module, and export the logs to the host computer through the ADB port.

[0043] To install the ADB tool in the host computer, you need to cross-compile the ADB source code. The operation is complicated and error-prone, which is time-consuming and labor-intensive for users and very unfriendly. Moreover, if the wireless communication module does not cut out the ADB port in advance, it is necessary to cut out the ADB port through AT commands and restart it, which is not applicable to many problem scenarios. Among them, AT commands are commands used for connection and communication between the wireless communication module and the host computer.

[0044] Method 2

[0045] Use AT commands to start the process of exporting log files in the wireless communication module, and then run the log acquisition tool on the host computer to export the log files to the host computer.

[0046] The log acquisition tool also needs to be cross-compiled, and the process in the wireless communication module needs to be started through AT commands. If the AT commands are not available, it will be difficult to export the log file.

[0047] Moreover, another important defect of Method 1 and Method 2 is that they cannot meet the needs of stress testing. Because the essence of Method 1 and Method 2 is to obtain the log files saved in the wireless communication module at the end, and the storage space in the wireless communication module is limited, and the log file size is fixed. When the storage capacity of the storage space is exceeded, the early logs will be discarded. This cannot meet the needs of stress testing, hang-up testing, etc.

[0048] Therefore, the present application provides a log capture method for solving at least one problem in the existing method of obtaining the application processor log in the wireless communication module by the host computer.

[0049] The log capture method provided in the embodiment of the present application is a process of realizing log capture through the cooperation of the wireless communication module and the host computer. The following embodiments explain the log capture method from the perspectives of the wireless communication module and the host computer.

[0050] Among them, the wireless communication module can be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, a NB-IOT communication module, etc.

[0051] The host computer refers to the part of the terminal other than the wireless communication module. The terminal can be a mobile terminal or a smart terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc.; the smart terminal can be a terminal containing a wireless communication module such as a smart car, a smart watch, a shared bicycle, or a smart cabinet.

[0052] In an embodiment of the present application, a log capture method is provided, which is applied to a wireless communication module, wherein the wireless communication module includes at least one processor and a wireless transmission component. Among them, the processor can be an AP (application processor), a CP (baseband processor), or other processors. The wireless transmission component can be a radio frequency transceiver, a radio frequency amplifier, an antenna and other components, which can realize the transmission of the processor log to the target port of the host computer by wireless transmission.

[0053] In the present application embodiment, Figure 1 As shown, the log capture method applied to the wireless communication module mainly includes:

[0054] Step 101: Use the log collection component in the processor to obtain the log of the processor, and transmit the log of the processor to the wireless transmission component.

[0055] The log collection component may be a system log service syslog, which has a log collection function, or other components that can realize the log collection function. Through the log collection component, the log of the processor in the wireless communication module can be obtained, which is simple and convenient.

[0056] Step 102, using a wireless transmission component, transmits the processor log to the target port of the host computer through wireless transmission according to the target Internet Protocol address.

[0057] The processor log can be transmitted to the target port of the host computer by wireless transmission according to the target Internet Protocol address through UDP (User Datagram Protocol) or TCP (Transmission Control Protocol) using a wireless transmission component.

[0058] The target Internet Protocol address refers to the target IP address (Internet Protocol Address).

[0059] For example, the log of the application processor is sent to port 514 of 192.168.225.1 through syslog, where 192.168.225.1 is the target Internet Protocol address corresponding to the host computer, and port 514 is the target port.

[0060] In a specific embodiment, a wireless transmission component is used to transmit the processor log to the target port of the host computer through wireless transmission according to the target Internet Protocol address, including: using a wireless transmission component to transmit the processor log to the target port through a socket in real time according to the target Internet Protocol address.

[0061] Socket refers to socket, which is an abstraction of the endpoint for two-way communication between application processes on different hosts in the network.

[0062] By using a wireless transmission component, the processor log is transmitted to the target port through a socket in real time according to the target Internet Protocol address, so that the processor log can be output to the target port of the host computer in real time. Compared with the prior art, when the log file saved in the wireless transmission component is obtained, when the log file size exceeds the storage capacity of the storage space in the wireless transmission component, the early logs will be discarded, and the stress testing needs cannot be met. The present application outputs the processor log to the target port of the host computer in real time, without being limited by the storage capacity of the storage space in the wireless transmission component, and can stably output the log to the host computer for a long time, which can meet the stress testing needs.

[0063] In a specific embodiment, before a wireless transmission component is used to transmit the processor log to a target port in real time through a socket according to a target Internet Protocol address, the log capture method applied to the wireless communication module also includes: using a log collection component to obtain a configuration file in the processor, wherein the configuration parameters in the configuration file are written by a host computer through an AT command, and the configuration parameters include the target Internet Protocol address and the identifier of the target port; using the log collection component to obtain the identifier of the target Internet Protocol address and the target port from the configuration file.

[0064] The configuration parameters in the configuration file are written through AT commands, which can dynamically configure the target Internet Protocol address and the target port identification, make adaptive adjustments in time according to the changes of the Internet Protocol address and port of the host computer, and increase the flexibility of the target Internet Protocol address and the target port identification configuration.

[0065] The present application provides a log capture method, which is applied to a host computer, and the host computer includes a log capture tool. Figure 2 As shown in the figure, the log capture method applied to the host computer mainly includes:

[0066] Step 201, using a log capture tool to monitor a target port of a host computer, wherein the target port is used to receive a processor log transmitted by a wireless communication module via wireless transmission, and the wireless communication module includes a processor.

[0067] By creating a thread, monitor the target port of the host computer.

[0068] Step 202: Use a log capture tool to read the processor log from the target port.

[0069] A log capture tool is used to read the processor log from the target port to achieve real-time capture of the processor log.

[0070] In a specific embodiment, the log capture method applied to the host computer also includes: writing configuration parameters into a configuration file in the processor through AT instructions, wherein the configuration parameters include the target Internet Protocol address and target port identifier corresponding to the host computer.

[0071] The configuration parameters in the configuration file are written through AT commands, which can dynamically configure the target Internet Protocol address and the target port identification, make adaptive adjustments in time according to the changes of the Internet Protocol address and port of the host computer, and increase the flexibility of the target Internet Protocol address and the target port identification configuration.

[0072] In a specific embodiment, after using a log capture tool to read the processor log from the target port, the log capture method applied to the host computer also includes: using the log capture tool to write the processor log into a log file corresponding to the processor, and naming the processor log according to the log capture time.

[0073] Write the processor log to the log file corresponding to the processor to save the processor log separately. Name the processor log according to the log capture time to facilitate subsequent search.

[0074] In summary, in the embodiment of the present application, the wireless communication module includes at least one processor and a wireless transmission component. The wireless communication module uses a log collection component in the processor to obtain the log of the processor, and transmits the log of the processor to the wireless transmission component. The wireless transmission component is used to transmit the log of the processor to the target port of the host computer by wireless transmission according to the target Internet Protocol address. The wireless communication module does not rely on the physical port for collecting logs. In the absence of a port for collecting logs, the log of the processor can also be transmitted to the agreed target port in the host computer by wireless transmission, and the log capture tool in the host computer is used to capture the log of the processor from the agreed target port. In this way, no matter how many processors there are in the wireless communication module, whether each processor is configured with a physical port for collecting logs, the same log capture tool in the host computer can capture the logs of each processor in the wireless communication module.

[0075] Moreover, by using a wireless transmission component, the processor log is transmitted to the target port through a socket in real time according to the target Internet Protocol address, so that the processor log can be output to the target port of the host computer in real time. Compared with the prior art, when the log file saved in the wireless transmission component is obtained, when the log file size exceeds the storage capacity of the storage space in the wireless transmission component, the early logs will be discarded, and the stress testing needs cannot be met. The present application outputs the processor log to the target port of the host computer in real time, without being limited by the storage capacity of the storage space in the wireless transmission component, and can stably output the log to the host computer for a long time, which can meet the stress testing needs.

[0076] Based on the same concept, a log capture device is provided in an embodiment of the present application, which is configured in a wireless communication module, wherein the wireless communication module includes at least one processor and a wireless transmission component. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 3 As shown, the device mainly includes:

[0077] An acquisition module 301 is used to use a log collection component in the processor to acquire a log of the processor, and transmit the log of the processor to the wireless transmission component;

[0078] The processing module 302 is used to use the wireless transmission component to transmit the log of the processor to the target port of the host computer through wireless transmission according to the target Internet Protocol address.

[0079] Based on the same concept, a log capture device is provided in the embodiment of the present application, which is configured in a host computer, and the host computer includes a log capture tool. The specific implementation of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 4As shown, the device mainly includes:

[0080] A monitoring module 401, used to use the log capture tool to monitor the target port of the host computer, wherein the target port is used to receive the log of the processor transmitted by the wireless communication module through the wireless transmission mode, and the wireless communication module includes the processor;

[0081] The reading module 402 is used to read the log of the processor from the target port using the log capture tool.

[0082] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 5 As shown, the electronic device mainly includes: a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502 to implement the following steps:

[0083] Using the log collection component in the processor to obtain the processor log, and transmit the processor log to the wireless transmission component; using the wireless transmission component, according to the target Internet Protocol address, the processor log is transmitted to the target port of the host computer through wireless transmission;

[0084] or,

[0085] A log capture tool is used to monitor a target port of a host computer, wherein the target port is used to receive a log of a processor transmitted by a wireless communication module via wireless transmission, and the wireless communication module includes a processor; and a log capture tool is used to read the log of the processor from the target port.

[0086] The communication bus 503 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 503 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0087] The memory 502 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 501 .

[0088] The above-mentioned processor 501 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0089] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the log capture method described in the above embodiment.

[0090] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0091] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0092] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A log capture method, characterized in that: Applied to a wireless communication module, the wireless communication module includes at least one processor and a wireless transmission component, and the log capture method includes: Using a log collection component in the processor to obtain the log of the processor, and transmitting the log of the processor to the wireless transmission component, wherein the log collection component is a system log service; The wireless transmission component is used to transmit the log of the processor to the target port of the host computer through wireless transmission according to the target Internet Protocol address, including: using the log collection component to obtain the configuration file in the processor, wherein the configuration parameters in the configuration file are written by the host computer through AT instructions, and the configuration parameters include the target Internet Protocol address and the identifier of the target port; using the log collection component to obtain the target Internet Protocol address and the identifier of the target port from the configuration file; using the wireless transmission component to transmit the log of the processor to the target port in real time through a socket according to the target Internet Protocol address, wherein the host computer refers to the part of the terminal other than the wireless communication module.

2. A log capture method, characterized in that: Applied to the host computer, the host computer refers to the part of the terminal other than the wireless communication module, and the host computer includes a log capture tool, including: The log capture tool is used to monitor the target port of the host computer, wherein the target port is used to receive the log of the processor transmitted by the wireless communication module through wireless transmission, the wireless communication module includes the processor, and the wireless communication module is used to execute the log capture method according to claim 1; The log capture tool is used to read the log of the processor from the target port.

3. The log capture method according to claim 2, characterized in that: The method further comprises: The configuration parameters are written into the configuration file in the processor through AT instructions, wherein the configuration parameters include the target Internet Protocol address corresponding to the host computer and the identifier of the target port.

4. The log capture method according to claim 2, characterized in that: After the log capture tool is used to read the log of the processor from the target port, the method further includes: The log capture tool is used to write the log of the processor into a log file corresponding to the processor, and the log of the processor is named according to the log capture time.

5. A log capture device, characterized in that: Configured in a wireless communication module, the wireless communication module includes at least one processor and a wireless transmission component, and the log capture device includes: An acquisition module, used to adopt a log collection component in the processor to acquire the log of the processor, and transmit the log of the processor to the wireless transmission component, wherein the log collection component is a system log service; The processing module is used to use the wireless transmission component to transmit the log of the processor to the target port of the host computer through wireless transmission according to the target Internet Protocol address, including: using the log collection component to obtain the configuration file in the processor, wherein the configuration parameters in the configuration file are written by the host computer through AT instructions, and the configuration parameters include the target Internet Protocol address and the identifier of the target port; using the log collection component to obtain the target Internet Protocol address and the identifier of the target port from the configuration file; using the wireless transmission component to transmit the log of the processor to the target port in real time through a socket according to the target Internet Protocol address, wherein the host computer refers to the part of the terminal other than the wireless communication module.

6. A log capture device, characterized in that: Configured in the host computer, the host computer refers to the part of the terminal other than the wireless communication module, and the host computer includes a log capture tool, including: A monitoring module, used to use the log capture tool to monitor the target port of the host computer, wherein the target port is used to receive the log of the processor transmitted by the wireless communication module through wireless transmission, the wireless communication module includes the processor, and the wireless communication module is used to execute the log capture method according to claim 1; The reading module is used to read the log of the processor from the target port using the log capture tool.

7. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the log capture method according to claim 1, or to implement the log capture method according to any one of claims 2 to 4.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the log capture method described in claim 1, or implements the log capture method described in any one of claims 2 to 4.

Citation Information

Patent Citations

  • Log collection method and system, client and storage medium

    CN113190410A

  • Method and device for acquiring log information, electronic equipment and medium

    CN114002987A