Processing method and device for obtaining complete operation log of unattended equipment and terminal

By presetting log saving logic in an unattended device, determining the log saving time based on the storage space, and managing the logs in real time, the problem of log loss when the device is abnormal is solved, and the effect of quickly obtaining and parsing logs to locate problems is achieved.

CN120162232APending Publication Date: 2025-06-17SHENZHEN KUKAI SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510233438.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

In the prior art, the operation log of the unattended device is only retained for a short time, resulting in the inability to obtain the complete log when the device is abnormal, affecting the efficiency of problem solving.

Method used

Preset log saving logic in the terminal device, determine the time range for log saving based on the device's storage space, and save and delete expired logs in real time during the device's operation, and obtain and upload the saved logs when an exception is detected.

Benefits of technology

Ensure that the log files within the latest time period are always saved in the device to avoid short-term log loss problems. Maintenance personnel can obtain complete logs to locate problems and improve problem resolution speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120162232A_ABST
    Figure CN120162232A_ABST
Patent Text Reader

Abstract

The invention discloses a processing method and device for obtaining a complete operation log of unattended equipment and a terminal, and the method comprises the steps: presetting log storage logic in terminal equipment in advance, and determining a log storage time range according to the actual storage space of the terminal equipment; during the running period of the terminal equipment, according to a preset log storage logic, storing related running logs to the local, and deleting expired log files; when it is detected that the terminal equipment runs abnormally, the stored running log is acquired from the corresponding terminal equipment; and analyzing the acquired running log of the corresponding terminal equipment, positioning an abnormal problem of the terminal equipment and giving a problem solution. According to the method, the log of abnormal operation of the equipment can be obtained, so that developers can quickly position and solve problems according to the log, and the problem solving speed is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things devices, and particularly to a processing method, device, intelligent terminal and storage medium for obtaining complete operation logs of unattended devices. Background Art

[0002] Existing outdoor advertising screen devices or Internet of Things devices generally operate in an unattended state. Logs can only be captured when maintenance personnel find that the device is operating abnormally. Due to the Android system or related systems, device operation logs only retain the last few hours or even the last few minutes. However, the trigger point of device anomalies may be 10 hours ago or even earlier, such as yesterday. This causes developers to be unable to locate the cause of problems based on the logs provided by maintenance personnel. Moreover, some problems are related to the actual operating environment of the device, and developers cannot reproduce device problems in the office area, resulting in low problem-solving efficiency.

[0003] Therefore, the existing technology still needs to be improved and developed. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a processing method, device, intelligent terminal and storage medium for obtaining complete operation logs of unattended devices, aiming to solve the problem in the existing technology that logs can only be captured when the device is operating abnormally and the temporary logs are lost at this time, resulting in low problem-solving efficiency.

[0005] The technical solution adopted by the present invention to solve the problem is as follows:

[0006] A processing method for obtaining complete operation logs of unattended devices, including:

[0007] Pre-set a log saving logic in the terminal device, and determine the time range for log saving according to the actual storage space of the terminal device;

[0008] During the operation of the terminal device, save relevant operation logs to the local according to the pre-set log saving logic, and delete expired log files;

[0009] When it is detected that a terminal device is operating abnormally, obtain the saved operation logs from the corresponding terminal device;

[0010] Parse the operation logs of the corresponding terminal device obtained, locate the abnormal problems of the terminal device and give solutions to the problems.

[0011] In the processing method for obtaining complete operation logs of unattended devices, the step of when it is detected that a terminal device is operating abnormally and obtaining the saved operation logs from the corresponding terminal device further includes:

[0012] When it is detected that a terminal device is operating abnormally, the control automatically uploads the saved operation log of the corresponding terminal device to a specified server for storage.

[0013] The processing method for obtaining the complete operation log of an unattended device, wherein the step of determining the time range for log storage according to the actual storage space of the terminal device includes:

[0014] According to the actual storage space of the terminal device, the time range for log storage is determined to be retaining the operation logs within one week or retaining the operation logs within 3 days.

