[go: up one dir, main page]

CN118540321A - Log collection method, device, equipment and medium - Google Patents

Log collection method, device, equipment and medium Download PDF

Info

Publication number
CN118540321A
CN118540321A CN202411000472.7A CN202411000472A CN118540321A CN 118540321 A CN118540321 A CN 118540321A CN 202411000472 A CN202411000472 A CN 202411000472A CN 118540321 A CN118540321 A CN 118540321A
Authority
CN
China
Prior art keywords
log
file
target
target type
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411000472.7A
Other languages
Chinese (zh)
Other versions
CN118540321B (en
Inventor
黄波
刘克玮
楼进峰
曹胜果
童杰
董冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202411000472.7A priority Critical patent/CN118540321B/en
Publication of CN118540321A publication Critical patent/CN118540321A/en
Application granted granted Critical
Publication of CN118540321B publication Critical patent/CN118540321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the technical field of computers, in particular to a method, a device, equipment and a medium for collecting logs, which are used for improving the collection efficiency and the collection convenience of logs of third-party manufacturers. The method comprises the following steps: when the target equipment receives an opening collection instruction of a target type log sent by the log collection equipment and determines that the log collection condition is met, the target equipment starts to collect the target type log and stores at least one collected log file into a setting storage component; when receiving a downloading instruction of a target type log sent by log collecting equipment, writing each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and the compression mode, and the compression mode indicates that the size of the log file is not changed; at least one file stream in each write to memory is transmitted to a log gathering device.

Description

Log collection method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for collecting logs.
Background
With the development of wireless communication technology, some miniaturized terminal devices (such as cameras) can access to a wireless network to realize remote wireless communication, and the requirements on the stability and the safety of the miniaturized terminal devices are also higher and higher. However, various abnormal situations may occur in the actual operation process of these devices, some are problems occurring in the modules of the device manufacturers, and some are problems occurring in the modules (such as the cellular modules) of the third party manufacturers, so that the problem needs to be examined by collecting the corresponding logs to the corresponding manufacturers.
In general, when a problem occurs in a module of a device manufacturer, a log of the device can be conveniently obtained by a diagnostic tool of the device manufacturer for analysis. However, when a module of a third party manufacturer has a problem, operation and maintenance personnel of the equipment are required to use a serial port of the computer to connect the equipment, log of the equipment is collected in a serial port command mode, after the problem of the equipment is reproduced, the collected log is handed to the third party manufacturer for problem analysis, the log collection process is complicated, collection efficiency is low, and inconvenience is brought to the operation and maintenance personnel.
Disclosure of Invention
The application provides a log collecting method, a device, equipment and a medium, which are used for improving the collecting efficiency and the collecting convenience of logs of third party manufacturers.
The specific technical scheme provided by the embodiment of the application is as follows:
In a first aspect, an embodiment of the present application provides a log gathering method, applied to a target device, including:
When an opening collection instruction of a target type log sent by log collection equipment is received and the log collection condition is determined to be met, starting to collect the target type log, and storing at least one collected log file into a setting storage component;
When receiving a downloading instruction of the target type log sent by the log collecting equipment, writing each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and a compression mode, and the compression mode represents that the size of the log file is not changed;
and transmitting at least one file stream written into the memory each time to the log gathering equipment.
In one possible implementation manner, the starting to collect the target type log when receiving the start collection instruction of the target type log sent by the log collection device and determining that the log collection condition is met includes:
When receiving an opening collection instruction of the target type log sent by the log collection equipment, determining whether a setting storage component exists or not;
If the setting storage part exists, when it is determined that the flag information does not exist in the setting storage part, the flag information is written into the setting storage part, and the target type log starts to be collected.
In one possible implementation manner, the starting to collect the target type log when receiving the start collection instruction of the target type log sent by the log collection device and determining that the log collection condition is met includes:
When receiving an opening collection instruction of the target type log sent by the log collection equipment, determining whether a setting storage component exists or not;
If the setting storage part does not exist, the target type log starts to be collected when the setting storage part storing flag information is installed.
In a possible implementation manner, the file header information further includes verification information, and before writing each collected log file segment into the memory, the method further includes:
and for each log file, reading the file content of the log file in a segmented manner, and generating the verification information according to the file content of the log file.
In one possible implementation manner, the downloading instruction includes a single transmission file size, and the writing each collected log file segment into the memory includes:
Writing each collected log file segment into the memory according to the size of the single transmission file; the size of at least one file stream written into the memory at each time is not larger than the size of the file transmitted once.
In one possible embodiment, the method further comprises:
And in the process of collecting the target type log, sending the size of the log file which is collected currently to the log collecting equipment.
In a second aspect, an embodiment of the present application provides a log collecting method, applied to a log collecting device, including:
Responding to an opening collection operation triggered by aiming at a target type log, and sending an opening collection instruction of the target type log to target equipment;
Responding to a downloading operation triggered by aiming at the target type log, sending a downloading instruction of the target type log to the target equipment so that the target equipment writes each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and a compression mode, and the compression mode represents that the size of the log file is not changed;
When a plurality of file streams corresponding to at least one log file sent by the target device are received, the existing compression tool is adopted, the corresponding plurality of file streams of the log file are obtained according to the header information of each file, and the plurality of file streams of each log file are spliced to obtain the at least one log file.
In one possible embodiment, the method further comprises:
receiving the size of a currently collected log file sent by the target equipment in the process of collecting the target type log;
The size of the log file which is currently collected is displayed in real time.
In a third aspect, an embodiment of the present application provides a log collecting apparatus, disposed in a target device, including:
The collecting module is used for starting to collect the target type log when receiving an opening collecting instruction of the target type log sent by the log collecting equipment and determining that the log collecting condition is met, and storing at least one collected log file into the setting storage component;
the compression module is used for writing each collected log file segment into a memory when receiving a downloading instruction of the target type log sent by the log collection equipment, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and a compression mode, and the compression mode represents that the size of the log file is not changed;
And the transmission module is used for transmitting the file stream written into at least one memory each time to the log gathering equipment.
In one possible implementation, the collecting module is specifically configured to:
When receiving an opening collection instruction of the target type log sent by the log collection equipment, determining whether a setting storage component exists or not;
If the setting storage part exists, when it is determined that the flag information does not exist in the setting storage part, the flag information is written into the setting storage part, and the target type log starts to be collected.
In one possible implementation, the collecting module is specifically configured to:
When receiving an opening collection instruction of the target type log sent by the log collection equipment, determining whether a setting storage component exists or not;
If the setting storage part does not exist, the target type log starts to be collected when the setting storage part storing flag information is installed.
In a possible implementation manner, the file header information further includes verification information, and the apparatus further includes:
the generation module is used for reading the file content of each log file in a segmented mode, and generating the verification information according to the file content of the log file.
In a possible implementation manner, the downloading instruction includes a single transmission file size, and the transmission module is specifically configured to:
Writing each collected log file segment into the memory according to the size of the single transmission file; the size of at least one file stream written into the memory at each time is not larger than the size of the file transmitted once.
In one possible embodiment, the apparatus further comprises:
and the sending module is used for sending the size of the currently collected log file to the log collecting equipment in the process of collecting the target type log.
In a fourth aspect, an embodiment of the present application provides a log collecting device, provided in a log collecting apparatus, including:
The sending module is used for responding to the opening collection operation triggered by aiming at the target type log and sending an opening collection instruction of the target type log to target equipment;
The downloading module is used for responding to the downloading operation triggered by aiming at the target type log, sending a downloading instruction of the target type log to the target equipment so that the target equipment writes each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and the compression mode, and the compression mode indicates that the size of the log file is not changed;
And the decompression module is used for acquiring a plurality of file streams of the corresponding log files according to the header information of each file by adopting the existing compression tool when receiving the plurality of file streams corresponding to the at least one log file transmitted by the target equipment, and splicing the plurality of file streams of each log file to acquire the at least one log file.
In one possible embodiment, the apparatus further comprises:
The receiving module is used for receiving the size of the currently collected log file sent by the target equipment in the process of collecting the target type log;
and the display module is used for displaying the sizes of the currently collected log files in real time.
In a fifth aspect, embodiments of the present application provide a computing device comprising a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of the method of any of the first aspect or any of the second aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the method of any one of the first or second aspects.
In a seventh aspect, embodiments of the present application provide a computer program product comprising a computer program stored in a computer readable storage medium; when the computer program is read from the computer readable storage medium by a processor of an electronic device, the processor executes the computer program, causing the electronic device to perform the steps of the method of any one of the first or second aspects.
The embodiment of the application has at least the following beneficial effects:
according to the log collecting method, device, equipment and medium provided by the embodiment of the application, the target equipment can be instructed by the log collecting equipment to collect and store the target type log, and the collected log files are downloaded from the target equipment, specifically, each log file can be read into the memory in a segmented mode under the condition that the memory of the target equipment is limited, and the file header information is written into the first file stream of each log file through the existing compression tool, because the file header information comprises the sizes of the log files before and after compression, the size of the whole log file after compression is not known when the first file stream is read, the compression mode is set to be not compressed, so that the size of the compressed log file (namely the size before compression) is determined; at least one file stream in each write to memory is transmitted to a log gathering device. Therefore, when a module of a third party manufacturer in the target equipment is in question, operation and maintenance personnel of the target equipment can start log collection and downloading through the log collection equipment, so that the log collection efficiency and the collection convenience are improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a log gathering method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a Zip format provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of overall logic of a log gathering method according to an embodiment of the present application;
FIG. 4 is a flowchart of another log gathering method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a log gathering device according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a log gathering device according to another embodiment of the present application;
Fig. 7 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the related art, for a miniaturized terminal device, when a problem occurs in a module of a device manufacturer in the device, a log of the device can be obtained for analysis through convenient operation of a diagnostic tool carried by the device manufacturer. However, when a problem occurs in a module of a third party manufacturer in the equipment, operation and maintenance personnel of the equipment are required to use a serial port of the computer to connect the equipment, log of the equipment is collected in a serial port command mode, after the problem of the equipment is reproduced, the collected log is handed to the third party manufacturer for problem analysis, the log collection process is complicated, the collection efficiency is low, and inconvenience is brought to the operation and maintenance personnel. Moreover, when the equipment is placed in places with high heights or rarity, the safety of operation and maintenance personnel cannot be guaranteed.
Although the logs of the third party manufacturer can be collected through the diagnostic tool of the equipment manufacturer, the operation and maintenance personnel of the equipment cannot use the diagnostic tool of the equipment manufacturer, can only collect the logs through the equipment manufacturer and then give the third party manufacturer to locate the problems, which is certainly a waste of labor cost. In view of the above, the embodiments of the present application provide a method, an apparatus, a device, and a medium for collecting logs, by which an operator can instruct a target device to collect and store a target type log through the log collecting device, and download the collected log file from the target device, and when downloading the log file, realize the segmented transmission of the log file through an existing compression tool. Therefore, when a module of a third party manufacturer in the target equipment has a problem, operation and maintenance personnel of the target equipment can start log collection and downloading through the log collection equipment, so that the log collection efficiency and the collection convenience are improved.
In the embodiment of the application, the target device may be a device of a device manufacturer, specifically may be a miniaturized terminal device, such as a camera, and the device is provided with a module of a third party manufacturer, such as a cellular module. The log gathering device may be a terminal device used by a user (e.g., an operation and maintenance person) of the target device, including but not limited to a cell phone, tablet computer, notebook computer, desktop computer, etc.
The log obtaining method of the present application will be described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 illustrates a log gathering method provided by an embodiment of the present application, which may be performed by a target device. As shown in fig. 1, a log gathering method provided by an embodiment of the present application includes the following steps S101 to S103:
S101, when an opening collection instruction of a target type log sent by log collection equipment is received and the log collection condition is confirmed to be met, the collection of the target type log is started, and at least one collected log file is stored in a setting storage component.
The log collecting device can display a log collecting page, the log collecting page comprises collecting switches of various types of logs, the various types of logs comprise running logs of each module of the target device, the logs comprise logs of modules of equipment manufacturers and logs of modules of third party manufacturers, when a certain module in the target device has a problem, the logs of the module need to be collected for analysis, and at the moment, the log collecting can be started by triggering the collecting switches of the module.
When the operation and maintenance personnel of the target equipment collect the page in the log of the equipment, trigger (e.g. click) the collection switch of the target type log (i.e. the log of a certain module), the log collection equipment can send the start collection instruction of the target type log to the target equipment, and the target type log can be the log of a module of a third party manufacturer or the log of a module of the equipment manufacturer. When receiving an opening collection instruction of a target type log, the target equipment starts to collect the target type log and stores at least one collected log file into a setting storage component; the setting storage means may be a memory card inserted in the target device, such as an SD (Secure Digital) card or the like.
When receiving an opening collection instruction of a target type log sent by the log collection device, the target device needs to determine whether a log collection condition is met, and the log collection condition is described below.
In one possible implementation manner, the target device may determine whether a setting storage component exists when receiving an opening collection instruction of a target type log sent by the log collection device; if the setting storage part exists, when it is determined that the flag information does not exist in the setting storage part, the flag information is written into the setting storage part, and collection of the target type log is started.
In addition, when the user inserts the setting storage part into the target device, the user can write the flag information into the setting storage part in advance, and when the target device receives an opening collection instruction of the target type log sent by the log collection device and determines that the log collection condition is met, if the flag information exists in the setting storage part, the target type log starts to be collected.
The flag information may be a flag file or a flag folder, and the flag information corresponds to a flag bit collected by the open log. When the log collecting device is started, the collecting switch is started by default, and when the setting storage component exists in the target device, a user can instruct the target device to create mark information in the setting storage component by firstly closing the collecting switch of the target type log and then starting the collecting switch in the log collecting device, so that log collecting is started. In the log collection process, the user can instruct the target device to stop log collection by closing the collection switch, namely, delete the created flag information in the set storage component, and then instruct the target device to create the flag information in the presence of the set storage component when the user opens the collection switch again.
In another possible implementation manner, when receiving an opening collection instruction of a target type log sent by the log collection device, the target device determines whether a setting storage component exists; if the setting storage part does not exist, the target type log starts to be collected when the setting storage part storing the mark information is installed, or the mark information is written into the setting storage part when the setting storage part is installed and the mark information is determined to exist in the setting storage part, and the target type log starts to be collected.
Wherein when a collection switch of a target type log in the log collection device is turned on, if there is no setting storage part in the target device, log collection can be started by writing flag information into the setting storage part in advance and then inserting the setting storage part into the target device.
In the embodiment of the application, when the collection switch in the log collection device is triggered, the target device can start log collection when the target device determines that the setting storage component exists and the mark information is stored in the setting storage component. Therefore, only a user using the log collection device can start log collection, the safety of log collection is guaranteed, and meanwhile, the collected logs can be guaranteed to be stored in the setting storage component.
It can be understood that in the embodiment of the present application, a dual-switch mode, a main switch and a small switch are used for starting log collection, where the main switch is a collection switch that can be operated in the log collection device, and the small switch is identification information (such as a flag file or a folder). The user may turn on and off the function of log gathering by operating a gathering switch in the log gathering device.
In some embodiments, in order to facilitate the user to observe in real time whether the log collection is started or not and the size of the collected log file, the target device may send the size of the currently collected log file to the log collection device in the process of collecting the target type log, so that the log collection device displays the size of the currently collected log file in real time.
Specifically, each log file may be named date plus log type. Since the file paths and the file formats of the logs of different types (e.g., different manufacturers) are different, a specific folder can be used for storing each type of log in the setting storage unit, and all files under the folder can be searched recursively during searching.
S102, when a downloading instruction of a target type log sent by log collection equipment is received, writing each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and the compression mode, and the compression mode indicates that the size of the log file is not changed.
The log collecting device can send a downloading instruction of the target type log to the target device when the user triggers the downloading control of the target type log, and the target device can search the target type log, particularly one or more log files, from a specific folder in the setting storage part when receiving the downloading instruction.
Specifically, the user may select the type and date of the log to be downloaded, the downloading instruction sent by the log collecting device may include the type and date of the target log, after the target device analyzes the downloading instruction, the type and date of the target log to be downloaded are determined, and then all file paths under the corresponding folder of the type of the target log in the setting storage component are searched recursively to obtain one or more log files to be downloaded.
Considering that the memory of the target device is limited, and the log files are too large, one log file may not be directly read into the memory, and the file content of each log file can only be read in a segmented manner. In the related art, when a plurality of log files are transmitted by a target device during the collection of logs of a device manufacturer, a header, a trailer and verification information can be added to each log file by a diagnostic tool of the device manufacturer to segment and transmit each log file to a log collection device of an operation and maintenance person. If the target device still uses the diagnostic tool of the device manufacturer to transmit the plurality of log files of the third party manufacturer, the operation and maintenance personnel needs to send the received file streams of the plurality of log files to the device manufacturer, and the device manufacturer processes the file streams of the plurality of log files by using the diagnostic tool and then sends the processed file streams to the third party manufacturer, which is very inconvenient.
Based on the above, the target device in the embodiment of the application adopts the existing compression tool to realize the segmentation processing of the log file, so that the log collection device of the operation and maintenance personnel can process a plurality of file streams of the received log file by adopting the existing compression tool. The following description will take an example in which an existing compression tool is a file compression tool in Zip format.
When the Zip format is used for transmitting the log file, as CRC (Cyclic Redundancy Check ) checksum file compression is required, the whole log file needs to be read into the memory of the target device every time, and in practical application, the memory of the target device may not meet the requirement, so that the file in the Zip format is cut, and the requirement of transmitting the log file in a segmented mode can be met.
As shown in fig. 2, the Zip format mainly comprises a data area, a core directory record area, and a core directory record tail area, where the data area includes a local header of each file, file data, and a file description, for example, the local header 1 corresponds to one file, the file content of the file is file data 1, the local header 2 corresponds to another file, and the file content of the file is file data 2. The local file header contains file identification header, file information, compression mode, size before and after compression and verification information. The core directory record area contains the core directory of each file, including the location of the local file header.
In the embodiment of the present application, since each log file needs to be transmitted in segments, the header information (i.e. the local header) needs to be written in the first file stream of each log file, but since the local header includes the size of the log file before and after compression, and the size of the whole log file after compression is not known when the first file stream of the log file is read, in order to solve this problem, the compression mode is set in the header information to not perform file compression, for example, the compression mode is set to a set value (e.g. 0), so that the sizes of the log file before and after compression can be kept consistent. According to the embodiment of the application, the time consumption of file operation is greatly reduced due to the fact that the operation of compressing the log file is reduced.
In a possible implementation manner, when the log files are segmented by using the existing compression tool, since CRC check is performed on each log file before the file is decompressed, the check information of each log file needs to be written into the header information of each log file, which requires that the log file be segmented and read once before each log file is transmitted, and the check information (such as CRC value) of the whole log file is calculated and filled into the header information.
Therefore, before each collected log file segment is written into the memory in S102, the file content of the log file is read for each log file segment, and verification information is generated according to the file content of the log file.
In a possible implementation manner, the download instruction sent by the log gathering device further includes a single transmission file size, and when the target device writes each gathered log file segment into the memory, the target device may write each gathered log file segment into the memory according to the single transmission file size; the size of at least one file stream written into the memory each time is not larger than the size of the file transmitted once. Specifically, when a plurality of log files are collected, the target device may sequentially segment the plurality of log files into the memory, and write file header information in the first file stream of each log file.
In the embodiment of the application, the target equipment can carry out the segmented transmission of the log file according to the single transmission file size of the log collecting equipment so as to meet the transmission requirement of the log collecting equipment.
S103, at least one file stream written into the memory each time is transmitted to the log gathering equipment.
When receiving a download instruction sent by the log collection device, the target device returns a download address, such as a URL (Uniform Resource Locator ), to the log collection device, so that the log collection device sends a log acquisition request to the target device according to the download address, and the target device streams at least one file written into the memory each time to the log collection device according to the log acquisition request.
After the target device transmits at least one log file, the log collecting device receives a plurality of file streams corresponding to the at least one log file, and decompresses the plurality of file streams through the existing compression tool to obtain the at least one log file.
In the embodiment of the application, the target device can be instructed by the log collecting device to collect and store the target type log, and the collected log files are downloaded from the target device, specifically, under the condition that the memory of the target device is limited, each log file can be read into the memory in a segmented way, and the header information of the file is written in the first file stream of each log file through the existing compression tool, because the header information comprises the sizes of the log files before and after compression, the size of the whole log file after compression is not known when the first file stream is read, the compression mode is set to be not compression, so that the size of the log file after compression (namely the size before compression) is determined; at least one file stream in each write to memory is transmitted to a log gathering device. Therefore, when a module of a third party manufacturer in the target equipment is in question, operation and maintenance personnel of the target equipment can start log collection and downloading through the log collection equipment, so that the log collection efficiency and the collection convenience are improved.
The overall logic of the log gathering method of an embodiment of the present application is described below in conjunction with fig. 3.
As shown in fig. 3, the device side is a target device, the client side is a log collection device, the client side has a log switch function, a log display function and a log downloading function, when the log switch function of the client side is turned on (i.e. a main switch is turned on), the device side can turn on log collection in two possible ways, one way is to determine whether an SD card exists (i.e. a storage part is set), and if so, a flag file (i.e. flag information) is created in the SD card and then the log collection is turned on; in another way, when the SD card is inserted, if the main switch of the client is determined to be opened, judging whether a mark file exists in the SD card, and if the mark file exists, starting log collection. In the process of collecting logs, the device side can send the size of the log file collected currently to the client side so that the client side can determine that the log collection is started and display the size of the log file collected. When the client starts the log downloading function, the equipment side pushes the log, and at least one collected log file is transmitted to the client in a stream segmentation mode.
Based on the same inventive concept, an embodiment of the present application provides a log gathering method applied to a log gathering device, as shown in fig. 4, the method includes the following steps S401 to S403:
S401, responding to an opening collection operation triggered by aiming at the target type log, and sending an opening collection instruction of the target type log to target equipment.
The log collecting device may display a log collecting page, where the log collecting page includes collecting switches of various types of logs, the various types of logs include running logs of each module of the target device, where the running logs include logs of a module of a device manufacturer and logs of a module of a third party manufacturer, when a certain module in the target device has a problem, the logs of the module need to be collected for analysis, at this time, the log collecting device may be started by triggering the collecting switch of the module, and the log collecting device sends a start collecting instruction of the target type log (i.e., the log of the module) to the target device in response to a triggering operation of the collecting switch of the module.
S402, responding to a downloading operation triggered by aiming at the target type log, sending a downloading instruction of the target type log to target equipment so that the target equipment writes each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and the compression mode, and the compression mode indicates that the size of the log file is not changed.
The method comprises the steps that various types of log downloading controls can be displayed in a log gathering page of log gathering equipment, when a user triggers the target type log downloading controls, the log gathering equipment can send a target type log downloading instruction to target equipment, when the target equipment receives the downloading instruction, the target type log can be searched from a specific folder in a set storage part, particularly one or more log files, and then each collected log file segment is written into a memory, and file header information is written into a first file stream after each log file segment by adopting an existing compression tool.
In a possible implementation manner, the downloading instruction sent by the log collection device to the target device further includes a single transmission file size, and when the target device writes each collected log file segment into the memory, the target device may write each collected log file segment into the memory according to the single transmission file size; the size of at least one file stream written into the memory each time is not larger than the size of the file transmitted once.
S403, when a plurality of file streams corresponding to at least one log file sent by a target device are received, an existing compression tool is adopted, the plurality of file streams of the corresponding log file are obtained according to the header information of each file, and the plurality of file streams of each log file are spliced to obtain at least one log file.
Specifically, after sending a download instruction to the target device, the log collection device may receive a download address returned by the target device, send a log obtaining request to the target device based on the download address, and send at least one file stream written into the memory each time to the log collection device by the target device. After the downloading is completed, the log collecting device obtains a plurality of file streams corresponding to at least one log file, namely, the plurality of file streams processed by the existing compression tool, so that the plurality of file streams are decompressed by the existing compression tool to obtain at least one log file, specifically, the plurality of file streams of the corresponding log file can be split from all the file streams according to the identification information in the header information of each file and the size before and after the compression, and then the plurality of file streams of each log file are spliced to obtain each log file.
In addition, each piece of file header information also comprises verification information, the log collecting equipment can calculate the verification information corresponding to the file content of each log file after obtaining each log file, and compare the calculated verification information with the verification information in the file header information, and if the calculated verification information is consistent with the verification information in the file header information, the log file transmission is determined to be successful.
In one possible implementation manner, in order to facilitate the user to observe whether the log collection is started or not and the size of the collected log file in real time, the log collection device may further receive the size of the currently collected log file sent by the target device in the process of collecting the target type log, and display the size of the currently collected log file in real time. Wherein each log file may be named date plus log type.
In the embodiment of the application, the target equipment uses the existing compression tool (namely the public tool) as the carrier of the log files, so that the streaming segmented transmission of a plurality of log files is realized, and after the log collecting equipment receives a plurality of file streams corresponding to the plurality of log files, the existing compression tool can be directly adopted to process the plurality of file streams, so that secondary processing of equipment manufacturers is not required, and the hardware cost and the labor cost are reduced; secondly, the user (such as operation and maintenance personnel) can conveniently collect the logs through the collecting switch in the log collecting device, so that the privacy of the user can be protected, and the later maintenance of the target device can be facilitated.
Based on the same inventive concept, the embodiment of the present application further provides a log gathering device, and the principle of the device for solving the problem is similar to that of the method on the target device side in the above embodiment, so that the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 5, a log collection apparatus 500 provided in an embodiment of the present application is disposed in a target device, and includes:
the collecting module 501 is configured to, when receiving an opening collecting instruction of a target type log sent by the log collecting device and determining that a log collecting condition is met, start collecting the target type log, and store at least one collected log file to the setting storage unit;
The compression module 502 is configured to, when receiving a download instruction of a target type log sent by a log collection device, write each collected log file segment into a memory, and write header information in a first file stream after each log file segment by using an existing compression tool, where the header information includes identification information of the log file, a size before and after compression, and a compression mode, and the compression mode indicates that the size of the log file is not changed;
the transmission module 503 is configured to transmit the file stream written into at least one memory each time to the log gathering device.
In one possible implementation, the gathering module 501 is specifically configured to:
when receiving an opening collection instruction of a target type log sent by log collection equipment and determining that log collection conditions are met, determining whether a set storage component exists or not;
If the setting storage part exists, when it is determined that the flag information does not exist in the setting storage part, the flag information is written into the setting storage part, and collection of the target type log is started.
In one possible implementation, the gathering module 501 is specifically configured to:
when receiving an opening collection instruction of a target type log sent by log collection equipment and determining that log collection conditions are met, determining whether a set storage component exists or not;
If there is no setting storage part, the collection of the target type log is started when the setting storage part storing the flag information is installed.
In a possible implementation manner, the file header information further includes verification information, and the apparatus further includes:
the generation module is used for reading the file content of the log file in a segmented mode aiming at each log file, and generating verification information according to the file content of the log file.
In one possible implementation, the download instruction includes a single transmission file size, and the transmission module 503 is specifically configured to:
According to the size of the file transmitted once, writing each collected log file into a memory in a segmented way; the size of at least one file stream written into the memory each time is not larger than the size of the file transmitted once.
In one possible embodiment, the apparatus further comprises:
and the sending module is used for sending the size of the currently collected log file to the log collecting equipment in the process of collecting the target type log.
Based on the same inventive concept, the embodiment of the present application further provides a log collecting device, and the principle of the device for solving the problem is similar to that of the log collecting device side of the above embodiment, so that the implementation of the device can refer to the implementation of the above method, and the repetition is omitted.
As shown in fig. 6, a log collecting device 600 provided in an embodiment of the present application is disposed in a log collecting apparatus, and includes:
a sending module 601, configured to send an opening collection instruction of the target type log to the target device in response to an opening collection operation triggered for the target type log;
The downloading module 602 is configured to respond to a downloading operation triggered for the target type log, send a downloading instruction of the target type log to the target device, so that the target device writes each collected log file segment into the memory, and write file header information in a first file stream after each log file segment by adopting an existing compression tool, where the file header information includes identification information of the log file, a size before and after compression, and a compression mode, and the compression mode indicates that the size of the log file is not changed;
The decompression module 603 is configured to obtain, when receiving a plurality of file streams corresponding to at least one log file sent by the target device, a plurality of file streams of the corresponding log file according to each file header information by using an existing compression tool, and splice the plurality of file streams of each log file to obtain at least one log file.
In one possible embodiment, the apparatus further comprises:
the receiving module is used for receiving the size of the currently collected log file sent by the target equipment in the process of collecting the target type log;
and the display module is used for displaying the sizes of the currently collected log files in real time.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, which may be a target device or a log gathering device in the embodiment of the method of the present application, and since the principle of the electronic device for solving the problem is similar to that of the method in the embodiment of the present application, the implementation of the electronic device may refer to the embodiment of the method, and the repetition is omitted.
As shown in fig. 7, the computing device includes a processor 700, a memory 701 and a communication interface 702, wherein the processor 700 and the communication interface 702, the memory 701 complete communication with each other through a communication bus 703; the memory 701 is used for storing a program executable by the processor 700, and the processor 700 is used for reading the program in the memory 701 and performing the steps of any of the log gathering methods in the above embodiments.
The communication bus 703 may be a peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus. The communication interface 702 is used for communication between the computing devices described above and other devices. The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; but also digital instruction processors (DIGITAL SIGNAL Processing units, DSPs), application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
Based on the same inventive concept, the embodiments of the present application also provide a computer storage medium, in which a computer program executable by a processor is stored, which when executed on the processor causes the processor to perform the steps of any of the log gathering methods of the above embodiments.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memories such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical memories such as CD, DVD, BD, HVD, etc., and semiconductor memories such as ROM, EPROM, EEPROM, nonvolatile memories (NAND FLASH), solid State Disks (SSD), etc.
In yet another embodiment of the present application, a computer program product containing instructions is also provided, which when executed by an electronic device, cause the electronic device to perform the steps of any of the methods of the above embodiments.
The computer program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (13)

1. A log gathering method, applied to a target device, comprising:
When an opening collection instruction of a target type log sent by log collection equipment is received and the log collection condition is determined to be met, starting to collect the target type log, and storing at least one collected log file into a setting storage component;
When receiving a downloading instruction of the target type log sent by the log collecting equipment, writing each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and a compression mode, and the compression mode represents that the size of the log file is not changed;
and transmitting at least one file stream written into the memory each time to the log gathering equipment.
2. The method according to claim 1, wherein the starting to collect the target type log when the start collection instruction of the target type log sent by the log collection device is received and it is determined that the log collection condition is satisfied, includes:
When receiving an opening collection instruction of the target type log sent by the log collection equipment, determining whether the setting storage part exists or not;
If the setting storage part exists, when it is determined that the flag information does not exist in the setting storage part, the flag information is written into the setting storage part, and the target type log starts to be collected.
3. The method according to claim 1, wherein the starting to collect the target type log when the start collection instruction of the target type log sent by the log collection device is received and it is determined that the log collection condition is satisfied, includes:
When receiving an opening collection instruction of the target type log sent by the log collection equipment, determining whether the setting storage part exists or not;
If the setting storage part does not exist, the target type log starts to be collected when the setting storage part storing flag information is installed.
4. A method according to any one of claims 1 to 3, wherein the header information further includes verification information, and before writing each collected log file segment into the memory, the method further includes:
and for each log file, reading the file content of the log file in a segmented manner, and generating the verification information according to the file content of the log file.
5. A method according to any one of claims 1 to 3, wherein the downloading instruction includes a file size of a single transmission, and the writing each collected log file segment into the memory includes:
Writing each collected log file segment into the memory according to the size of the single transmission file; the size of at least one file stream written into the memory at each time is not larger than the size of the file transmitted once.
6. A method according to any one of claims 1 to 3, further comprising:
And in the process of collecting the target type log, sending the size of the log file which is collected currently to the log collecting equipment.
7. A log gathering method, applied to a log gathering device, comprising:
Responding to an opening collection operation triggered by aiming at a target type log, and sending an opening collection instruction of the target type log to target equipment;
Responding to a downloading operation triggered by aiming at the target type log, sending a downloading instruction of the target type log to the target equipment so that the target equipment writes each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and a compression mode, and the compression mode represents that the size of the log file is not changed;
When a plurality of file streams corresponding to at least one log file sent by the target device are received, the existing compression tool is adopted, the corresponding plurality of file streams of the log file are obtained according to the header information of each file, and the plurality of file streams of each log file are spliced to obtain the at least one log file.
8. The method of claim 7, wherein the method further comprises:
receiving the size of a currently collected log file sent by the target equipment in the process of collecting the target type log;
The size of the log file which is currently collected is displayed in real time.
9. A log gathering apparatus, provided in a target device, comprising:
The collecting module is used for starting to collect the target type log when receiving an opening collecting instruction of the target type log sent by the log collecting equipment and determining that the log collecting condition is met, and storing at least one collected log file into the setting storage component;
the compression module is used for writing each collected log file segment into a memory when receiving a downloading instruction of the target type log sent by the log collection equipment, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file, the size before and after compression and a compression mode, and the compression mode represents that the size of the log file is not changed;
And the transmission module is used for transmitting the file stream written into at least one memory each time to the log gathering equipment.
10. A log gathering apparatus, provided in a log gathering device, comprising:
The sending module is used for responding to the opening collection operation triggered by aiming at the target type log and sending an opening collection instruction of the target type log to target equipment;
The downloading module is used for responding to the downloading operation triggered by aiming at the target type log, sending a downloading instruction of the target type log to the target equipment so that the target equipment writes each collected log file segment into a memory, and writing file header information in a first file stream after each log file segment by adopting an existing compression tool, wherein the file header information comprises identification information of the log file;
And the decompression module is used for distinguishing different log files according to the identification information in the header information of each log file by adopting the existing compression tool when receiving a plurality of file streams corresponding to at least one log file sent by the target equipment, and splicing the plurality of file streams of each log file to obtain the at least one log file.
11. An electronic device comprising a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 6 or any one of claims 7 to 8.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1-6 or any one of claims 7-8.
13. A computer program product comprising a computer program, the computer program being stored on a computer readable storage medium; when the computer program is read from the computer readable storage medium by a processor of an electronic device, the processor executes the computer program, causing the electronic device to perform the steps of the method of any one of claims 1-6 or any one of claims 7-8.
CN202411000472.7A 2024-07-24 2024-07-24 Log collection method, device, equipment and medium Active CN118540321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411000472.7A CN118540321B (en) 2024-07-24 2024-07-24 Log collection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411000472.7A CN118540321B (en) 2024-07-24 2024-07-24 Log collection method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN118540321A true CN118540321A (en) 2024-08-23
CN118540321B CN118540321B (en) 2024-10-11

Family

ID=92384892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411000472.7A Active CN118540321B (en) 2024-07-24 2024-07-24 Log collection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN118540321B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070020727A (en) * 2005-08-16 2007-02-22 주식회사 팬택 A terminal having a pseudo streaming download function using a sequential fragment download method and a method thereof
CN103914485A (en) * 2013-01-07 2014-07-09 上海宝信软件股份有限公司 System and method for remotely collecting, retrieving and displaying application system logs
CN105306531A (en) * 2015-09-17 2016-02-03 浪潮集团有限公司 Packaged downloading method based on Zip compression mode
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN112965934A (en) * 2021-02-04 2021-06-15 北京高因科技有限公司 Log compression storage method and electronic device
CN112988247A (en) * 2021-03-08 2021-06-18 曙光信息产业股份有限公司 Log processing method and device, electronic equipment and readable storage medium
CN117762890A (en) * 2023-12-27 2024-03-26 宁波三星医疗电气股份有限公司 Terminal log remote acquisition method and device, master station equipment and power data system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070020727A (en) * 2005-08-16 2007-02-22 주식회사 팬택 A terminal having a pseudo streaming download function using a sequential fragment download method and a method thereof
CN103914485A (en) * 2013-01-07 2014-07-09 上海宝信软件股份有限公司 System and method for remotely collecting, retrieving and displaying application system logs
CN105306531A (en) * 2015-09-17 2016-02-03 浪潮集团有限公司 Packaged downloading method based on Zip compression mode
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN112965934A (en) * 2021-02-04 2021-06-15 北京高因科技有限公司 Log compression storage method and electronic device
CN112988247A (en) * 2021-03-08 2021-06-18 曙光信息产业股份有限公司 Log processing method and device, electronic equipment and readable storage medium
CN117762890A (en) * 2023-12-27 2024-03-26 宁波三星医疗电气股份有限公司 Terminal log remote acquisition method and device, master station equipment and power data system

Also Published As

Publication number Publication date
CN118540321B (en) 2024-10-11

Similar Documents

Publication Publication Date Title
CN111107123B (en) Method and device for continuous transmission in broken network
CN103518191A (en) Upgrade method, intelligent terminal and upgrade system
WO2022017096A1 (en) Screen recording method, electronic device, and computer readable storage medium
CN110347571A (en) A kind of crash log acquisition method, analysis method and relevant apparatus
CN113918200A (en) High-efficiency and reliable wireless upgrading method for application program of embedded equipment
CN118540321B (en) Log collection method, device, equipment and medium
CN113076122A (en) Resource file management method, device, equipment and storage medium
CN112988549A (en) Method for obtaining log based on vehicle machine system and electronic equipment
CN112463178A (en) File system programming method and terminal of embedded equipment
CN114827128B (en) Breakpoint continuous transmission method and related equipment
CN117707855A (en) Firmware upgrading method, device, equipment and storage medium
CN114629895B (en) File fragment breakpoint continuous transmission method, device, terminal equipment and medium
KR101111400B1 (en) Apparatus and method for recovering the data of embeded system
KR100837742B1 (en) Mobile data recovery device using data communication cable and method
CN101587427B (en) Method for realizing control of storage card by digital equipment by expanding SD/MMC protocol
WO2012174942A1 (en) Method and system for locating crash problem of mobile terminal
CN114879988A (en) Online upgrade method and device, computer equipment and storage medium
WO2020211371A1 (en) Image restoration method and apparatus, device and storage medium
KR101093019B1 (en) File restoration system and method for mobile communication terminal through internal memory direct control
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN111611142A (en) Information collection method, device and storage medium
KR101603713B1 (en) Mobile Forensics Method for field using part extraction
CN112306553A (en) Processing method and device for extended information in installation package file and electronic equipment
CN116319809B (en) Method and system for data operation
CN108763425B (en) Method and apparatus for storing and reading audio files

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant