Method and system for downloading and acquiring LOG based on USB flash disk

The method of obtaining LOG logs through USB flash drive download, using IPC protocol communication between Android and Linux systems to generate and copy compressed packages, solving the complex and inconvenient problem of traditional log acquisition, realizing a convenient and automated log acquisition process, and improving the User experience and efficiency.

CN119206903AInactive Publication Date: 2024-12-27RIVOTEK TECH (JIANGSU) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411366357.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional LOG log acquisition method is complex and inconvenient, which requires users to spend time and effort, and the operation is complicated, and there are technical requirements for users.

Method used

The method of obtaining LOG logs by downloading the USB flash drive is used to communicate with the IPC protocol between the Android system and the Linux system, and compressed packages are generated and copied to the USB flash drive, which simplifies the log acquisition process. Users only need to issue acquisition instructions, and other processes are automatically completed.

Benefits of technology

It realizes the download of LOG logs with low wireless network signal requirements, simplifies the acquisition scenario, improves work convenience, reduces user skill requirements and operation complexity, and saves time and energy.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses a method and a system for acquiring LOG based on USB flash disk downloading, and relates to the technical field of automobile log downloading, and the method comprises the following steps: a user inserts a USB flash disk in an automobile machine; a user clicks an identifier of a character'obtaining LOG 'on an Android interface and a LOG obtaining instruction and sends a request for obtaining LOG to a linux system, a Linux system receives the request for obtaining LOG sent by the Android system and then transmits the LOG to the Android system in a compressed package mode, the user clicks an identifier of a character'copying to a USB flash disk' on the Android interface, and the Android system copies the compressed package to the USB flash disk; the system comprises an instruction sending end, an Android end, a Linux end and a data storage end. According to the method, the LOG can be directly downloaded and obtained through the USB flash disk, the requirement for wireless network signals is not high, the log obtaining scene is simplified, a user only needs to send an obtaining instruction in the whole process, the other obtaining processes are automatic, the work convenience is improved, the requirement for the skill of the user is low, control is easy, and the work time and energy are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile log downloading, and in particular to a method and system for obtaining LOG logs based on U disk downloading. Background Art

[0002] Nowadays, more and more vehicles are equipped with some intelligent systems (commonly known as car computers), which will record the work logs related to some control modules or software inside the car, so that the staff can understand the working conditions of various modules and software inside the car through the logs.

[0003] In traditional LOG acquisition, car users are generally required to go to 4S stores, or vehicle maintenance personnel must obtain the vehicle's LOG information and corresponding LOG data through methods such as CAN bus and vehicle diagnosis.

[0004] This traditional way of working is not convenient for users, requires a certain amount of time and energy, and is relatively complicated to operate, and has certain technical requirements for users.

[0005] In view of the defects in the above background technology, we have designed a method and system for obtaining LOG logs based on USB flash drive download to solve the above problems. Summary of the invention

[0006] The purpose of the present invention is to solve the shortcomings of traditional LOG log acquisition technology, such as complex and inconvenient operation, time-consuming and energy-consuming, and propose a method and system for obtaining LOG logs based on USB flash drive download. The method and system redefine the LOG log acquisition process and the communication mode between different hosts, thereby realizing the convenient LOG log acquisition work through USB flash drive.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions: A method for obtaining LOG logs based on USB flash drive download, comprising the following steps: Step S101: the user inserts a USB flash drive into the vehicle computer; Step S102: After the USB flash drive is connected, a "Get LOG" icon pops up on the Android interface, and the user clicks the "Get LOG" icon on the Android interface; Step S103: After the Android system captures the user clicking the "Get LOG" logo on the Android interface, it obtains the LOG instruction and sends a request to the Linux system to obtain the LOG; Step S104: After receiving the request for obtaining the LOG from the Android system, the Linux system transmits the LOG to the Android system in the form of a compressed package; In step S105, after the compressed package is transferred, a logo with the words "Copy to USB flash drive" pops up on the Android interface. The user clicks the logo with the words "Copy to USB flash drive" on the Android interface, and the Android system copies the compressed package to the USB flash drive.

[0008] Furthermore, in step S103 and step S104, the Android system and the Linux system communicate via the IPCL protocol; The Android system sends a LOG request to the Linux system through IPCL protocol communication. After receiving the LOG request, the Linux system packs the logs and generates a compressed package, and then feeds back to the Android system how many compressed packages are needed to complete the sending of the logs. The Android system receives the feedback, uses the IPC protocol to communicate, requests the log data in the form of a package number, and obtains the compressed packages of the log data in ID order until the last package is obtained.

[0009] Furthermore, the compressed packages of log data are obtained in order of ID. The data of each communication is serialized, and all data packets received by the Android system are grouped together as complete log content.

[0010] Furthermore, in step S104, after the Linux system receives the request for obtaining the LOG from the Android system, it transmits the LOG to the Android system in the form of a compressed package. The Android system sends a message to the Linux system through the vehicle computer. After receiving the LOG instruction, the Linux system packs the LOG to generate a compressed package and transmits it to the Android system through the IPC protocol.

[0011] Furthermore, in step S104, when the LOG is transmitted to the Android system in the form of a compressed package, the Android interface displays the transmission progress in the form of a progress bar or a rotating circle.

[0012] Furthermore, the compressed package refers to a LOG data packet compressed by the tar-xzf command.

[0013] Furthermore, in step S105, the Android system copies the compressed package of the log data to the USB flash drive using the following pre-acquisition mechanism: After the LOG log is downloaded to the Android system via the progress of steps S103 to S105, the user inserts a USB flash drive into the vehicle computer interface and directly copies the LOG through the USB flash drive to obtain the pre-acquisition mechanism.

[0014] Furthermore, the method for obtaining LOG logs based on U disk download includes obtaining the LOG logs of the single-chip microcomputer. The LOG logs of the single-chip microcomputer are transmitted to the Android system through the Linux system. The Android system packages the LOG logs of the three hosts, the single-chip microcomputer, the Linux system and the Android system, generates a compressed package, and finally copies the compressed package to the U disk.

[0015] A system for obtaining LOG logs based on USB download, characterized in that the system comprises: The command transceiver is deployed on the Android and Linux sides. It is used to send a request command to obtain the LOG to the Linux side and feedback the compressed package capacity required for sending the log once to the Android side. On the Android side, obtain the user's operation command, receive the LOG to compress the package file, and copy the compressed package to the USB flash drive; On the Linux side, after receiving the LOG request, the LOG log is packaged, a compressed package is generated, and the compressed package is transmitted to the Android side; The data storage end records and stores the LOG information sent by each application on the vehicle computer.

[0016] Furthermore, the instruction transceiver uses the IPCL protocol to communicate and send request instructions, sends a LOG request to the Linux end, and feeds back to the Android end how many compressed packages are needed to complete the sending of the log. After receiving the feedback, the Android end uses the IPC protocol to communicate and sends a request instruction for log data to the Linux end in the form of a package number; After receiving the request for obtaining LOG from the Android side, the vehicle sends a message to the Linux side through the vehicle computer. After receiving the LOG request instruction, the Linux side packs the LOG into a compressed package and transmits it to the Android side through the IPC protocol.

[0017] Compared with the prior art, the beneficial effects of the present invention are: through the downloading and acquisition of LOG logs proposed by the present invention, the vehicle computer LOG logs can be directly downloaded and acquired through a U disk, which has low requirements for wireless network signals, simplifies the log acquisition scenario, and the user only needs to issue an acquisition instruction throughout the process, and the rest of the acquisition process is automatic, which improves work convenience, has low requirements on user skills, is simple to operate, and saves work time and energy. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0019] A method for obtaining LOG logs based on USB flash drive download, the method mainly includes the following steps: In step S101, the user inserts a USB flash drive into the vehicle computer, finds a USB interface on the vehicle computer, and inserts the USB flash drive.

[0020] In step S102, after the USB flash drive is connected to the vehicle computer, a logo with the words "Get LOG" will automatically pop up on the Android interface of the central control screen of the vehicle computer, and then the user can click the logo with the words "Get LOG" on the Android interface.

[0021] In step S103, when the user clicks the "Get LOG" icon on the Android interface, the Android system will capture the user clicking the "Get LOG" icon on the Android interface, and then automatically get the LOG instruction, and send a request to the Linux system to get the LOG.

[0022] In step S104, after receiving the request for obtaining the LOG sent by the Android system, the Linux system transmits the LOG to the Android system in the form of a compressed package.

[0023] The Android system sends a message to the Linux system through the vehicle computer. After receiving the LOG command, the Linux system packages the LOG to generate a compressed package and transmits it to the Android system through the IPC protocol.

[0024] In another implementation scenario, in order to more intuitively display the compressed package transmission progress, when the LOG is transmitted to the Android system in the form of a compressed package, the Android interface displays the transmission progress in the form of a progress bar or a rotating circle.

[0025] It is worth mentioning that in step S103 and step S104 of this embodiment, the Android system and the Linux system communicate through the IPCL protocol; specifically, the process of communicating through the IPCL protocol is as follows: The Android system sends a LOG request to the Linux system through IPCL protocol communication. After receiving the LOG request, the Linux system packages the log, compresses the LOG log data packet through the tar-xzf command, generates a compressed package, and feeds back to the Android system how many compressed packages are needed to complete the sending of the log.

[0026] The Android system receives the feedback, uses the IPC protocol to communicate, requests the log data in the form of a package number, and obtains the compressed packages of the log data in ID order until the last package is obtained.

[0027] What is special about the above is that when the compressed packages of log data are obtained in order of ID, the data of each communication is serialized, such as the first package, the second package, the third package... All data packets received by the Android system are grouped together as complete log content.

[0028] In step S105, after the compressed package is transferred, a "Copy to USB flash drive" icon will pop up on the Android interface. The user clicks the "Copy to USB flash drive" icon on the Android interface, and the Android system copies the compressed package containing the LOG information to the USB flash drive, completing the task of downloading the LOG log file from the vehicle using the USB flash drive.

[0029] In this step, the Android system copies the compressed package of the log data to the U disk using the following pre-acquisition mechanism: the LOG log is first downloaded to the Android system through the progress of steps S103 to S105, and then the user inserts the U disk into the USB interface of the vehicle computer, and directly copies the LOG through the U disk. In the pre-acquisition mechanism, the "Get LOG command" can be selected and issued in the form of an interface pop-up window.

[0030] As an embodiment, in this embodiment, the method for obtaining LOG logs based on U disk downloading also includes obtaining and downloading the MCU LOG logs based on U disk. The method is the same as the above-mentioned scheme process. The MCU LOG logs are transmitted to the Android system through the Linux system. The Android system packages the LOG logs of the three hosts, namely the MCU, Linux system and Android system, to generate a compressed package, which is finally copied to the U disk.

[0031] A system applied to a method for obtaining LOG logs based on U disk downloading, the system comprises an instruction transceiver end, an Android end, a Linux end and a data storage end.

[0032] The command transceiver is deployed on the Android side and the Linux side, and is used to send a request command for obtaining LOG to the Linux side, and to feedback the compressed package capacity required for sending logs at a time to the Android side; the command transceiver uses the IPCL protocol to send and receive request commands, sends a LOG request to the Linux side, and feedbacks to the Android side how many compressed packages are required to complete the sending of the logs this time. After receiving the feedback, the Android side uses the IPC protocol to communicate and sends a request command for log data to the Linux side in the form of a package number; After receiving the request for obtaining LOG from the Android side, the vehicle sends a message to the Linux side through the vehicle computer. After receiving the LOG request instruction, the Linux side packs the LOG into a compressed package and transmits it to the Android side through the IPC protocol.

[0033] On the Android side, obtain the user's operation command, receive the LOG to compress the package file, and copy the compressed package to the USB flash drive; On the Linux side, after receiving the LOG request, the LOG log is packaged, a compressed package is generated, and the compressed package is transmitted to the Android side; The data storage end records and stores the LOG information sent by each application on the vehicle computer.

[0034] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for obtaining LOG logs based on USB flash drive download in the above embodiment can be executed. The specific implementation method can be found in the method embodiment, which will not be repeated here.

[0035] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the system and application described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0036] In the embodiments involved in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The contents of the embodiments described above are only schematic. For example, the division of the application end is only a logical function division. There may be other division methods in actual implementation. For example, multiple application ends can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the communication protocol connection between each other shown or discussed can be an indirect coupling or communication connection through some communication interface or application end, which can be a wired connection, a wireless communication connection or other forms.

[0037] If the functions of the above-mentioned application end are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0038] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for obtaining LOG logs based on USB flash drive download, characterized in that: The following steps are involved: Step S101: the user inserts a USB flash drive into the vehicle computer; Step S102: After the USB flash drive is connected, a "Get LOG" icon pops up on the Android interface, and the user clicks the "Get LOG" icon on the Android interface; Step S103: After the Android system captures the user clicking the "Get LOG" logo on the Android interface, it obtains the LOG instruction and sends a request to the Linux system to obtain the LOG; Step S104: After receiving the request for obtaining the LOG from the Android system, the Linux system transmits the LOG to the Android system in the form of a compressed package; In step S105, after the compressed package is transferred, a logo with the words "Copy to USB flash drive" pops up on the Android interface. The user clicks the logo with the words "Copy to USB flash drive" on the Android interface, and the Android system copies the compressed package to the USB flash drive.

