Log generation method, terminal equipment and readable storage medium

By recording absolute time information in the terminal device and combining multiple time information to generate log records, or determining to generate logs based on preset conditions, the problem of excessive space occupied by terminal device logs is solved, and effective log storage and problem positioning is realized. reliability.

CN119065915AActive Publication Date: 2024-12-03HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310651052.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2024-12-03
Estimated Expiration
2043-06-02

AI Technical Summary

Technical Problem

The number of logs generated by terminal devices during operation increases, resulting in limited memory capacity, resulting in logs being overwritten in a short period of time, affecting problem location and processing.

Method used

By recording absolute time information when generating log records and generating multiple log records in combination with multiple time information in the stored process, the storage space is reduced, or determining whether to generate log records based on preset conditions, unnecessary log generation is reduced.

Benefits of technology

Effectively save memory resources, avoid logs being overwritten in a short period of time, ensure that key logs are not lost, and improve the reliability of problem location and processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065915A_ABST
    Figure CN119065915A_ABST
Patent Text Reader

Abstract

The invention provides a log generation method, terminal equipment and a readable storage medium, and relates to the field of terminals. The method for generating the log is applied to the terminal equipment, the terminal equipment comprises a first processing module, a second processing module and a storage module, and the method comprises the steps that the first processing module generates a first log record including first time information based on the first time information from the second processing module, the first time information is used for determining absolute time for generating a second log record including the second time information in combination with the second time information, the second log record is generated by the first processing module and stored in the storage module, and the storage module stores the first log record. According to the scheme provided by the invention, memory resources can be saved in the log storage process, and the logs are prevented from being covered in the memory of the terminal equipment in a short time, so that the problem that the required logs are covered in a short time when a terminal equipment problem is positioned or other processing is carried out is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] When the terminal device is working, it will generate event records, which are called logs. The logs record the time information, the user and the description of related operations, such as application logs, security logs or system logs. In the process of development and operation and maintenance, logs are needed to help developers troubleshoot problems. With the development of communication systems, the complexity of terminal devices is getting higher and higher, and the number of logs generated by terminal devices when working is increasing. However, the memory capacity of terminal devices is limited. Therefore, the more logs generated by terminal devices per unit time, the higher the possibility that the logs will be overwritten in the terminal device memory in a short time. In this case, key logs may be lost in a short time, which is not conducive to people locating problems or performing other processing on terminal devices based on key logs. Summary of the invention

[0003] The present application provides a method for generating logs, a terminal device, and a readable storage medium. The solution provided by the present application can save memory resources in the process of storing logs, and avoid the logs being overwritten in a short time in the terminal device memory, that is, to avoid the problem that the logs required for locating terminal device problems or performing other processing are overwritten in a short time.

[0004] In order to achieve the above objectives, this application adopts the following technical solutions:

[0005] In a first aspect, a method for generating a log is provided, which is applied to a terminal device, wherein the terminal device includes a first processing module, a second processing module, and a storage module. 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 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, the second log record includes second time information; the storage module stores the first log record.

[0006] When locating problems on terminal devices, the log records generated by the terminal devices are indispensable, and the log records need to record the absolute time when the log records are generated, for example, the year / month / day / hour / minute / second and other information when the log records are generated. Log records that record absolute time often occupy more memory resources.

[0007] Based on this, when generating a log record (for example, a second log record), the solution provided by the present application records the second time information in the log record. For example, the second time information may be the time information generated by the local clock. In another log record (for example, the first log record), the first time information used to determine the absolute time of generating the second log record is recorded. For example, the first time information may include information such as the year / month / day for determining the generation of the second log record. Since the first time information may be combined with multiple second time information to determine the absolute time of generation of multiple second log records corresponding to the same first time information, the solution provided by the present application may 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 of generating the second log record. The solution provided by the present application may save more memory resources in the process of storing logs.

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

[0009] Based on the above solution, the first processing module can periodically generate the first log record according to the first time information 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.

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

[0011] 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 content in the second log record except the second time information.

[0012] Based on the above solution, if the third processing module needs the second log record when locating the problem, the third processing module can generate a third log record based on the first log record and the second log record in the storage module, and the third log record includes the absolute time when the second log record is generated, and all or part of the other information in the second log record except the time information. That is, after generating the third log record, the third processing module can directly locate or troubleshoot the problem according to the third log record.

[0013] 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.

[0014] 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.