[0015] The processing method for obtaining the complete operation log of an unattended device, wherein the step of, during the operation of the terminal device, saving relevant operation logs to the local according to a preset log storage logic and deleting expired log files further includes:

[0016] During the operation of the terminal device, automatically delete the operation logs that exceed one week or exceed 3 days according to the preset log storage logic.

[0017] The processing method for obtaining the complete operation log of an unattended device, wherein the step of, when it is detected that a terminal device is operating abnormally, obtaining the saved operation log from the corresponding terminal device includes:

[0018] Perform real-time detection on the operation status of the terminal device;

[0019] When it is detected that a terminal device is operating abnormally, obtain the saved operation log from the corresponding terminal device.

[0020] The processing method for obtaining the complete operation log of an unattended device, wherein the abnormal operation of the terminal device includes: abnormal operation of the business program function and abnormal operation of the system software.

[0021] The processing method for obtaining the complete operation log of an unattended device, wherein the step of parsing the obtained operation log of the corresponding terminal device, locating the abnormal problem of the terminal device and giving a problem solution includes:

[0022] Parse the obtained operation log of the corresponding terminal device;

[0023] According to the content of the parsed operation log, locate the location and cause of the abnormal problem of the terminal device;

[0024] According to the location and cause of the abnormal problem of the located terminal device, search the preset expert library to find the corresponding problem solution and output it.

[0025] A processing device for obtaining the complete operation logs of unattended devices, wherein the device comprises:

[0026] A log saving logic preset module, configured to preset log saving logic in a terminal device in advance and determine the time range for log saving according to the actual storage space of the terminal device;

[0027] A log saving control module, configured to save relevant operation logs locally according to the preset log saving logic during the operation of the terminal device and delete expired log files;

[0028] An exception obtaining module, configured to obtain the saved operation logs from the corresponding terminal device when it is detected that a terminal device has an abnormal operation;

[0029] A log parsing and problem locating module, configured to parse the operation logs of the corresponding terminal device obtained, locate the abnormal problems of the terminal device and give solutions to the problems.

[0030] An intelligent terminal, which includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include those for executing the method described in any one of the above.

[0031] A computer-readable storage medium, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method described in any one of the above.

[0032] Advantages of the present invention: The present invention provides a processing method, device, intelligent terminal and storage medium for obtaining the complete operation logs of unattended devices; by keeping the operation logs of the device in recent days locally, the present invention avoids the problem of only having short-term operation logs in the system, enabling maintenance personnel to obtain effective operation logs from the device or directly upload the logs to the cloud server when discovering device anomalies. Developers can quickly locate and solve problems based on the effective logs, improving the problem-solving speed and product quality. Description of the Drawings

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0034] Figure 1It is a schematic flowchart of a processing method for obtaining a complete operation log of an unattended device provided in Embodiment 1 of the present invention.

[0035] Figure 2 It is a schematic flowchart of a processing method for obtaining a complete operation log of an unattended device provided in Embodiment 2 of the present invention.

[0036] Figure 3 A principle block diagram of an embodiment of a processing device for obtaining a complete operation log of an unattended device provided by the present invention.

[0037] Figure 4 It is a principle block diagram of the internal structure of an intelligent terminal provided in an embodiment of the present invention. Detailed implementation manners

[0038] To make the objectives, technical solutions and advantages of the present invention clearer and more definite, the following further describes the present invention in detail with reference to the accompanying drawings and by way of examples. It should be understood that the specific examples described herein are only used to explain the present invention and are not used to limit the present invention.

[0039] Therefore, the present invention provides a processing method for obtaining a complete operation log of an unattended device. By pre-setting a software application program, the device operation log is saved to the local device, and according to the program settings, the expired logs are deleted, so as to ensure that the device always stores the log files within the latest time period, and avoid the problem of only having short-term operation logs in the system. When the device has an operation anomaly, the device local log file can be provided to the developers by uploading it to a specified server or by the maintenance personnel grabbing it offline, so as to help the developers quickly obtain effective device operation logs and quickly locate and solve problems.

