CN117312243A - Log processing method, electronic device and storage medium - Google Patents

Log processing method, electronic device and storage medium Download PDF

Info

Publication number
CN117312243A
CN117312243A CN202210711283.5A CN202210711283A CN117312243A CN 117312243 A CN117312243 A CN 117312243A CN 202210711283 A CN202210711283 A CN 202210711283A CN 117312243 A CN117312243 A CN 117312243A
Authority
CN
China
Prior art keywords
file
log file
vehicle
latest log
diagnostic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210711283.5A
Other languages
Chinese (zh)
Inventor
管晓冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing Rockwell Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rockwell Technology Co Ltd filed Critical Beijing Rockwell Technology Co Ltd
Priority to CN202210711283.5A priority Critical patent/CN117312243A/en
Publication of CN117312243A publication Critical patent/CN117312243A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure provides a log processing method and device, an electronic device and a storage medium, mainly comprising: the vehicle-mounted terminal responds to a request for reading the log file sent by the diagnostic instrument, and acquires the latest log file, the file name and the file size thereof; the file name, the file size and the latest log file of the latest log file are sent to the diagnostic instrument through an OBD interface; after the diagnosis instrument responds to the successful authentication of the safety access of the vehicle-mounted terminal, the diagnosis instrument sends a request for reading the log file to the vehicle-mounted terminal through the OBD interface; receiving the file name, the file size and the latest log file of the latest log file sent by a vehicle machine side through an OBD interface; establishing a corresponding local file locally on the diagnostic instrument according to the file name and the file size; the latest log file is stored in the local file. Therefore, the acquisition of the log file can be realized without depending on network signals, and convenience is brought to vehicle maintenance.

Description