2. According to claim 1, a method for obtaining LOG logs based on USB disk downloading is characterized in that: In step S103 and step S104, the Android system and the Linux system communicate via the IPCL protocol; The Android system sends a LOG request to the Linux system through IPCL protocol communication. After receiving the LOG request, the Linux system packs the logs and generates a compressed package, and then feeds back to the Android system how many compressed packages are needed to complete the sending of the logs. The Android system receives the feedback, uses the IPC protocol to communicate, requests the log data in the form of a package number, and obtains the compressed packages of the log data in ID order until the last package is obtained.

3. According to claim 2, a method for obtaining LOG logs based on USB disk downloading is characterized in that: Get the compressed package of log data in ID order. The data of each communication is serialized, and all data packets received by the Android system are grouped together to form the complete log content.

4. According to the method of claim 1, the method is characterized in that: In step S104, after the Linux system receives the request for obtaining the LOG from the Android system, it transmits the LOG to the Android system in the form of a compressed package. The Android system sends a message to the Linux system through the vehicle computer. After receiving the LOG instruction, the Linux system packs the LOG into a compressed package and transmits it to the Android system through the IPC protocol.

5. The method for obtaining LOG logs based on USB download according to claim 1 is characterized in that: In step S104, when the LOG is transmitted to the Android system in the form of a compressed package, the Android interface displays the transmission progress in the form of a progress bar or a rotating circle.

6. The method for obtaining LOG logs based on USB download according to claim 1, characterized in that: The compressed package is a data packet of the LOG log compressed by the tar-xzf command.

7. The method for obtaining LOG logs based on USB download according to claim 1, characterized in that: In step S105, the Android system copies the compressed package of log data to the USB flash drive using the following pre-acquisition mechanism: After the LOG log is downloaded to the Android system via the progress of steps S103 to S105, the user inserts a USB flash drive into the vehicle computer interface and directly copies the LOG through the USB flash drive to obtain the pre-acquisition mechanism.

8. The method for obtaining LOG logs based on USB download according to claim 1, characterized in that: The method for obtaining LOG logs based on U disk download includes obtaining the LOG logs of the single-chip microcomputer. The LOG logs of the single-chip microcomputer are transmitted to the Android system through the Linux system. The Android system packages the LOG logs of the three hosts, the single-chip microcomputer, the Linux system and the Android system, generates a compressed package, and finally copies the compressed package to the U disk.

9. A system applied to the method for obtaining LOG logs based on USB disk download as described in any one of claims 1 to 8, characterized in that: The system comprises: The command transceiver is deployed on the Android and Linux sides. It is used to send a request command to obtain the LOG to the Linux side and feedback the compressed package capacity required for sending the log once to the Android side. On the Android side, obtain the user's operation command, receive the LOG to compress the package file, and copy the compressed package to the USB flash drive; On the Linux side, after receiving the LOG request, the LOG log is packaged, a compressed package is generated, and the compressed package is transmitted to the Android side; The data storage end records and stores the LOG information sent by each application on the vehicle computer.

10. The system for obtaining LOG logs based on USB download according to claim 9, characterized in that: The instruction transceiver uses the IPCL protocol to send and receive request instructions, sends a LOG request to the Linux end, and feeds back to the Android end how many compressed packages are needed to complete the sending of the log. After receiving the feedback, the Android end uses the IPC protocol to communicate and sends a request instruction for log data to the Linux end in the form of a package number; After receiving the request for obtaining LOG from the Android side, the vehicle sends a message to the Linux side through the vehicle computer. After receiving the LOG request instruction, the Linux side packs the LOG into a compressed package and transmits it to the Android side through the IPC protocol.

Citation Information

Patent Citations

  • Intelligent internet-of-things data collection instrument based on wireless transmission type

    CN109617970A

  • Multi-hardware adaptation method based on Linux

    CN111897585A

  • System and method for managing operation information of QNX end of dual-system intelligent cockpit

    CN113297029A

  • Method for transmitting in-vehicle infotainment system log through wireless terminal

    CN113873000A

  • Cross-system or cross-network file synchronization method and system

    CN115842831A