[0040] As Figure 1 shown, a processing method for obtaining a complete operation log of an unattended device in Embodiment 1 of the present invention includes the following steps:

[0041] Step S100: Pre-set a log saving logic in the terminal device, and determine the time range for log saving according to the actual storage space of the terminal device;

[0042] The present invention reasonably determines which logs need to be retained and which can be deleted according to the storage capacity of the device, so as to ensure the normal operation of the device and avoid waste of storage space.

[0043] Specifically, when implementing, pre-set a log saving logic in the terminal device, that is, in the operating system or application program of the terminal device of the present invention, the code or configuration parameters can be written in advance to define the saving rules of the log files. These rules can include the type of logs, saving time, maximum storage space, etc.

[0044] Specifically, the time range will be determined according to the storage space. Since the storage space of each terminal device is limited, it is necessary to decide the retention period of the logs based on the actual available storage. For example, if a device has a small storage space, it may only be able to save the logs of the most recent week; while a device with a larger storage space can save the logs for a longer time.

[0045] For example, when the terminal devices used by a manufacturing enterprise are sensors on a production line, these sensors generate a large number of operation logs every day. To ensure the normal operation of the devices, the present invention can preset the log retention logic in the firmware of the devices and set the following rules:

[0046] Storage space: The available storage space of the device is 1GB.

[0047] Log retention time range: According to historical data analysis, under normal circumstances, the device needs to retain at most the logs of the most recent 30 days. If the storage space is not sufficient to support 30 days of logs, it will be automatically adjusted to the logs of the most recent 7 days.

[0048] In this case, if the size of the device's log file reaches 500MB on a certain day, the system will automatically delete the old logs that are more than 7 days old to free up space. This strategy ensures that when the storage space is tight, the device can still retain enough logs for subsequent analysis, and at the same time avoids device failures caused by the storage space being full.

[0049] In this way, by setting the log retention time range, the present invention can effectively prevent the storage space from being occupied by too many log files, thus ensuring the normal operation of the device. Moreover, it can also improve the system performance: reducing unnecessary log files can improve the system's response speed and processing ability, especially when the storage space is tight. And a reasonable log retention strategy can ensure that necessary log information can still be obtained in case of a failure, helping technicians to diagnose problems.

[0050] Of course, in specific embodiments, the time range for log retention can be determined according to the actual storage space of the terminal device, to retain the operation logs within one week or within three days.

[0051] Step S200, during the operation of the terminal device, save the relevant operation logs locally according to the preset log retention logic, and delete the expired log files;

[0052] In the present invention, during the actual operation of the device, the log information is managed and stored in real time according to the previously set rules. This process ensures that important operation information can be effectively recorded during the operation of the device, and at the same time, the storage space will not be insufficient due to the accumulation of log files.

[0053] Specifically, regarding the real-time saving of operation logs: When the terminal device is running, the present invention will continuously monitor the running state of the device according to the preset log saving logic, and save relevant operation logs (such as error messages, operation records, performance metrics, etc.) to the local storage in real time. These log information are crucial for subsequent problem analysis and fault troubleshooting.

[0054] Regarding the deletion of expired log files, that is, while saving the logs, the present invention will regularly check the log files in the storage to determine which logs have exceeded the preset saving time range. Once expired logs are found, the system will automatically delete them to free up storage space and ensure that the device can continue to run normally.

[0055] For example, take a smart home device, such as a smart thermostat. During operation, the thermostat will record log information such as temperature changes, user settings, and fault alarms. To ensure the normal operation of the device, the developer has preset the following log saving logic in the device:

[0056] Log saving logic: The thermostat records the operation logs once an hour and saves them to the local storage.

[0057] Expired log deletion rule: Set the saving time of the log files to the last 30 days, and the logs exceeding this period will be automatically deleted.