Log processing method, electronic device and storage medium
Technical Field
The disclosure relates to the technical field of vehicles, and in particular relates to a log processing method and device, electronic equipment and a storage medium.
Background
The log file of the vehicle is generally stored in an internal storage system at the vehicle machine side, and the log file cannot be directly read for safety after the vehicle leaves the factory.
At present, to read the log file, the log file needs to be uploaded to the cloud through a vehicle-mounted entertainment system (Head Unit, HU), and then the log file is downloaded from the cloud. The log file acquisition mode requires that the vehicle ensure normal communication of the wireless network. However, when there is no wireless network, such as when the vehicle leaves the factory or when there is no network signal at the first site when a problem occurs in the user's vehicle, a valid log file cannot be obtained at the first time, which brings inconvenience to the maintenance of the vehicle.
Disclosure of Invention
In order to overcome the defects of the prior art, the present disclosure provides a log processing method and device, an electronic device and a storage medium, which can acquire log files without relying on network signals, and bring convenience to vehicle maintenance.
According to a first aspect of the present disclosure, there is provided a log processing method applied to a vehicle-mounted device, the method including:
responding to a request for reading the log file sent by the diagnostic instrument, and acquiring the latest log file, the file name and the file size of the latest log file, wherein the request for reading the log file is sent by the diagnostic instrument after the diagnostic instrument responds to the successful authentication of the security access; and sending the file name, the file size and the latest log file of the latest log file to the diagnostic instrument through an OBD interface of the vehicle-mounted diagnostic system.
According to the embodiment, when the latest log file needs to be acquired, the diagnostic instrument is directly inserted through the OBD interface, and the implementation can be realized after the safety access authentication of the diagnostic instrument is successful, and the strength and the existence of a network signal are not needed, so that the log file can be acquired through the OBD interface without depending on the network signal, and convenience is brought to vehicle maintenance.
In some embodiments, the obtaining the latest log file in response to the request sent by the diagnostic apparatus to read the log file includes: receiving the identification information reported by the diagnostic instrument; and when the identification information is identified as the data identification information for reading the latest log file, acquiring the latest log file from the log directory by using a system file operation method.
In some embodiments, the sending the file name, file size, and the latest log file of the latest log file to the diagnostic apparatus via the OBD interface comprises: the latest log file is sent to the diagnostic instrument through the OBD interface and a first service supported by a predefined unified diagnostic service UDS, and first service identification information of the first service is carried when the latest log file is sent; and sending the file name and the file size of the latest log file to the diagnostic instrument through the OBD interface and a second service supported by a predefined UDS, wherein the second service identification information of the second service is carried during sending.
In some embodiments, the method further comprises: and when the transmission of the latest log file is finished, transmitting the latest log file output finishing information to the diagnostic instrument through the OBD interface and a third service supported by a predefined UDS, wherein the third service identification information of the third service is carried during transmission.
In some embodiments, the method further comprises: receiving security access authentication information reported by a diagnostic instrument;
and carrying out security access authentication on the diagnostic instrument according to the security access authentication information.
According to a second aspect of the present disclosure, there is provided a log processing method applied to a diagnostic apparatus, including: responding to successful security access authentication of the vehicle-mounted terminal, and sending a request for reading the log file to the vehicle-mounted terminal through an OBD interface; receiving the file name, the file size and the latest log file of the latest log file sent by the vehicle-mounted terminal through an OBD interface; establishing a corresponding local file locally on the diagnostic instrument according to the file name and the file size; and storing the latest log file in the local file.
In some embodiments, the receiving the file name, the file size and the latest log file of the latest log file sent by the vehicle-mounted device through the OBD interface includes: receiving service identification information supported by unified diagnostic service sent by the vehicle-mounted machine through an OBD interface; identifying the service identification information; responding to the service identification information as first service identification information, and receiving the latest log file sent by the vehicle-mounted terminal through an OBD interface; and receiving the file name and the file size sent by the vehicle-mounted terminal through an OBD interface in response to the service identification information being second service identification information.
In some embodiments, the method further comprises: and stopping receiving the latest log file in response to receiving the service identification information as third service identification information.
In some embodiments, the method further comprises: and sending the security access authentication information to the vehicle machine through the OBD interface.
According to a third aspect of the present disclosure, there is provided a log processing apparatus, the apparatus being disposed at a vehicle-mounted end, the apparatus comprising: the first acquisition unit is used for responding to a request for reading the log file sent by the diagnostic instrument, and acquiring the latest log file, wherein the request for reading the log file is sent by the diagnostic instrument after the security access authentication is successful; the second acquisition unit is used for acquiring the file name and the size of the latest log file; and the sending unit is used for sending the latest log file, the file name and the file size to the diagnostic instrument through an OBD interface.
According to a fourth aspect of the present disclosure, there is provided a log processing apparatus, the apparatus being arranged at a diagnostic instrument side, the apparatus comprising: the first sending unit is used for responding to the success of the security access authentication of the vehicle-mounted terminal and sending a request for reading the log file to the vehicle-mounted terminal through the OBD interface; the receiving unit is used for receiving the file name, the file size and the latest log file of the latest log file sent by the vehicle-mounted terminal through the OBD interface; the creation unit is used for locally creating a corresponding local file on the diagnostic instrument according to the file name and the file size; and the storage unit is used for storing the latest log file in the local file.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect or the method of the second aspect.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the first aspect or the method of the second aspect.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect or the method of the second aspect.
According to an eighth aspect of the present disclosure, there is provided a vehicle including the log processing apparatus as described in the foregoing third aspect.
According to a ninth aspect of the present disclosure, there is provided a diagnostic apparatus comprising the log processing device as described in the foregoing fourth aspect.
According to the log processing method, the device, the electronic equipment and the storage medium, when the latest log file is required to be acquired, the diagnostic instrument is directly inserted through the OBD interface, and the log can be realized after the security access authentication of the diagnostic instrument is successful without the strength and the existence of network signals, so that the log file is acquired without depending on the network signals, the log file can be acquired through the OBD interface, and convenience is brought to vehicle maintenance.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flow chart of a log processing method at a vehicle-mounted terminal according to an embodiment of the disclosure;
FIG. 2 is a schematic flow chart of a log processing method on the diagnostic apparatus side according to an embodiment of the disclosure;
FIG. 3 is a schematic flow chart of log processing according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a log processing device at a vehicle-mounted end according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another log processing device at the vehicle side according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a log processing device on a diagnostic apparatus side according to an embodiment of the disclosure;
FIG. 7 is a schematic diagram of a log processing device on the diagnostic apparatus side according to another embodiment of the present disclosure;
fig. 8 is a schematic block diagram of an example electronic device 600 provided by an embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The following describes a log processing method, apparatus, electronic device, and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
The log file of the vehicle is generally stored in an internal storage system at the vehicle machine end, and the log file cannot be directly read for safety after the vehicle leaves the factory.
At present, to read the log file, the log file needs to be uploaded to the cloud through a vehicle-mounted entertainment system (Head Unit, HU), and then the log file is downloaded from the cloud. The log file acquisition mode requires that the vehicle ensure normal communication of the wireless network. However, when there is no wireless network, such as when the vehicle leaves the factory or when there is no network signal at the first site when a problem occurs in the user's vehicle, a valid log file cannot be obtained at the first time, which brings inconvenience to the maintenance of the vehicle.
In order to solve the problems, a mature security mechanism of diagnostic communication (Diagnostic communication over Internet Protocol, doIP) and self-supporting file transmission characteristics are utilized to directly acquire a log file stored in a vehicle entertainment system (Head Unit, HU) through a vehicle-mounted diagnostic system (On-Board Diagnostics, OBD) port, so that when a problem occurs, the latest and effective log file can be acquired at the first time without damaging the security requirement of the HU, and convenience is brought to solving the problem.
Embodiments of the present disclosure require integration of the DoIP protocol stack and the unified diagnostic service (Unified Diagnostic Services, UDS) protocol stack in the HU system.
Fig. 1 is a flow chart of a log processing method according to an embodiment of the disclosure. As shown in fig. 1, the method is applied to a vehicle machine side, and comprises the following steps:
step 101, responding to a request for reading the log file sent by the diagnostic apparatus, and obtaining the latest log file, the file name and the file size of the latest log file, wherein the request for reading the log file is sent by the diagnostic apparatus after the diagnostic apparatus responds to the successful authentication of the security access.
In obtaining the latest log file, the method may be implemented, but is not limited to, the following method includes: and acquiring the latest log file from the log catalog by using a system file operation method.
And 102, transmitting the file name, the file size and the latest log file of the latest log file to the diagnostic instrument through an OBD interface.
Wherein, after the latest log file is obtained, the size of the latest log file is calculated.
According to the embodiment, when the latest log file needs to be acquired, the diagnostic instrument is directly inserted through the OBD interface, and the implementation can be realized after the security access authentication of the diagnostic instrument is successful, and the network signal is not required to be strong or weak, so that the log file can be acquired through the OBD interface without depending on the network signal, and convenience is brought to vehicle maintenance.
Fig. 2 is a flowchart of a log processing method according to an embodiment of the disclosure. As shown in fig. 2, the method is applied to a diagnostic apparatus, and comprises the following steps:
and 201, responding to successful security access authentication of the vehicle-mounted terminal, and sending a request for reading the log file to the vehicle-mounted terminal through the OBD interface.
In order to ensure the safety of vehicle data, after the diagnostic instrument is inserted into the vehicle terminal through the OBD interface, the vehicle terminal is required to carry out safety access authentication on the inserted diagnostic instrument, the safety access authentication is successful, the diagnostic instrument can carry out data communication with the vehicle terminal, the vehicle terminal is safely accessed, and otherwise, the diagnostic instrument is forbidden to acquire information from the vehicle terminal. Therefore, before the request for reading the log file is sent to the vehicle machine side, the vehicle machine side firstly carries out security access authentication on the diagnostic instrument, if the security access authentication is successful, the request for reading the log file is sent to the vehicle machine side, the log file is obtained, and if the security access authentication is unsuccessful, the security consideration is adopted, and the log file is forbidden to be obtained.
The present disclosure is not limited in this disclosure, and may be performed by a scheme specified by the existing UDS protocol, or by other schemes that provide security authentication when performing security access authentication to a diagnostic apparatus. When executed by a scheme specified by the existing UDS protocol, the Service ID (SID) identification supported by the UDS may be referred to, specifically, the content of the 0x27 SID, which is not limited by the embodiments of the present disclosure.
202, receiving the file name, the file size and the latest log file of the latest log file sent by the vehicle-mounted terminal through an OBD interface.
And 203, establishing a corresponding local file locally on the diagnostic instrument according to the file name and the file size.
204, storing the latest log file in the local file.
According to the embodiment, when the latest log file needs to be acquired, the diagnostic instrument is directly inserted through the OBD interface, and the implementation can be realized after the security access authentication of the diagnostic instrument is successful, and the strength and the existence of a network signal are not needed, so that the log file can be acquired through the OBD interface without depending on the network signal, and convenience is brought to vehicle maintenance; and the OBD interface is also an existing interface, and a new interface does not need to be independently developed.
Furthermore, when the embodiment of the disclosure performs the log processing method, the security mechanism of diagnosing the maturation of the communication DoIP and supporting the file transmission characteristic by itself is utilized, and when the log file stored in the vehicle-mounted entertainment system HU is directly obtained through the vehicle-mounted diagnosis system OBD interface, three special Service ID (SID) identifiers supported by the UDS are added on the premise of supported SID by the UDS protocol stack, so as to perform Data transmission, and then a Data Identifier (DID) is added, which is used by the diagnostic apparatus to trigger the action of reading the log file. Based on the content, when the diagnostic instrument reports the log file acquisition request, the log file acquisition request is reported through the DID. The vehicle machine side responds to a request for reading the log file sent by the diagnostic instrument, and when the latest log file is obtained, the method is realized by adopting the following steps: receiving the identification information reported by the diagnostic instrument; identifying the identification information and determining whether the identification information is DID information for acquiring the latest log file; when the DID information for acquiring the latest log file is determined, the latest log file is acquired from the log directory by using a system file operation method.
After the vehicle machine side obtains the latest log file from the log catalog by using the system file operation method, the size of the latest log file is calculated, and when the file name, the file size and the latest log file of the latest log file are sent to the diagnostic apparatus through the OBD interface, the method can be implemented by adopting, but is not limited to, the following methods:
and sending the latest log file to the diagnostic instrument through an OBD interface and a first service supported by a predefined unified diagnostic service UDS, wherein the first service identification information of the first service is carried when the latest log file is sent.
When the diagnostic instrument receives the first service identification information, the vehicle machine side is confirmed to send the latest log file to the diagnostic instrument, and the diagnostic instrument starts to receive the latest log file.
And sending the file name and the file size of the latest log file to the diagnostic instrument through an OBD interface and a second service supported by a predefined UDS, wherein the second service identification information of the second service is carried when the latest log file is sent.
When the diagnostic instrument receives the second service identification information, the vehicle machine end is confirmed to send the latest log file name and the file size to the diagnostic instrument, and the diagnostic instrument receives the latest log file name and the latest log file size. And a local file with the same file name is built locally on the diagnostic instrument according to the file name and the file size.
In some embodiments, the method further comprises: and when the transmission of the latest log file is finished, transmitting the latest log file output finishing information to the diagnostic instrument through an OBD interface and a third service supported by a predefined UDS, wherein third service identification information of the third service is carried during transmission.
And when the diagnostic instrument receives the third service identification information, stopping receiving the latest log file in response to receiving the service identification information as the third service identification information.
In some embodiments, after the diagnostic device is inserted into the vehicle, the method further comprises: and sending the security access authentication information to the vehicle machine through the OBD interface. The vehicle-mounted end receives the safety access authentication information reported by the diagnostic instrument; and carrying out security access authentication on the diagnostic instrument according to the security access authentication information.
According to the embodiment, the read file SID and the DID triggering the read log file are newly added in the UDS, when the latest log file is required to be acquired, the diagnostic instrument is directly inserted through the OBD interface, after the diagnostic instrument is successfully authenticated by safety access, the acquisition of the log file can be realized based on the added service item and data item, and the network signal is not required to be strong or weak, so that the acquisition of the log file is not dependent on the network signal any more, the log file can be acquired through the OBD interface, and convenience is brought to vehicle maintenance; and the OBD interface is also an existing interface, and a new interface does not need to be independently developed.
According to the embodiment of the disclosure, on the premise of supported SIDs, a UDS protocol stack in the HU system is added with three special UDS supported Service ID (SID) identifiers for data transmission. Such as 0x46,0x47,0x48. The 0x46 SID will pass the log file name to be read and the file size to the diagnostic instrument. The 0x47SID is used to convey file data. 0x48 indicates that the file transfer is completed. A Data Identifier (DID) is then added and used by the diagnostic instrument to trigger an action to read the log file, such as 0x1AAA. After the following settings are made, as shown in fig. 3, according to an embodiment of the present disclosure, a log processing method is provided, which includes the following steps:
301, the diagnostic apparatus is inserted into an OBD interface of the vehicle terminal, and the service identifier 0x27 SID of the security access authentication is sent to the vehicle terminal through the OBD interface to perform the security access authentication, so as to confirm whether the diagnostic apparatus can perform security access to the vehicle terminal.
302, when the security access authentication is successful, the diagnostic apparatus triggers sending a request for reading the log file to the vehicle machine side, where the request may be a preset data identifier. Such as 0x1AAA.
303, diagnostic services in the HU system, when receiving the 0x1AAAA (1 AAAA SID indicates reading in the UDS protocol) reported by the diagnostic apparatus through the UDS, indicate that the latest log file in the HU system is to be read.
304, the diagnostic service in the HU system obtains the latest log file from the log directory by using the system file operation method, and calculates the size of the file.
305, the file name and the file size are transferred to the diagnostic apparatus through the DoIP of the UDS by the already defined 0x46 SID.
306, the diagnostic apparatus creates the same file locally using the received file name after receiving it.
307, the HU system starts transmitting file data with 0x47 SID.
308, the diagnostic apparatus starts to save the file data after receiving the 0x47 SID.
309, when the file transfer is completed, the diagnostic service in the HU system will send the 0x48 SID to the diagnostic apparatus indicating that the file transfer is completed.
And 310, closing the data stream after the diagnostic instrument receives the data stream, and finishing the file transmission.
After the diagnostic instrument receives the log file, the received log file can be checked in an upper computer of the diagnostic instrument so as to analyze the problem.
According to the embodiment, the read file SID and the DID triggering the read log file are newly added in the UDS, when the latest log file needs to be acquired, the diagnostic instrument is directly inserted, after the security access authentication of the diagnostic instrument is successful, the acquisition of the log file can be realized based on the added service item and data item, and the network signal is not required, so that the acquisition of the log file does not depend on the network signal any more, the log file can be acquired at any time, and convenience is brought to vehicle maintenance.
Corresponding to the base log processing method, the invention also provides a log processing device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment may refer to the above-mentioned method embodiment, and details are not described in detail in the present invention.
Fig. 4 is a schematic structural diagram of a log processing device according to an embodiment of the present disclosure, as shown in fig. 4, the log processing device 400 is disposed at a vehicle machine end, and the device includes:
a first obtaining unit 401, configured to obtain, in response to a request for reading a log file sent by a diagnostic apparatus, an up-to-date log file, where the request for reading the log file is sent by the diagnostic apparatus after the diagnostic apparatus is successful in response to a security access authentication;
a second obtaining unit 402, configured to obtain a file name and a file size of the latest log file;
and the sending unit 403 is configured to send the latest log file, the file name and the size to the diagnostic apparatus through an OBD interface.
In some embodiments, the first acquisition unit 401 includes: receiving the identification information reported by the diagnostic instrument; when the data identification information of the latest log file is identified to be read, the latest log file is acquired from the log directory by using a system file operation method.
In some embodiments, when the sending unit 403 sends the file name, the file size, and the latest log file of the latest log file to the diagnostic apparatus through the OBD interface, the sending unit includes: the latest log file is sent to the diagnostic instrument through an OBD interface and a first service supported by a predefined unified diagnostic service UDS, and first service identification information of the first service is carried when the latest log file is sent; and sending the file name and the file size of the latest log file to the diagnostic instrument through an OBD interface and a second service supported by a predefined UDS, wherein the second service identification information of the second service is carried when the latest log file is sent.
In some embodiments, the sending unit 403 further comprises: and when the transmission of the latest log file is finished, transmitting the latest log file output finishing information to the diagnostic instrument through an OBD interface and a third service supported by a predefined UDS, wherein third service identification information of the third service is carried during transmission.
In some embodiments, as shown in fig. 5, the log processing apparatus further includes:
the receiving unit 404 is configured to receive security access authentication information reported by the diagnostic apparatus;
and the security access authentication unit 405 is configured to perform security access authentication on the diagnostic apparatus according to the security access authentication information.
Fig. 6 is a schematic structural diagram of a log processing device according to an embodiment of the present disclosure, as shown in fig. 6, the log processing device 500 is disposed on a diagnostic apparatus, and the device includes:
the first sending unit 501 is configured to send a request for reading the log file to the vehicle side through the OBD interface after passing the security access authentication of the vehicle side.
And the receiving unit 502 is configured to receive a file name, a file size and the latest log file of the latest log file sent by the vehicle-mounted device through an OBD interface.
And a creating unit 503, configured to create a corresponding local file locally on the diagnostic apparatus according to the file name and the file size.
A storage unit 504, configured to store the latest log file in the local file.
In some embodiments, the receiving unit 502 includes: receiving service identification information supported by unified diagnostic service sent by the vehicle-mounted machine through an OBD interface; identifying the service identification information; responding to the service identification information as first service identification information, and receiving the latest log file sent by the vehicle-mounted terminal through an OBD interface; and receiving the file name and the file size sent by the vehicle-mounted terminal through an OBD interface in response to the service identification information being second service identification information.
In some embodiments, the receiving unit 502 further comprises: and stopping receiving the latest log file in response to receiving the service identification information as third service identification information.
In some embodiments, as shown in fig. 7, the log processing apparatus further includes:
and the second sending unit 505 is configured to send security access authentication information to the vehicle machine side through the OBD interface.
The foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and the principle is the same, and this embodiment is not limited thereto.
According to an embodiment of the present disclosure, the present disclosure further provides a vehicle including the log processing device as shown in fig. 4 or 5.
According to an embodiment of the present disclosure, the present disclosure further provides a diagnostic apparatus including a log processing device as shown in fig. 6 or fig. 7.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 8 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 into a RAM (Random Access Memory ) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An I/O (Input/Output) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing units 601 include, but are not limited to, a CPU (Central Processing Unit ), a GPU (Graphic Processing Units, graphics processing unit), various dedicated AI (Artificial Intelligence ) computing chips, various computing units running machine learning model algorithms, DSPs (Digital Signal Processor, digital signal processors), and any suitable processors, controllers, microcontrollers, and the like. The computing unit 601 performs the respective methods and processes described above, such as a log processing method. For example, in some embodiments, the log processing method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the aforementioned log processing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit System, FPGA (Field Programmable Gate Array ), ASIC (Application-Specific Integrated Circuit, application-specific integrated circuit), ASSP (Application Specific Standard Product, special-purpose standard product), SOC (System On Chip ), CPLD (Complex Programmable Logic Device, complex programmable logic device), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory, erasable programmable read-Only Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display ) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network ), WAN (Wide Area Network, wide area network), internet and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be noted that, artificial intelligence is a subject of studying a certain thought process and intelligent behavior (such as learning, reasoning, thinking, planning, etc.) of a computer to simulate a person, and has a technology at both hardware and software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge graph technology and the like.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein. The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (16)

