Log generation method, and terminal device and readable storage medium

By combining the absolute time information of log records in the terminal device and generating logs under preset conditions, the problem of insufficient memory of terminal device is solved, ensuring the reliability of key log storage and problem location.

WO2024244555A1PCT designated stage expired Publication Date: 2024-12-05HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078810
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-02
Filing Date
2024-02-27
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

The number of logs generated by terminal devices during work increases, resulting in limited memory capacity and logs being overwritten in a short period of time, which may lead to the loss of key logs and affect problem location and processing.

Method used

By recording absolute time information when generating log records and merging multiple log records in the stored procedure, memory usage is reduced; log records are generated when preset conditions are met, unnecessary log generation is reduced and memory space is saved.

Benefits of technology

It effectively avoids the problem that logs are overwritten in the terminal device memory for a short time, ensures that key logs are not lost, and improves the reliability of problem location and processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078810_05122024_PF_FP_ABST
    Figure CN2024078810_05122024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of terminals. Provided are a log generation method, and a terminal device and a readable storage medium. The log generation method provided in the present application is applied to a terminal device, wherein the terminal device comprises a first processing module, a second processing module and a storage module. The method comprises: a first processing module generating, on the basis of first time information from a second processing module, a first log record which comprises the first time information, wherein the first time information is used for determining, in combination with second time information, the absolute time when a second log record which comprises the second time information is generated, which second log record is generated by the first processing module and is stored in a storage module; and the storage module storing the first log record. By means of the solution provided in the present application, memory resources can be saved on in a log storage process, and a log is prevented from being overlaid in a short period of time in a memory of a terminal device, thereby preventing the problem of terminal device positioning or the problem of logs required for other processing being overlaid in a short period of time.
Need to check novelty before this filing date? Find Prior Art

Description

Log generation method, terminal device, and readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on June 2, 2023, with application number 202310651052.4 and application name “Method for generating logs, terminal device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular to a method for generating logs, a terminal device, and a readable storage medium. Background Art

[0003] When operating, terminal devices generate event records, called logs. These logs contain information about time, users, and related operations, such as application logs, security logs, and system logs. Logs are essential for developers to troubleshoot issues during development and maintenance. With the development of communication systems, terminal devices are becoming increasingly complex, generating an increasing number of logs during operation. However, terminal devices have limited memory capacity. Therefore, the more logs a terminal device generates per unit time, the more likely the logs will be overwritten in the terminal device's memory within a short period of time. This can lead to the loss of critical logs, hindering troubleshooting or other tackling based on these logs. Summary of the Invention

[0004] This application provides a method for generating logs, a terminal device, and a readable storage medium. The solution provided by this application can save memory resources during log storage and prevent logs from being overwritten in the terminal device memory within a short period of time. This can prevent the logs needed to locate terminal device problems or perform other processing from being overwritten within a short period of time.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a method for generating a log is provided, which is applied to a terminal device, the terminal device comprising a first processing module, a second processing module, and a storage module. The method comprises: the first processing module generating a first log record based on first time information from the second processing module, the first log record including the first time information, the first time information being used in combination with second time information to determine the absolute time of generating a second log record; the second log record being generated by the first processing module and stored in the storage module, the second log record including the second time information; and the storage module storing the first log record.

[0007] When locating problems on terminal devices, the log records generated by the terminal devices are indispensable. The log records need to record the absolute time when the log records were generated. For example, the year / month / day / hour / minute / second when the log records were generated, etc. Log records that record absolute time often occupy more memory resources.

[0008] Based on this, the solution provided by the present application records the second time information in a log record when generating a certain log record (for example, a second log record). For example, the second time information may be the time information generated by a local clock, and the first time information used to determine the absolute time of generating the second log record is recorded in another log record (for example, a first log record). For example, the first time information may include information such as the year / month / day for generating the second log record. Since the first time information can be combined with multiple second time information to determine the absolute time when multiple second log records corresponding to the same first time information are generated, the solution provided by the present application can store multiple second log records and the first log record that record the second time information when subsequently storing logs. Compared with storing multiple second log records, each second log record records the absolute time when the second log record is generated. The solution provided by the present application can save more memory resources in the process of storing logs.

[0009] In some possible implementations, the method further includes: the second processing module periodically sending the first time information to the first processing module.

[0010] Based on the above solution, the first processing module can periodically generate the first log record according to the first time information, so as to avoid the situation where the absolute time of generation of the second log record that has not been overwritten cannot be determined after the first log record generated in the memory is overwritten.

[0011] In some possible implementations, a sending period of the first time information is determined based on a preconfiguration.

[0012] In some possible implementations, the terminal device also includes a third processing module, and the method also includes: the third processing module obtains the first log record and the second log record from the storage module; the third processing module generates a third log record based on the first log record and the second log record, and the third log record includes the absolute time of generating the second log record and all or part of the other content in the second log record except the second time information.

[0013] Based on the above solution, if the third processing module requires the second log record when locating a problem, the third processing module can generate a third log record based on the first and second log records in the storage module. The third log record includes the absolute time when the second log record was generated, as well as all or part of the information in the second log record other than the time information. That is, after generating the third log record, the third processing module can directly locate or troubleshoot the problem based on the third log record.

[0014] In some possible implementations, the storage module stores the third log record, and the log file where the third log record is located does not include the first log record and the second log record.