[0058] In actual operation, the smart thermostat will generate new log files to save every hour, recording temperature, humidity, and user operations. When the storage space is close to the upper limit, the present invention will automatically check and delete the old log files that exceed 30 days. For example, if a user adjusts the settings on the thermostat and triggers a fault alarm, this information will be immediately recorded and saved. And after 30 days, the system will automatically clean up the old logs to ensure that the device continuously has enough storage space to record new information.

[0059] In this way, the smart thermostat can not only effectively manage the storage space, but also ensure that relevant operation logs can be accessed in time in case of a fault, helping technicians to diagnose and repair the fault.

[0060] It can be seen that through real-time saving and automatic deletion of expired logs, the device can efficiently manage storage resources, avoiding insufficient storage space caused by too many log files. And the important log information saved in real time can help technicians quickly locate problems when a fault occurs, ensuring timely response and solution. And it can reduce the maintenance cost, because the automated log management reduces the need for manual intervention, reduces the complexity and cost of device maintenance, and improves the overall operation efficiency.

[0061] Of course, in the specific implementation of the present invention, during the operation of the terminal device, according to the preset log saving logic, the operation logs that exceed one week or three days are automatically deleted.

[0062] Step S300: When it is detected that a terminal device is operating abnormally, obtain the saved operation logs from the corresponding terminal device.

[0063] In the embodiments of the present invention, the operation status of the terminal device is detected in real time; when it is detected that a terminal device is operating abnormally, obtain the saved operation logs from the corresponding terminal device, where the abnormal operation of the terminal device includes: abnormal operation of business program functions and abnormal operation of system software.

[0064] In the embodiments of the present invention, basic metrics such as device CPU, memory, disk, and network can be collected at the second level through a proxy program deployed on the terminal device or a cloud monitoring platform. At the same time, business metrics such as the status of business application processes, service response time, and the survival status of system key services (such as the systemd service) are monitored to form a multi-dimensional device health assessment model.

[0065] When the monitoring engine discovers the following two types of abnormalities, it triggers log collection:

[0066] Business program abnormalities: including process crashes, API response timeouts (such as continuous occurrence of HTTP 500 errors), sudden drop in transaction success rate (such as payment failure rate breaking through the threshold), etc.

[0067] System software abnormalities: covering system-level failures such as operating system kernel error reports (such as OOM Killer triggered), file system corruption, driver loading failure, and security patches not installed.

[0068] Through the steps of the present invention, it is convenient and rapid to obtain the log information when the device is abnormal, so as to facilitate the subsequent steps to locate the problem.

[0069] In a further embodiment of the present invention, when it is detected that a terminal device is operating abnormally, it is also possible to control the automatic upload of the saved operation logs of the corresponding terminal device to a specified server for storage, for example, upload to the cloud for storage. This can avoid the situation where the log file cannot be found when the entire terminal device fails, and can further increase the security of log saving.

[0070] Step S400: Analyze the obtained operation logs of the corresponding terminal device, locate the abnormal problems of the terminal device, and give solutions to the problems.

[0071] This step involves in-depth analysis of the collected log information to identify abnormal situations in device operation and propose corresponding solutions.

[0072] Specifically, during the operation of the terminal device, the present invention records a large number of operation logs and stores them locally in the terminal device in a timely manner, saving them according to a predetermined cycle. The operation logs include normal operation records, error messages, warning prompts, etc. These logs are important bases for analyzing the device status and performance.

[0073] When the terminal device has an abnormality, it will timely obtain the operation logs corresponding to the terminal device and parse the operation logs. The parsing process includes screening, classifying, and analyzing the log content. By using specific tools or algorithms, potential abnormal patterns or error messages in the logs can be identified. For example, a specific error code may appear frequently, indicating a certain fault.

[0074] Regarding locating abnormal problems: Through the analysis of the parsing results, the present invention can determine the root cause of the device abnormality. For example, if the log shows that the readings of the sensor exceed the preset range, it may mean a sensor failure or external environmental influence.

[0075] And the present invention will also give solutions to the problems. That is, after determining the abnormal problem, the present invention will formulate corresponding solutions based on the understanding of the problem. This may include restarting the device, software updating, replacing faulty components, or adjusting the device settings.

