WO2024244555A1 - Log generation method, and terminal device and readable storage medium - Google Patents
Log generation method, and terminal device and readable storage medium Download PDFInfo
- Publication number
- WO2024244555A1 WO2024244555A1 PCT/CN2024/078810 CN2024078810W WO2024244555A1 WO 2024244555 A1 WO2024244555 A1 WO 2024244555A1 CN 2024078810 W CN2024078810 W CN 2024078810W WO 2024244555 A1 WO2024244555 A1 WO 2024244555A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- log record
- processing module
- log
- time
- time unit
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 102
- 238000012545 processing Methods 0.000 claims abstract description 125
- 230000005540 biological transmission Effects 0.000 claims description 40
- 238000004891 communication Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 17
- 230000010267 cellular communication Effects 0.000 claims description 13
- 230000008569 process Effects 0.000 abstract description 17
- 238000012423 maintenance Methods 0.000 description 17
- 238000007726 management method Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000013461 design Methods 0.000 description 5
- 238000013500 data storage Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 230000001788 irregular Effects 0.000 description 4
- 238000005259 measurement Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000004622 sleep time Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
Definitions
- 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.
- logs 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.
- logs are needed to help developers troubleshoot problems.
- the complexity of terminal devices is getting higher and higher, and the number of logs generated by terminal devices when working is increasing.
- 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.
- 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.
- 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.
- 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.
- the solution provided by the present application 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.
- the second time information may be the time information generated by the local clock.
- the first time information used to determine the absolute time of generating the second log record is recorded.
- the first time information may include information such as 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 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 of generating the second log record.
- the solution provided by the present application can save more memory resources in the process of storing logs.
- the method further includes: the second processing module periodically sending the first time information to the first processing module.
- 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.
- a sending period of the first time information is determined based on a preconfiguration.
- the terminal device also includes a third processing module
- 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.
- 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.
- 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.
- 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.
- 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.
- the second processing module is an application chip.
- 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.
- 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.
- 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.
- 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.
- the fourth log record is a log record related to the first device as a receiver
- 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.
- 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.
- 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.
- the processing module is a cellular communication baseband chip.
- a terminal device 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.
- a 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.
- a computer program product 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.
- the beneficial effects of the third to fifth aspects can refer to the first and second aspects, and will not be elaborated here.
- FIG1 is a hardware structure block diagram of a terminal device provided in an embodiment of the present application.
- 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
- FIG3 is a flow chart of a method for generating a log provided in an embodiment of the present application.
- FIG4 is a flow chart of log generation and storage provided by an embodiment of the present application.
- FIG5 is a flow chart of another method for generating a log provided in an embodiment of the present application.
- FIG6 is another flow chart of log generation and storage provided by an embodiment of the present application.
- FIG. 7 is a structural block diagram of a device 700 provided in an embodiment of the present application.
- FIG8 is a schematic diagram of the structure of a terminal device 800 provided in an embodiment of the present application.
- 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.
- the method for generating logs 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.
- MID mobile internet devices
- VR virtual reality
- AR augmented reality
- UMPC ultra-mobile personal computers
- PDA personal digital assistants
- smart homes that can generate logs.
- the embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
- 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.
- a processor 110 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.
- USB universal serial bus
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100.
- 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.
- the terminal device 100 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.
- 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.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated into one or more processors.
- 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.
- the processor 110 may also be provided with a memory for storing instructions and data.
- 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.
- 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.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- 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.
- the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- 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.
- the charging management module 140 can receive charging input from a wired charger through the USB interface 130.
- the USB interface can also be used to turn on the USB debugging switch, or to turn on the USB debugging mode.
- 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.
- 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.
- the power management module 141 may also be disposed in the processor 110.
- the power management module 141 and the charging management module 140 may also be disposed in the same device.
- 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.
- the external memory interface 120 may 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.
- SD secure digital memory card
- the external memory card communicates with the processor 110 via the external memory interface 120 to implement a data storage function.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- FIG2 is a schematic diagram of an air interface frame structure of a new radio (NR) communication provided in an embodiment of the present application.
- NR new radio
- a subframe includes two slots.
- 5G fifth generation mobile communication technology
- a maintenance log is generated in each slot.
- 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.
- the logs generated by the terminal device can be divided into event logs and statistical logs.
- Event logs are generated only when an event occurs, such as when the terminal device and the base station complete the radio resource control (RRC) connection, and when the terminal device initiates a call.
- RRC radio resource control
- Statistical logs are generated when the terminal device periodically detects a certain function/parameter, such as when the terminal device detects the quality of cellular communication.
- NR maintenance logs can characterize the signal energy of the cellular communication of the terminal device, and NR maintenance logs can be generated for each time domain granularity (such as a 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.
- 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.
- FIG3 is a flow chart of a method for generating a log provided in an embodiment of the present application.
- the method 300 shown in FIG3 may be used in a first device, where the first device includes a processing module and a storage module.
- the method 300 includes the following steps:
- 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.
- 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
- the time domain granularity of the first device configured by the network device to generate log record #1 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.
- 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), reference signal receiving power (reference signal receiving power, RSRP), etc.
- 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.
- 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.
- 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:
- 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.
- the communication signal energy is, for example, the maximum transmit power
- the first threshold corresponding to the maximum transmit power is the first threshold.
- the communication signal energy is, for example, the received signal strength indication (RSSI)
- the first threshold corresponding to the received signal strength indication corresponds to the second threshold.
- RSSI received signal strength indication
- 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.
- log record #1 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.
- SIM subscriber identity module
- log record #1 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.
- MPR maximum power reduction
- RB number of resource blocks
- SRS channel sounding reference signal
- log record #1 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.
- protocol regulations such as maximum transmit power, MPR, etc.
- 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.
- 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.
- 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.
- 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 first device development stage.
- 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.
- 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.
- the first time unit is a downlink transmission resource, and the preset condition is not met at this time.
- the first time unit is a downlink time slot D.
- 3GPP 3rd generation partnership project
- TDD time division duplexing
- 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.
- 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:
- 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.
- log record #1 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.
- log record #1 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.
- LNA low noise amplifier
- 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.
- the processing module that generates log record #1 is a cellular communication baseband chip.
- 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.
- 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.
- 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.
- 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.
- Example #6 the receiving module of the first device is in an off mode (rx off) within the first time unit, and the preset condition is 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.
- the first time unit is an uplink transmission resource, and the preset condition is not met at this time.
- 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.
- 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.
- the storage module stores log record #1.
- 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.
- the cellular communication baseband chip when it 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 a log buffer, such as a random access memory (RAM), and the AP chip writes the logs in the buffer into the disk/hard disk space of the first device at irregular intervals according to the disk-falling rule.
- a log buffer such as a random access memory (RAM)
- the AP chip writes the logs in the buffer into the disk/hard disk space of the first device at irregular intervals according to the disk-falling rule.
- 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.
- FIG5 is a flow chart of another method for generating logs provided in an embodiment of the present application.
- the method 500 shown in FIG. 5 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:
- 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.
- the first processing module cannot obtain the absolute time, and when generating log record #3 (corresponding to the second log record in the invention content), log record #3 includes a time such as x hours, x minutes, and x seconds, which 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 content) 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.
- 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.
- method 500 also includes:
- the second processing module periodically sends the first time information to the first processing module.
- the second processing module sends the first time information to the first processing module according to a preconfigured period.
- 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
- the preconfigured period can be one day
- 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
- the preconfigured period can be one month
- 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
- the preconfigured period can be one hour, and so on.
- 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.
- 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.
- 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.
- the storage module stores log record #2.
- the radio frequency enhancement chip writes the generated log record #2 into the log buffer
- 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.
- 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.
- the terminal device further includes a third processing module
- the method 500 further includes:
- 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.
- 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.
- 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.
- the method 500 further includes:
- 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.
- 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.
- 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.
- 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 rules.
- the second time information is recorded in the log record #3.
- 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.
- 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.
- 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 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.
- 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.
- the apparatus 700 is applied to a first device.
- the apparatus 700 includes: a processing module 701 and a storage module 702 .
- 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.
- 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.
- 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.
- log record #1 is a log record related to the first device as a receiver
- 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.
- 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.
- 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.
- the processing module is a cellular communication baseband chip.
- the apparatus 700 is applied to a first device, the first device is, for example, a terminal device, and referring to Fig. 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.
- 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.
- the second processing unit periodically sends the first time information to the first processing unit.
- a sending period of the first time information is determined based on a preconfiguration.
- 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.
- 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.
- 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.
- 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.
- the second processing unit is an application chip.
- 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 dedicated 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.
- ASIC application specific integrated circuit
- processor such as a shared processor, a dedicated processor, or a group processor, etc.
- memory for executing one or more software or firmware programs, a merged logic circuit, and/or other suitable components that support the described functions.
- 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.
- 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.
- 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.) means.
- wired e.g., coaxial cable, optical fiber, digital subscriber line (DSL)
- wireless e.g., infrared, wireless, microwave, etc.
- 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.
- 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.
- the terminal device 800 includes a chip 801, wherein the chip 801 includes one or more chips, for example, the chip 801 includes chip #1, chip #2 and chip #3, and the chip 801 is used to support the terminal device to execute the technical solutions shown in the aforementioned methods 300 and 500.
- the chip can be a general-purpose processor or a dedicated processor.
- 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.
- the terminal device 800 may further include: a storage medium 803 .
- chip 801 includes a chip
- terminal device 800 is used to implement the technical solution executed by the first device in method 300 above.
- 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.
- 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.
- FPGA field programmable gate arrays
- PLD programmable logic devices
- controllers state machines
- gate logic discrete hardware components
- any other suitable circuits any combination of circuits that can perform the various functions described throughout this application.
- 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.
- pre-configuration 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.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本申请要求于2023年06月02日提交中国国家知识产权局、申请号为202310651052.4、申请名称为“生成日志的方法、终端设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。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 in this application.
本申请涉及终端领域,尤其涉及一种生成日志的方法、终端设备及可读存储介质。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.
终端设备在工作时会产生事件记录,称为日志(log),日志记载着时间信息、使用者及相关操作等的描述,例如,应用程序日志,安全日志或系统日志等。在开发和运维过程中需要根据日志来帮助开发人员排查问题。随着通信系统的发展,终端设备的复杂度越来越高,进而终端设备工作时产生的日志数量越来越多,但是终端设备的内存容量有限,因此单位时间内终端设备产生的日志数量越多,日志在终端设备内存中短时间内被覆盖的可能性越高,在这种情况下,可能导致在短时间内丢失关键日志,不利于人们根据关键日志对终端设备进行问题定位或进行其他处理。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.
本申请提供一种生成日志的方法、终端设备及可读存储介质。本申请提供的方案在存储日志的过程中可以节省内存资源,避免日志在终端设备内存中短时间内被覆盖,即可以避免定位终端设备问题或进行其他处理时所需日志在短时间内被覆盖掉的问题。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.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,提供了一种生成日志的方法,应用于终端设备,终端设备包括第一处理模块、第二处理模块和存储模块。该方法包括:第一处理模块基于来自第二处理模块的第一时间信息生成第一日志记录,第一日志记录包括第一时间信息,第一时间信息用于结合第二时间信息确定生成第二日志记录的绝对时间,第二日志记录由第一处理模块生成且存储在存储模块中,第二日志记录包括第二时间信息;存储模块存储第一日志记录。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.
在对终端设备进行问题定位时离不开终端设备生成的日志记录,并且该日志记录中需要记载生成该日志记录的绝对时间,例如,记载生成该日志记录的年/月/日/时/分/秒等信息,记载有绝对时间的日志记录往往会占用较多的内存资源。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.
基于此,本申请提供的方案在生成某一个日志记录(例如,第二日志记录)时,在该日志记录中记载第二时间信息,例如,第二时间信息可以是本地时钟生成的时间信息,在另外一个日志记录(例如,第一日志记录)中记载用于确定生成第二日志记录的绝对时间的第一时间信息,例如,第一时间信息可以包括用于确定生成第二日志记录的年/月/日等的信息,由于第一时间信息可以结合多个第二时间信息确定相同第一时间信息对应的多个第二日志记录生成的绝对时间,因此,本申请提供的方案在后续存储日志时,可以存储记载有第二时间信息的多个第二日志记录以及第一日志记录,相对于存储多个第二日志记录,每个第二日志记录均记载有生成该第二日志记录的绝对时间,本申请提供的方案在存储日志的过程中可以更加节省内存资源。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 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 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 of generating the second log record. The solution provided by the present application can save more memory resources in the process of storing logs.
一些可能的实现方式中,方法还包括:第二处理模块周期性的向第一处理模块发送第一时间信息。In some possible implementations, the method further includes: the second processing module periodically sending the first time information to the first processing module.
基于上述方案,第一处理模块可以周期性的根据第一时间信息生成第一日志记录,避免先生成的第一日志记录在内存中被覆盖后,无法确定还未被覆盖掉的第二日志记录生成的绝对时间。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.
一些可能的实现方式中,第一时间信息的发送周期基于预配置确定。In some possible implementations, a sending period of the first time information is determined based on a preconfiguration.
一些可能的实现方式中,该终端设备还包括第三处理模块,该方法还包括:第三处理模块从存储模块获取第一日志记录和第二日志记录;第三处理模块基于第一日志记录和第二日志记录生成第三日志记录,第三日志记录包括生成第二日志记录的绝对时间以及第二日志记录中除第二时间信息之外的其他全部或部分内容。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.
基于上述方案,如果第三处理模块在定位问题时需要第二日志记录,则第三处理模块可以基于存储模块中的第一日志记录和第二日志记录生成第三日志记录,第三日志记录包括生成第二日志记录的绝对时间,以及第二日志记录中除时间信息之外的其他全部或部分信息。即生成第三日志记录后,第三处理模块可以直接根据第三日志记录定位或排查问题。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.
一些可能的实现方式中,存储模块存储第三日志记录,第三日志记录所在的日志文件不包含第一日志记录和第二日志记录。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.
基于上述方案,第三日志记录所在的日志文件与第一日志记录和/或第二日志记录所在的日志文件不同,第一日志记录和第二日志记录可以在同一日志文件中,也可以在不同日志文件中,本申请对此不做限制。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.
一些可能的实现方式中,第一处理模块为用于将射频信号的功率放大的射频芯片,或者第一处理模块为用于控制是否辐射射频信号的芯片。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.
一些可能的实现方式中,第二处理模块为应用芯片。In some possible implementations, the second processing module is an application chip.
第二方面,提供了一种生成日志的方法,应用于第一设备,第一设备包括处理模块、和存储模块。该方法包括:处理模块在生成第一时间单元对应的第四日志记录之前,确定预设条件是否满足,第四日志记录包括表征第一时间单元上第一设备与第二设备间通信状况的信息;在预设条件满足的情况下,处理模块生成第四日志记录,并且存储模块存储第四日志记录。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.
基于上述方案,处理模块在生成第四日志记录之前,需要判断预设条件是否满足,在预设条件满足的情况下才生成并存储第四日志记录,也就是说预设条件不满足的情况下不生成第四日志记录。因此本申请提供的方案可以通过条件判断减少第四日志记录的生成数量,从而减少第四日志记录占第一设备的内存空间,避免日志在第一设备内存中短时间被覆盖,从而避免定位第一设备问题或进行其他处理时所需关键日志记录在短时间内被覆盖掉的问题。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.
一些可能的实现方式中,预设条件包括以下至少一项:第一设备和第二设备之间的通信信号能量在第一时间单元内小于或等于第一门限;第一设备和第二设备之间传输报文的误码率SER在第一时间单元内小于或等于第二门限;第一设备和第二设备之间的通信链路对应的参考信号接收功率RSRP在第一时间单元内不发生跳变;第一设备的发送模块或接收模块在第一时间单元内处于工作模式;第一时间单元为上行传输资源时,第四日志记录仅包括与上行传输相关的内容;第一时间单元为下行传输资源时,第四日志记录仅包括与下行传输相关的内容。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.
一些可能的实现方式中,第四日志记录为第一设备作为发送方相关的日志记录,该预设条件满足包括以下任一项:第一设备和第二设备之间的最大发送功率在第一时间单元内小于或等于第一阈值;第一设备的发送模块在第一时间单元内处于工作模式;或第一时间单元为上行传输资源。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.
一些可能的实现方式中,第四日志记录为第一设备作为接收方相关的日志记录,预设条件满足包括以下任一项:第一设备和第二设备之间的接收信号强度指示在第一时间单元内小于或等于第二阈值;第一设备和第二设备之间传输报文的SER在第一时间单元内小于或等于第二门限;第一设备和第二设备之间的通信链路对应的RSRP在第一时间单元内不发生跳变;第一设备的接收模块在第一时间单元内处于工作模式;或第一时间单元为下行传输资源。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.
一些可能的实现方式中,第四日志记录包括表征以下内容的信息:用户识别模块标识,时隙号,系统帧号,子载波间隔,时域符号索引,最大发送功率,目标发送功率。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.
一些可能的实现方式中,第四日志记录包括表征以下内容的信息:用户识别模块标识,时隙号,系统帧号,子帧号,接收信号强度指示。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.
一些可能的实现方式中,该处理模块为蜂窝通信基带芯片。In some possible implementations, the processing module is a cellular communication baseband chip.
第三方面,提供了一种终端设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时执行第一方面或第一方面中任一种方法中进行处理的步骤,或处理器执行计算机程序时执行第二方面或第二方面中任一种方法中进行处理的步骤。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.
第四方面,提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令当被处理器执行时,使处理器执行第一方面或第一方面中任一种方法中进行处理的步骤,或使处理器执行第二方面或第二方面中任一种方法中进行处理的步骤。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.
第五方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序代码,当计算机程序代码被终端设备运行时,使得该终端设备执行第一方面或第一方面中任一种方法中进行处理的步骤,或使得该终端设备执行第二方面或第二方面中任一种方法中进行处理的步骤。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.
其中,第三方面至第五方面的有益效果可以参照第一方面和第二方面,在此不做赘述。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.
图1是本申请实施例提供的一种终端设备的硬件结构框图;FIG1 is a hardware structure block diagram of a terminal device provided in an embodiment of the present application;
图2是本申请实施例提供的新空口通信的空口帧结构示意图;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;
图3是本申请实施例提供的一种生成日志的方法的流程示意图;FIG3 is a flow chart of a method for generating a log provided in an embodiment of the present application;
图4是本申请实施例提供的日志由生成到落盘的流程示意图;FIG4 is a flow chart of log generation and storage provided by an embodiment of the present application;
图5是本申请实施例提供的另一种生成日志的方法的流程示意图;FIG5 is a flow chart of another method for generating a log provided in an embodiment of the present application;
图6是本申请实施例提供的日志由生成到落盘的另一流程示意图;FIG6 is another flow chart of log generation and storage provided by an embodiment of the present application;
图7是本申请实施例提供的一种装置700的结构框图;FIG. 7 is a structural block diagram of a device 700 provided in an embodiment of the present application;
图8是本申请实施例提供的一种终端设备800的结构示意图。FIG8 is a schematic diagram of the structure of a terminal device 800 provided in an embodiment of the present application.
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,除非另有说明,“多个”是指两个或多于两个。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.
以下,术语“第一”、“第二”仅用于描述目的或用于区分,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。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.
本申请实施例提供的生成日志的方法可以应用于手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实 (augmented reality,AR)设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智慧家庭(smart home)等可以生成日志的终端设备上,本申请实施例对终端设备的具体类型不作任何限制。The method for generating logs provided in the embodiments 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 embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
下面介绍实现上述方法的终端设备100的硬件结构示意图,示例性的,图1示出了终端设备100的一种硬件结构示意图。该终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142以及收发器150。The following is a schematic diagram of the hardware structure of the 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.
可以理解的是,本发明实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。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.
作为举例,当终端设备100为手机或平板电脑时,可以包括图示中的全部部件,也可以仅包括图示中的部分部件。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.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。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.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。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.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。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.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。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.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。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.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入,USB接口除了充电外,还可以用于打开USB调试开关,或者说用于打开USB调试模式。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。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.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121等供电。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。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.
收发器150用于向终端设备100之外的其他设备发送数据或信令等,或者用于接收来自终端设备100之外的其他设备的数据或信令等。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.
外部存储器接口120可以用于连接外部存储卡,例如微型(Micro)存储卡(secure digital memory card,SD),实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。The external memory interface 120 may 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 via the external memory interface 120 to implement a data storage function.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序等。存储数据区可存储终端设备100使用过程中所创建的数据等,例如日志。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。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.
在实际的应用场景中,终端设备100的操作系统可以包括但不限于塞班(Symbian)、安卓(Andriod)、窗口(Windows)、苹果(MacOS、iOS)、黑莓(Blackberry)、鸿蒙(HarmonyOS)等操作系统。本申请不对终端设备的操作系统作任何限定。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.
在开始描述本申请实施例提供的方案之前,先对本申请涉及的术语进行解释。Before describing the solutions provided by the embodiments of the present application, the terms involved in the present application are first explained.
日志:可以理解为广义上的日志,例如终端设备或者芯片在工作时产生的事件记录,包括日志记录,日志文件,日志内容,日志数据等等。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.
日志记录:终端设备或者芯片每执行一个操作会生成的与该操作相关的事件记录,一个日志记录可以包括一行或多行内容,一个或多个日志记录可以存储于一个日志文件(log file)中,日志文件存储于终端设备的存储器中。另外,日志记录也可以称为日志内容,日志数据等,本申请对日志记录的名称不做限制,本申请以日志记录统一描述。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.
图2是本申请实施例提供的新空口(new radio, NR)通信的空口帧结构示意图。FIG2 is a schematic diagram of an air interface frame structure of a new radio (NR) communication provided in an embodiment of the present application.
示例性的,如图2所示,一个无线帧的时长T f=10毫秒(ms),一个时隙(slot)的时长T slot=0.5ms,一个子帧包括两个时隙。当终端设备工作在第五代移动通信技术(5th generation mobile communication technology,5G) NR蜂窝通信模式时,在每一个时隙都会产生维测日志。 For example, as shown in FIG2 , the duration of a radio frame is T f =10 milliseconds (ms), the duration of a slot is T slot =0.5 ms, and a subframe includes two slots. When the terminal device operates in the fifth generation mobile communication technology (5G) NR cellular communication mode, a maintenance log is generated in each slot.
需要说明的是,产生维测日志的时域粒度可以预定义,上述示例的产生维测日志的时域粒度为时隙,本申请对此不作限制。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.
终端设备生成的日志可分为事件类日志和统计类日志。事件类日志仅在事件发生时产生,事件例如终端设备和基站完成无线资源控制(radio resource control,RRC)连接,终端设备启动通话主叫等。统计类日志在终端设备周期性检测某个功能/参数时生成,例如终端设备检测蜂窝通信质量时生成统计类日志。The logs generated by the terminal device can be divided into event logs and statistical logs. Event logs are generated only when an event occurs, such as when the terminal device and the base station complete the radio resource control (RRC) connection, and when the terminal device initiates a call. Statistical logs are generated when the terminal device periodically detects a certain function/parameter, such as when the terminal device detects the quality of cellular communication.
在终端设备Beta测试阶段针对问题抓取终端设备的日志的过程中,发现NR维测日志的占比比较高,达到20%。NR维测日志可以表征终端设备蜂窝通信的信号能量,每个时域粒度(例如子帧)可生成NR维测日志。NR维测日志例如表征信号接收能量、或表征信号发射能量的能够用于定位5G无信号问题的关键日志,由于通信质量的维测是必要的,因此不能不生成NR维测日志,但可以通过精简此类日志以解决存储空间有限,日志在短时间内被覆盖的问题。During the Beta test phase of the terminal device, when capturing the logs of the terminal device for problems, it was found that the proportion of NR maintenance logs was relatively high, reaching 20%. NR maintenance logs can characterize the signal energy of the cellular communication of the terminal device, and NR maintenance logs can be generated for each time domain granularity (such as a 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.
鉴于此,本申请提出一种生成日志的方案,可以减少维测日志的生成量,在后续存储日志的过程中更加节省内存资源,避免日志在终端设备内存中短时间内被覆盖,从而避免定位终端设备问题或进行其他处理时所需关键日志在短时间内被覆盖掉的问题。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.
图3是本申请实施例提供的一种生成日志的方法的流程示意图。FIG3 is a flow chart of a method for generating a log provided in an embodiment of the present application.
如图3所示的方法300可用于第一设备,第一设备包括处理模块和存储模块。方法300包括如下步骤:The method 300 shown in FIG3 may be used in a first device, where the first device includes a processing module and a storage module. The method 300 includes the following steps:
S301,处理模块在生成第一时间单元对应的日志记录#1之前,确定预设条件是否满足,日志记录#1包括表征第一时间单元上第一设备与第二设备间通信状况的信息,第一设备为终端设备,第二设备为另一终端设备或者网络设备。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.
网络设备能够管理传输资源,为用户设备提供接入服务,完成用户设备数据在用户设备和核心网之间的转发。本申请中的网络设备包括但不限于:演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(home evolved NodeB,HeNB,或home Node B,HNB)、基带单元(baseBand unit,BBU),无线保真(wireless fidelity,WIFI)系统中的接入点(access point,AP)、无线中继节点、无线回传节点、传输点(transmission point,TP)或者发送接收点(transmission and reception point,TRP)等,还可以为5G,如NR系统中的gNB,或传输点(TRP或TP),5G系统中的基站的一个或一组(包括多个天线面板)天线面板,或者,还可以为构成gNB或传输点的网络节点,如基带单元(BBU)或分布式单元(distributed unit,DU),或者,还可以为未来通信系统中的基站等。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.
示例性的,网络设备配置的第一设备生成日志记录#1(对应发明内容中的第四日志记录)的时域粒度为时隙,则第一设备在生成每个时隙对应的日志记录#1之前,需要判断预设条件是否满足,日志记录#1例如上文提及的维测日志,此时上述第一时间单元可以为某个时隙,若网络设备配置的第一设备生成日志记录#1的时域粒度为子帧,则上述第一时间单元可以为某个子帧,以此类推。通信状况可以通过通信信号能量、误码率(symbol error rate,SER)、参考信号接收功率(reference signal receiving Power,RSRP)等参数表征。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 invention content) 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), reference signal receiving power (reference signal receiving power, RSRP), etc.
一种可能的实现方式,预设条件包括以下至少一项:第一设备和第二设备之间的通信信号能量在第一时间单元内小于或等于第一门限;第一设备和第二设备之间传输报文的SER在第一时间单元内小于或等于第二门限;第一设备和第二设备之间的通信链路对应的RSRP在第一时间单元内不发生跳变;第一设备的发送模块或接收模块在第一时间单元内处于工作模式;第一时间单元为上行传输资源时,日志记录#1仅包括与上行传输相关的内容;第一时间单元为下行传输资源时,日志记录#1仅包括与下行传输相关的内容。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.
S302,在预设条件满足的情况下,处理模块生成日志记录#1,并且存储模块存储日志记录#1。S302: When a preset condition is met, the processing module generates log record #1, and the storage module stores log record #1.
可能的实现方式#1,日志记录#1为第一设备作为发送方相关的日志记录,也就是说,日志记录#1中记载的是第一设备在第一时间单元内做发送操作时的相关描述,当第一设备为发送方时,接收方可以是网络设备,也可以是另一第一设备,本申请对此不作限制。预设条件满足包括以下任一项或多项满足: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:
第一设备和第二设备之间的最大发送功率在第一时间单元内小于或等于第一阈值;第一设备的发送模块在第一时间单元内处于工作模式;或第一时间单元为上行传输资源。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.
当日志记录#1为第一设备作为发送方相关的日志记录时,通信信号能量例如最大发送功率,最大发送功率对应的第一门限为第一阈值。当日志记录#1为第一设备作为接收方相关的日志记录时,通信信号能量例如接收信号强度指示(received signal strength indication,RSSI),接收信号强度指示对应的第一门限对应第二阈值,第一阈值和第二阈值可以预配置或者预定义,本申请对此不作限制,第一阈值和第二阈值不同。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.
示例性的,日志记录#1为第一设备作为发送方相关的日志时,日志记录#1包括指示以下内容的信息:用户识别模块(subscriber identity module,SIM)标识,时隙号,系统帧号,子载波间隔,符号索引,最大发送功率,目标发送功率。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.
可选地,当日志记录#1为第一设备作为发送方相关的日志记录时,日志记录#1还包括指示以下任内容的字段:定时(timing)参数,最大功率回退(maximum power reduction,MPR),资源块(resource block,RB)数,信道探测参考信号(sounding reference signal,SRS)索引。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.
示例性的,当日志记录#1为第一设备作为发送方相关的日志记录时,日志记录#1中的部分内容可以依据第一设备实际执行的操作生成,例如时隙号、系统帧号、子载波间隔、符号索引、定时参数、RB、SRS索引等,日志记录#1中的部分内容也可以依据协议规定生成,例如最大发送功率、MPR等,日志记录#1中的部分内容也可以依据网络设备指示生成,例如目标发送功率。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.
需要说明的是,实现方式#1中的预设条件不满足的情况下,处理模块不生成日志记录#1,或者,处理模块生成日志记录#1但存储模块不存储日志记录#1。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.
可以理解,实现方式#1中的任一预设条件不满足的情况下,处理模块可以不生成日志记录#1。或者,实现方式#1中的任一预设条件不满足的情况下,处理模块可以生成日志记录#1,但不将日志记录#1写入缓冲区,从而日志记录#1不会被落盘到存储模块。或者,实现方式#1中的任一预设条件不满足的情况下,处理模块生成日志记录#1,并将日志记录#1写入缓冲区,从缓冲区落盘到存储模块的过程中可以将日志记录#1过滤,使得日志记录#1不会被落盘到存储模块。本申请对实现方式#1中的任一预设条件不满足的情况下处理模块和存储模块所做操作不做限制。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.
示例#1,第一设备和第二设备之间的最大发送功率在第一时间单元内大于第一阈值,或者说,第一设备在第一时间单元内向第二设备发送信号的最大发送功率大于第一阈值,此时预设条件不满足,第一阈值为配置的最大发射功率的门限,可以是维测日志中最大发射功率字段的取值范围,开发人员可以根据经验值配置第一阈值。示例#1中的预设条件判断方式可以在第一设备研发阶段。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 first device development stage.
示例#2,第一设备的发送模块在第一时间单元内处于关闭模式(tx off),或者说,第一设备的发送模块在第一时间单元内不工作,此时预设条件不满足。例如网络设备在第一时间单元没有调度该第一设备传输报文,或者,第一设备在第一时间单元内处于异频测量过程中,此时发送模块处于关闭模式。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.
示例#3,第一时间单元为下行传输资源,此时预设条件不满足,例如根据第三代合作伙伴计划(3rd generation partnership project, 3GPP)时分双工(time division duplexing,TDD)频段(band)标准,第一时间单元为下行(downlink)时隙D。也就是说,第一时间单元为下行时隙D时,不生成第一时间单元对应的第一设备作为发送方相关的日志记录。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 related to the first device corresponding to the first time unit as a sender is generated.
可能的实现方式#2,日志记录#1为第一设备作为接收方相关的日志记录,也就是说,日志记录#1中记载的是第一设备在第一时间单元内做接收操作时的相关描述,当终端设备为接收方时,发送方可以是网络设备,或者可以是另一终端设备,本申请对此不作限制。预设条件满足包括以下任一项或多项满足: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:
第一设备和第二设备之间的接收信号强度指示在第一时间单元内小于或等于第二阈值;第一设备和第二设备之间传输报文的SER在第一时间单元内小于或等于第二门限;第一设备和第二设备之间的通信链路对应的RSRP在第一时间单元内不发生跳变;第一设备的接收模块在第一时间单元内处于工作模式;或,第一时间单元为下行传输资源。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.
示例性的,当日志记录#1为第一设备作为接收方相关的日志时,日志记录#1包括指示以下内容的信息:SIM卡标识,时隙号,系统帧号,子帧号, RSSI。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.
可选地,当日志记录#1为第一设备作为接收方相关的日志记录时,日志记录#1还包括指示以下内容的信息:定时参数,载波索引,接收天线索引,低噪声放大器(low noise amplifier,LNA)接收增益(gain)档位。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.
示例性的,当日志记录#1为第一设备作为接收方相关的日志记录时,日志记录#1中的内容可以依据第一设备实际执行的操作生成,也可以依据协议规定生成,也可以依据网络设备指示生成,本申请对此不作限制。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.
示例性的,生成日志记录#1的处理模块为蜂窝通信基带芯片。Exemplarily, the processing module that generates log record #1 is a cellular communication baseband chip.
需要说明的是,实现方式#2中的预设条件不满足的情况下,处理模块不生成日志记录#1,或者,处理模块生成日志记录#1但存储模块不存储日志记录#1。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.
预设条件不满足情况下的具体实施可参考实现方式#1中的相关描述,此处不再赘述。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.
示例#4,第一设备和第二设备之间的RSSI在第一时间单元大于第二阈值,或者说,第一设备在第一时间单元内接收到信号的RSSI大于第二阈值,此时预设条件不满足,第二阈值为配置的RSSI的门限,可以是维测日志中RSSI字段的取值范围,开发人员可以根据经验值配置第二阈值。示例#4中的预设条件判断方式可以在第一设备研发阶段。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.
示例#5,第一设备和第二设备之间传输报文的SER在第一时间单元内大于第二门限,此时预设条件不满足。基于通话/语音/视频等业务场景,通信接收主体接收报文的SER高例如信号质量差,通话不清晰、卡顿、无音、间断等。示例#5中的预设条件判断方式可以在用户使用第一设备阶段。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.
示例#6,第一设备的接收模块在第一时间单元内处于关闭模式(rx off),此时预设条件不满足,例如网络设备或其他终端设备在第一时间单元没有向该第一设备传输报文,或者,第一设备在第一时间单元内处于异频测量过程中。Example #6, the receiving module of the first device is in an off mode (rx off) within the first time unit, and the preset condition is 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.
示例#7,第一时间单元为上行传输资源,此时预设条件不满足,例如根据3GPP TDD 频段标准,第一时间单元为上行(uplink)时隙U。也就是说,第一时间单元为上行时隙U时,不生成第一时间单元对应的第一设备作为接收方相关的日志记录。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 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 related to the first device corresponding to the first time unit as a receiver is generated.
示例#8,第一设备和第二设备之间的通信链路对应的RSRP在第一时间单元内发生跳变,此时预设条件不满足。例如在第一时间单元内RSRP出现断崖式变化。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.
在预设条件满足的情况下,并且已经生成日志记录#1后,存储模块将日志记录#1存储。When the preset conditions are met and log record #1 has been generated, the storage module stores log record #1.
示例性的,处理模块为蜂窝通信基带芯片,蜂窝通信基带芯片判断预设条件满足的情况下生成日志记录#1,并将生成的日志记录#1写入日志缓冲区,AP芯片按照落盘规则不定时的将缓冲区的日志记录#1写入第一设备的磁盘/硬盘空间。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.
例如,图4所示,蜂窝通信基带芯片在处于工作模式时,按照时域资源粒度源源不断产生蜂窝通信维测日志,并将生成的维测日志循环写入日志缓冲区,例如随机存取存储器(random access memory,RAM),AP芯片按照落盘规则不定时的将缓冲区的日志写入第一设备的磁盘/硬盘空间。但是磁盘/硬盘的空间大小是固定的,蜂窝通信基带芯片生成日志的速率过快会导致磁盘/硬盘中存储的日志被覆盖的速度加快。通过本申请提供的方法300可以通过预设条件判断减少生成蜂窝通信维测日志的数量。从而减少维测日志例如日志记录#1占第一设备的内存空间,避免第一设备内存中的日志在短时间内被覆盖的可能,从而避免定位第一设备问题或进行其他处理时所需关键日志在短时间内被覆盖掉的问题。For example, as shown in FIG4 , 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 a log buffer, such as a random access memory (RAM), and the AP chip writes the logs in the buffer into the disk/hard disk space of the first device at irregular intervals according to the disk-falling rule. 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.
图5是本申请实施例提供的另一种生成日志的方法的流程示意图。FIG5 is a flow chart of another method for generating logs provided in an embodiment of the present application.
如图5所示的方法500可用于终端设备,终端设备包括第一处理模块、第二处理模块和存储模块,方法500包括如下步骤:The method 500 shown in FIG. 5 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:
S501,第一处理模块基于来自第二处理模块的第一时间信息生成日志记录#2,日志记录#2包括第一时间信息,第一时间信息用于结合第二时间信息确定生成日志记录#3的绝对时间,日志记录#3由第一处理模块生成且存储在存储模块中,日志记录#3包括第二时间信息。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.
示例性的,第一处理模块无法获取绝对时间,生成日志记录#3(对应发明内容中的第二日志记录)时,日志记录#3中包括时间例如为x时x分x秒,该时间可以基于第一处理模块本地时钟生成,此时不能确定生成日志记录#3的具体日期。第二处理模块可以获取绝对时间并发送给第一处理模块,即第一时间信息为绝对时间,第一处理模块基于绝对时间生成日志记录#2(对应发明内容中的第一日志记录),日志记录#2包括该绝对时间,绝对时间例如x年x月x日x时x分x秒,日志记录#2和日志记录#3被有序存储到存储模块,后续抓取日志定位问题时,可以根据日志记录#2和日志记录#3恢复生成日志记录#3的绝对时间。Exemplarily, the first processing module cannot obtain the absolute time, and when generating log record #3 (corresponding to the second log record in the invention content), log record #3 includes a time such as x hours, x minutes, and x seconds, which 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 content) 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.
日志记录#2和日志记录#3可以理解为由第一处理模块生成的用途不同的日志记录,日志记录#2用于确定生成日志记录#3的绝对时间,日志记录#3记载该绝对时间内终端设备执行的具体操作或事项,用于后续定位问题时提供终端设备在该绝对时间内执行的具体内容。生成日志记录#3的绝对时间可以理解为日志记录#3记载的终端设备执行的操作实际发生的绝对时间。可选地,方法500还包括: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:
第二处理模块周期性的向第一处理模块发送第一时间信息。The second processing module periodically sends the first time information to the first processing module.
一种可能的实现方式,第二处理模块按照预配置的周期向第一处理模块发送第一时间信息。In a possible implementation manner, the second processing module sends the first time information to the first processing module according to a preconfigured period.
示例性的,第一时间信息为x年x月x日,日志记录#3中包括的第二时间信息为x时x分x秒,预配置的周期可以为一天;或者,第一时间信息为x年x月,日志记录#3中包括的第二时间信息为x日x时x分x秒,预配置的周期可以为一月;或者,第一时间信息为x年x月x日x时,日志记录#3中包括的第二时间信息为x分x秒,预配置的周期可以为一小时,以此类推。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.
示例性的,第一处理模块为用于将射频信号的功率放大的射频芯片,或者第一处理模块为用于控制是否辐射射频信号的芯片,第一处理模块控制是否辐射射频信号分为两种情况,一种控制是第一处理模块将射频信号馈送到天线辐射出去,另一种控制是第一处理模块屏蔽射频信号,即控制不将射频信号馈送到天线,也就是说控制不将射频信号辐射出去。例如第一处理模块为射频增强芯片。第一处理模块认知不到绝对时间,只能感知自身的运行时间,例如第一处理模块会有休眠时间,休眠时第一处理模块本地时钟不计数,或者第一处理模块本地时钟长时间不同步会产生时间误差。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.
示例性的,第二处理模块为AP芯片, AP芯片可以通信,即可以进行时间同步,可以获取准确的绝对时间,例如x年x月x日x时x分x秒。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.
S502,存储模块存储日志记录#2。S502, the storage module stores log record #2.
示例性的,射频增强芯片将生成的日志记录#2写入日志缓冲区,AP芯片按照落盘规则不定时的将缓冲区的日志记录#2写入终端设备的磁盘/硬盘空间。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.
存储模块中可以存日志记录#2和日志记录#3,后续出现问题抓取日志分析时,例如需要抓取日志记录#3,但是由于日志记录#3中包括的时间不是生成日志记录#3的绝对时间,此时还需要抓取日志记录#2用来还原生成日志记录#3的绝对时间,以定位问题。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.
可选地,该终端设备还包括第三处理模块,该方法500还包括:Optionally, the terminal device further includes a third processing module, and the method 500 further includes:
第三处理模块从存储模块获取日志记录#2和日志记录#3;第三处理模块基于日志记录#2和日志记录#3生成日志记录#4,日志记录#4包括生成日志记录#3的绝对时间以及日志记录#3中除时间信息之外的其他全部或部分信息。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.
如果第三处理模块在定位问题时需要日志记录#3,则第三处理模块可以基于存储模块中的日志记录#2和日志记录#3生成日志记录#4(对应发明内容中的第三日志记录),日志记录#4包括生成日志记录#3的绝对时间,以及日志记录#3中除时间信息之外的其他全部或部分信息。即生成日志记录#4后,第三处理模块可以直接根据日志记录#4定位或排查问题。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.
可选地,方法500还包括:Optionally, the method 500 further includes:
存储模块存储日志记录#4,日志记录#4所在的日志文件不包含日志记录#2和日志记录#3。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.
示例性的,日志记录#4所在的日志文件与日志记录#2和/或日志记录#3所在的日志文件不同,日志记录#2和日志记录#3可以在同一日志文件中,也可以在不同日志文件中,本申请对此不做限制。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.
需要说明的是,生成日志记录#2可以在生成日志记录#3之前,生成日志记录#2也可以在生成日志记录#3之后,本申请对此不做限制。因此存储日志记录#2可以在存储日志记录#3之前,存储日志记录#2可以在存储日志记录#3之后,本申请对此不做限制。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.
如图6所示,射频增强芯片在处于工作模式时连续生成日志记录#3,并周期性的生成日志记录#2,将生成的日志循环写入日志缓冲区,例如RAM,AP芯片按照落盘规则不定时的将缓冲区的日志写入终端设备的磁盘/硬盘空间。As shown in FIG6 , 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 rules.
本申请提供的方法500在生成某一个日志记录#3时,在该日志记录#3中记载第二时间信息,例如,第二时间信息可以是本地时钟生成的时间信息,在日志记录#2中记载用于确定生成日志记录#3的绝对时间的第一时间信息,例如,第一时间信息可以包括用于确定生成第二日志记录的年/月/日的信息,由于第一时间信息可以结合多个第二时间信息确定相同第一时间信息对应的多个日志记录#3生成的绝对时间。因此,本申请提供的方法500在后续存储日志时,可以存储记载有第二时间信息的多个日志记录#3以及日志记录#2,相对于存储多个日志记录#3,每个日志记录#3均记载有生成该日志记录#3的绝对时间,本申请提供的方案在存储日志的过程中可以更加节省内存资源,进而可以避免日志在终端设备内存中短时间被覆盖,从而避免定位终端设备问题或进行其他处理时所需关键日志在短时间内被覆盖掉的问题。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 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.
应理解,上述举例说明是为了帮助本领域技术人员理解本申请实施例,而非要将本申请实施例限于所例示的具体数值或具体场景。本领域技术人员根据所给出的上述举例说明,显然可以进行各种等价的修改或变化,这样的修改或变化也落入本申请实施例的范围内。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.
图7是本申请实施例提供的一种装置700的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。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.
一种设计中,装置700应用于第一设备,参照图7,装置700包括:处理模块701和存储模块702。In one design, the apparatus 700 is applied to a first device. Referring to FIG. 7 , the apparatus 700 includes: a processing module 701 and a storage module 702 .
其中,处理模块701,用于生成第一时间单元对应的日志记录#1之前,确定预设条件是否满足,日志记录#1包括表征第一时间单元上第一设备与第二设备间通信质量的信息;在预设条件满足的情况下,处理模块701用于生成日志记录#1,并且存储模块702存储日志记录#1。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.
一些可能的实现方式中,预设条件包括以下至少一项:第一设备和第二设备之间的通信信号能量在第一时间单元内小于或等于第一门限;第一设备和第二设备之间传输报文的误码率SER在第一时间单元内小于或等于第二门限;第一设备和第二设备之间的通信链路对应的参考信号接收功率RSRP在第一时间单元内不发生跳变;第一设备的发送模块或接收模块在第一时间单元内处于工作模式;第一时间单元为上行传输资源时,日志记录#1仅包括与上行传输相关的内容;第一时间单元为下行传输资源时,日志记录#1仅包括与下行传输相关的内容。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.
一些可能的实现方式中,日志记录#1为第一设备作为发送方相关的日志记录,该预设条件满足包括以下任一项:第一设备和第二设备之间的最大发送功率在第一时间单元内小于或等于第一阈值;第一设备的发送模块在第一时间单元内处于工作模式;或第一时间单元为上行传输资源。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.
一些可能的实现方式中,日志记录#1为第一设备作为接收方相关的日志记录,预设条件满足包括以下任一项:第一设备和第二设备之间的接收信号强度指示在第一时间单元内小于或等于第二阈值;第一设备和第二设备之间传输报文的SER在第一时间单元内小于或等于第二门限;第一设备和第二设备之间的通信链路对应的RSRP在第一时间单元内不发生跳变;第一设备的接收模块在第一时间单元内处于工作模式;或第一时间单元为下行传输资源。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.
一些可能的实现方式中,日志记录#1包括表征以下内容的信息:用户识别模块标识,时隙号,系统帧号,子载波间隔,时域符号索引,最大发送功率,目标发送功率。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.
一些可能的实现方式中,日志记录#1包括表征以下内容的信息:用户识别模块标识,时隙号,系统帧号,子帧号,接收信号强度指示。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.
一些可能的实现方式中,该处理模块为蜂窝通信基带芯片。In some possible implementations, the processing module is a cellular communication baseband chip.
另一种设计中,装置700应用于第一设备,第一设备例如为终端设备,参照图7,装置700包括:处理模块701和存储模块702。处理模块701包括第一处理单元和第二处理单元。In another design, the apparatus 700 is applied to a first device, the first device is, for example, a terminal device, and referring to Fig. 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.
其中,第一处理单元基于来自第二处理单元的第一时间信息生成日志记录#2,日志记录#2包括第一时间信息,第一时间信息用于结合第二时间信息确定生成日志记录#3的绝对时间,日志记录#3由第一处理单元生成且存储在存储模块702中,日志记录#3包括第二时间信息;存储模块702用于存储日志记录#2和日志记录#3。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.
一些可能的实现方式中,第二处理单元周期性的向第一处理单元发送第一时间信息。In some possible implementations, the second processing unit periodically sends the first time information to the first processing unit.
一些可能的实现方式中,第一时间信息的发送周期基于预配置确定。In some possible implementations, a sending period of the first time information is determined based on a preconfiguration.
一些可能的实现方式中,处理模块701还包括第三处理单元,第三处理单元用于从存储模块702获取日志记录#2和日志记录#3;并基于日志记录#2和日志记录#3生成日志记录#4,日志记录#4包括生成日志记录#3的绝对时间以及日志记录#3中除时间信息之外的其他全部或部分信息。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.
一些可能的实现方式中,存储模块702还用于存储日志记录#4,日志记录#4所在的日志文件不包含日志记录#2和日志记录#3。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.
一些可能的实现方式中,第一处理单元为用于将射频信号的功率放大的射频芯片,或者第一处理单元为用于控制是否辐射射频信号的芯片。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.
一些可能的实现方式中,第二处理单元为应用芯片。In some possible implementations, the second processing unit is an application chip.
需要说明的是,上述模块之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能、执行的步骤、术语的解释、关联及带来的技术效果,可参见方法实施例部分,此处不再赘述。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.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。例如,“模块”可以是实现上述功能的软件程序、硬件电路或二者结合。所述硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。It can be clearly understood by those skilled in the art that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical 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 one 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 dedicated 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.
因此,在本申请的实施例中描述的各示例的模块,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。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.
另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。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.
应理解,本申请实施例中的硬件系统、装置可以执行前述本申请实施例的各种方法,即以下各种产品的具体工作过程,可以参考前述方法实施例中的对应过程。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.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令;当所述计算机可读存储介质在终端设备上运行时,使得该终端设备执行如前述所示的方法。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。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.) means. 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.
本申请实施例还提供了一种包含计算机指令的计算机程序产品,当其在终端设备上运行时,使得终端设备可以执行前述所示的技术方案。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.
图8是本申请实施例提供的一种终端设备800的结构示意图。终端设备800包括芯片801,其中,芯片801包括一个或多个芯片,例如芯片801包括芯片#1、芯片#2和芯片#3,芯片801用于支持终端设备执行前述方法300和方法500所示的技术方案。芯片可以为通用处理器,也可以为专用处理器。8 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 chip #1, chip #2 and chip #3, and the chip 801 is used to support the terminal device to execute the technical solutions shown in the aforementioned methods 300 and 500. The chip can be a general-purpose processor or a dedicated processor.
可选的,该终端设备800还包括收发器802,收发器802用于接受芯片801的控制,用于支持终端设备执行前述所示的技术方案。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.
可选的,终端设备800还可以包括:存储介质803。Optionally, the terminal device 800 may further include: a storage medium 803 .
在一种设计中,芯片801包括一个芯片,终端设备800用于实现前文方法300中第一设备所执行的技术方案。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.
在另一种设计中,芯片801包括芯片#1、芯片#2和芯片#3,终端设备800用于实现前文方法500中终端设备所执行的技术方案。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.
需要说明的是,芯片可以使用下述电路或者器件来实现:一个或多个现场可编程门阵列(field programmable gate array,FPGA)、可编程逻辑器件(programmable logic device,PLD)、控制器、状态机、门逻辑、分立硬件部件、任何其他适合的电路、或者能够执行本申请通篇所描述的各种功能的电路的任意组合。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.
上述本申请实施例提供的装置、终端设备、计算机存储介质、计算机程序产品均用于执行上文所提供的方法,因此,其所能达到的有益效果可参考上文所提供的方法对应的有益效果,在此不再赘述。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.
应理解,上述只是为了帮助本领域技术人员更好地理解本申请实施例,而非要限制本申请实施例的范围。本领域技术人员根据所给出的上述示例,显然可以进行各种等价的修改或变化,例如,上述方法的各个实施例中某些步骤可以是不必须的,或者可以新加入某些步骤等。或者上述任意两种或者任意多种实施例的组合。这样的修改、变化或者组合后的方案也落入本申请实施例的范围内。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.
还应理解,上文对本申请实施例的描述着重于强调各个实施例之间的不同之处,未提到的相同或相似之处可以互相参考,为了简洁,这里不再赘述。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.
还应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。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.
还应理解,本申请实施例中,“预配置”、“预设定”、“预定义”可以通过在设备(例如,包括终端设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。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.
还应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。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.
还应理解,在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。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.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。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 (17)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310651052.4A CN119065915A (en) | 2023-06-02 | 2023-06-02 | Log generation method, terminal device and readable storage medium |
CN202310651052.4 | 2023-06-02 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024244555A1 true WO2024244555A1 (en) | 2024-12-05 |
Family
ID=93630553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2024/078810 WO2024244555A1 (en) | 2023-06-02 | 2024-02-27 | Log generation method, and terminal device and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN119065915A (en) |
WO (1) | WO2024244555A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080054592A (en) * | 2006-12-13 | 2008-06-18 | 엘지노텔 주식회사 | Log storage method using fixed location memory area in embedded system |
CN104885537A (en) * | 2012-11-05 | 2015-09-02 | 瑞典爱立信有限公司 | Systems and methods for maintaining time stamping accuracy to meet a non-linear time drift constraint |
CN106354617A (en) * | 2016-08-29 | 2017-01-25 | 广州华多网络科技有限公司 | Program compression log file output method and device |
CN108170586A (en) * | 2017-12-26 | 2018-06-15 | 广东欧珀移动通信有限公司 | Log processing method and device, storage medium and terminal equipment |
CN113423054A (en) * | 2020-03-02 | 2021-09-21 | 中移物联网有限公司 | Terminal positioning method, system and computer readable storage medium |
CN114385565A (en) * | 2021-12-31 | 2022-04-22 | 天翼物联科技有限公司 | A method, system, device and storage medium for saving communication abnormality log |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050084955A (en) * | 2002-12-20 | 2005-08-29 | 마쯔시다덴기산교 가부시키가이샤 | System and method for content history log collection for digital rights management |
KR101559206B1 (en) * | 2013-11-29 | 2015-10-13 | 건국대학교 산학협력단 | Method of processing log data, and system operating the same |
CN113704205B (en) * | 2021-07-29 | 2022-09-23 | 荣耀终端有限公司 | Log storage method, chip, electronic device and readable storage medium |
CN114090375A (en) * | 2021-11-08 | 2022-02-25 | 中国联合网络通信集团有限公司 | Log storage method and device and storage medium |
CN115022442B (en) * | 2021-12-16 | 2023-06-09 | 荣耀终端有限公司 | Audio fault time location method, electronic equipment and storage medium |
-
2023
- 2023-06-02 CN CN202310651052.4A patent/CN119065915A/en active Pending
-
2024
- 2024-02-27 WO PCT/CN2024/078810 patent/WO2024244555A1/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080054592A (en) * | 2006-12-13 | 2008-06-18 | 엘지노텔 주식회사 | Log storage method using fixed location memory area in embedded system |
CN104885537A (en) * | 2012-11-05 | 2015-09-02 | 瑞典爱立信有限公司 | Systems and methods for maintaining time stamping accuracy to meet a non-linear time drift constraint |
CN106354617A (en) * | 2016-08-29 | 2017-01-25 | 广州华多网络科技有限公司 | Program compression log file output method and device |
CN108170586A (en) * | 2017-12-26 | 2018-06-15 | 广东欧珀移动通信有限公司 | Log processing method and device, storage medium and terminal equipment |
CN113423054A (en) * | 2020-03-02 | 2021-09-21 | 中移物联网有限公司 | Terminal positioning method, system and computer readable storage medium |
CN114385565A (en) * | 2021-12-31 | 2022-04-22 | 天翼物联科技有限公司 | A method, system, device and storage medium for saving communication abnormality log |
Also Published As
Publication number | Publication date |
---|---|
CN119065915A (en) | 2024-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230007590A1 (en) | Communication method and apparatus | |
US12185264B2 (en) | Time-sensitive networking time synchronization method and apparatus | |
CN109548193B (en) | DRX cycle adjustment method and device, base station and readable storage medium | |
WO2023169571A1 (en) | Wake-up signal receiving method and apparatus, terminal, and network side device | |
JP2023544179A (en) | Preemptive BSR deployment method, equipment and electronic equipment | |
WO2024244555A1 (en) | Log generation method, and terminal device and readable storage medium | |
WO2023202513A1 (en) | Conflict processing method, terminal and network side device | |
WO2023208181A1 (en) | Power determination method, terminal, and readable storage medium | |
WO2023193676A1 (en) | Measurement reporting processing method and apparatus, and terminal and network-side device | |
CN115412142B (en) | Processing method, processing device, processing equipment and readable storage medium | |
WO2023109759A1 (en) | Prach transmission method and apparatus, and terminal | |
CN114071675B (en) | Method, terminal and network side equipment for controlling secondary cell | |
WO2024060234A1 (en) | Information reporting method, and apparatus | |
CN116866891A (en) | Transmission method, device, terminal and storage medium | |
CN114786243A (en) | Indication method and user equipment for validity of reference signal transmission timing | |
WO2024169889A1 (en) | Information reporting method and apparatus, and terminal | |
CN117119574A (en) | Information transmission method and device and communication equipment | |
US20240357664A1 (en) | Communication operation execution method and apparatus, terminal, and storage medium | |
WO2024032489A1 (en) | Prs receiving method and apparatus, and terminal | |
WO2016101194A1 (en) | User equipment scheduling method, network device, and communication system | |
WO2024051539A1 (en) | Method and apparatus for determining quasi-co-location parameter, and terminal | |
WO2024022183A1 (en) | Gap configuration method and apparatus, and terminal and network-side device | |
WO2025020967A1 (en) | Paging method and apparatus, device, and readable storage medium | |
WO2023185901A1 (en) | Resource processing method and device, and terminal | |
WO2024099190A1 (en) | Capability indication method and apparatus, terminal, network side device, and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24813761 Country of ref document: EP Kind code of ref document: A1 |