[0015] Based on the above scheme, the log file where the third log record is located is different from the log file where the first log record and / or the second log record are located. The first log record and the second log record can be in the same log file or in different log files. This application does not impose any restrictions on this.

[0016] In some possible implementations, the first processing module is a radio frequency chip for amplifying the power of a radio frequency signal, or the first processing module is a chip for controlling whether to radiate the radio frequency signal.

[0017] In some possible implementations, the second processing module is an application chip.

[0018] In a second aspect, a method for generating a log is provided, which is applied to a first device, the first device comprising a processing module and a storage module. The method comprises: before generating a fourth log record corresponding to a first time unit, the processing module determines whether a preset condition is satisfied, the fourth log record comprising information indicating the communication status between the first device and a second device during the first time unit; if the preset condition is satisfied, the processing module generates the fourth log record, and the storage module stores the fourth log record.

[0019] Based on the above solution, before generating the fourth log record, the processing module needs to determine whether the preset conditions are met. Only when the preset conditions are met will the fourth log record be generated and stored. In other words, if the preset conditions are not met, the fourth log record will not be generated. Therefore, the solution provided by this application can reduce the number of fourth log records generated through conditional judgment, thereby reducing the memory space occupied by the fourth log record on the first device, preventing the log from being overwritten in the memory of the first device in a short period of time, and thus avoiding the problem of key log records required for locating problems on the first device or performing other processing being overwritten in a short period of time.

[0020] In some possible implementations, the preset conditions include at least one of the following: the communication signal energy between the first device and the second device is less than or equal to the first threshold within the first time unit; the bit error rate SER of the message transmitted between the first device and the second device is less than or equal to the second threshold within the first time unit; the reference signal received power RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; the sending module or the receiving module of the first device is in working mode within the first time unit; when the first time unit is an uplink transmission resource, the fourth log record only includes content related to the uplink transmission; when the first time unit is a downlink transmission resource, the fourth log record only includes content related to the downlink transmission.

[0021] In some possible implementations, the fourth log record is a log record related to the first device as a sender, and the preset conditions include any one of the following: the maximum transmission power between the first device and the second device is less than or equal to the first threshold within the first time unit; the sending module of the first device is in working mode within the first time unit; or the first time unit is an uplink transmission resource.

[0022] In some possible implementations, the fourth log record is a log record related to the first device as a receiver, and the preset conditions include any one of the following: the received signal strength indication between the first device and the second device is less than or equal to the second threshold within the first time unit; the SER of the message transmitted between the first device and the second device is less than or equal to the second threshold within the first time unit; the RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; the receiving module of the first device is in working mode within the first time unit; or the first time unit is a downlink transmission resource.

[0023] In some possible implementations, the fourth log record includes information representing the following: user identification module identifier, time slot number, system frame number, subcarrier spacing, time domain symbol index, maximum transmit power, and target transmit power.

[0024] In some possible implementations, the fourth log record includes information representing the following contents: a subscriber identification module identifier, a time slot number, a system frame number, a subframe number, and a received signal strength indicator.

[0025] In some possible implementations, the processing module is a cellular communication baseband chip.

[0026] In a third aspect, a terminal device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of processing in the first aspect or any one of the methods in the first aspect when executing the computer program, or executes the steps of processing in the second aspect or any one of the methods in the second aspect when executing the computer program.

[0027] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the steps of processing in the first aspect or any one of the methods in the first aspect, or the processor executes the steps of processing in the second aspect or any one of the methods in the second aspect.

[0028] In a fifth aspect, a computer program product is provided, which includes: computer program code, which, when executed by a terminal device, causes the terminal device to execute the steps of processing in the first aspect or any one of the methods in the first aspect, or causes the terminal device to execute the steps of processing in the second aspect or any one of the methods in the second aspect.

[0029] Among them, the beneficial effects of the third to fifth aspects can refer to the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] FIG1 is a block diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0031] FIG2 is a schematic diagram of an air interface frame structure of a new air interface communication provided in an embodiment of the present application;

[0032] FIG3 is a flow chart of a method for generating a log provided in an embodiment of the present application;

[0033] FIG4 is a flow chart of log generation and storage provided by an embodiment of the present application;

[0034] FIG5 is a flow chart of another method for generating logs provided in an embodiment of the present application;

[0035] FIG6 is another flow chart of log generation and storage provided by an embodiment of the present application;

[0036] FIG7 is a structural block diagram of a device 700 provided in an embodiment of the present application;

[0037] FIG8 is a schematic structural diagram of a terminal device 800 provided in an embodiment of the present application. Modes for Carrying Out the Invention

[0038] The technical solution in this application will be described below with reference to the accompanying drawings.

[0039] In the description of the embodiments of this application, unless otherwise specified, " / " means "or." For example, A / B can mean A or B. "And / or" in this document is merely a description of an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. Furthermore, in the description of the embodiments of this application, unless otherwise specified, "a plurality" means two or more than two.

[0040] In the following, the terms "first" and "second" are used solely for descriptive purposes or to distinguish, and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features being referred to. Thus, a feature designated "first" or "second" may explicitly or implicitly include one or more of the features.

[0041] The log generation method provided in the embodiments of the present application can be applied to terminal devices that can generate logs, such as mobile phones, tablet computers, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and smart homes. The embodiments of the present application do not impose any restrictions on the specific types of terminal devices.