[0076] For example, assume that in an automated warehousing system used by a logistics company, there are multiple robots responsible for handling goods. These robots will regularly generate operation logs to record their operation status and any abnormal situations. One day, a robot had frequent downtime, resulting in a decline in work efficiency; by implementing the present invention, the following steps will be executed:

[0077] Step of obtaining logs: First, extract relevant data from the operation logs of the robot and find that the log records the error message of "motor overload" multiple times.

[0078] Step of log parsing: By parsing the logs, it is understood that within a specific time period, the robot had an overload problem when handling heavy goods, and this problem is related to a specific operation mode.

[0079] Step of locating abnormal problems: After analysis, it is found that when the robot processes certain specific types of goods, it exceeds its designed load-bearing capacity, resulting in frequent motor overload.

[0080] Then give solutions: For this problem, the present invention will automatically suggest software updating for the robot to optimize its load management algorithm, and suggest classifying the goods to avoid overloading. In addition, increasing the number of robots can also be considered to share the load.

[0081] In this way, through the present invention, not only can the operation problems of the robot be solved in a timely manner, but also the overall work efficiency can be improved by improving the operation process and equipment management. And it also has the following advantages:

[0082] 1) It can quickly respond to faults: By timely parsing the operation logs, equipment problems can be quickly located, thereby reducing equipment downtime and improving the overall operation efficiency.

[0083] 2) It can improve the accuracy of fault diagnosis: Systematic log analysis can help technicians more accurately identify the root cause of problems, avoiding blind guessing and unnecessary interventions.

[0084] 3) It can optimize the maintenance strategy: By analyzing historical logs, enterprises can identify common fault patterns, thereby optimizing the maintenance strategy and reducing the probability of future faults.

[0085] In summary, the parsing and abnormal location of the operation logs of the terminal equipment by the present invention can not only quickly solve problems, but also provide an important reference basis for the long-term operation of enterprises, and optimize the use and maintenance strategies of equipment.

[0086] In a further embodiment, the step S400 specifically includes:

[0087] S401. Parse the operation logs of the corresponding terminal equipment obtained;

[0088] In this step, the operation logs of the terminal equipment with abnormalities are parsed. The content of the operation log parsing in the embodiment of the present invention includes the following aspects:

[0089] Timestamp: The time and date of each log record, helping to track the specific moment when the event occurred;

[0090] Log level: Indicates the importance or urgency of the log. Common levels are INFO, WARNING, ERROR, and FATAL;

[0091] Event type: Describes the type of event recorded in the log, such as device startup, stop, fault, alarm trigger, etc.;

[0092] Device status: Records the current status of the device, including information such as normal, faulty, standby, maintenance, etc.;

[0093] Error code and information: Specific error codes and their descriptions, helping technicians quickly identify the nature of the problem;

[0094] Operation record: Records of operations performed by users or the system, including commands, setting changes, etc., helping to analyze the relationship between operations and problems;

[0095] Performance metrics: such as CPU usage, memory usage, network traffic, etc. These data can help evaluate the performance and load conditions of the device;

[0096] Exception information: detailed descriptions of any abnormal situations, such as abnormal sensor readings, communication failures, etc.;

[0097] Context information: context information related to the event, such as running tasks, data being processed, etc., to help understand the background of the event occurrence;

[0098] System resource usage: record the usage of system resources, such as disk space, network bandwidth, etc., to help identify resource bottlenecks;

[0099] By parsing this content, it is possible to more comprehensively understand the operating status of the device, quickly locate problems, and formulate corresponding solutions.

[0100] S402. According to the parsed content of the running log, locate the location and cause of the abnormal problem of the terminal device;

[0101] In the embodiment of this step, the content of the running log will be parsed to locate the location and cause of the abnormal problem of the terminal device.

[0102] In the embodiment of the present invention, regarding the steps of locating abnormal problems: First, obtain the running logs of relevant devices and sort out the parts that need to be analyzed. This usually includes the latest log records, especially the logs before and after the device has an abnormality. Then, filter out the keywords and events related to the abnormality from the logs, such as error codes, warning messages, device status changes, etc. Pay attention to the records with a higher log level (such as error or fatal).