1. The log processing method is characterized by being applied to a vehicle-mounted terminal, and comprises the following steps:
responding to a request for reading the log file sent by the diagnostic instrument, and acquiring the latest log file, the file name and the file size of the latest log file, wherein the request for reading the log file is sent by the diagnostic instrument after the diagnostic instrument responds to the successful authentication of the security access;
and sending the file name, the file size and the latest log file of the latest log file to the diagnostic instrument through an OBD interface of the vehicle-mounted diagnostic system.
2. The method of claim 1, wherein the obtaining the latest log file in response to the request sent by the diagnostic device to read the log file comprises:
receiving the identification information reported by the diagnostic instrument;
and when the identification information is identified as the data identification information for reading the latest log file, acquiring the latest log file from the log directory by using a system file operation method.
3. The method of claim 1, wherein the sending the file name, file size, and the latest log file of the latest log file to the diagnostic instrument via an on-board diagnostic system OBD interface comprises:
the latest log file is sent to the diagnostic instrument through the OBD interface and a first service supported by a predefined unified diagnostic service UDS, and first service identification information of the first service is carried when the latest log file is sent;
and sending the file name and the file size of the latest log file to the diagnostic instrument through the OBD interface and a second service supported by a predefined UDS, wherein the second service identification information of the second service is carried during sending.
4. A method according to claim 3, characterized in that the method further comprises:
and when the transmission of the latest log file is finished, transmitting the latest log file output finishing information to the diagnostic instrument through the OBD interface and a third service supported by a predefined UDS, wherein the third service identification information of the third service is carried during transmission.
5. A method according to any one of claims 1-3, characterized in that the method further comprises:
receiving security access authentication information reported by a diagnostic instrument;
and carrying out security access authentication on the diagnostic instrument according to the security access authentication information.
6. A log processing method, applied to a diagnostic apparatus, comprising:
responding to successful security access authentication of the vehicle-mounted terminal, and sending a request for reading the log file to the vehicle-mounted terminal through an OBD interface of the vehicle-mounted diagnostic system;
receiving the file name, the file size and the latest log file of the latest log file sent by the vehicle-mounted terminal through an OBD interface;
establishing a corresponding local file locally on the diagnostic instrument according to the file name and the file size;
and storing the latest log file in the local file.
7. The method of claim 6, wherein the receiving the file name, the file size, and the latest log file of the latest log file sent by the vehicle-mounted device through the OBD interface comprises:
receiving service identification information supported by unified diagnostic service sent by the vehicle-mounted machine through an OBD interface;
identifying the service identification information;
responding to the service identification information as first service identification information, and receiving the latest log file sent by the vehicle-mounted terminal through an OBD interface;
and receiving the file name and the file size sent by the vehicle-mounted terminal through an OBD interface in response to the service identification information being second service identification information.
8. The method as recited in claim 7, further comprising:
and stopping receiving the latest log file in response to receiving the service identification information as third service identification information.
9. The method according to any one of claims 6-8, further comprising:
and sending the security access authentication information to the vehicle machine through the OBD interface.
10. A log processing apparatus, wherein the apparatus is disposed at a vehicle-mounted end, the apparatus comprising:
the first acquisition unit is used for responding to a request for reading the log file sent by the diagnostic instrument, acquiring the latest log file, wherein the request for reading the log file is sent by the diagnostic instrument after the diagnostic instrument responds to the successful security access authentication;
a second obtaining unit, configured to obtain a file name and a file size of the latest log file;
and the sending unit is used for sending the latest log file, the file name and the file size to the diagnostic instrument through an OBD interface of the vehicle-mounted diagnostic system.
11. A log processing apparatus, wherein the apparatus is disposed at a diagnostic device side, the apparatus comprising:
the first sending unit is used for responding to the success of the security access authentication of the vehicle-mounted machine end and sending a request for reading the log file to the vehicle-mounted machine end through an OBD interface of the vehicle-mounted diagnosis system;
the receiving unit is used for receiving the file name, the file size and the latest log file of the latest log file sent by the vehicle-mounted terminal through the OBD interface;
the creation unit is used for locally creating a corresponding local file on the diagnostic instrument according to the file name and the file size;
and the storage unit is used for storing the latest log file in the local file.
12. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5 or the method of any one of claims 6-9.
13. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5 or the method of any one of claims 6-9.
14. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5 or the method according to any one of claims 6-9.
15. A vehicle comprising the log processing device according to claim 10.
16. A diagnostic apparatus comprising the log processing device of claim 11.
CN202210711283.5A 2022-06-22 2022-06-22 Log processing method, electronic device and storage medium Pending CN117312243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210711283.5A CN117312243A (en) 2022-06-22 2022-06-22 Log processing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210711283.5A CN117312243A (en) 2022-06-22 2022-06-22 Log processing method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117312243A true CN117312243A (en) 2023-12-29