[0042] The following describes a schematic diagram of the hardware structure of a terminal device 100 for implementing the above method. For example, FIG1 shows a schematic diagram of the hardware structure of the terminal device 100. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and a transceiver 150.

[0043] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0044] For example, when the terminal device 100 is a mobile phone or a tablet computer, it may include all the components shown in the figure, or may include only some of the components shown in the figure.

[0045] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0046] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0047] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0048] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0049] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0050] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130. In addition to charging, the USB interface can also be used to turn on the USB debugging switch, or to turn on the USB debugging mode. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the terminal device 100. While charging the battery 142, the charging management module 140 can also power the terminal device through the power management module 141.

[0051] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, and the like. In other embodiments, the power management module 141 may also be provided within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided within the same device.

[0052] The transceiver 150 is used to send data or signaling to other devices outside the terminal device 100, or to receive data or signaling from other devices outside the terminal device 100.

[0053] The external memory interface 120 can be used to connect an external memory card, such as a micro secure digital memory card (SD), to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage.

[0054] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, at least one application required for a function, etc. The data storage area may store data created during the use of the terminal device 100, such as logs. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0055] In actual application scenarios, the operating system of the terminal device 100 may include, but is not limited to, Symbian, Android, Windows, MacOS, iOS, Blackberry, HarmonyOS, etc. This application does not impose any limitation on the operating system of the terminal device.

[0056] Before describing the solutions provided by the embodiments of the present application, the terms involved in the present application are first explained.

[0057] Log: It can be understood as a log in a broad sense, such as the event record generated by the terminal device or chip during operation, including log records, log files, log content, log data, etc.

[0058] Log record: Each time a terminal device or chip performs an operation, it generates a record of events related to that operation. A log record can include one or more lines of content. One or more log records can be stored in a log file, which is stored in the terminal device's memory. Log records can also be referred to as log content, log data, etc. This application does not restrict the name of log records; this application will uniformly describe them as log records.

[0059] FIG2 is a schematic diagram of an air interface frame structure for new radio (NR) communication provided in an embodiment of the present application.

[0060] For example, as shown in FIG2 , the duration of a wireless frame is T f =10 milliseconds (ms), the duration of a time slot (T) slot =0.5ms, and one subframe consists of two time slots. When a terminal device operates in the fifth-generation mobile communication technology (5G NR) cellular communication mode, a maintenance log is generated in each time slot.

[0061] It should be noted that the time domain granularity for generating maintenance and measurement logs can be predefined. The time domain granularity for generating maintenance and measurement logs in the above example is a time slot, and this application does not impose any limitation on this.

[0062] Logs generated by terminal devices can be divided into event logs and statistical logs. Event logs are generated only when an event occurs, such as when a terminal device completes a radio resource control (RRC) connection with a base station or when the terminal device initiates a call. Statistical logs are generated when a terminal device periodically tests a function or parameter, such as when a terminal device tests cellular communication quality.

[0063] During the beta testing phase of terminal devices, we captured logs for issues and found that NR maintenance logs accounted for a relatively high proportion, reaching 20%. NR maintenance logs represent the signal energy of cellular communications on terminal devices and are generated at each time-domain granularity (e.g., subframe). NR maintenance logs, such as those representing received or transmitted signal energy, are critical logs that can be used to locate 5G signal loss issues. Since communication quality maintenance is essential, generating NR maintenance logs is essential. However, streamlining these logs can address the issue of limited storage space and log overwriting within a short period of time.

[0064] In view of this, the present application proposes a log generation scheme that can reduce the amount of maintenance logs generated, save memory resources in the subsequent log storage process, and avoid the logs being overwritten in the terminal device memory in a short period of time, thereby avoiding the problem of key logs required for locating terminal device problems or performing other processing being overwritten in a short period of time.

[0065] FIG3 is a flow chart of a method for generating a log provided in an embodiment of the present application.

[0066] The method 300 shown in FIG3 may be used in a first device, wherein the first device includes a processing module and a storage module. The method 300 includes the following steps:

[0067] S301, before generating log record #1 corresponding to the first time unit, the processing module determines whether a preset condition is met, where log record #1 includes information characterizing the communication status between a first device and a second device in the first time unit, where the first device is a terminal device and the second device is another terminal device or a network device.

[0068] Network equipment can manage transmission resources, provide access services for user equipment, and complete the forwarding of user equipment data between user equipment and the core network. The network devices in this application include but are not limited to: evolved Node B (eNB), radio network controller (RNC), Node B (NB), base station controller (BSC), base transceiver station (BTS), home evolved NodeB (HeNB, or home Node B, HNB), baseband unit (BBU), access point (AP) in wireless fidelity (WIFI) system, wireless relay node, wireless backhaul node, transmission point (TP) or transmission and reception point (TRP), etc., and can also be 5G, such as gNB in ​​NR system, or transmission point (TRP or TP), one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or it can also be a network node constituting a gNB or transmission point, such as a baseband unit (BBU) or a distributed unit (DU), or it can also be a base station in a future communication system, etc.

[0069] For example, if the time domain granularity of the first device configured on the network device to generate log record #1 (corresponding to the fourth log record in the content of the invention) is a time slot, then before generating log record #1 corresponding to each time slot, the first device needs to determine whether a preset condition is met. Log record #1, for example, is the maintenance log mentioned above. In this case, the first time unit can be a time slot. If the time domain granularity of the first device configured on the network device to generate log record #1 is a subframe, then the first time unit can be a subframe, and so on. The communication status can be characterized by parameters such as communication signal energy, symbol error rate (SER), and reference signal receiving power (RSRP).