[0103] Then perform timeline analysis. According to the timestamps, arrange the log events in chronological order and observe the operations and status changes before and after the abnormality occurs. This helps to determine the occurrence time of the abnormality and the associated operations.

[0104] Then analyze the relationships between different log entries to find the cause and effect that may lead to the abnormality. For example, whether a certain operation was performed before the abnormality occurred, or whether multiple abnormalities occurred simultaneously.

[0105] Regarding identifying abnormal patterns, abnormal patterns can be identified by comparing the logs during normal operation with the logs during the abnormality. For example, whether a certain specific operation or condition is always related to a failure.

[0106] Then locate the problem location. Specifically, in combination with the architecture and functions of the device, associate the parsed abnormal information with specific device components or functional modules to determine the location where the problem occurs.

[0107] The present invention will also analyze the root cause. Specifically, by deeply analyzing the problem location, the root cause leading to the anomaly can be found, which may be hardware failure, software defect, configuration error, or external environmental factors, etc.

[0108] S403. According to the location and cause of the abnormal problem of the positioning terminal device, search the preset expert library to find the corresponding problem solution and output it.

[0109] In the embodiment of the present invention, according to the location and cause of the abnormal problem of the positioning terminal device, the preset expert library will be searched to find the corresponding problem solution and output it. Among them, the preset expert library pre-stores the solutions to various abnormal problems of the terminal device, which is convenient for the present invention to find the corresponding solution in time when parsing the abnormal log of the terminal device.

[0110] For example, taking an industrial robot used by a manufacturing enterprise that frequently stops on the production line as an example, when implementing the present invention, the problem is located by parsing the operation log, including the following steps:

[0111] Collect logs: Extract the operation logs of the recent few days from the control system of the robot and parse the operation logs.

[0112] Screen key log information: When multiple "motor overload" error messages appear in the parsed log and the log level of these messages is ERROR, they are screened as key log information.

[0113] Then perform timeline analysis: Control arranges these error messages in chronological order and finds that the motor overload error usually occurs when the robot is carrying heavy objects.

[0114] Perform associated event analysis: Further analysis reveals that before the overload error occurs, the robot will execute a specific task, that is, carry a certain specific specification of goods.

[0115] Identify abnormal patterns: By comparing the logs during normal operation, it is found that the motor overload error only frequently appears when carrying this specific kind of goods.

[0116] Then locate the problem location: According to the analysis, the problem is located in the motor and load management system of the robot, and it is confirmed that the motor exceeds its designed load-bearing capacity when handling a specific load. The specific reason for the analysis is that the weight of the goods is not correctly identified, resulting in the robot failing to reasonably distribute the load during handling, thus causing motor overload.

[0117] Then the present invention will find the corresponding problem solution from the preset expert library and output it. Specifically, based on the above analysis, the matching solutions include the following measures:

[0118] Optimize the software algorithm: Update the control software of the robot to ensure accurate identification and management of the load when carrying heavy objects.

[0119] Conduct hardware inspections: Check the motors and sensors to ensure they are working properly, and consider installing more powerful motors to accommodate heavier loads.

[0120] Formulate operation specifications: Provide training for operators to ensure appropriate measures are taken when handling specific goods to avoid overloading.

[0121] It can be seen that through this systematic log parsing and analysis, the present invention can quickly locate problems and propose effective solutions, thereby improving the operating efficiency and reliability of the equipment.

[0122] The following further describes the present invention in detail through another specific application embodiment. As Figure 2 shown, a processing method for obtaining the complete operation log of an unattended device in this specific application embodiment includes the following steps:

[0123] S10. Start;

[0124] S11. For the advertising screen device or the Internet of Things device, preset the log saving logic, select the time range for retaining the logs according to the actual storage space of the device (for example, retain the logs of the recent week or the recent 3 days), and enter S12.

