CN115277780A - Vehicle-end log obtaining method and device, electronic equipment and computer-readable storage medium - Google Patents
Vehicle-end log obtaining method and device, electronic equipment and computer-readable storage medium Download PDFInfo
- Publication number
- CN115277780A CN115277780A CN202210912536.5A CN202210912536A CN115277780A CN 115277780 A CN115277780 A CN 115277780A CN 202210912536 A CN202210912536 A CN 202210912536A CN 115277780 A CN115277780 A CN 115277780A
- Authority
- CN
- China
- Prior art keywords
- log
- application module
- log file
- communication module
- vehicle
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000004891 communication Methods 0.000 claims abstract description 83
- 238000004590 computer program Methods 0.000 claims description 15
- 238000012546 transfer Methods 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 4
- 230000003213 activating effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 14
- 238000012545 processing Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Medical Informatics (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Automation & Control Theory (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides a method and a device for acquiring vehicle-end logs, electronic equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a log file stored in a target controller through a first application module to obtain a log file set, and establishing connection between the target controller and the first application module; sending a log file set to a cloud end through a communication module; acquiring log acquisition result information through a first application module, and recording the log acquisition result information through a second application module; and sending the log to the cloud end through the second application module and the communication module to obtain result information. By the method, the efficiency of pulling the log file in the vehicle-end controller can be improved.
Description
Technical Field
The application relates to the field of vehicle communication, in particular to a vehicle-end log obtaining method and device, electronic equipment and a computer-readable storage medium.
Background
Under the trend of software-defined automobiles, development, debugging and operation management of application software running on various embedded controllers and corresponding embedded controllers at the automobile end are more and more complex, and the cloud end also needs to uniformly manage log files on the embedded controllers at the automobile end.
At present, the vehicle is basically read out on a real vehicle by directly and physically connecting an upper computer or a corresponding diagnostic instrument to a vehicle end and the like. However, this method is very inefficient and difficult to manage uniformly, and if the number of vehicles is large, the driving position of the vehicle cannot be known, and it is necessary to acquire the log file on the vehicle in real time, which also entails high cost.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present application provides a method for obtaining vehicle end logs to solve the above technical problems.
The application provides a vehicle end log obtaining method, which comprises the following steps:
receiving a log file acquisition instruction sent by a cloud end through a communication module;
responding to a target file acquisition instruction, acquiring a log file stored in a target controller through a first application module to obtain a log file set, and establishing connection between the target controller and the first application module;
sending a log file set to a cloud end through a communication module;
acquiring log acquisition result information through a first application module, and recording the log acquisition result information through a second application module;
and sending the log to the cloud end through the second application module and the communication module to obtain result information.
In an embodiment of the application, before receiving a log file acquisition instruction sent by a cloud through a communication module, a preset instruction is sent to the communication module through a second application module; and activating the communication module according to a preset instruction.
In one embodiment of the application, a vehicle identification code of a current vehicle is acquired through a communication module, and hardware identification information of the communication module is acquired; and calling the third application module to verify the safety of the communication module according to the vehicle identification code and the hardware representation information.
In an embodiment of the application, in response to a target file acquisition instruction, before acquiring a log file stored in a target controller through a first application module, the log file acquisition instruction is analyzed through a second application module; and if the analysis is successful, executing the step of responding to the target file acquisition instruction, and synchronizing the log file acquisition instruction to the first application module.
In an embodiment of the present application, at least one target controller is determined by a first application module; sending a target log file acquisition request to at least one target controller; and receiving a corresponding request of the target log file sent by at least one target controller to obtain a log file set.
In an embodiment of the application, the fourth application module and the communication module are called, and the log file set is sent to the cloud end through a hypertext transfer protocol.
In an embodiment of the present application, the result information is obtained by producing a log through a fourth application module; and synchronizing the log acquisition result information to the first application module in an inter-thread mode.
In a second aspect, an embodiment of the present application provides a vehicle-end log obtaining apparatus, including:
the receiving and sending unit is used for receiving a log file acquisition instruction sent by the cloud end through the communication module;
the acquisition unit is used for responding to a target file acquisition instruction, acquiring the log file stored in the target controller through the first application module to obtain a log file set, and establishing connection between the target controller and the first application module;
the receiving and sending unit is also used for sending the log file set to the cloud end through the communication module;
the acquisition unit is also used for acquiring the log acquisition result information through the first application module and recording the log acquisition result information through the second application module;
and the receiving and sending unit is also used for sending the log acquisition result information to the cloud end through the second application module and the communication module.
In a third aspect, the present application provides an electronic device, comprising:
one or more processors;
the storage device is used for storing one or more programs, and when the one or more programs are executed by one or more processors, the electronic equipment is enabled to realize the vehicle end log obtaining method described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the vehicle-end log obtaining method described in the first aspect.
The beneficial effect of this application: the efficiency of pulling the log file in the vehicle-end controller can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of a vehicle-end embedded controller shown in an exemplary embodiment of the present application;
FIG. 2 is a diagram illustrating application deployment on a master embedded controller A in accordance with an illustrative embodiment of the present application;
fig. 3 is a data flow diagram of a cloud pull vehicle end log file according to an exemplary embodiment of the present application;
fig. 4 is a flowchart illustrating a vehicle-end log obtaining method according to an exemplary embodiment of the present application;
fig. 5 is a block diagram of a vehicle-side log obtaining apparatus according to an exemplary embodiment of the present application;
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described with reference to the accompanying drawings and preferred embodiments, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure in the specification. The present application is capable of other and different embodiments and its several details are capable of modifications and/or changes in various respects, all without departing from the spirit of the present application. It should be understood that the preferred embodiments are for purposes of illustration only and are not intended to limit the scope of the present disclosure.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present application, and the drawings only show the components related to the present application and are not drawn according to the number, shape and size of the components in actual implementation, and the type, number and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of the embodiments of the present application, however, it will be apparent to one skilled in the art that the embodiments of the present application may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form rather than in detail in order to avoid obscuring the embodiments of the present application.
First, it should be noted that the AT command is a command applied to connection and communication between the terminal device and the PC application. AT is Attention. Each AT command line can only contain one AT instruction; for the transmission of the AT command, a maximum of 1056 characters in length (including the last null character) can be received, in addition to the AT two characters.
HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer), which is an HTTP channel targeted for security, ensures security of a transmission process through transmission encryption and identity authentication on the basis of HTTP. The HTTPS is added into SSL on the basis of HTTP, the security base of the HTTPS is SSL, and therefore the SSL is needed for encrypting detailed content. HTTPS has a default port other than HTTP and an encryption/authentication layer (between HTTP and TCP). The system provides authentication and encrypted communication methods. It is widely used for security sensitive communication on the world wide web, such as transaction payment.
Fig. 1 is a schematic diagram illustrating a vehicle-end embedded controller according to an exemplary embodiment of the present application. As shown in fig. 1, the vehicle-end embedded controller includes: the main embedded controller A is provided with at least one communication module B capable of being networked; the main embedded controller a may have a plurality of embedded controllers C, D, E, etc. through various linking methods. The physical link modes of the main embedded controller A, the embedded controller C, the embedded controller D and the embedded controller E respectively comprise a serial port mode (UART, SPI and the like), an Ethernet mode, a CAN network mode and the like. The main embedded controller A controls the communication module B in an AT (Attention) instruction mode, the communication module B is taken as a channel connected with the cloud, and the communication module B comprises start and stop of the communication function of the communication module B, information such as websites needing to be linked with the cloud and the like, and the networking communication function of a vehicle end and the cloud is realized.
Fig. 2 is a diagram illustrating application deployment on a master embedded controller a according to an exemplary embodiment of the present application. Firstly deploying an application module SWC-QA which performs security authentication with a cloud on a main embedded controller A; completing the SWC-master for realizing the main functions of the vehicle end and the cloud end; completing SWC-LT of log management on the main embedded controller and SWC-LTservice for collecting other embedded control log files; and finishing the SWC-LTTransfer of transmitting the vehicle-side log file to the cloud.
Fig. 3 is a data flow diagram of a cloud pull vehicle end log file according to an exemplary embodiment of the present application. The embedded controllers C, D and E comprise SWC-LT needing log management and SWC-LTClient for transmitting the log files of the controllers to the main embedded controller A. The embedded controller C, the embedded controller D and the embedded controller E CAN respectively carry out data interaction with the SWC-LTService of the main embedded controller A in a communication mode of UART/SPI, ETH and CAN.
The embodiment of the present application may be applied to a vehicle, and the vehicle may support wireless communication methods such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology), and the like, which is not limited herein.
Referring to fig. 4, fig. 4 is a flowchart of a method for obtaining a vehicle end log according to an exemplary embodiment of the present application. The method can be applied to the implementation environment shown in fig. 1, fig. 2, or fig. 3, and is implemented by a main embedded controller a in the implementation environment, which is hereinafter referred to as controller a. It should be understood that the method may be applied to other exemplary implementation environments and is specifically executed by devices in other implementation environments, and the embodiment does not limit the implementation environment to which the method is applied.
For example, an SDK (Software Development Kit, which is a Development tool set used when establishing application Software for a specific Software package, a Software framework, an operating system, and the like) may be installed in an intelligent terminal to which the method for obtaining a vehicle-side log disclosed in this embodiment is applied, and the method disclosed in this embodiment is specifically implemented to provide one or more external functions for the SDK.
As shown in fig. 4, in an exemplary embodiment, the method for obtaining the vehicle-end log at least includes steps S410 to S450, which are described in detail as follows:
step S410, receiving a log file acquisition instruction sent by the cloud through the communication module.
Wherein the communication module is the communication module B shown in fig. 1 or fig. 3.
In an embodiment of the application, before the log file acquisition instruction sent by the cloud is received by the communication module, the controller a may send a preset instruction to the communication module through the second application module, where the second application module may be an SWC-master, and is used to complete the realization of the main functions of the vehicle end and the cloud, and the preset instruction may be an AT instruction. And then activating the communication module according to the preset instruction. That is to say, the controller a may invoke the second application module to activate the communication module B by sending an AT instruction to the communication module B, and the activated communication module B may communicate with the cloud.
In an embodiment of the application, before the log file acquisition instruction sent by the cloud is received through the communication module, the vehicle identification code of the current vehicle is acquired through the communication module, and the hardware identification information of the communication module is acquired. The vehicle identifier may be a VIN identifier, and the hardware identification information may be an IMEI (International Mobile Equipment Identity) of the communication module B. And further, calling a third application module to verify the safety of the communication module according to the vehicle identification code and the hardware representation information. The third application module can be SWC-QA, the controller A can call the SWC-QA to use an MQTT and opennssl bidirectional authentication mode, the secure connection with the cloud is completed based on the VIN identification code and the IMEI code, and the communication security of the communication module and the cloud can be ensured. Wherein, this VIN identification code and IMEI code can be bound, and "one car is a code", and the cloud binds corresponding vehicle through the only "one car is a code" of vehicle, realizes safe remote communication.
Step S420, responding to the target file obtaining instruction, obtaining the log file stored in the target controller through the first application module to obtain a log file set, and establishing a connection between the target controller and the first application module.
In an embodiment of the application, before the log file saved in the target controller is acquired through the first application module, the log file acquisition instruction is analyzed through the second application module; and if the analysis is successful, executing a step of responding to the target file acquisition instruction, and synchronizing the log file acquisition instruction to the first application module. The log file acquisition instruction can be sent through an MQTT instruction, the second application module can analyze the MQTT instruction, and the analyzed result is synchronized to the first application module, namely SWC-LTservice, in an inter-thread communication mode. The SWC-LTService may collect log files of the vehicle.
Specifically, the controller a may determine at least one target controller through the first application module, that is, may determine which controllers need to acquire log files, and the controller that needs to acquire the log files may be the target controller. Further, a target log file acquisition request is sent to at least one target controller, and then a corresponding request of the target log file sent by the at least one target controller is received, so that a log file set is obtained.
Illustratively, the application SWC-LTService of the controller a sends a target log file acquisition request to the collection master embedded controller a, the embedded controller C, the embedded controller D, and the embedded controller E according to the target file acquisition instruction to acquire the storage information of the log file, so as to obtain a log file set. Wherein the target file acquiring instruction may instruct to acquire log files of all controllers. And then, the SWC-LTClient module of each embedded controller transmits the file to the SWC-LTService of the main embedded controller A.
Step S430, sending the log file set to the cloud through the communication module.
Specifically, the controller a calls the fourth application module and the communication module, and sends the log file set to the cloud through a hypertext transfer protocol transport protocol (HTTPS).
And the controller A calls a link mode of initiating HTPPS by using SWC-LTTransfer to the log file set as required, connects the specified cloud end and finishes uploading of the corresponding log file.
Step S440, the log obtaining result information is obtained through the first application module, and the log obtaining result information is recorded through the second application module.
Specifically, the log is produced through a fourth application module to obtain result information; and synchronizing the log acquisition result information to the first application module in an inter-thread mode. Wherein the fourth application module may be an SWC-LTTransfer module. The second application module, i.e., the SWC-master, may record the log acquisition result information.
And step S450, sending log acquisition result information to the cloud through the second application module and the communication module.
That is to say, the SWC-master can send the log obtaining result information to the cloud to the communication module B through the AT instruction, and the communication module B feeds back the log obtaining result information to the cloud in the MQTT manner.
According to the embodiment of the application, the log file acquisition instruction sent by the cloud is received through the communication module; responding to a target file acquisition instruction, acquiring a log file stored in a target controller through a first application module to obtain a log file set, and establishing connection between the target controller and the first application module; sending a log file set to a cloud end through a communication module; acquiring log acquisition result information through a first application module, and recording the log acquisition result information through a second application module; and sending the log to the cloud end through the second application module and the communication module to obtain result information. By the method, the efficiency of pulling the log file in the vehicle-end controller can be improved.
This application has adopted "a car a sign indicating number" to lock unique vehicle, and the safe communication link of the embedded controller A of main control of car end in high in the clouds has adopted MQTT + opennssl mutual authentication mode to accomplish safe login and send the order, guarantees the safe link in car end and high in the clouds.
Because the MQTT is suitable for small files and a large number of log files are available at times, the corresponding log files are actually uploaded to a cloud terminal in a mode of additionally adding HTTPS.
Aiming at different printing grades of the logs of the vehicle-end embedded controller in different stages of research and development, the cloud end remotely sends current and later log system operation grade commands required to be pulled according to the research and development progress and the requirements of each stage of vehicle use to complete remote configuration of the log grade of the vehicle-end embedded controller log system operation.
When the vehicle end log file is actively pulled, the cloud end can also specify the vehicle, specify the time interval for pulling the log file, specify the grade of the log, specify the log file of the application and other requirements, complete the customized log file required for pulling, and then perform unified management on the pulled log file by the cloud end, including visual display as required, storage as required and the like.
Fig. 5 is a block diagram of a vehicle-side log obtaining apparatus according to an exemplary embodiment of the present application. The device may be applied to the implementation environment shown in fig. 1 and is specifically configured in a vehicle. The apparatus may also be applied to other exemplary implementation environments, and is specifically configured in other devices, and the embodiment does not limit the implementation environment to which the apparatus is applied.
As shown in fig. 5, the exemplary vehicle-end log obtaining apparatus includes:
the receiving and sending unit 510 is configured to receive, through the communication module, a log file acquisition instruction sent by the cloud;
an obtaining unit 520, configured to respond to a target file obtaining instruction, obtain, through a first application module, a log file stored in a target controller to obtain a log file set, where the target controller is connected to the first application module;
the transceiving unit 510 is further configured to send the log file set to the cloud via the communication module;
the obtaining unit 520 is further configured to obtain log obtaining result information through the first application module, and record the log obtaining result information through the second application module;
the transceiving unit 510 is further configured to send log obtaining result information to the cloud through the second application module and the communication module.
In an embodiment of the application, before receiving, by the communication module, the log file acquisition instruction sent by the cloud, the transceiver unit 510 is further configured to send a preset instruction to the communication module through the second application module; the processing unit 530 is configured to activate the communication module according to a preset instruction.
In an embodiment of the application, the obtaining unit 520 is further configured to obtain a vehicle identification code of the current vehicle through the communication module, and obtain hardware identification information of the communication module; and calling the third application module to verify the safety of the communication module according to the vehicle identification code and the hardware representation information.
In an embodiment of the application, before the log file stored in the target controller is obtained through the first application module in response to the target file obtaining instruction, the processing unit 530 is further configured to analyze the log file obtaining instruction through the second application module; and if the analysis is successful, executing the step of responding to the target file acquisition instruction, and synchronizing the log file acquisition instruction to the first application module.
In an embodiment of the present application, at least one target controller is determined by a first application module; a transceiving unit 510, further configured to send a target log file acquisition request to at least one target controller; and receiving a corresponding request of the target log file sent by at least one target controller to obtain a log file set.
In an embodiment of the application, the transceiver unit 510 is further configured to invoke a fourth application module and a communication module, and send the log file set to the cloud end through a hypertext transfer protocol.
In an embodiment of the application, the obtaining unit 520 is further configured to obtain result information through a fourth application module production log; the transceiver unit 510 is further configured to synchronize the log obtaining result information to the first application module in an inter-thread manner.
It should be noted that the vehicle-end log obtaining apparatus provided in the foregoing embodiment and the vehicle-end log obtaining method provided in the foregoing embodiment belong to the same concept, and specific ways of executing operations by each module and unit have been described in detail in the method embodiment, and are not described herein again. In practical applications, the vehicle-end log obtaining apparatus provided in the foregoing embodiment may distribute the functions through different function modules as needed, that is, divide an internal structure of the apparatus into different function modules to complete all or part of the functions described above, which is not limited herein.
An embodiment of the present application further provides an electronic device, including: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment is enabled to realize the vehicle end log obtaining method provided in each embodiment.
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application. It should be noted that the computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 602 or a program loaded from a storage portion 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An Input/Output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. A driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that the computer program read out therefrom is installed into the storage section 608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. When the computer program is executed by a Central Processing Unit (CPU) 601, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to execute the vehicle-end log obtaining method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist separately without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and executes the computer instruction, so that the computer device executes the vehicle-side log obtaining method provided in the above embodiments.
The above-described embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.
Claims (10)
1. A method for obtaining a vehicle end log is characterized by comprising the following steps:
receiving a log file acquisition instruction sent by a cloud through a communication module;
responding to the target file acquisition instruction, acquiring a log file stored in a target controller through a first application module to obtain a log file set, wherein the target controller is connected with the first application module;
sending the log file set to the cloud end through the communication module;
acquiring log acquisition result information through the first application module, and recording the log acquisition result information through the second application module;
and sending the log acquisition result information to the cloud end through the second application module and the communication module.
2. The method of claim 1, wherein before receiving, by the communication module, the log file obtaining instruction sent by the cloud, the method further comprises:
sending a preset instruction to the communication module through a second application module;
and activating the communication module according to the preset instruction.
3. The method of claim 2, further comprising:
acquiring a vehicle identification code of a current vehicle through the communication module, and acquiring hardware identification information of the communication module;
and calling a third application module to verify the safety of the communication module according to the vehicle identification code and the hardware representation information.
4. The method according to claim 1, wherein before the log file saved in the target controller is obtained by the first application module in response to the target file obtaining instruction, the method further comprises:
analyzing the log file acquisition instruction through the second application module;
and if the analysis is successful, executing the step of responding to the target file acquisition instruction, and synchronizing the log file acquisition instruction to the first application module.
5. The method according to claim 1, wherein the obtaining, by the first application module, the log file saved in the target controller in response to the target file obtaining instruction to obtain the log file set comprises:
determining, by the first application module, at least one target controller;
sending a target log file acquisition request to the at least one target controller;
and receiving a corresponding request of the target log file sent by the at least one target controller to obtain the log file set.
6. The method of claim 1, wherein sending the set of log files to the cloud via the communication module comprises:
and calling a fourth application module and the communication module, and sending the log file set to the cloud terminal through a hypertext transfer protocol.
7. The method of claim 6, wherein obtaining log obtaining result information by the first application module comprises:
producing the log through the fourth application module to obtain result information;
and synchronizing the log acquisition result information to the first application module in an inter-thread mode.
8. A vehicle-end log obtaining device is characterized by comprising:
the receiving and sending unit is used for receiving a log file acquisition instruction sent by the cloud end through the communication module;
the acquisition unit is used for responding to the target file acquisition instruction, acquiring the log file stored in a target controller through a first application module to obtain a log file set, and the target controller is connected with the first application module;
the receiving and sending unit is further used for sending the log file set to the cloud end through the communication module;
the acquisition unit is also used for acquiring log acquisition result information through the first application module and recording the log acquisition result information through the second application module;
the receiving and sending unit is further configured to send the log acquisition result information to the cloud end through the second application module and the communication module.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the end-of-vehicle log acquisition method as recited in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when executed by a processor of a computer, causes the computer to execute the vehicle-end log obtaining method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210912536.5A CN115277780B (en) | 2022-07-30 | 2022-07-30 | Method and device for acquiring vehicle-end log, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210912536.5A CN115277780B (en) | 2022-07-30 | 2022-07-30 | Method and device for acquiring vehicle-end log, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115277780A true CN115277780A (en) | 2022-11-01 |
CN115277780B CN115277780B (en) | 2023-11-14 |
Family
ID=83746563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210912536.5A Active CN115277780B (en) | 2022-07-30 | 2022-07-30 | Method and device for acquiring vehicle-end log, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115277780B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116094908A (en) * | 2023-01-17 | 2023-05-09 | 中国第一汽车股份有限公司 | Log file storage method, device, equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273266A (en) * | 2017-06-09 | 2017-10-20 | 上海艾融软件股份有限公司 | A kind of processing method and processing device of application daily record |
CN108237994A (en) * | 2018-02-09 | 2018-07-03 | 北京车和家信息技术有限公司 | Log information processing method, log information processing unit and micro-control unit MCU |
US20190109713A1 (en) * | 2017-10-06 | 2019-04-11 | Stealthpath, Inc. | Methods for internet communication security |
WO2020110414A1 (en) * | 2018-11-30 | 2020-06-04 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Vehicle log transmission device, vehicle log analysis system, and vehicle log transmission/reception method |
CN111835799A (en) * | 2019-04-16 | 2020-10-27 | 上海博泰悦臻电子设备制造有限公司 | Automatic acquisition system and method for vehicle log |
CN112035329A (en) * | 2020-09-17 | 2020-12-04 | 中国银行股份有限公司 | Method and device for acquiring application log of mobile terminal, computer equipment and medium |
CN112199266A (en) * | 2020-10-23 | 2021-01-08 | 中国第一汽车股份有限公司 | Log transmission method and system for vehicle-mounted machine system, vehicle and storage medium |
CN112953779A (en) * | 2021-03-22 | 2021-06-11 | 浙江合众新能源汽车有限公司 | Remote management system and method for automobile software function configuration |
CN113568878A (en) * | 2021-07-28 | 2021-10-29 | 中国第一汽车股份有限公司 | Method and device for collecting and exporting system logs and vehicle |
CN114385210A (en) * | 2022-01-11 | 2022-04-22 | 中国第一汽车股份有限公司 | Method, device and equipment for generating upgrade log and storage medium |
CN114691407A (en) * | 2022-03-30 | 2022-07-01 | 成都中科创达软件有限公司 | Method and device for acquiring vehicle log, electronic equipment and storage medium |
-
2022
- 2022-07-30 CN CN202210912536.5A patent/CN115277780B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273266A (en) * | 2017-06-09 | 2017-10-20 | 上海艾融软件股份有限公司 | A kind of processing method and processing device of application daily record |
US20190109713A1 (en) * | 2017-10-06 | 2019-04-11 | Stealthpath, Inc. | Methods for internet communication security |
CN108237994A (en) * | 2018-02-09 | 2018-07-03 | 北京车和家信息技术有限公司 | Log information processing method, log information processing unit and micro-control unit MCU |
WO2020110414A1 (en) * | 2018-11-30 | 2020-06-04 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Vehicle log transmission device, vehicle log analysis system, and vehicle log transmission/reception method |
CN111835799A (en) * | 2019-04-16 | 2020-10-27 | 上海博泰悦臻电子设备制造有限公司 | Automatic acquisition system and method for vehicle log |
CN112035329A (en) * | 2020-09-17 | 2020-12-04 | 中国银行股份有限公司 | Method and device for acquiring application log of mobile terminal, computer equipment and medium |
CN112199266A (en) * | 2020-10-23 | 2021-01-08 | 中国第一汽车股份有限公司 | Log transmission method and system for vehicle-mounted machine system, vehicle and storage medium |
CN112953779A (en) * | 2021-03-22 | 2021-06-11 | 浙江合众新能源汽车有限公司 | Remote management system and method for automobile software function configuration |
CN113568878A (en) * | 2021-07-28 | 2021-10-29 | 中国第一汽车股份有限公司 | Method and device for collecting and exporting system logs and vehicle |
CN114385210A (en) * | 2022-01-11 | 2022-04-22 | 中国第一汽车股份有限公司 | Method, device and equipment for generating upgrade log and storage medium |
CN114691407A (en) * | 2022-03-30 | 2022-07-01 | 成都中科创达软件有限公司 | Method and device for acquiring vehicle log, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116094908A (en) * | 2023-01-17 | 2023-05-09 | 中国第一汽车股份有限公司 | Log file storage method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115277780B (en) | 2023-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107370668B (en) | Method, device and system for remotely controlling intelligent equipment | |
CN107256188B (en) | Android device control method and device, terminal and storage medium | |
WO2023045849A1 (en) | Software package processing method, apparatus, system, and device, and medium | |
CN111367220B (en) | Internet of things equipment control method and device | |
CN115022297B (en) | Remote debugging method, device and system of vehicle-end controller and vehicle | |
CN110780608A (en) | Simulation test method and device | |
CN112241330A (en) | Flow processing method, device, equipment and storage medium combining RPA and AI | |
CN109649304B (en) | Method, equipment and system for remotely controlling vehicle | |
CN115277780B (en) | Method and device for acquiring vehicle-end log, electronic equipment and storage medium | |
CN112181457A (en) | Vehicle-mounted platform upgrading method and device and electronic equipment | |
CN115756448A (en) | Method, device, equipment and medium for acquiring vehicle cloud data acquisition system architecture | |
CN113467274B (en) | Semi-physical simulation test system and method | |
CN115357266A (en) | CAN bus-based airborne equipment upgrading method and device and storage medium | |
CN105306515B (en) | Method and device for acquiring application data on terminals of different operating systems | |
CN111917733B (en) | Equipment integration method, device, equipment and storage medium based on integration platform | |
CN114419770A (en) | Fleet digital key management method and device and computer | |
KR20130056539A (en) | Apparatas and method for performing communication with media transfer protocol supported device in a portable terminal | |
CN111162969A (en) | RSU and OBU online debugging method, system and medium | |
CN105550355B (en) | Rule-based Hose data delivery system and method | |
CN113709706B (en) | Display control method, device and system for vehicle cabin and terminal | |
CN111835852B (en) | Method for transmitting data between WEB page and FTP server and related equipment thereof | |
CN114546530B (en) | Big data loading method, device, equipment and medium | |
CN115277886B (en) | Vehicle data acquisition method based on data distribution service | |
CN115934655A (en) | Method, device, equipment and medium for processing log data of vehicle-mounted equipment | |
CN108063695B (en) | Communication instruction configuration method and device and data acquisition method and device |
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 |