[0070] A possible implementation method, the preset conditions include at least one of the following: the communication signal energy between the first device and the second device is less than or equal to the first threshold within the first time unit; the SER of the message transmitted between the first device and the second device is less than or equal to the second threshold within the first time unit; the RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; the sending module or the receiving module of the first device is in working mode within the first time unit; when the first time unit is an uplink transmission resource, log record #1 only includes content related to uplink transmission; when the first time unit is a downlink transmission resource, log record #1 only includes content related to downlink transmission.

[0071] S302: When a preset condition is met, the processing module generates log record #1, and the storage module stores log record #1.

[0072] Possible implementation #1: Log record #1 is a log record related to the first device as the sender. That is, log record #1 records the relevant description of the first device performing a sending operation within the first time unit. When the first device is the sender, the receiver can be a network device or another first device, and this application does not limit this. The preset conditions include any one or more of the following:

[0073] The maximum transmission power between the first device and the second device is less than or equal to the first threshold in the first time unit; the transmission module of the first device is in the working mode in the first time unit; or the first time unit is an uplink transmission resource.

[0074] When log record #1 is a log record related to the first device as the sender, the communication signal energy, such as the maximum transmit power, and the first threshold corresponding to the maximum transmit power are the first threshold. When log record #1 is a log record related to the first device as the receiver, the communication signal energy, such as the received signal strength indication (RSSI), and the first threshold corresponding to the RSSI correspond to the second threshold. The first threshold and the second threshold can be preconfigured or predefined, which is not limited in this application. The first threshold and the second threshold are different.

[0075] Exemplarily, when log record #1 is a log related to the first device as a sender, log record #1 includes information indicating the following: subscriber identity module (SIM) identifier, time slot number, system frame number, subcarrier spacing, symbol index, maximum transmit power, and target transmit power.

[0076] Optionally, when log record #1 is a log record related to the first device as the sender, log record #1 also includes fields indicating any of the following: timing parameters, maximum power reduction (MPR), number of resource blocks (RB), channel sounding reference signal (SRS) index.

[0077] For example, when log record #1 is a log record related to the first device as the sender, part of the content in log record #1 can be generated based on the operations actually performed by the first device, such as time slot number, system frame number, subcarrier spacing, symbol index, timing parameters, RB, SRS index, etc. Part of the content in log record #1 can also be generated based on protocol regulations, such as maximum transmit power, MPR, etc. Part of the content in log record #1 can also be generated based on network device instructions, such as target transmit power.

[0078] It should be noted that, if the preset conditions in implementation #1 are not met, the processing module does not generate log record #1, or the processing module generates log record #1 but the storage module does not store log record #1.

[0079] It can be understood that if any of the preset conditions in implementation method #1 is not met, the processing module may not generate log record #1. Alternatively, if any of the preset conditions in implementation method #1 is not met, the processing module may generate log record #1, but does not write log record #1 to the buffer, so that log record #1 will not be written to the disk to the storage module. Alternatively, if any of the preset conditions in implementation method #1 is not met, the processing module generates log record #1 and writes log record #1 to the buffer. In the process of writing from the buffer to the storage module, log record #1 can be filtered, so that log record #1 will not be written to the disk to the storage module. This application does not limit the operations performed by the processing module and the storage module when any of the preset conditions in implementation method #1 is not met.

[0080] In Example #1, the maximum transmit power between the first device and the second device is greater than a first threshold value within a first time unit. Alternatively, the maximum transmit power of the signal sent by the first device to the second device within the first time unit is greater than the first threshold value. In this case, the preset condition is not met. The first threshold value is the configured maximum transmit power threshold, which can be the value range of the Maximum Transmit Power field in the maintenance and testing log. Developers can configure the first threshold value based on empirical values. The preset condition determination method in Example #1 can be used during the first device development phase.

[0081] In Example #2, the transmitting module of the first device is in tx off mode (tx off) during the first time unit. In other words, the transmitting module of the first device is not operating during the first time unit, and the preset condition is not met. For example, the network device does not schedule the first device to transmit a message during the first time unit, or the first device is performing an inter-frequency measurement during the first time unit. In this case, the transmitting module is in tx off mode.

[0082] In Example #3, the first time unit is a downlink transmission resource, and the preset condition is not met. For example, according to the 3rd Generation Partnership Project (3GPP) time division duplexing (TDD) band standard, the first time unit is downlink time slot D. In other words, when the first time unit is downlink time slot D, no log record is generated for the first device as the sender corresponding to the first time unit.

[0083] Possible implementation #2: Log record #1 is a log record related to the first device as the receiver. That is, log record #1 records the relevant description of the first device performing a receiving operation within the first time unit. When the terminal device is the receiver, the sender can be a network device or another terminal device, and this application does not limit this. The preset conditions include any one or more of the following:

[0084] The received signal strength indication between the first device and the second device is less than or equal to the second threshold within the first time unit; the SER of the message transmitted between the first device and the second device is less than or equal to the second threshold within the first time unit; the RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; the receiving module of the first device is in working mode within the first time unit; or the first time unit is a downlink transmission resource.