[0125] S12. During the operation of the device, the relevant operation logs will be saved to the local by the log saving logic, and the expired log files will be deleted, and then enter S13.

[0126] S13. When it is found that a specific device is operating abnormally, the maintenance personnel can obtain the saved operation logs from the device offline, or upload the device operation logs to the specified server for storage through an instruction, and then enter S14.

[0127] S14. After obtaining the device operation logs, the device anomaly problems can be located and solved according to the log content, and then enter S15.

[0128] S15. End.

[0129] As can be seen from the above, the present invention defaults to save the logs generated by the device in recent days to the local of the device, and supports dynamically uploading the logs to the server, thereby ensuring that the logs of device operation anomalies can be obtained, enabling developers to quickly locate and solve problems according to the logs, and improving the problem-solving speed.

[0130] Exemplary device

[0131] Such as Figure 3As shown in the figure, an embodiment of the present invention provides a processing device for obtaining a complete operation log of an unattended device. The device includes:

[0132] A log saving logic preset module 310, configured to preset log saving logic in a terminal device in advance, and determine a time range for log saving according to the actual storage space of the terminal device;

[0133] A log saving control module 320, configured to save relevant operation logs to the local according to the preset log saving logic during the operation of the terminal device, and delete expired log files;

[0134] An exception obtaining module 330, configured to obtain the saved operation logs from the corresponding terminal device when it is detected that a terminal device has an abnormal operation;

[0135] A log parsing and problem location module 340, configured to parse the operation logs of the corresponding terminal device obtained, locate the abnormal problems of the terminal device and give solutions to the problems, as described above.

[0136] Based on the above embodiment, the present invention further provides an intelligent terminal, and its principle block diagram can be as Figure 4 shown. The intelligent terminal includes a processor, a memory, a network interface, a display screen, and a database connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes a processing method for obtaining a complete operation log of an unattended device. The database of the intelligent terminal is used to store a processing program for obtaining a complete operation log of an unattended device.

[0137] Those skilled in the art can understand that Figure 4 the principle block diagram shown in

[0138] merely shows the block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the intelligent terminal to which the solution of the present invention is applied. The specific intelligent terminal may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0139] Pre-set a log saving logic in the terminal device in advance, and determine the time range for log saving according to the actual storage space of the terminal device;

[0140] During the operation of the terminal device, save relevant operation logs locally according to the pre-set log saving logic, and delete expired log files;

[0141] When it is detected that a terminal device is operating abnormally, obtain the saved operation logs from the corresponding terminal device;

[0142] Parse the obtained operation logs of the corresponding terminal device, locate the abnormal problems of the terminal device and give solutions to the problems, as described above.

[0143] Among them, the step of when it is detected that a terminal device is operating abnormally and obtaining the saved operation logs from the corresponding terminal device further includes:

[0144] When it is detected that a terminal device is operating abnormally, control to automatically upload the saved operation logs of the corresponding terminal device to a specified server for storage.

[0145] Among them, the step of determining the time range for log saving according to the actual storage space of the terminal device includes:

[0146] According to the actual storage space of the terminal device, determine that the time range for log saving is to retain operation logs within one week or retain operation logs within 3 days.

[0147] Among them, the step of during the operation of the terminal device, saving relevant operation logs locally according to the pre-set log saving logic and deleting expired log files further includes:

[0148] During the operation of the terminal device, automatically delete operation logs that exceed one week or exceed 3 days according to the pre-set log saving logic.

[0149] Among them, the step of when it is detected that a terminal device is operating abnormally and obtaining the saved operation logs from the corresponding terminal device includes:

[0150] Perform real-time detection on the operation status of the terminal device;

[0151] When it is detected that a terminal device is operating abnormally, obtain the saved operation logs from the corresponding terminal device.

[0152] Among them, the abnormal operation of the terminal device includes: abnormal operation of business program functions, abnormal operation of system software.

[0153] Among them, the step of parsing the obtained operation logs of the corresponding terminal device, locating the abnormal problems of the terminal device and giving solutions to the problems includes:

[0154] Parse the obtained operation logs of the corresponding terminal device;

[0155] Locate the occurrence location and cause of the abnormal problem of the terminal device according to the content of the parsed operation logs;

[0156] According to the located occurrence location and cause of the abnormal problem of the terminal device, search the preset expert library to find the corresponding problem solution and output it, as described above.

[0157] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided by the present invention can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0158] In summary, the present invention provides a processing method, device, intelligent terminal, and storage medium for obtaining complete operation logs of unattended devices. By keeping the operation logs of the device in the recent few days locally, the present invention avoids the problem of only having short-term operation logs in the system, enabling maintenance personnel to capture effective operation logs through the device or directly upload the logs to the cloud server when discovering device anomalies. Developers can quickly locate and solve problems based on the effective logs, improving the problem-solving speed and product quality.

Claims

1. A processing method for obtaining a complete operation log of an unattended device, characterized in that: include: Pre-set the log storage logic on the terminal device and determine the time range for log storage based on the actual storage space of the terminal device; When the terminal device is running, the relevant operation logs are saved locally according to the preset log saving logic, and expired log files are deleted; When an abnormal operation of a terminal device is detected, the saved operation log is obtained from the corresponding terminal device; Analyze the operation logs of the corresponding terminal devices, locate abnormal problems of the terminal devices and provide solutions to the problems.

2. The method for obtaining a complete operation log of an unattended device according to claim 1, characterized in that: When the terminal device is detected to be operating abnormally, the step of obtaining the saved operation log from the corresponding terminal device also includes: When an abnormal operation of a terminal device is detected, the control automatically uploads the saved operation log of the corresponding terminal device to the designated server for storage.

3. The method for obtaining a complete operation log of an unattended device according to claim 1, characterized in that: The step of determining the time range for saving logs according to the actual storage space of the terminal device includes: Based on the actual storage space of the terminal device, determine the time range for keeping logs: keep operation logs within one week or keep operation logs within three days.

4. The method for obtaining a complete operation log of an unattended device according to claim 1, characterized in that: The step of saving relevant operation logs locally and deleting expired log files during the operation of the terminal device according to the preset log saving logic also includes: When the terminal device is running, the operation logs older than 3 days or one week will be automatically deleted according to the preset log saving logic.

5. The method for obtaining a complete operation log of an unattended device according to claim 1, characterized in that: When it is detected that a terminal device is operating abnormally, the step of obtaining a saved operation log from the corresponding terminal device includes: Conduct real-time detection of the operation status of terminal equipment; When an abnormal operation of a terminal device is detected, the saved operation log is obtained from the corresponding terminal device.

6. The method for obtaining a complete operation log of an unattended device according to claim 1, characterized in that: The terminal equipment operation abnormality includes: business program function operation abnormality and system software operation abnormality.

7. The method for obtaining a complete operation log of an unattended device according to claim 1, characterized in that: The step of parsing the acquired operation log of the corresponding terminal device, locating the abnormal problem of the terminal device and providing a solution to the problem includes: Parsing the acquired operation log of the corresponding terminal device; Based on the parsed operation log content, locate the location and cause of abnormal problems in terminal equipment; According to the location and cause of abnormal problems in terminal equipment, the preset expert database is searched to find the corresponding problem solutions and output them.

8. A processing device for obtaining a complete operation log of an unattended device, characterized in that: The device comprises: The log saving logic presetting module is used to pre-set the log saving logic in the terminal device and determine the time range for log saving according to the actual storage space of the terminal device; The log saving control module is used to save the relevant operation logs to the local computer and delete the expired log files according to the preset log saving logic when the terminal device is running; The abnormality acquisition module is used to obtain the saved operation log from the corresponding terminal device when an abnormal operation of the terminal device is detected; The log analysis and problem location module is used to analyze the operation logs of the corresponding terminal devices, locate abnormal problems of the terminal devices and provide solutions to the problems.

9. An intelligent terminal, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include being used to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of claims 1 to 7.