Log uploading method and device, terminal and storage medium
By sending log upload instructions to the on-board terminal and monitoring progress information, the problem of log upload progress synchronization of on-board terminal log upload is solved, and the efficiency and accuracy of log upload monitoring is improved.
Patent Information
- Application Number
- CN202411981495.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-06
AI Technical Summary
The on-board terminal cannot actively upload logs, and needs to control the terminal to send commands. When the communication is unstable, the log upload progress synchronization problem is serious.
By sending log upload instructions to the device terminal and listening to the progress information it sends. If the progress information is listened to within the preset time, a feedback confirmation instruction is sent; otherwise, the log termination upload instruction is sent.
Improve the efficiency and accuracy of log upload monitoring, ensuring real-time synchronous display of log upload progress.
Smart Images

Figure CN119946042A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Vehicles, and in particular to a log uploading method, device, terminal and storage medium. Background Art
[0002] With the development of technology and economy in the automotive field, the number of intelligent control vehicles has increased significantly in recent years. The log data generated by the operation of each module in the vehicle reflects the operating status of the intelligent control system. Therefore, maintenance engineers usually use external diagnostic equipment to interact with the vehicle to obtain the log data of the entire vehicle, so as to further diagnose the vehicle status based on the log data.
[0003] At present, the logs of the vehicle-mounted terminal and the control terminal (terminal device used to control the vehicle-mounted terminal) are stored locally respectively. Among them, the vehicle-mounted terminal cannot actively upload logs, and the control terminal needs to send instructions to notify the vehicle-mounted terminal to upload logs to the server. However, when the communication between the vehicle-mounted terminal and the control terminal is unstable, the vehicle-mounted terminal cannot receive the vehicle message and believes that the vehicle-mounted terminal has timed out from uploading the log to the server. In addition, the log of the vehicle terminal will be uploaded to the server normally when there is no network connection with the control terminal, but the log progress displayed on the control terminal is not synchronized with the log progress of the server uploaded by the vehicle terminal.
[0004] Therefore, how to control the terminal to synchronously display the progress of the log upload of the vehicle terminal when the vehicle terminal uploads the log is a problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of this application is to provide a log uploading method, device, terminal and storage medium, aiming to improve the efficiency and accuracy of vehicle log uploading monitoring.
[0006] In a first aspect, the present application provides a log uploading method, the log uploading method comprising the following steps:
[0007] Sending a log upload instruction to the device terminal, so that the device terminal uploads the first log to the server according to the log upload instruction;
[0008] Monitoring the log upload progress information sent by the device terminal;
[0009] If the log upload progress information is monitored within the preset time, a feedback confirmation instruction is sent to the device terminal;
[0010] If the log upload progress information is not monitored within the preset time, a log upload termination instruction is sent to the device terminal.
[0011] In a second aspect, the present application provides another log uploading method, the log uploading method comprising the following steps:
[0012] Receiving and responding to a log upload instruction, and uploading a first log to a server;
[0013] Send log upload progress information to the control terminal;
[0014] Receive and respond to the feedback confirmation instruction sent by the device terminal, and send updated log upload progress information to the control terminal.
[0015] In a third aspect, the present application further provides a log uploading device, the log uploading device comprising a sending module and a monitoring module, wherein:
[0016] The sending module is used to send a log upload instruction to the device terminal, so that the device terminal uploads the first log to the server according to the log upload instruction;
[0017] The monitoring module is used to monitor the log upload progress information sent by the device terminal;
[0018] The sending module is further configured to send a feedback confirmation instruction to the device terminal if the log upload progress information is monitored within a preset time;
[0019] The sending module is further configured to send a log upload termination instruction to the device terminal if the log upload progress information is not monitored within a preset time.
[0020] In a fourth aspect, the present application also provides a control terminal, which includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the log upload method as described above are implemented.
[0021] In a fifth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the log uploading method as described above are implemented.
[0022] The present application provides a log uploading method, device, terminal and storage medium. The present application sends a log uploading instruction to a device terminal so that the device terminal uploads a first log to a server according to the log uploading instruction; and monitors the log uploading progress information sent by the device terminal; if the log uploading progress information is monitored within a preset time, a feedback confirmation instruction is sent to the device terminal; if the log uploading progress information is not monitored within the preset time, a log uploading termination instruction is sent to the device terminal. In the present application, by sending a log uploading instruction to a device terminal, the device terminal can upload the first log in a timely manner, and monitor the log uploading progress information of the device terminal. If the log uploading progress information is monitored within the preset time, it is determined that the first log uploading of the device terminal is normal. If the log uploading progress information is not monitored within the preset time, it is determined that the first log uploading of the device terminal is abnormal, and a log uploading termination instruction is sent to the device terminal, which greatly improves the efficiency and accuracy of real-time monitoring of log uploading. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 A flow chart of a log uploading method provided in an embodiment of the present application;
[0025] Figure 2 A flowchart of another log uploading method provided in an embodiment of the present application;
[0026] Figure 3 A schematic block diagram of a log uploading device provided in an embodiment of the present application;
[0027] Figure 4 A schematic block diagram of another log uploading device provided in an embodiment of the present application;
[0028] Figure 5 A schematic block diagram of the structure of a control terminal provided in an embodiment of the present application;
[0029] Figure 6 A schematic block diagram of the structure of a device terminal provided in an embodiment of the present application.
[0030] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0033] With the development of technology and economy in the automotive field, the number of intelligent control vehicles has increased significantly in recent years. The log data generated by the operation of each module in the vehicle reflects the operating status of the intelligent control system. Therefore, maintenance engineers usually use external diagnostic equipment to interact with the vehicle to obtain the log data of the entire vehicle, so as to further diagnose the vehicle status based on the log data.
[0034] At present, the logs of the vehicle-mounted terminal and the control terminal (terminal device used to control the vehicle-mounted terminal) are stored locally respectively. Among them, the vehicle-mounted terminal cannot actively upload logs, and the control terminal needs to send instructions to notify the vehicle-mounted terminal to upload logs to the server. However, when the communication between the vehicle-mounted terminal and the control terminal is unstable, the vehicle-mounted terminal cannot receive the vehicle message and believes that the vehicle-mounted terminal has timed out from uploading the log to the server. In addition, the log of the vehicle terminal will be uploaded to the server normally when there is no network connection with the control terminal, but the log progress displayed on the control terminal is not synchronized with the log progress of the server uploaded by the vehicle terminal.
[0035] To solve the above problems, the embodiments of the present application provide a log uploading method, device, terminal and storage medium. The log uploading method includes sending a log uploading instruction to a device terminal, so that the device terminal uploads a first log to a server according to the log uploading instruction; monitoring the log uploading progress information sent by the device terminal; if the log uploading progress information is monitored within a preset time, sending a feedback confirmation instruction to the device terminal; if the log uploading progress information is not monitored within the preset time, sending a log uploading termination instruction to the device terminal.
[0036] The embodiment of the present application provides a log uploading method, device, terminal and storage medium. The log uploading method can be applied to a control terminal, which can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant and a wearable device.
[0037] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0038] Please refer to Figure 1 , Figure 1 A flow chart of a log uploading method provided in an embodiment of the present application.
[0039] like Figure 1 As shown, the log uploading method includes steps S101 to S104.
[0040] Step S101: Send a log upload instruction to a device terminal, so that the device terminal uploads a first log to a server according to the log upload instruction.
[0041] The log uploading method is applied to the control terminal, and the device terminal can be determined according to the actual situation, and the present invention does not specifically limit this. For example, the device terminal can be a car computer. The control terminal can be a mobile phone.
[0042] In some embodiments, when the control terminal obtains the log upload command, it creates a log upload record table according to the log upload command, and the log upload record table is used to record the log upload record table establishment identifier and the second log upload identifier of the control terminal uploading the second log to the server; the second log and the log upload record table are uploaded to the server, and the second log is the log generated by the interaction between the control terminal and the device terminal. When the control terminal receives the log upload command, it can accurately create the log upload record table and upload the second log and the log upload record table to the server, which greatly improves the efficiency and accuracy of uploading the second log.
[0043] In some embodiments, the control terminal obtains the log upload command including: the user clicks the log upload control in the control terminal to generate the log upload command. The log upload control includes a physical button or a touch button. By the user clicking the log upload control in the control terminal, the log upload command can be accurately obtained.
[0044] In some embodiments, the control terminal generates a log upload command at a preset time interval, so that the control terminal creates a log upload record table according to the log upload command, uploads the second log and the log upload record table to the server, and sends a log upload instruction to the device terminal. Among them, the preset time interval can be set according to actual conditions, and the implementation of the present invention does not make specific limitations on this. For example, the preset time interval can be set to 8 hours. By generating a log upload command at a preset time interval, the control terminal and the device terminal can upload logs on time, which greatly improves the efficiency and accuracy of log upload.
[0045] It should be noted that the log upload record table includes a log upload record table establishment identifier and a second log upload identifier for recording the log upload record table establishment identifier and the control terminal uploading the second log to the server. It can be understood that if the log upload record table is successfully established, the log upload record table establishment identifier in the log upload record table is the first identifier; if the log upload record table establishment fails, the log upload record table establishment identifier in the log upload record table is the second identifier; if the control terminal successfully uploads the second log to the server, the second log upload identifier in the log upload record table is the first identifier; if the control terminal fails to upload the second log to the server, the second log upload identifier in the log upload record table is the second identifier.
[0046] In some embodiments, when the control terminal obtains the log upload command, it generates a log upload instruction and sends the log upload instruction to the device terminal. After receiving the log upload instruction, the device terminal uploads the first log to the server according to the log upload instruction. After receiving the log upload instruction, the device terminal can transmit the first log to the server in a timely manner, which greatly improves the efficiency and accuracy of log upload.
[0047] In some embodiments, after receiving the log upload instruction, the device terminal obtains the log file to be uploaded according to the log upload instruction, obtains the first log, and uploads each log file in the first log to the server.
[0048] Step S102: monitoring the log upload progress information sent by the device terminal.
[0049] The log upload progress information is information about the log file size of the first log sent by the device terminal to the server as a percentage of the total log file size of the first log.
[0050] In some embodiments, after the device terminal transmits the first log to the server, it sends a first log upload size query request to the server, and receives the first log upload size information fed back by the server based on the first log upload size query request; according to the first log upload size information and the total file size of the first log, the log upload progress information is determined, and the log upload progress information is sent to the control terminal. By sending the first log upload size query request to the server, the first log upload size information that has been uploaded can be accurately queried, and according to the first log upload size information and the total file size of the first log, the log upload progress information can be accurately determined, which greatly improves the accuracy and efficiency of determining the log upload progress information.
[0051] In some embodiments, the device terminal sends a first log upload size query request to the server at a preset time interval, and receives the first log upload size information fed back by the server based on the first log upload size query request; determines the log upload progress information according to the first log upload size information and the total file size of the first log, and sends the log upload progress information to the control terminal. The preset time interval can be set according to actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the preset time interval can be set to 3 seconds.
[0052] Step S103: If the log upload progress information is monitored within a preset time, a feedback confirmation instruction is sent to the device terminal.
[0053] The preset time can be set according to actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the preset time can be set to 5 seconds. The feedback confirmation instruction is used to indicate that the control terminal has received the log upload progress information.
[0054] In some embodiments, the control terminal monitors the log upload progress information within a preset time, determines that the device terminal is in the stage of normally uploading the first log, sends a feedback confirmation instruction to the device terminal, and displays the log upload progress information, and continues to loop the steps of monitoring the log upload progress information sent by the device terminal until the first log has been uploaded, or the first log upload fails.
[0055] In some embodiments, the control terminal sends a feedback confirmation instruction to the device terminal. After receiving the feedback confirmation instruction, the device terminal sends a first log upload size query request to the server, and receives the first log upload size information fed back by the server based on the first log upload size query request; determines the log upload progress information based on the first log upload size information and the total file size of the first log, and sends the log upload progress information to the control terminal.
[0056] Step S104: If the log upload progress information is not monitored within the preset time, a log upload termination instruction is sent to the device terminal.
[0057] In some embodiments, if the log upload progress information is not monitored within the preset time and it is determined that the first log upload fails, the device terminal sends a log upload termination instruction so that the device terminal stops uploading the first log to the server according to the log upload termination instruction.
[0058] In some embodiments, the control terminal receives the cancel first log upload information sent by the device terminal, and determines that the first log upload fails. After receiving the cancel first log upload information, the control terminal can accurately know that the log upload fails.
[0059] In some embodiments, if the first log upload fails, the log upload record table establishment identifier is the second identifier and / or the second log upload identifier is the second identifier, a log upload record table deletion request is sent to the server so that the server deletes the log upload record table according to the log upload record table deletion request. Wherein, the second identifier represents that the log upload record table establishment failed, or the second log upload failed. When there is at least one of the first log upload failure, the log upload record table establishment failure and the second log upload failure, it is determined that the log upload fails, and a log upload record table deletion request is sent to the server so that the server deletes the log upload record table.
[0060] In some embodiments, the progress information in the log upload progress information is 100%, the log upload record table is established with the first identifier and the second log upload identifier as the first identifier, and it is determined that the first log upload is successful and the second log upload is successful, that is, the first log and the second log associated this time are both uploaded successfully.
[0061] The log upload method provided in the above embodiment sends a log upload instruction to the device terminal so that the device terminal uploads the first log to the server according to the log upload instruction; and monitors the log upload progress information sent by the device terminal; if the log upload progress information is monitored within the preset time, a feedback confirmation instruction is sent to the device terminal; if the log upload progress information is not monitored within the preset time, a log upload termination instruction is sent to the device terminal. In the present application, by sending a log upload instruction to the device terminal, the device terminal can upload the first log in time, and monitor the log upload progress information of the device terminal. If the log upload progress information is monitored within the preset time, it is determined that the first log upload of the device terminal is normal. If the log upload progress information is not monitored within the preset time, it is determined that the first log upload of the device terminal is abnormal, and a log upload termination instruction is sent to the device terminal, which greatly improves the efficiency and accuracy of log upload monitoring.
[0062] Please refer to Figure 2 , Figure 2 A flowchart of another log uploading method provided in an embodiment of the present application.
[0063] like Figure 2 As shown, the log uploading method includes steps S201 to S203.
[0064] Step S201: Receive and respond to a log upload instruction, and upload a first log to a server.
[0065] Among them, the log uploading method is applied to the device terminal.
[0066] In some embodiments, when the control terminal obtains the log upload command, it creates a log upload record table according to the log upload command, and the log upload record table is used to record the log upload record table establishment identifier and the second log upload identifier of the control terminal uploading the second log to the server; the second log and the log upload record table are uploaded to the server, and the second log is the log generated by the interaction between the control terminal and the device terminal. When the control terminal receives the log upload command, it can accurately create the log upload record table and upload the second log and the log upload record table to the server, which greatly improves the efficiency and accuracy of uploading the second log.
[0067] In some embodiments, the control terminal generates a log upload command at a preset time interval, so that the control terminal creates a log upload record table according to the log upload command, uploads the second log and the log upload record table to the server, and sends a log upload instruction to the device terminal.
[0068] In some embodiments, when the control terminal obtains the log upload command, it generates a log upload instruction and sends the log upload instruction to the device terminal. After receiving the log upload instruction, the device terminal uploads the first log to the server according to the log upload instruction. After receiving the log upload instruction, the device terminal can transmit the first log to the server in a timely manner, which greatly improves the efficiency and accuracy of log upload.
[0069] In some embodiments, after receiving the log upload instruction, the device terminal obtains the log file to be uploaded according to the log upload instruction, obtains the first log, and uploads each log file in the first log to the server.
[0070] Step S202: Send log upload progress information to the control terminal.
[0071] In some embodiments, after the device terminal transmits the first log to the server, it sends a first log upload size query request to the server, and receives the first log upload size information fed back by the server based on the first log upload size query request; according to the first log upload size information and the total file size of the first log, the log upload progress information is determined, and the log upload progress information is sent to the control terminal. By sending the first log upload size query request to the server, the first log upload size information that has been uploaded can be accurately queried, and according to the first log upload size information and the total file size of the first log, the log upload progress information can be accurately determined, which greatly improves the accuracy and efficiency of determining the log upload progress information.
[0072] Step S203: receiving and responding to the feedback confirmation instruction sent by the device terminal, and sending updated log upload progress information to the control terminal.
[0073] In some embodiments, the control terminal monitors the log upload progress information within a preset time, determines that the device terminal is in the stage of uploading the first log normally, sends a feedback confirmation instruction to the device terminal, and displays the log upload progress information. The device terminal receives the feedback confirmation instruction, sends a first log upload size query request to the server, and receives the first log upload size information fed back by the server based on the first log upload size query request; determines the updated log upload progress information based on the first log upload size information and the total file size of the first log, and sends the updated log upload progress information to the control terminal.
[0074] In some embodiments, if the first log upload fails, the log upload record table establishment identifier is the second identifier and / or the second log upload identifier is the second identifier, a log upload record table deletion request is sent to the server so that the server deletes the log upload record table according to the log upload record table deletion request. Wherein, the second identifier represents that the log upload record table establishment failed, or the second log upload failed. When there is at least one of the first log upload failure, the log upload record table establishment failure and the second log upload failure, it is determined that the log upload fails, and a log upload record table deletion request is sent to the server so that the server deletes the log upload record table.
[0075] In some embodiments, the progress information in the log upload progress information is 100%, the log upload record table is established with the first identifier and the second log upload identifier as the first identifier, and it is determined that the first log upload is successful and the second log upload is successful, that is, the first log and the second log associated this time are both uploaded successfully.
[0076] The above log upload method receives and responds to the log upload instruction, and uploads the first log to the server; sends the log upload progress information to the control terminal; receives and responds to the feedback confirmation instruction sent by the device terminal, and sends the updated log upload progress information to the control terminal. The device terminal in this application continuously sends the log upload progress information to the control terminal, so that the control terminal can accurately know the real-time progress of the log upload, and control the log upload based on the real-time progress of the log upload, which greatly improves the efficiency and accuracy of log upload monitoring.
[0077] See also Figure 3 , Figure 3 A schematic block diagram of a log uploading device provided in an embodiment of the present application.
[0078] like Figure 3 As shown, the log uploading device 300 includes a sending module 310 and a monitoring module 320, wherein:
[0079] The sending module 310 is used to send a log upload instruction to the device terminal, so that the device terminal uploads the first log to the server according to the log upload instruction;
[0080] The monitoring module 320 is used to monitor the log upload progress information sent by the device terminal;
[0081] The sending module 310 is further configured to send a feedback confirmation instruction to the device terminal if the log upload progress information is monitored within a preset time;
[0082] The sending module 310 is further configured to send a log upload termination instruction to the device terminal if the log upload progress information is not monitored within a preset time.
[0083] In some embodiments, the log uploading device 300 is further used for:
[0084] The log upload progress information is displayed, and the step of monitoring the log upload progress information sent by the device terminal is continuously and cyclically executed until the first log has been uploaded completely or the first log upload fails.
[0085] In some embodiments, the log uploading device 300 is further used for:
[0086] If the log upload progress information is not monitored within the preset time, determining that the first log upload fails;
[0087] If the first log upload cancellation information sent by the device terminal is received, it is determined that the first log upload fails.
[0088] In some embodiments, the log uploading device 300 is further used for:
[0089] Creating a log upload record table, wherein the log upload record table is used to record a log upload record table establishment identifier and a second log upload identifier of the control terminal uploading a second log to the server;
[0090] The second log and the log upload record table are uploaded to the server, where the second log is a log generated by the interaction between the control terminal and the device terminal.
[0091] In some embodiments, the log uploading device 300 is further used for:
[0092] After determining that the first log has been uploaded according to the log upload progress information, determining whether the log upload record table establishment identifier and the second log upload identifier are both first identifiers;
[0093] If the log upload record table establishment identifier and the second log upload identifier are both the first identifier, it is determined that the first log and the second log are both uploaded successfully.
[0094] In some embodiments, the log uploading device 300 is further used for:
[0095] If the first log upload fails, the log upload record table establishment identifier is the second identifier and / or the second log upload identifier is the second identifier, a log upload record table deletion request is sent to the server, so that the server deletes the log upload record table according to the log upload record table deletion request.
[0096] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-mentioned log uploading device can refer to the corresponding process in the above-mentioned log uploading method embodiment, and will not be repeated here.
[0097] See also Figure 4 , Figure 4 A schematic block diagram of another log uploading device provided in an embodiment of the present application.
[0098] like Figure 4 As shown, the log uploading device 400 includes a receiving module 410, an uploading module 420 and a sending module 430, wherein:
[0099] The receiving module 410 is used to receive and respond to the log upload instruction;
[0100] The uploading module 420 is used to upload the first log to the server;
[0101] The sending module 430 is used to send log upload progress information to the control terminal;
[0102] The sending module 430 is further configured to receive and respond to a feedback confirmation instruction sent by the device terminal, and send updated log upload progress information to the control terminal.
[0103] In some embodiments, the sending module 430 is further used to:
[0104] Sending a first log upload size query request to the server, and receiving first log upload size information fed back by the server based on the first log upload size query request;
[0105] The log upload progress information is determined according to the first log upload size information and the total file size of the first log, and the log upload progress information is sent to the control terminal.
[0106] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-mentioned log uploading device can refer to the corresponding process in the above-mentioned log uploading method embodiment, and will not be repeated here.
[0107] See also Figure 5 , Figure 5 A schematic block diagram of the structure of a control terminal provided in an embodiment of the present application.
[0108] like Figure 5 As shown, the control terminal 500 includes a processor 502 and a memory 503 connected via a system bus 501, wherein the memory 503 may include a storage medium and an internal memory.
[0109] The storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any log uploading method.
[0110] The processor 502 is used to provide computing and control capabilities to support the operation of the entire control terminal.
[0111] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any log uploading method.
[0112] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the control terminal to which the scheme of the present application is applied. The specific control terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0113] It should be understood that the processor 502 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0114] In one embodiment, the processor 502 is used to run a computer program stored in the memory to implement the following steps:
[0115] Sending a log upload instruction to the device terminal, so that the device terminal uploads the first log to the server according to the log upload instruction;
[0116] Monitoring the log upload progress information sent by the device terminal;
[0117] If the log upload progress information is monitored within the preset time, a feedback confirmation instruction is sent to the device terminal;
[0118] If the log upload progress information is not monitored within the preset time, a log upload termination instruction is sent to the device terminal.
[0119] In one embodiment, after implementing the step of sending a feedback confirmation instruction to the device terminal if the log upload progress information is monitored within a preset time, the processor 502 is further configured to implement:
[0120] The log upload progress information is displayed, and the step of monitoring the log upload progress information sent by the device terminal is continuously and cyclically executed until the first log has been uploaded completely or the first log upload fails.
[0121] In one embodiment, the processor 502 is further configured to implement:
[0122] If the log upload progress information is not monitored within the preset time, determining that the first log upload fails;
[0123] If the first log upload cancellation information sent by the device terminal is received, it is determined that the first log upload fails.
[0124] In one embodiment, before implementing the sending of the log upload instruction to the device terminal, the processor 502 is further configured to implement:
[0125] Creating a log upload record table, wherein the log upload record table is used to record a log upload record table establishment identifier and a second log upload identifier of the control terminal uploading a second log to the server;
[0126] The second log and the log upload record table are uploaded to the server, where the second log is a log generated by the interaction between the control terminal and the device terminal.
[0127] In one embodiment, the processor 502 is further configured to implement:
[0128] After determining that the first log has been uploaded according to the log upload progress information, determining whether the log upload record table establishment identifier and the second log upload identifier are both first identifiers;
[0129] If the log upload record table establishment identifier and the second log upload identifier are both the first identifier, it is determined that the first log and the second log are both uploaded successfully.
[0130] In one embodiment, the processor 502 is further configured to implement:
[0131] If the first log upload fails, the log upload record table establishment identifier is the second identifier and / or the second log upload identifier is the second identifier, a log upload record table deletion request is sent to the server, so that the server deletes the log upload record table according to the log upload record table deletion request.
[0132] It should be noted that technicians in the relevant field can clearly understand that for the convenience and brevity of description, the specific working process of the control terminal described above can refer to the corresponding process in the aforementioned log upload method embodiment, and will not be repeated here.
[0133] See also Figure 6 , Figure 6 A schematic block diagram of the structure of a device terminal provided in an embodiment of the present application.
[0134] like Figure 6 As shown, the device terminal 600 includes a processor 602 and a memory 603 connected via a system bus 601, wherein the memory 603 may include a storage medium and an internal memory.
[0135] The storage medium may store a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor 602 may execute any log uploading method.
[0136] The processor 602 is used to provide computing and control capabilities to support the operation of the entire control terminal.
[0137] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any log uploading method.
[0138] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the device terminal to which the scheme of the present application is applied. The specific device terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0139] It should be understood that the processor 602 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0140] In one embodiment, the processor 602 is used to run a computer program stored in the memory to implement the following steps:
[0141] Receiving and responding to a log upload instruction, and uploading a first log to a server;
[0142] Send log upload progress information to the control terminal;
[0143] Receive and respond to the feedback confirmation instruction sent by the device terminal, and send updated log upload progress information to the control terminal.
[0144] In one embodiment, when implementing the sending of log upload progress information to the control terminal, the processor 602 is used to implement:
[0145] Sending a first log upload size query request to the server, and receiving first log upload size information fed back by the server based on the first log upload size query request;
[0146] The log upload progress information is determined according to the first log upload size information and the total file size of the first log, and the log upload progress information is sent to the control terminal.
[0147] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device terminal described above can refer to the corresponding process in the aforementioned log uploading method embodiment, which will not be repeated here.
[0148] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the log uploading method of the present application.
[0149] The computer-readable storage medium may be an internal storage unit of the control terminal and / or device terminal described in the aforementioned embodiment, such as a hard disk or memory of the control terminal and / or device terminal. The computer-readable storage medium may be non-volatile or volatile. The computer-readable storage medium may also be an external storage device of the control terminal and / or device terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the control terminal and / or device terminal.
[0150] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0151] It should also be understood that the term "and / or" used in the present specification refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0152] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.
Claims
1. A log uploading method, characterized in that: Applied to a control terminal, the method comprises: Sending a log upload instruction to the device terminal, so that the device terminal uploads the first log to the server according to the log upload instruction; Monitoring the log upload progress information sent by the device terminal; If the log upload progress information is monitored within the preset time, a feedback confirmation instruction is sent to the device terminal; If the log upload progress information is not monitored within the preset time, a log upload termination instruction is sent to the device terminal.
2. The log uploading method according to claim 1, characterized in that: If the log upload progress information is monitored within the preset time, after sending a feedback confirmation instruction to the device terminal, the method further includes: The log upload progress information is displayed, and the step of monitoring the log upload progress information sent by the device terminal is continuously and cyclically executed until the first log has been uploaded completely or the first log upload fails.
3. The log uploading method according to claim 1, characterized in that: The method further comprises: If the log upload progress information is not monitored within the preset time, determining that the first log upload fails; If the first log upload cancellation information sent by the device terminal is received, it is determined that the first log upload fails.
4. The log uploading method according to claim 3, characterized in that: Before sending the log upload instruction to the device terminal, the method further includes: Creating a log upload record table, wherein the log upload record table is used to record a log upload record table establishment identifier and a second log upload identifier of the control terminal uploading a second log to the server; The second log and the log upload record table are uploaded to the server, where the second log is a log generated by the interaction between the control terminal and the device terminal.
5. The log uploading method according to claim 4, characterized in that: The method further comprises: After determining that the first log has been uploaded according to the log upload progress information, determining whether the log upload record table establishment identifier and the second log upload identifier are both first identifiers; If the log upload record table establishment identifier and the second log upload identifier are both the first identifier, it is determined that the first log and the second log are both uploaded successfully.
6. The log uploading method according to claim 5, characterized in that: The method further comprises: If the first log upload fails, the log upload record table establishment identifier is the second identifier and / or the second log upload identifier is the second identifier, a log upload record table deletion request is sent to the server, so that the server deletes the log upload record table according to the log upload record table deletion request.
7. A log uploading method, characterized in that: Applied to a device terminal, the method comprises: Receiving and responding to a log upload instruction, and uploading a first log to a server; Send log upload progress information to the control terminal; Receive and respond to the feedback confirmation instruction sent by the device terminal, and send updated log upload progress information to the control terminal.
8. The log uploading method according to claim 7, characterized in that: The sending of log upload progress information to the control terminal includes: Sending a first log upload size query request to the server, and receiving first log upload size information fed back by the server based on the first log upload size query request; The log upload progress information is determined according to the first log upload size information and the total file size of the first log, and the log upload progress information is sent to the control terminal.
9. A log uploading device, characterized in that: The log uploading device includes a sending module and a monitoring module, wherein: The sending module is used to send a log upload instruction to the device terminal, so that the device terminal uploads the first log to the server according to the log upload instruction; The monitoring module is used to monitor the log upload progress information sent by the device terminal; The sending module is further configured to send a feedback confirmation instruction to the device terminal if the log upload progress information is monitored within a preset time; The sending module is further configured to send a log upload termination instruction to the device terminal if the log upload progress information is not monitored within a preset time.
10. A control terminal, characterized in that: The control terminal includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the log uploading method according to any one of claims 1 to 6 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the log uploading method according to any one of claims 1 to 8 are implemented.