[0015] In some possible implementations, the first processing module is a radio frequency chip used to amplify the power of the radio frequency signal, or the first processing module is a chip used to control whether to radiate the radio frequency signal.

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

[0017] In a second aspect, a method for generating a log is provided, which is applied to a first device, wherein the first device includes a processing module and a storage module. The method includes: before the processing module generates a fourth log record corresponding to a first time unit, determining whether a preset condition is met, the fourth log record includes information characterizing a communication status between the first device and the second device in 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.

[0018] Based on the above scheme, before generating the fourth log record, the processing module needs to determine whether the preset condition is met, and only generates and stores the fourth log record when the preset condition is met, that is, the fourth log record is not generated when the preset condition is not met. Therefore, the scheme provided by the present application can reduce the number of fourth log records generated by conditional judgment, thereby reducing the memory space occupied by the fourth log record of the first device, avoiding the log from being overwritten in the memory of the first device for a short time, thereby avoiding the problem of key log records required for locating the problem of the first device or performing other processing being overwritten in a short time.

[0019] 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 the 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.

[0020] In some possible implementations, the fourth log record is a log record related to the first device as a sender, and the preset conditions meet any one of the following items: 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 a working mode within the first time unit; or the first time unit is an uplink transmission resource.

[0021] 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.

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

[0023] In some possible implementations, the fourth log record includes information characterizing the following contents: a user identification module identifier, a time slot number, a system frame number, a subframe number, and a received signal strength indication.

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

[0025] 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.

[0026] In a fourth aspect, a computer-readable storage medium is provided, wherein 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 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.

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

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

[0029] Figure 1 This is a hardware structure block diagram of a terminal device provided in an embodiment of the present application;

[0030] Figure 2 It is a schematic diagram of the air interface frame structure of the new air interface communication provided in the embodiment of the present application;

[0031] Figure 3 It is a flowchart of a method for generating a log provided in an embodiment of the present application;

[0032] Figure 4 It is a flow chart of log generation and storage provided by an embodiment of the present application;

[0033] Figure 5 It is a flowchart of another method for generating logs provided in an embodiment of the present application;

[0034] Figure 6 This is another flow chart of the log generation and storage provided by the embodiment of the present application;

[0035] Figure 7 is a structural block diagram of a device 700 provided in an embodiment of the present application;

[0036] Figure 8 It is a structural diagram of a terminal device 800 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0038] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two.

[0039] In the following, the terms "first" and "second" are used only for descriptive purposes or for distinction, and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0040] The method for generating a log provided in the embodiment of the present application can be applied to mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), smart homes and other terminal devices that can generate logs. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.

[0041] The following is a schematic diagram of the hardware structure of the terminal device 100 for implementing the above method, which is exemplary: Figure 1 1 shows a schematic diagram of a hardware structure of a 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.

[0042] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0043] 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.

[0044] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0045] 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.

[0046] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0047] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.

[0048] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0049] 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 a 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 the charging management module 140 is charging the battery 142, it can also power the terminal device through the power management module 141.

[0050] 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 power the processor 110, the internal memory 121, etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.

[0051] 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.

[0052] The external memory interface 120 can be used to connect an external memory card, such as a 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 a data storage function.

[0053] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, 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.

[0054] 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.

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

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

[0057] Log record: Each time a terminal device or chip performs an operation, it will generate an event record related to the operation. A log record may include one or more lines of content. One or more log records may be stored in a log file, which is stored in the memory of the terminal device. In addition, log records may also be called log content, log data, etc. This application does not limit the name of log records, and this application uniformly describes them as log records.

[0058] Figure 2 It is a schematic diagram of the air interface frame structure of the new radio (NR) communication provided in an embodiment of the present application.

[0059] For example, Figure 2 As shown, the duration of a wireless frame is T f = 10 milliseconds (ms), the length of a time slot (T) slot=0.5ms, one subframe includes two time slots. When the terminal device works in the fifth generation mobile communication technology (5G) NR cellular communication mode, a maintenance log is generated in each time slot.

[0060] 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.

[0061] The logs generated by the terminal device can be divided into event logs and statistical logs. Event logs are only generated when an event occurs, such as when the terminal device and the base station complete the radio resource control (RRC) connection, the terminal device starts a call, etc. Statistical logs are generated when the terminal device periodically detects a certain function / parameter, for example, when the terminal device detects the quality of cellular communication, a statistical log is generated.