[0085] Exemplarily, when log record #1 is a log related to the first device as a receiver, log record #1 includes information indicating the following contents: SIM card identifier, time slot number, system frame number, subframe number, and RSSI.

[0086] Optionally, when log record #1 is a log record related to the first device as a receiver, log record #1 also includes information indicating the following: timing parameters, carrier index, receiving antenna index, and low noise amplifier (LNA) receiving gain gear.

[0087] For example, when log record #1 is a log record related to the first device as the recipient, the content in log record #1 can be generated based on the actual operations performed by the first device, or generated based on protocol provisions, or generated based on network device instructions. This application does not impose any restrictions on this.

[0088] Exemplarily, the processing module that generates log record #1 is a cellular communication baseband chip.

[0089] It should be noted that, if the preset conditions in implementation #2 are not met, the processing module does not generate log record #1, or the processing module generates log record #1 but the storage module does not store log record #1.

[0090] For the specific implementation when the preset conditions are not met, please refer to the relevant description in Implementation Method #1, which will not be repeated here.

[0091] In Example #4, if the RSSI between the first and second devices exceeds the second threshold in the first time unit, or in other words, the RSSI of the signal received by the first device during the first time unit exceeds the second threshold, the preset condition is not met. The second threshold is the configured RSSI threshold, which can be the value range of the RSSI field in the maintenance log. Developers can configure the second threshold based on experience. The preset condition determination method in Example #4 can be used during the first device development phase.

[0092] In Example #5, the SER of messages transmitted between the first device and the second device exceeds the second threshold within the first time unit, thus disconfirming the preset condition. Based on service scenarios such as call / voice / video, a high SER of messages received by the communication receiving entity may manifest itself as poor signal quality, unclear calls, lags, silence, or interruptions. The preset condition determination method in Example #5 can be used while the user is using the first device.

[0093] Example #6: The receiving module of the first device is in the off mode (rx off) within the first time unit, and the preset conditions are not met at this time, for example, the network device or other terminal device does not transmit a message to the first device within the first time unit, or the first device is in the heterofrequency measurement process within the first time unit.

[0094] In Example #7, the first time unit is an uplink transmission resource, and the preset condition is not met. For example, according to the 3GPP TDD frequency band standard, the first time unit is an uplink time slot U. In other words, when the first time unit is an uplink time slot U, no log record is generated for the first device as the receiver corresponding to the first time unit.

[0095] Example #8: The RSRP corresponding to the communication link between the first device and the second device changes within the first time unit, and the preset condition is not met. For example, the RSRP changes abruptly within the first time unit.

[0096] When the preset conditions are met and the log record #1 has been generated, the storage module stores the log record #1.

[0097] Exemplarily, the processing module is a cellular communication baseband chip. The cellular communication baseband chip generates log record #1 when it determines that the preset conditions are met, and writes the generated log record #1 into the log buffer. The AP chip writes the log record #1 in the buffer into the disk / hard disk space of the first device at irregular intervals according to the disk writing rules.

[0098] For example, as shown in Figure 4, when in operating mode, the cellular communication baseband chip continuously generates cellular communication maintenance and test logs based on time-domain resource granularity and cyclically writes the generated maintenance and test logs to a log buffer, such as random access memory (RAM). The AP chip periodically writes the logs from the buffer to the disk / hard drive space of the first device according to a write-to-disk rule. However, the disk / hard drive space is fixed, and if the cellular communication baseband chip generates logs too quickly, the logs stored on the disk / hard drive will be overwritten more quickly. The method 300 provided in this application can reduce the number of generated cellular communication maintenance and test logs by determining pre-set conditions. This reduces the memory space occupied by maintenance and test logs, such as log record #1, in the first device, preventing the logs in the first device's memory from being overwritten in a short period of time. This prevents critical logs needed for troubleshooting first device issues or performing other processing from being overwritten in a short period of time.

[0099] FIG5 is a flow chart of another method for generating logs provided in an embodiment of the present application.

[0100] The method 500 shown in FIG5 may be used in a terminal device, the terminal device including a first processing module, a second processing module, and a storage module. The method 500 includes the following steps:

[0101] S501, the first processing module generates log record #2 based on the first time information from the second processing module, log record #2 includes the first time information, the first time information is used to determine the absolute time of generating log record #3 in combination with the second time information, log record #3 is generated by the first processing module and stored in the storage module, log record #3 includes the second time information.

[0102] Exemplarily, when the first processing module is unable to obtain absolute time and generates log record #3 (corresponding to the second log record in the invention), log record #3 includes a time, for example, x hours, x minutes, and x seconds. This time can be generated based on the local clock of the first processing module. At this time, the specific date when log record #3 was generated cannot be determined. The second processing module can obtain the absolute time and send it to the first processing module. That is, the first time information is the absolute time. The first processing module generates log record #2 (corresponding to the first log record in the invention) based on the absolute time. Log record #2 includes the absolute time, for example, x year, x month, x day, x hours, x minutes, and x seconds. Log record #2 and log record #3 are stored in order in the storage module. When subsequently capturing logs to locate the problem, the absolute time when log record #3 was generated can be restored based on log record #2 and log record #3.

[0103] Log record #2 and log record #3 can be understood as log records generated by the first processing module for different purposes. Log record #2 is used to determine the absolute time when log record #3 was generated. Log record #3 records the specific operations or events performed by the terminal device during that absolute time, providing the specific content of the terminal device's execution during that absolute time when locating the problem later. The absolute time when log record #3 was generated can be understood as the absolute time when the operation performed by the terminal device, as recorded in log record #3, actually occurred. Optionally, method 500 also includes:

[0104] The second processing module periodically sends the first time information to the first processing module.

[0105] In a possible implementation, the second processing module sends the first time information to the first processing module according to a preconfigured period.

[0106] Exemplarily, the first time information is x year x month x day, the second time information included in log record #3 is x hours x minutes x seconds, and the preconfigured period can be one day; or, the first time information is x year x month, the second time information included in log record #3 is x day x hours x minutes x seconds, and the preconfigured period can be one month; or, the first time information is x year x month x day x hour, the second time information included in log record #3 is x minutes x seconds, and the preconfigured period can be one hour, and so on.

[0107] Exemplarily, the first processing module is a radio frequency chip for amplifying the power of a radio frequency signal, or the first processing module is a chip for controlling whether to radiate a radio frequency signal. The first processing module controls whether to radiate a radio frequency signal in two situations: one control is that the first processing module feeds the radio frequency signal to the antenna for radiation, and the other control is that the first processing module shields the radio frequency signal, that is, controls not to feed the radio frequency signal to the antenna, that is, controls not to radiate the radio frequency signal. For example, the first processing module is a radio frequency enhancement chip. The first processing module cannot recognize absolute time and can only perceive its own running time. For example, the first processing module has a sleep time, and the local clock of the first processing module does not count when in sleep mode, or the local clock of the first processing module is out of synchronization for a long time, which will cause time errors.

[0108] Exemplarily, the second processing module is an AP chip. The AP chip can communicate, that is, can perform time synchronization, and can obtain accurate absolute time, such as x year x month x day x hour x minute x second.

[0109] S502: The storage module stores log record #2.

[0110] Exemplarily, the radio frequency enhancement chip writes the generated log record #2 into the log buffer, and the AP chip writes the log record #2 in the buffer into the disk / hard disk space of the terminal device at irregular intervals according to the disk writing rule.

[0111] Log record #2 and log record #3 can be stored in the storage module. When a problem occurs later and logs are captured for analysis, for example, log record #3 needs to be captured. However, since the time included in log record #3 is not the absolute time when log record #3 was generated, log record #2 needs to be captured to restore the absolute time when log record #3 was generated to locate the problem.

[0112] Optionally, the terminal device further includes a third processing module, and the method 500 further includes:

[0113] The third processing module obtains log record #2 and log record #3 from the storage module; the third processing module generates log record #4 based on log record #2 and log record #3, and log record #4 includes the absolute time of generating log record #3 and all or part of the other information in log record #3 except the time information.

[0114] If the third processing module needs log record #3 to troubleshoot the problem, it can generate log record #4 (corresponding to the third log record in the present disclosure) based on log records #2 and #3 in the storage module. Log record #4 includes the absolute time when log record #3 was generated, as well as all or part of the information in log record #3 other than the time information. That is, after generating log record #4, the third processing module can directly locate or troubleshoot the problem based on log record #4.

[0115] Optionally, the method 500 further includes:

[0116] The storage module stores log record #4. The log file where log record #4 is located does not include log record #2 and log record #3.

[0117] For example, the log file where log record #4 is located is different from the log file where log record #2 and / or log record #3 are located. Log record #2 and log record #3 can be in the same log file or in different log files. This application does not impose any restrictions on this.

[0118] It should be noted that log record #2 can be generated before or after log record #3 is generated, and this application does not impose any restrictions on this. Therefore, log record #2 can be stored before or after log record #3 is stored, and this application does not impose any restrictions on this.

[0119] As shown in Figure 6, the RF boost chip continuously generates log record #3 and periodically generates log record #2 when in working mode, and cyclically writes the generated logs to the log buffer, such as RAM. The AP chip writes the logs in the buffer to the disk / hard disk space of the terminal device at irregular intervals according to the disk writing rules.

[0120] When the method 500 provided in the present application generates a certain log record #3, the second time information is recorded in the log record #3. For example, the second time information can be the time information generated by the local clock. The first time information used to determine the absolute time of generating the log record #3 is recorded in the log record #2. For example, the first time information can include information used to determine the year / month / day when the second log record is generated. Since the first time information can be combined with multiple second time information to determine the absolute time when multiple log records #3 corresponding to the same first time information are generated. Therefore, when the method 500 provided in the present application subsequently stores logs, it can store multiple log records #3 and log record #2 that record the second time information. Compared with storing multiple log records #3, each log record #3 records the absolute time when the log record #3 is generated. The solution provided in the present application can save more memory resources in the process of storing logs, thereby avoiding the logs from being overwritten in the terminal device memory for a short time, thereby avoiding the problem of key logs required for locating terminal device problems or performing other processing being overwritten in a short time.

[0121] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific numerical values ​​or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or variations based on the above examples, and such modifications or variations also fall within the scope of the embodiments of the present application.

[0122] FIG7 is a structural block diagram of a device 700 provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0123] In one design, apparatus 700 is applied to a first device. Referring to FIG. 7 , apparatus 700 includes a processing module 701 and a storage module 702 .

