CN115190009B - Vehicle-mounted multimedia part log export method and system and storage medium - Google Patents

Vehicle-mounted multimedia part log export method and system and storage medium Download PDF

Info

Publication number
CN115190009B
CN115190009B CN202110301227.XA CN202110301227A CN115190009B CN 115190009 B CN115190009 B CN 115190009B CN 202110301227 A CN202110301227 A CN 202110301227A CN 115190009 B CN115190009 B CN 115190009B
Authority
CN
China
Prior art keywords
log
vehicle
encrypted
mounted multimedia
script
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.)
Active
Application number
CN202110301227.XA
Other languages
Chinese (zh)
Other versions
CN115190009A (en
Inventor
陈锐东
张晔
李晓平
符伟达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202110301227.XA priority Critical patent/CN115190009B/en
Publication of CN115190009A publication Critical patent/CN115190009A/en
Application granted granted Critical
Publication of CN115190009B publication Critical patent/CN115190009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Debugging And Monitoring (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

The invention discloses a method and a system for exporting a vehicle-mounted multimedia part log, and a storage medium, wherein the method comprises the following steps: the vehicle-mounted multimedia component communicates with the diagnosis equipment based on the UDS protocol, and receives an encrypted log grabbing script sent by the diagnosis equipment; the log grabbing script is compiled in advance according to the fault analysis requirement; the vehicle-mounted multimedia component decrypts the encrypted log grabbing script to obtain an original log grabbing script; the vehicle-mounted multimedia component performs log grabbing according to the original log grabbing script to obtain a fault log; the vehicle-mounted multimedia part encrypts the fault log to obtain an encrypted fault log; the vehicle multimedia component derives the encrypted fault log. According to the invention, the vehicle-mounted multimedia part is communicated with the diagnosis equipment based on the UDS protocol, fault log grabbing is realized, flexible debugging can be realized according to analysis requirements, and the log grabbing channel is ensured not to be utilized by hackers.

Description

Vehicle-mounted multimedia part log export method and system and storage medium
Technical Field
The invention relates to the technical field of vehicles, in particular to a vehicle-mounted multimedia part log export method and system and a computer-readable storage medium.
Background
The vehicle-mounted multimedia part of the vehicle has functions of enriching travel fun, assisting in traveling and the like, and because the vehicle-mounted multimedia part comprises a plurality of software ecological services, the software complexity is higher than that of other traditional vehicle-mounted control parts, the software failure rate of the vehicle-mounted multimedia part is relatively high, the failure type is mostly sporadic, the failure type is difficult to reproduce, and software log acquisition work is needed to be carried out on the failure vehicle-mounted multimedia part. However, in practical application, the method is limited by software security requirements, and cannot open enough software system rights to clients, so that fault logs are difficult to grasp under the scenes such as black screen, dead clamping, failure of a USB data channel and the like, and quality problems of a vehicle-mounted multimedia part are affected.
The current log collection scheme has the following steps:
(1) The log is exported through the cooperation of the USB data channel and the HMI back door; the defect is that the existing HMI is limited, the on-site debugging can not be flexibly carried out according to the fault phenomenon, and the needed log information can be captured;
(2) Directly connecting an adb tool through a USB data channel, and exporting a log; the disadvantage is that the adb tool has a plurality of functional rights besides collecting logs, is easy to be used as a channel for attack of security holes by hackers, and cannot meet the security requirements of vehicle-mounted multimedia parts;
(3) Uploading the log to the cloud end through interaction with the cloud end; the method has the defects of strong correlation with the mobile network, high development cost and high requirement for cloud background support.
Disclosure of Invention
The invention aims to provide a vehicle-mounted multimedia part log export method and system and a computer readable storage medium, which are used for communicating with vehicle-mounted multimedia parts based on a UDS (ISO 14229Unified Diagnostic Services) protocol and realizing fault log grabbing, and can flexibly debug according to analysis requirements so as to ensure that a log grabbing channel is not utilized by a hacker.
In order to achieve the above object, a first aspect of the present invention provides a method for exporting a log of a vehicle-mounted multimedia part, comprising the following steps:
the vehicle-mounted multimedia component communicates with the diagnosis equipment based on the UDS protocol, and receives an encrypted log grabbing script sent by the diagnosis equipment; the log grabbing script is compiled in advance according to the fault analysis requirement;
the vehicle-mounted multimedia component decrypts the encrypted log grabbing script to obtain an original log grabbing script;
the vehicle-mounted multimedia component performs log grabbing according to the original log grabbing script to obtain a fault log;
the vehicle-mounted multimedia part encrypts the fault log to obtain an encrypted fault log;
the vehicle multimedia component derives the encrypted fault log.
Optionally, the vehicle-mounted multimedia component communicates with the diagnostic device based on the UDS protocol, receives the encrypted log grabbing script sent by the diagnostic device, and includes:
the vehicle-mounted multimedia component establishes communication connection with the diagnostic equipment based on the UDS protocol, and responds to the received diagnostic request sent by the diagnostic equipment, and the vehicle-mounted multimedia component performs data transmission with the diagnostic equipment to acquire the diagnostic key sent by the diagnostic equipment and the encrypted log grabbing script.
Optionally, the data transmission with the diagnostic device acquires the diagnostic key sent by the diagnostic device and the encrypted log grabbing script, including:
in response to receiving an expanded diagnosis call request sent by the diagnosis device using 10 services of UDS diagnosis, the vehicle-mounted multimedia component sends first response information to the diagnosis device so as to inform the diagnosis device of allowing expanded diagnosis call;
in-vehicle multimedia components, responsive to receiving a diagnostic key issued by the diagnostic device using the 27 services of UDS diagnostics, send second response information to the diagnostic device informing the diagnostic device that the diagnostic key has been received;
the vehicle-mounted multimedia component responds to a data transmission request sent by the diagnosis equipment using the 34 service of the UDS diagnosis, and sends third response information to the diagnosis equipment so as to inform the diagnosis equipment of running for data transmission;
in-vehicle multimedia components, responsive to receiving the encrypted log grabbing script transmitted by the diagnostic device using the 36 services of UDS diagnostics, send fourth response information to the diagnostic device informing the diagnostic device that the encrypted log grabbing script has been received;
in response to receiving a notification of exit data transmission sent by the diagnostic device using the 37 services of UDS diagnostics, the on-board multimedia component sends fifth response information to the diagnostic device informing that the diagnostic device is running to complete data transmission.
Optionally, the vehicle-mounted multimedia component decrypts the encrypted log grabbing script to obtain an original log grabbing script, which includes: the vehicle-mounted multimedia component decrypts the encrypted log grabbing script according to the diagnosis key and a preset decryption algorithm to obtain an original log grabbing script;
the vehicle-mounted multimedia component encrypts the fault log to obtain an encrypted fault log, and the vehicle-mounted multimedia component comprises: and the vehicle-mounted multimedia component encrypts the fault log according to the diagnosis key and a preset encryption algorithm to obtain an encrypted fault log.
Optionally, the on-board multimedia item derives the encrypted fault log, including:
if the USB data interface of the vehicle-mounted multimedia part is normal, the vehicle-mounted multimedia part derives the encrypted fault log through the USB data interface;
if the USB data interface of the vehicle-mounted multimedia part is abnormal, the vehicle-mounted multimedia part receives a 31-service transmission log output enabling signal diagnosed by the diagnosis equipment by using the UDS, outputs the encrypted fault log onto a vehicle CAN bus according to the log output enabling signal, and exports the encrypted fault log through the vehicle CAN bus.
A second aspect of the present invention proposes a vehicle-mounted multimedia part log export system, the system comprising:
the script acquisition unit is used for communicating with the diagnostic equipment based on the UDS protocol and receiving the encrypted log grabbing script sent by the diagnostic equipment; the log grabbing script is compiled in advance according to the fault analysis requirement;
the decryption unit is used for decrypting the encrypted log grabbing script to obtain an original log grabbing script;
the log grabbing unit is used for carrying out log grabbing according to the original log grabbing script to obtain a fault log;
the encryption unit is used for encrypting the fault log to obtain an encrypted fault log;
and the log export unit is used for exporting the encrypted fault log.
Optionally, the script acquisition unit is specifically configured to:
and establishing communication connection with diagnostic equipment based on a UDS protocol, and responding to the received diagnostic request sent by the diagnostic equipment, and carrying out data transmission with the diagnostic equipment to acquire a diagnostic key sent by the diagnostic equipment and the encrypted log grabbing script.
Optionally, the decryption unit is specifically configured to: the vehicle-mounted multimedia component decrypts the encrypted log grabbing script according to the diagnosis key and a preset decryption algorithm to obtain an original log grabbing script;
the encryption unit is specifically configured to: and encrypting the fault log according to the diagnosis key and a preset encryption algorithm to obtain an encrypted fault log.
Optionally, the log deriving unit is specifically configured to:
if the USB data interface of the vehicle-mounted multimedia part is normal, the log deriving unit derives the encrypted fault log through the USB data interface;
if the USB data interface of the vehicle-mounted multimedia part is abnormal, the log deriving unit receives a 31-service transmission log output enabling signal diagnosed by the diagnosis equipment by using the UDS, outputs the encrypted fault log onto a vehicle CAN bus according to the log output enabling signal, and derives the encrypted fault log through the vehicle CAN bus.
A third aspect of the present invention proposes a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the in-vehicle multimedia item log export method of the first aspect.
The invention provides a method and a system for exporting a log of a vehicle-mounted multimedia part, and a computer readable storage medium, wherein the vehicle-mounted multimedia part is used for carrying out communication data transmission with external diagnostic equipment based on a UDS (ISO 14229Unified Diagnostic Services) protocol, receiving a log grabbing script which is sent by the diagnostic equipment and is edited in advance according to a fault analysis requirement, and realizing the grabbing and exporting of the fault log according to the log grabbing script; communication data transmission is carried out based on the UDS (ISO 14229Unified Diagnostic Services) protocol, so that the log grabbing channel can be ensured not to be utilized by hackers; in different vehicle-mounted multimedia after-sales problem scenes, analysis of after-sales problems can be safely and reliably supported through the diagnosis device, namely the basic after-sales device.
Additional features and advantages of the invention will be set forth in the description which follows.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for deriving a log of a vehicle-mounted multimedia component according to an embodiment of the invention.
Fig. 2 is a schematic structural diagram of a log deriving system for vehicle-mounted multimedia components according to another embodiment of the present invention.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In addition, numerous specific details are set forth in the following examples in order to provide a better illustration of the invention. It will be understood by those skilled in the art that the present invention may be practiced without some of these specific details. In some instances, well known means have not been described in detail in order to not obscure the present invention.
An embodiment of the present invention provides a method for deriving a log of a vehicle-mounted multimedia component, where the method of the embodiment may be implemented based on an SOC chip of the vehicle-mounted multimedia component, that is, the execution main body is the SOC chip, and referring to fig. 1, the method of the embodiment includes steps S1 to S5 as follows:
s1, the vehicle-mounted multimedia part communicates with diagnostic equipment based on a UDS protocol, and an encrypted log grabbing script sent by the diagnostic equipment is received; the log grabbing script is compiled in advance according to the fault analysis requirement.
Specifically, the log grabbing script includes, but is not limited to, log screening, sorting, copying, and changing and writing of debugging parameters in combination with different after-sales problems, and can be specifically obtained by editing according to different after-sales problem scenes of the vehicle-mounted multimedia components; that is, the log grabbing script in this embodiment is edited according to the requirement of fault analysis, so that the log grabbing script can be flexibly debugged according to the requirement of fault analysis.
It should be noted that, the encryption of the log grabbing script is set for avoiding the hacker writing the attack script to break the vehicle-mounted multimedia part, and any method can be selected as the encryption method, which is not described in detail here; in this embodiment, the log grabbing script is encrypted and then converted into hexadecimal data through ASCII.
For example, the diagnostic device may be a device supporting UDS protocol, such as an after-market diagnostic device, a CAN bus device, or the like, and may exchange data with the on-board multimedia component bus port through the on-board OBD interface.
And S2, decrypting the encrypted log grabbing script by the vehicle-mounted multimedia component to obtain an original log grabbing script.
Specifically, the decryption method in this embodiment corresponds to the encryption method, and can perform ASCII conversion and decryption on the encrypted log grabbing script to obtain an original log grabbing script; and editing the original log grabbing script according to the fault analysis requirement in advance before the original log grabbing script is not encrypted.
And S3, the vehicle-mounted multimedia part performs log grabbing according to the original log grabbing script to obtain a fault log.
Specifically, the fault log (also called error log) is a text file used by software to record error information during operation, and programmers, maintenance personnel and the like can debug and maintain the system by using the fault log, and log requirements are written in the original log grabbing script, namely, related logs to be obtained are analyzed after sale; therefore, in the step, log grabbing is carried out according to the original log grabbing script, so that a relevant fault log can be obtained for after-sales analysis of the vehicle-mounted multimedia part;
s4, the vehicle-mounted multimedia part encrypts the fault log to obtain an encrypted fault log;
specifically, the encryption method for encrypting the fault log is the same as the encryption method mentioned in the previous step; in step S4, the fault log is further converted into hexadecimal data by ASCII.
And S5, the vehicle-mounted multimedia component derives the encrypted fault log.
Specifically, the derived logs are subjected to ASCII conversion and decryption to obtain final after-sales analysis logs, and after-sales defective product log collection of the vehicle-mounted multimedia parts is completed.
In the method of the embodiment of the invention, the vehicle-mounted multimedia part performs communication data transmission with the external diagnostic equipment based on the UDS (ISO 14229Unified Diagnostic Services) protocol, receives the log grabbing script which is sent by the diagnostic equipment and is edited in advance according to the fault analysis requirement, and realizes the fault log grabbing and exporting according to the log grabbing script, and the log grabbing script is edited according to the fault analysis requirement, so the vehicle-mounted multimedia part can be flexibly debugged according to the analysis requirement; communication data transmission is carried out based on the UDS protocol, so that the log grabbing channel can be ensured not to be utilized by a hacker; in different vehicle-mounted multimedia after-sales problem scenes, analysis of after-sales problems can be safely and reliably supported through the diagnosis device, namely the basic after-sales device.
In one example, the step S1 includes:
the vehicle-mounted multimedia component establishes communication connection with the diagnostic equipment based on the UDS protocol, and responds to the received diagnostic request sent by the diagnostic equipment, and the vehicle-mounted multimedia component performs data transmission with the diagnostic equipment to acquire the diagnostic key sent by the diagnostic equipment and the encrypted log grabbing script.
In one example, the specific step flow of step S1 is as follows:
and step S11, the vehicle-mounted multimedia component responds to the received expanded diagnosis call request sent by the diagnosis device using the 10 service of the UDS diagnosis, and sends first response information to the diagnosis device so as to inform the diagnosis device of allowing expanded diagnosis call.
Specifically, the diagnostic apparatus uses the 10 service request of the UDS diagnosis to expand the diagnosis call back, and proceeds to step S12 after the on-vehicle multimedia component feedback is responding.
Step S12, the vehicle-mounted multimedia component transmits second response information to the diagnostic device in response to receiving the diagnostic key sent by the diagnostic device using the service 27 of the UDS diagnosis, to inform the diagnostic device that the diagnostic key has been received.
Specifically, the diagnosis device uses the 27 service request security key seed of the UDS diagnosis, sends the diagnosis key to the vehicle-mounted multimedia component after the diagnosis encryption algorithm, and proceeds to step S13 after the vehicle-mounted multimedia component feeds back a positive response.
And step S13, the vehicle-mounted multimedia component responds to the received data transmission request sent by the diagnosis equipment using the 34 service of the UDS diagnosis and sends third response information to the diagnosis equipment so as to inform the diagnosis equipment of running to perform data transmission.
Specifically, the diagnostic device requests data download using the service 34 of the UDS diagnosis, and transmits the data size of the encrypted log grabbing script to the vehicle-mounted multimedia item, and after the vehicle-mounted multimedia item feeds back a positive response, the process proceeds to step S14.
Step S14, in-vehicle multimedia components, in response to receiving the encrypted log grabbing script transmitted by the diagnostic device using the 36 service of UDS diagnosis, send fourth response information to the diagnostic device informing the diagnostic device that the encrypted log grabbing script has been received.
Specifically, the diagnosis apparatus transmits the encrypted log grabbing script to an in-vehicle multimedia item using the 36 service of UDS diagnosis, and proceeds to step S15 after the in-vehicle multimedia item feeds back a positive response.
And step S15, the vehicle-mounted multimedia component responds to receiving an exit data transmission notification sent by the diagnosis equipment using the 37 service of the UDS diagnosis and sends fifth response information to the diagnosis equipment to inform that the diagnosis equipment runs to finish data transmission.
Specifically, the diagnostic device uses 37 services of UDS diagnostics to notify the vehicle-mounted multimedia item to exit data transmission, and the script data transmission is completed after the vehicle-mounted multimedia item feedback is responding.
In one example, the step S2 includes: the vehicle-mounted multimedia component decrypts the encrypted log grabbing script according to the diagnosis key and a preset decryption algorithm to obtain an original log grabbing script;
the step S4 includes: and the vehicle-mounted multimedia component encrypts the fault log according to the diagnosis key and a preset encryption algorithm to obtain an encrypted fault log.
In one example, the step S5 includes:
step S51, if the USB data interface of the vehicle-mounted multimedia part is normal (namely valid), the vehicle-mounted multimedia part derives the encrypted fault log through the USB data interface;
step S52, if the USB data interface of the vehicle-mounted multimedia component is abnormal (i.e., fails), the vehicle-mounted multimedia component stores the encrypted fault log in the internal storage unit, and then receives the 31 service transmission log output enable signal diagnosed by the diagnostic device using the UDS, outputs the encrypted fault log onto the vehicle CAN bus according to the log output enable signal, and derives the encrypted fault log from the vehicle CAN bus.
It should be noted that, corresponding to different types of logs, the log output enable signals are different and CAN be distinguished by adopting codes/IDs, and the log output enable signals are used for starting a log output function, so that the vehicle-mounted multimedia component outputs the encrypted fault log to a vehicle CAN bus, and in the vehicle technology, the english description of the output action of the log is print.
Specifically, the example is a method for collecting logs of after-sale defective products of vehicle-mounted multimedia components based on the UDS protocol, wherein the logs are imported into the vehicle-mounted multimedia components and then the log files are exported through a USB data channel or a CAN bus data exchange channel through the flexibility of edited log capture scripts and the vehicle-rule-level security interactivity of the UDS protocol.
In summary, the embodiment of the invention has the following advantages:
(1) The diagnosis equipment can be used for communicating with the vehicle-mounted multimedia parts through the UDS protocol, so that the after-sales problem debugging requirement is met;
(2) The UDS security diagnosis protocol is adopted, so that the log grabbing channel can be ensured not to be utilized by hackers;
(3) The local grabbing method is adopted, cloud service is not relied on, and the development range is limited to the development of a vehicle-mounted multimedia UDS protocol and the software development of an after-sale diagnostic instrument.
In accordance with the method of the foregoing embodiment, another embodiment of the present invention provides a vehicle-mounted multimedia part log export system, which may be integrated on a vehicle-mounted multimedia part, referring to fig. 2, the system includes:
a script acquisition unit 1, configured to communicate with a diagnostic device based on a UDS protocol, and receive an encrypted log grabbing script sent by the diagnostic device; the log grabbing script is compiled in advance according to the fault analysis requirement;
a decryption unit 2, configured to decrypt the encrypted log grabbing script to obtain an original log grabbing script;
the log grabbing unit 3 is used for carrying out log grabbing according to the original log grabbing script to obtain a fault log;
an encryption unit 4, configured to encrypt the fault log to obtain an encrypted fault log;
a log deriving unit 5 for deriving the encrypted fault log.
In one example, the script acquisition unit 1 is specifically configured to:
establishing communication connection with diagnostic equipment based on a UDS protocol, and responding to a diagnosis request sent by the diagnostic equipment, and carrying out data transmission with the diagnostic equipment to acquire a diagnosis key sent by the diagnostic equipment and the encrypted log grabbing script;
the specific operation of the script acquisition unit 1 is shown in steps 1 to Step5 as follows:
step1, a script acquisition unit responds to a received expansion diagnosis call request sent by the diagnosis equipment using 10 services of UDS diagnosis, and sends first response information to the diagnosis equipment so as to inform the diagnosis equipment of allowing expansion diagnosis call;
step2, a script acquisition unit transmits second response information to the diagnosis device to inform the diagnosis device that the diagnosis key is received in response to receiving the diagnosis key sent by the diagnosis device using the 27 services of the UDS diagnosis;
step3, a script acquisition unit responds to a data transmission request sent by the diagnosis equipment using the 34 service of the UDS diagnosis, and sends third response information to the diagnosis equipment so as to inform the diagnosis equipment of running to perform data transmission;
step4, a script acquisition unit sends fourth response information to the diagnosis device to inform the diagnosis device that the encrypted log grabbing script is received in response to receiving the encrypted log grabbing script transmitted by the diagnosis device using the 36 service of the UDS diagnosis;
step5, the script acquisition unit responds to the receiving of the exit data transmission notification sent by the diagnosis device using the 37 service of the UDS diagnosis, and sends fifth response information to the diagnosis device to inform that the diagnosis device runs to complete data transmission.
In one example, the decryption unit 2 is specifically configured to: the vehicle-mounted multimedia component decrypts the encrypted log grabbing script according to the diagnosis key and a preset decryption algorithm to obtain an original log grabbing script;
the encryption unit 4 is specifically configured to: and encrypting the fault log according to the diagnosis key and a preset encryption algorithm to obtain an encrypted fault log.
In one example, the log deriving unit 5 is specifically configured to:
when the USB data interface of the vehicle-mounted multimedia part is normal, the log deriving unit 5 derives the encrypted fault log through the USB data interface;
when the USB data interface of the vehicle-mounted multimedia part is abnormal, the log export unit 5 receives a 31-service transmission log output enabling signal of the diagnosis device using UDS diagnosis, outputs the encrypted fault log onto a vehicle CAN bus according to the log output enabling signal, and exports the encrypted fault log through the vehicle CAN bus.
The system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
It should be noted that, the system in the foregoing embodiment corresponds to the method in the foregoing embodiment, and therefore, a part of the system in the foregoing embodiment that is not described in detail may be obtained by referring to the content of the method in the foregoing embodiment, that is, the content of specific steps described in the method in the foregoing embodiment may be understood as a function that can be implemented by the system in this embodiment, which is not described herein again.
In addition, the system for deriving the log of the multimedia part in the vehicle-mounted manner according to the above embodiment may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a separate product.
Another embodiment of the present invention proposes a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for deriving a log of a multimedia article on board according to the above embodiment.
In particular, the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The foregoing description of embodiments of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method for deriving a log of a vehicle-mounted multimedia item, the method comprising the steps of:
the vehicle-mounted multimedia component communicates with the diagnosis equipment based on the UDS protocol, and receives an encrypted log grabbing script sent by the diagnosis equipment; the log grabbing script is compiled in advance according to the fault analysis requirement;
the vehicle-mounted multimedia component decrypts the encrypted log grabbing script to obtain an original log grabbing script;
the vehicle-mounted multimedia component performs log grabbing according to the original log grabbing script to obtain a fault log;
the vehicle-mounted multimedia part encrypts the fault log to obtain an encrypted fault log;
the vehicle multimedia component derives the encrypted fault log.
2. The method of claim 1, wherein the vehicle-mounted multimedia item log exporting method of claim 1, wherein the vehicle-mounted multimedia item log exporting method of claim 1 comprises the steps of:
the vehicle-mounted multimedia component establishes communication connection with the diagnostic equipment based on the UDS protocol, and responds to the received diagnostic request sent by the diagnostic equipment, and the vehicle-mounted multimedia component performs data transmission with the diagnostic equipment to acquire the diagnostic key sent by the diagnostic equipment and the encrypted log grabbing script.
3. The method according to claim 2, wherein the data transmission with the diagnostic device obtains the diagnostic key transmitted by the diagnostic device and the encrypted log grabbing script, comprising:
in response to receiving an expanded diagnosis call request sent by the diagnosis device using 10 services of UDS diagnosis, the vehicle-mounted multimedia component sends first response information to the diagnosis device so as to inform the diagnosis device of allowing expanded diagnosis call;
in-vehicle multimedia components, responsive to receiving a diagnostic key issued by the diagnostic device using the 27 services of UDS diagnostics, send second response information to the diagnostic device informing the diagnostic device that the diagnostic key has been received;
the vehicle-mounted multimedia component responds to a data transmission request sent by the diagnosis equipment using the 34 service of the UDS diagnosis, and sends third response information to the diagnosis equipment so as to inform the diagnosis equipment of running for data transmission;
in-vehicle multimedia components, responsive to receiving the encrypted log grabbing script transmitted by the diagnostic device using the 36 services of UDS diagnostics, send fourth response information to the diagnostic device informing the diagnostic device that the encrypted log grabbing script has been received;
in response to receiving a notification of exit data transmission sent by the diagnostic device using the 37 services of UDS diagnostics, the on-board multimedia component sends fifth response information to the diagnostic device informing that the diagnostic device is running to complete data transmission.
4. The method for deriving a log of an on-board multimedia item according to claim 3, wherein the decrypting the encrypted log grabbing script by the on-board multimedia item to obtain an original log grabbing script comprises: the vehicle-mounted multimedia component decrypts the encrypted log grabbing script according to the diagnosis key and a preset decryption algorithm to obtain an original log grabbing script;
the vehicle-mounted multimedia component encrypts the fault log to obtain an encrypted fault log, and the vehicle-mounted multimedia component comprises: and the vehicle-mounted multimedia component encrypts the fault log according to the diagnosis key and a preset encryption algorithm to obtain an encrypted fault log.
5. The in-vehicle multimedia item log deriving method according to claim 1, wherein the in-vehicle multimedia item deriving the encrypted fault log comprises:
if the USB data interface of the vehicle-mounted multimedia part is normal, the vehicle-mounted multimedia part derives the encrypted fault log through the USB data interface;
if the USB data interface of the vehicle-mounted multimedia part is abnormal, the vehicle-mounted multimedia part receives a 31-service transmission log output enabling signal diagnosed by the diagnosis equipment by using the UDS, outputs the encrypted fault log onto a vehicle CAN bus according to the log output enabling signal, and exports the encrypted fault log through the vehicle CAN bus.
6. A vehicle-mounted multimedia item log export system, the system comprising:
the script acquisition unit is used for communicating with the diagnostic equipment based on the UDS protocol and receiving the encrypted log grabbing script sent by the diagnostic equipment; the log grabbing script is compiled in advance according to the fault analysis requirement;
the decryption unit is used for decrypting the encrypted log grabbing script to obtain an original log grabbing script;
the log grabbing unit is used for carrying out log grabbing according to the original log grabbing script to obtain a fault log;
the encryption unit is used for encrypting the fault log to obtain an encrypted fault log;
and the log export unit is used for exporting the encrypted fault log.
7. The vehicle-mounted multimedia item log export system according to claim 6, wherein the script acquisition unit is specifically configured to:
and establishing communication connection with diagnostic equipment based on a UDS protocol, and responding to the received diagnostic request sent by the diagnostic equipment, and carrying out data transmission with the diagnostic equipment to acquire a diagnostic key sent by the diagnostic equipment and the encrypted log grabbing script.
8. The vehicle-mounted multimedia item log export system according to claim 7, wherein the decryption unit is specifically configured to: the vehicle-mounted multimedia component decrypts the encrypted log grabbing script according to the diagnosis key and a preset decryption algorithm to obtain an original log grabbing script;
the encryption unit is specifically configured to: and encrypting the fault log according to the diagnosis key and a preset encryption algorithm to obtain an encrypted fault log.
9. The system according to claim 6, wherein the log deriving unit is specifically configured to:
if the USB data interface of the vehicle-mounted multimedia part is normal, the log deriving unit derives the encrypted fault log through the USB data interface;
if the USB data interface of the vehicle-mounted multimedia part is abnormal, the log deriving unit receives a 31-service transmission log output enabling signal diagnosed by the diagnosis equipment by using the UDS, outputs the encrypted fault log onto a vehicle CAN bus according to the log output enabling signal, and derives the encrypted fault log through the vehicle CAN bus.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the in-vehicle multimedia item log deriving method according to any one of claims 1 to 5.
CN202110301227.XA 2021-03-22 2021-03-22 Vehicle-mounted multimedia part log export method and system and storage medium Active CN115190009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110301227.XA CN115190009B (en) 2021-03-22 2021-03-22 Vehicle-mounted multimedia part log export method and system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110301227.XA CN115190009B (en) 2021-03-22 2021-03-22 Vehicle-mounted multimedia part log export method and system and storage medium

Publications (2)

Publication Number Publication Date
CN115190009A CN115190009A (en) 2022-10-14
CN115190009B true CN115190009B (en) 2024-03-19

Family

ID=83511309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110301227.XA Active CN115190009B (en) 2021-03-22 2021-03-22 Vehicle-mounted multimedia part log export method and system and storage medium

Country Status (1)

Country Link
CN (1) CN115190009B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013171096A1 (en) * 2012-05-16 2013-11-21 Bayerische Motoren Werke Aktiengesellschaft Data logging or stimulation in automotive ethernet networks using the vehicle infrastructure
CN106919495A (en) * 2015-12-25 2017-07-04 比亚迪股份有限公司 CAN journal file acquisition device, system and vehicle for vehicle
CN107272649A (en) * 2017-07-05 2017-10-20 东南(福建)汽车工业有限公司 Malfunction remote diagnosis system and method
JP2017220135A (en) * 2016-06-10 2017-12-14 株式会社 日立産業制御ソリューションズ On-vehicle apparatus log collection system
CN107992407A (en) * 2017-11-15 2018-05-04 烽火通信科技股份有限公司 System and method using USB flash disk to android terminal equipment debugging
CN108140267A (en) * 2016-08-04 2018-06-08 布拉德·金茨 The system and method for monitoring and reprograming for real-time radio ECU
CN108319254A (en) * 2018-01-24 2018-07-24 广东远峰汽车电子有限公司 A kind of collection method, car-mounted terminal and the log collecting server of automobile daily record
CN111611095A (en) * 2019-02-25 2020-09-01 上海博泰悦臻网络技术服务有限公司 Car machine and log obtaining method and device applied by car machine
CN111775864A (en) * 2020-06-28 2020-10-16 广州橙行智动汽车科技有限公司 Remote debugging method and system and vehicle
CN111835799A (en) * 2019-04-16 2020-10-27 上海博泰悦臻电子设备制造有限公司 Automatic acquisition system and method for vehicle log
CN111930703A (en) * 2020-08-20 2020-11-13 深圳创维-Rgb电子有限公司 Automatic log file capturing method and device and computer equipment
CN112233278A (en) * 2020-12-09 2021-01-15 智道网联科技(北京)有限公司 Remote fault analysis method, vehicle-mounted terminal, server, device and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9648023B2 (en) * 2015-01-05 2017-05-09 Movimento Group Vehicle module update, protection and diagnostics

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013171096A1 (en) * 2012-05-16 2013-11-21 Bayerische Motoren Werke Aktiengesellschaft Data logging or stimulation in automotive ethernet networks using the vehicle infrastructure
CN106919495A (en) * 2015-12-25 2017-07-04 比亚迪股份有限公司 CAN journal file acquisition device, system and vehicle for vehicle
JP2017220135A (en) * 2016-06-10 2017-12-14 株式会社 日立産業制御ソリューションズ On-vehicle apparatus log collection system
CN108140267A (en) * 2016-08-04 2018-06-08 布拉德·金茨 The system and method for monitoring and reprograming for real-time radio ECU
CN107272649A (en) * 2017-07-05 2017-10-20 东南(福建)汽车工业有限公司 Malfunction remote diagnosis system and method
CN107992407A (en) * 2017-11-15 2018-05-04 烽火通信科技股份有限公司 System and method using USB flash disk to android terminal equipment debugging
CN108319254A (en) * 2018-01-24 2018-07-24 广东远峰汽车电子有限公司 A kind of collection method, car-mounted terminal and the log collecting server of automobile daily record
CN111611095A (en) * 2019-02-25 2020-09-01 上海博泰悦臻网络技术服务有限公司 Car machine and log obtaining method and device applied by car machine
CN111835799A (en) * 2019-04-16 2020-10-27 上海博泰悦臻电子设备制造有限公司 Automatic acquisition system and method for vehicle log
CN111775864A (en) * 2020-06-28 2020-10-16 广州橙行智动汽车科技有限公司 Remote debugging method and system and vehicle
CN111930703A (en) * 2020-08-20 2020-11-13 深圳创维-Rgb电子有限公司 Automatic log file capturing method and device and computer equipment
CN112233278A (en) * 2020-12-09 2021-01-15 智道网联科技(北京)有限公司 Remote fault analysis method, vehicle-mounted terminal, server, device and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A new CAN diagnostic fault simolator based on UDS protocol;Monica;《2012 International Conference and Exposition on Electrical and Power Engineering》;全文 *
基于UDS协议的汽车事件数据记录系统的数据提取和分析;刘全周等;《汽车零部件》;10-14 *

Also Published As

Publication number Publication date
CN115190009A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN108243259B (en) Method, device and system for transmitting Internet of vehicles data
CN101470411B (en) System and method for safely updating ECU data
CN109240273A (en) Vehicle remote diagnosis method, server-side, engine end and client based on cloud
CN109905488B (en) Safety communication method for electronic and electric appliances of commercial vehicle
CN108243212B (en) Method and device for vehicle diagnosis
DE112017007431T5 (en) Key management system, communication device and key sharing method
CN112512040B (en) High-adaptability ETC security authentication equipment authorization method, device and system
US20240291845A1 (en) Link anomaly detector
CN113141593B (en) Detection method and detection system for vehicle virtual key and upper computer
CN115242841A (en) Vehicle operation log processing system and method
CN105955784A (en) Elevator program upgrade and backup methods and systems, and mobile terminals
CN115190009B (en) Vehicle-mounted multimedia part log export method and system and storage medium
CN111191285A (en) Vehicle fault diagnosis method and device and related equipment
CN107026741A (en) Method and device is write with a brush dipped in Chinese ink in a kind of encryption based on network security
CN111452834A (en) GMS system-based vehicle-mounted equipment detection system and method
CN108920289B (en) Data processing method of vehicle-mounted controller and vehicle-mounted controller
CN110716732A (en) Device and method for upgrading automobile instrument UI and firmware program
CN107454047A (en) A kind of train apparatus recognition methods and system for being used to prevent that illegality equipment from accessing
CN116232571A (en) Vehicle encryption method, device, equipment, storage medium and vehicle
CN114301599B (en) Digital certificate importing method and device of switch and computer equipment
CN114584370A (en) Server data interaction network security system
CN115348057B (en) Data interaction method, system and device
CN103428047A (en) Test method, device and system for service transmission delay
CN101287218A (en) Method, device and system for modifying confidential data in terminal
CN114338640B (en) Remote operation and maintenance method and system

Legal Events

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