Family

ID=89287172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210711283.5A Pending CN117312243A (en) 2022-06-22 2022-06-22 Log processing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117312243A (en)

Similar Documents

Publication Publication Date Title
WO2023125852A1 (en) Remote diagnosis method and apparatus, and electronic device and storage medium
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN112911013B (en) Cloud application processing method and device, computer equipment and storage medium
CN115437340A (en) Remote diagnosis method and device, electronic equipment and storage medium
CN115437339A (en) Remote diagnosis method and device, electronic equipment and storage medium
CN112669867A (en) Debugging method and device of noise elimination algorithm and electronic equipment
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN111447231B (en) Vehicle protocol identification method and device
CN108648297A (en) Equipment detection method and device, storage medium, electronic equipment
CN117312243A (en) Log processing method, electronic device and storage medium
CN109600242A (en) For the management method of household electrical appliances distribution, household electrical appliances, client and system
CN114666363A (en) Information transmission method and device, electronic equipment, storage medium and product
CN113703793A (en) Application installation method, device, equipment and medium for cloud mobile phone
CN112953754A (en) Configuration method and device of differentiated service, electronic equipment and storage medium
CN116449810B (en) Fault detection method and device, electronic equipment and storage medium
CN113055472B (en) Internet of things data control method and device based on security authentication
CN113867634B (en) Data reading method and device, electronic equipment and storage medium
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof
CN114386005A (en) Login method and device of vehicle-mounted system, electronic equipment and readable storage medium
CN114721947A (en) Man-machine interaction testing method, device, equipment and storage medium based on OTA
CN116384972A (en) Operation and maintenance management method and device of vehicle-mounted host, vehicle and storage medium
CN113220472A (en) Application program communication method, device and storage medium
CN116804932A (en) Vehicle software identification recognition method and device, electronic equipment and storage medium
CN115509211A (en) Vehicle equipment management method, system, equipment and medium
CN117053667A (en) Method and device for detecting installation position of safety seat and vehicle

Legal Events

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