[0124] Among them, the processing module 701 is used to determine whether the preset conditions are met before generating the log record #1 corresponding to the first time unit, and the log record #1 includes information characterizing the communication quality between the first device and the second device in the first time unit; when the preset conditions are met, the processing module 701 is used to generate the log record #1, and the storage module 702 stores the log record #1.

[0125] In some possible implementations, the preset conditions include at least one of the following: the communication signal energy between the first device and the second device is less than or equal to a first threshold within the first time unit; the bit error rate SER of the message transmitted between the first device and the second device is less than or equal to a second threshold within the first time unit; the reference signal received power RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; the sending module or the receiving module of the first device is in working mode within the first time unit; when the first time unit is an uplink transmission resource, log record #1 only includes content related to uplink transmission; when the first time unit is a downlink transmission resource, log record #1 only includes content related to downlink transmission.

[0126] In some possible implementations, log record #1 is a log record related to the first device as a sender, and the preset conditions include any one of the following: the maximum transmission power between the first device and the second device is less than or equal to the first threshold within the first time unit; the sending module of the first device is in working mode within the first time unit; or the first time unit is an uplink transmission resource.

[0127] In some possible implementations, log record #1 is a log record related to the first device as a receiver, and the preset conditions include any one of the following: the received signal strength indication between the first device and the second device is less than or equal to the second threshold within the first time unit; the SER of the message transmitted between the first device and the second device is less than or equal to the second threshold within the first time unit; the RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; the receiving module of the first device is in working mode within the first time unit; or the first time unit is a downlink transmission resource.

[0128] In some possible implementations, log record #1 includes information representing the following: user identification module identifier, time slot number, system frame number, subcarrier spacing, time domain symbol index, maximum transmit power, and target transmit power.

[0129] In some possible implementations, log record #1 includes information representing the following: subscriber identity module identifier, time slot number, system frame number, subframe number, and received signal strength indicator.

[0130] In some possible implementations, the processing module is a cellular communication baseband chip.

[0131] In another design, the apparatus 700 is applied to a first device, such as a terminal device. Referring to Figure 7 , the apparatus 700 includes a processing module 701 and a storage module 702. The processing module 701 includes a first processing unit and a second processing unit.

[0132] Among them, the first processing unit generates log record #2 based on the first time information from the second processing unit, log record #2 includes the first time information, the first time information is used to determine the absolute time of generating log record #3 in combination with the second time information, log record #3 is generated by the first processing unit and stored in the storage module 702, log record #3 includes the second time information; the storage module 702 is used to store log record #2 and log record #3.

[0133] In some possible implementations, the second processing unit periodically sends the first time information to the first processing unit.

[0134] In some possible implementations, a sending period of the first time information is determined based on a preconfiguration.

[0135] In some possible implementations, the processing module 701 also includes a third processing unit, which is used to obtain log record #2 and log record #3 from the storage module 702; and generate log record #4 based on log record #2 and log record #3, log record #4 including the absolute time of generating log record #3 and all or part of the other information in log record #3 except the time information.

[0136] In some possible implementations, the storage module 702 is further configured to store log record #4, and the log file where log record #4 is located does not include log record #2 and log record #3.

[0137] In some possible implementations, the first processing unit is a radio frequency chip for amplifying the power of a radio frequency signal, or the first processing unit is a chip for controlling whether to radiate the radio frequency signal.

[0138] In some possible implementations, the second processing unit is an application chip.

[0139] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the method embodiment of this application. Their specific functions, execution steps, interpretation of terms, associations and technical effects can be found in the method embodiment part and will not be repeated here.

[0140] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, the division of the above-mentioned functional units and modules is only used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or software functional units. For example, a "module" can be a software program, a hardware circuit, or a combination of the two that implements the above-mentioned functions. The hardware circuit may include an application-specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) for executing one or more software or firmware programs, and a memory, a combined logic circuit, and / or other suitable components that support the described functions.

[0141] Therefore, the modules of each example described in the embodiments of this application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0142] In addition, the specific names of the functional units and modules are only for the purpose of distinguishing them from each other and are not intended to limit the scope of protection of this application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the above method embodiments and will not be repeated here.

[0143] It should be understood that the hardware systems and devices in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.

[0144] Embodiments of the present application also provide a computer-readable storage medium storing computer instructions. When the computer-readable storage medium is executed on a terminal device, the terminal device executes the method described above. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be magnetic media (e.g., floppy disk, hard disk, tape), optical media, or semiconductor media (e.g., solid-state disk (SSD)).

[0145] The embodiment of the present application also provides a computer program product containing computer instructions, which, when executed on a terminal device, enables the terminal device to execute the technical solution shown above.

[0146] Figure 8 is a schematic diagram of the structure of a terminal device 800 provided in an embodiment of the present application. Terminal device 800 includes a chip 801, wherein chip 801 includes one or more chips, for example, chip 801 includes chip #1, chip #2, and chip #3. Chip 801 is used to support the terminal device in executing the technical solutions shown in the aforementioned methods 300 and 500. The chip can be a general-purpose processor or a dedicated processor.

[0147] Optionally, the terminal device 800 further includes a transceiver 802, which is used to accept control of the chip 801 and to support the terminal device in executing the technical solution shown above.

[0148] Optionally, the terminal device 800 may further include: a storage medium 803 .

[0149] In one design, chip 801 includes a chip, and the terminal device 800 is used to implement the technical solution performed by the first device in the method 300 above.