[0062] In the process of capturing the logs of terminal devices for problems during the Beta testing phase of terminal devices, it was found that the proportion of NR maintenance logs was relatively high, reaching 20%. NR maintenance logs can characterize the signal energy of cellular communications of terminal devices, and NR maintenance logs can be generated for each time domain granularity (such as subframe). NR maintenance logs, such as key logs that characterize signal reception energy or signal transmission energy and can be used to locate 5G signal-free problems, cannot be generated because maintenance of communication quality is necessary, but such logs can be streamlined to solve the problem of limited storage space and logs being overwritten in a short time.

[0063] 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.

[0064] Figure 3 It is a flowchart of a method for generating a log provided in an embodiment of the present application.

[0065] like Figure 3 The method 300 shown may be used in a first device, the first device comprising a processing module and a storage module. The method 300 comprises the following steps:

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

[0067] 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 the present 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 a 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.

[0068] Exemplarily, the time domain granularity of the first device configured by the network device to generate log record #1 (corresponding to the fourth log record in the content of the invention) is a time slot. Before the first device generates the log record #1 corresponding to each time slot, it is necessary to determine whether the preset condition is met. Log record #1 is, for example, the maintenance log mentioned above. At this time, the above-mentioned first time unit can be a certain time slot. If the time domain granularity of the first device configured by the network device to generate log record #1 is a subframe, then the above-mentioned first time unit can be a certain subframe, and so on. The communication status can be characterized by parameters such as communication signal energy, bit error rate (symbol error rate, SER), and reference signal receiving power (reference signal receiving power, RSRP).

[0069] In 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 a 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 the uplink transmission; when the first time unit is a downlink transmission resource, log record #1 only includes content related to the downlink transmission.

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

[0071] Possible implementation mode #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:

[0072] 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 transmission module of the first device is in the working mode within the first time unit; or the first time unit is an uplink transmission resource.

[0073] When log record #1 is a log record related to the first device as a sender, the communication signal energy is, for example, the maximum transmit power, and the first threshold corresponding to the maximum transmit power is the first threshold. When log record #1 is a log record related to the first device as a receiver, the communication signal energy is, for example, the received signal strength indication (RSSI), and the first threshold corresponding to the received signal strength indication corresponds to the second threshold. The first threshold and the second threshold can be preconfigured or predefined, and this application does not limit this. The first threshold and the second threshold are different.

[0074] 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.

[0075] 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 contents: timing parameters, maximum power reduction (MPR), number of resource blocks (RB), and channel sounding reference signal (SRS) index.

[0076] Exemplarily, 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 according to 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.

[0077] It should be noted that, if the preset conditions in implementation mode #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.

[0078] It can be understood that if any of the preset conditions in implementation #1 is not met, the processing module may not generate log record #1. Alternatively, if any of the preset conditions in implementation #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 #1 is not met, the processing module generates log record #1 and writes log record #1 to the buffer, and log record #1 can be filtered during the process of writing from the buffer to the storage module, so that log record #1 will not be written to the disk to the storage module. The present application does not limit the operations performed by the processing module and the storage module when any of the preset conditions in implementation #1 is not met.

[0079] Example #1, the maximum transmission power between the first device and the second device is greater than the first threshold value within the first time unit, or the maximum transmission power of the first device to send a signal to the second device within the first time unit is greater than the first threshold value. At this time, the preset condition is not met. The first threshold value is the threshold of the configured maximum transmission power, which can be the value range of the maximum transmission power field in the maintenance log. The developer can configure the first threshold value based on the experience value. The preset condition judgment method in Example #1 can be used in the development stage of the first device.

[0080] Example #2, the sending module of the first device is in the off mode (tx off) within the first time unit, or the sending module of the first device does not work within 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 within the first time unit, or the first device is in the hetero-frequency measurement process within the first time unit, and the sending module is in the off mode.

[0081] Example #3, the first time unit is a downlink transmission resource, and the preset condition is not met at this time. For example, according to the 3rd generation partnership project (3GPP) time division duplexing (TDD) band standard, the first time unit is a downlink time slot D. In other words, when the first time unit is a downlink time slot D, no log record is generated that the first device corresponding to the first time unit is used as a sender.

[0082] 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 can be another terminal device, and this application does not limit this. The preset conditions include any one or more of the following:

[0083] 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.

[0084] 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, RSSI.