[0150] In another design, chip 801 includes chip #1, chip #2, and chip #3, and terminal device 800 is used to implement the technical solution executed by the terminal device in method 500 above.

[0151] It should be noted that the chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits that can perform the various functions described throughout this application.

[0152] The devices, terminal devices, computer storage media, and computer program products provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.

[0153] It should be understood that the above is only intended to help those skilled in the art better understand the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. Based on the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, certain steps in each embodiment of the above method may be unnecessary, or certain new steps may be added. Or a combination of any two or any multiple embodiments described above. Such modifications, changes, or combined solutions also fall within the scope of the embodiments of the present application.

[0154] It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments. The same or similar points that are not mentioned can be referenced with each other. For the sake of brevity, they will not be repeated here.

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

[0156] It should also be understood that in the embodiments of the present application, "pre-configuration", "pre-setting" and "pre-definition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device). The present application does not limit its specific implementation method.

[0157] It should also be understood that the division of the modes, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various modes, categories, situations and embodiments can be combined without contradiction.

[0158] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0159] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for generating a log, characterized in that: The method is applied to a terminal device, the terminal device includes a first processing module, a second processing module and a storage module, and the method includes: The first processing module generates a first log record based on first time information from the second processing module, the first log record includes the first time information, the first time information is used to determine the absolute time of generating a second log record in combination with second time information, the second log record is generated by the first processing module and stored in the storage module, and the second log record includes the second time information; The storage module stores the first log record.

2. The method according to claim 1, characterized in that The method further comprises: The second processing module periodically sends the first time information to the first processing module.

3. The method according to claim 2, characterized in that The sending period of the first time information is determined based on pre-configuration.

4. The method according to any one of claims 1 to 3, characterized in that The terminal device further includes a third processing module, and the method further includes: The third processing module obtains the first log record and the second log record from the storage module; The third processing module generates a third log record based on the first log record and the second log record, where the third log record includes the absolute time and all or part of the other contents in the second log record except the second time information.

5. The method according to claim 4, characterized in that The method further comprises: The storage module stores the third log record, and the log file where the third log record is located does not include the first log record and the second log record.

6. The method according to any one of claims 1 to 5, characterized in that The first processing module is a radio frequency chip used to amplify the power of a radio frequency signal, or the first processing module is a chip used to control whether to radiate a radio frequency signal.

7. The method according to any one of claims 1 to 6, characterized in that The second processing module is an application chip.

8. A method for generating a log, characterized in that: The method is applied to a first device, wherein the first device includes a processing module and a storage module, including: The processing module determines whether a preset condition is satisfied before generating a fourth log record corresponding to the first time unit, the fourth log record including information characterizing a communication status between the first device and the second device at the first time unit; When the preset condition is met, the processing module generates the fourth log record, and the storage module stores the fourth log record.

9. The method according to claim 7, characterized in that: The preset condition includes at least one of the following: The energy of the communication signal between the first device and the second device is less than or equal to a first threshold within the first time unit; A bit error rate SER of messages transmitted between the first device and the second device is less than or equal to a second threshold within the first time unit; A reference signal received power RSRP corresponding to the communication link between the first device and the second device does not jump within the first time unit; The sending module or the receiving module of the first device is in working mode within the first time unit; When the first time unit is an uplink transmission resource, the fourth log record only includes content related to the uplink transmission; When the first time unit is a downlink transmission resource, the fourth log record only includes content related to the downlink transmission.

10. The method according to claim 8 or 9, characterized in that: The fourth log record is a log record related to the first device as a sender, and the preset condition satisfies any one of the following: The maximum transmission power between the first device and the second device is less than or equal to a first threshold in the first time unit; The sending module of the first device is in working mode within the first time unit; or The first time unit is an uplink transmission resource.

11. The method according to claim 8 or 9, characterized in that: The fourth log record is a log record related to the first device as a receiver, and the preset condition satisfies any one of the following: The received signal strength indication between the first device and the second device is less than or equal to a second threshold within the first time unit; The SER of the message transmitted between the first device and the second device is less than or equal to the second threshold within the first time unit; The RSRP corresponding to the communication link between the first device and the second device does not change within the first time unit; The receiving module of the first device is in working mode during the first time unit; or The first time unit is a downlink transmission resource.

12. The method according to claim 10, characterized in that The fourth log record includes information indicating the following: User identification module identifier, time slot number, system frame number, subcarrier spacing, time domain symbol index, maximum transmit power, target transmit power.

13. The method according to claim 11, characterized in that The fourth log record includes information indicating the following: Subscriber Identity Module ID, time slot number, system frame number, subframe number, received signal strength indication.

14. The method according to any one of claims 8 to 13, characterized in that The processing module is a cellular communication baseband chip.

15. A terminal device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented, or the method according to any one of claims 8 to 14 is implemented.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 7, or executes the method according to any one of claims 8 to 14.

17. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is executed by a terminal device, the terminal device executes the method according to any one of claims 1 to 7, or executes the method according to any one of claims 8 to 14.

Citation Information

Patent Citations

  • Systems and methods for maintaining time stamping accuracy to meet a non-linear time drift constraint

    CN104885537A

  • Program compression log file output method and device

    CN106354617A

  • Log processing method and device, storage medium and terminal equipment

    CN108170586A

  • Terminal positioning method and system and computer readable storage medium

    CN113423054A

  • Communication exception log storage method, system and device and storage medium

    CN114385565A