[0085] 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, low noise amplifier (LNA) receiving gain gear.

[0086] 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 operations actually performed by the first device, or can be generated based on protocol provisions, or can be generated based on network device instructions, and this application does not impose any restrictions on this.

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

[0088] It should be noted that, when the preset conditions in implementation mode #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.

[0089] 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.

[0090] Example #4, the RSSI between the first device and the second device is greater than the second threshold value in the first time unit, or the RSSI of the signal received by the first device in the first time unit is greater than the second threshold value. At this time, the preset condition is not met. The second threshold value is the configured RSSI threshold, which can be the value range of the RSSI field in the maintenance log. The developer can configure the second threshold value based on the experience value. The preset condition judgment method in Example #4 can be used in the development stage of the first device.

[0091] Example #5, the SER of the message transmitted between the first device and the second device is greater than the second threshold in the first time unit, and the preset condition is not met. Based on the business scenarios such as call / voice / video, the SER of the message received by the communication receiving subject is high, such as poor signal quality, unclear call, freeze, no sound, interruption, etc. The preset condition judgment method in Example #5 can be used when the user is using the first device.

[0092] Example #6, the receiving module of the first device is in an off mode (rx off) within the first time unit, and the preset conditions are not met, 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 a heterodyne measurement process within the first time unit.

[0093] Example #7, the first time unit is an uplink transmission resource, and the preset condition is not met at this time, for example, according to the 3GPTDD 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 related to the first device corresponding to the first time unit as a receiver is generated.

[0094] 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 drastically within the first time unit.

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

[0096] 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.

[0097] For example, Figure 4 As shown, when the cellular communication baseband chip is in working mode, it continuously generates cellular communication maintenance logs according to the time domain resource granularity, and writes the generated maintenance logs cyclically into the log buffer, such as random access memory (RAM), and the AP chip writes the logs in the buffer to the disk / hard disk space of the first device at irregular intervals according to the disk-falling rules. However, the space size of the disk / hard disk is fixed, and the rate at which the cellular communication baseband chip generates logs too fast will cause the logs stored in the disk / hard disk to be overwritten faster. The method 300 provided in the present application can reduce the number of generated cellular communication maintenance logs by judging the preset conditions. Thereby reducing the memory space occupied by maintenance logs, such as log record #1, in the first device, avoiding the possibility that the logs in the memory of the first device are overwritten in a short time, thereby avoiding the problem that the key logs required for locating the problem of the first device or performing other processing are overwritten in a short time.

[0098] Figure 5 It is a flowchart of another method for generating logs provided in an embodiment of the present application.

[0099] like Figure 5 The method 500 shown may be used in a terminal device, the terminal device includes a first processing module, a second processing module and a storage module, and the method 500 includes the following steps:

[0100] 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.

[0101] Exemplarily, when the first processing module cannot obtain the absolute time and generates log record #3 (corresponding to the second log record in the content of the invention), the time included in log record #3 is, 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 of generating log record #3 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 content of the invention) based on the absolute time. Log record #2 includes the absolute time, such as x years, x months, x days, x hours, x minutes, and x seconds. Log record #2 and log record #3 are stored in order in the storage module. When the log is captured to locate the problem later, the absolute time of generating log record #3 can be restored based on log record #2 and log record #3.

[0102] Log record #2 and log record #3 can be understood as log records with different purposes generated by the first processing module. Log record #2 is used to determine the absolute time of generating log record #3. Log record #3 records the specific operations or matters performed by the terminal device within the absolute time, and is used to provide the specific content performed by the terminal device within the absolute time when locating the problem later. The absolute time of generating log record #3 can be understood as the absolute time when the operation performed by the terminal device recorded in log record #3 actually occurs. Optionally, method 500 also includes:

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

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

[0105] 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 days 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 hours, 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.

[0106] Exemplarily, the first processing module is a radio frequency chip for amplifying the power of the radio frequency signal, or the first processing module is a chip for controlling whether to radiate the radio frequency signal. The first processing module controls whether to radiate the 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, but can only perceive its own running time. For example, the first processing module will have a sleep time, and the local clock of the first processing module will not count when in sleep mode, or the local clock of the first processing module will be out of sync for a long time, which will cause time errors.

[0107] Exemplarily, the second processing module is an AP chip, and 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.

[0108] S502, the storage module stores log record #2.

[0109] 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.

[0110] 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.

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

[0112] 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 information in log record #3 except the time information.

[0113] If the third processing module needs log record #3 when locating the problem, the third processing module can generate log record #4 (corresponding to the third log record in the content of the invention) based on log record #2 and log record #3 in the storage module, and log record #4 includes the absolute time when log record #3 is generated, and all or part of the other information in log record #3 except the time information. That is, after generating log record #4, the third processing module can directly locate or troubleshoot the problem according to log record #4.

[0114] Optionally, the method 500 further includes:

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

[0116] Exemplarily, 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, and this application does not impose any restrictions on this.

[0117] It should be noted that log record #2 can be generated before log record #3 is generated, or after log record #3 is generated, and this application does not limit this. Therefore, log record #2 can be stored before log record #3 is stored, or after log record #3 is stored, and this application does not limit this.

[0118] like Figure 6 As shown, the RF enhancement chip continuously generates log record #3 when in working mode, and periodically generates log record #2, and cyclically writes the generated logs into a 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 rule.

[0119] When the method 500 provided by 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 of generating the second log record. Since the first time information can be combined with multiple second time information to determine the absolute time of generating multiple log records #3 corresponding to the same first time information. Therefore, when the method 500 provided by the present application stores logs subsequently, 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 of generating the log record #3. The solution provided by the present application can save more memory resources in the process of storing logs, and thus can avoid the logs from being overwritten in the memory of the terminal device for a short time, thereby avoiding the problem that the key logs required for locating terminal device problems or performing other processing are overwritten in a short time.

[0120] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, rather than 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 changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of the present application.

[0121] Figure 7 It is a structural block diagram of a device 700 provided in an embodiment of the present application. For the convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0122] In one design, apparatus 700 is applied to a first device, referring to Figure 7 The device 700 includes: a processing module 701 and a storage module 702.

[0123] Among them, the processing module 701 is used to determine whether a preset condition is met before generating a 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 condition is met, the processing module 701 is used to generate log record #1, and the storage module 702 stores log record #1.

[0124] 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 the 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 the uplink transmission; when the first time unit is a downlink transmission resource, log record #1 only includes content related to the downlink transmission.

[0125] In some possible implementations, log record #1 is a log record related to the first device as a sender, and the preset conditions meet any one of the following items: 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.

[0126] 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.

[0127] 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.

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

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

[0130] In another design, the apparatus 700 is applied to a first device, the first device is, for example, a terminal device, Figure 7 , the device 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.

[0131] 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; storage module 702 is used to store log record #2 and log record #3.

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

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

[0134] 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, and log record #4 includes the absolute time of generating log record #3 and all or part of the information in log record #3 except the time information.

[0135] In some possible implementations, the storage module 702 is further used 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.

[0136] In some possible implementations, the first processing unit is a radio frequency chip used to amplify the power of a radio frequency signal, or the first processing unit is a chip used to control whether to radiate a radio frequency signal.

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

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

[0139] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to 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 processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. For example, a "module" can be a software program, a hardware circuit, or a combination of the two to implement 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 proprietary processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions.

[0140] Therefore, the modules of each example described in the embodiments of the present 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0141] In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the protection scope of this application. The specific working process of the units and modules in the above system can refer to the corresponding process in the above method embodiment, which will not be repeated here.

[0142] 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.

[0143] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored; when the computer-readable storage medium is run on a terminal device, the terminal device executes the method shown above. The computer instructions 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 instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) methods. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that can be integrated with one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium, or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

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

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

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

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

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

[0149] 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.

[0150] It should be noted that the chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGA), programmable logic devices (PLD), 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.

[0151] The apparatus, terminal device, computer storage medium, and computer program product 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 beneficial effects corresponding to the methods provided above, and will not be repeated here.

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

[0153] 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 to each other. For the sake of brevity, they will not be repeated here.

[0154] 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 the present application.

[0155] 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), and the present application does not limit its specific implementation method.

[0156] It should also be understood that the division of the methods, 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 methods, categories, situations and embodiments can be combined without contradiction.

[0157] 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.

[0158] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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

  • Log storage method, chip, electronic equipment and readable storage medium

    CN113704205A

  • Log storage method and device and storage medium

    CN114090375A

  • Audio fault time positioning method, audio data storage method and electronic equipment

    CN115022442A

  • System and terminal equipment for collecting content history log and server equipment

    CN1729671A

  • Method and system for processing log data

    US20150154288A1