CN115277780B - Method and device for acquiring vehicle-end log, electronic equipment and storage medium - Google Patents
Method and device for acquiring vehicle-end log, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115277780B CN115277780B CN202210912536.5A CN202210912536A CN115277780B CN 115277780 B CN115277780 B CN 115277780B CN 202210912536 A CN202210912536 A CN 202210912536A CN 115277780 B CN115277780 B CN 115277780B
- Authority
- CN
- China
- Prior art keywords
- log
- application module
- log file
- communication module
- cloud
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 claims abstract description 85
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012546 transfer Methods 0.000 claims description 8
- 238000011161 development Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 4
- 230000002457 bidirectional effect Effects 0.000 claims description 4
- 230000003213 activating effect Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000003993 interaction Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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 a vehicle-end log, electronic equipment and a computer-readable storage medium, wherein the method comprises the following steps: the method comprises the steps that a first application module obtains a log file stored in a target controller to obtain a log file set, and the target controller is connected with the first application module; sending the log file set to the cloud through the communication module; obtaining log obtaining result information through a first application module, and recording the log obtaining result information through a second application module; and sending log obtaining result information to the cloud through the second application module and the communication module. By the method, the efficiency of pulling the log file in the vehicle-end controller can be improved.
Description
Technical Field
The present application relates to the field of vehicle communications, and in particular, to a method and apparatus for acquiring a vehicle end log, an electronic device, and a computer readable storage medium.
Background
Under the tide of a software-defined automobile, development, debugging and operation management of various embedded controllers at the automobile end and application software running on the corresponding embedded controllers are more and more complex, and the cloud end also needs to uniformly manage log files on the various embedded controllers at the automobile end.
At present, the information is basically read from a real vehicle by directly and physically connecting an upper computer or a corresponding diagnostic instrument with an upper vehicle end. However, this method is very inefficient and difficult to manage uniformly, and if the number of vehicles is large, the traveling position of the vehicles cannot be known, and it is necessary to acquire log files on the vehicles in real time, which is also expensive.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the present application provides a method for obtaining a vehicle-end log, so as to solve the above-mentioned technical problems.
The application provides a vehicle end log acquisition method, which comprises the following steps:
receiving a log file acquisition instruction sent by a cloud 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 the log file set to the cloud through the communication module;
obtaining log obtaining result information through a first application module, and recording the log obtaining result information through a second application module;
and sending log obtaining result information to the cloud through the second application module and the communication module.
In an embodiment of the application, before receiving the log file acquisition instruction sent by the cloud through the communication module, a preset instruction is sent to the communication module through the second application module; and activating the communication module according to a preset instruction.
In an embodiment of the present application, a vehicle identification code of a current vehicle is obtained through a communication module, and hardware identification information of the communication module is obtained; 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.
In an embodiment of the present application, before a log file stored in a target controller is acquired by a first application module in response to a target file acquisition instruction, the log file acquisition instruction is parsed by 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 one embodiment of the 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 present application, the fourth application module and the communication module are invoked, and the log file set is sent to the cloud end through the hypertext transfer protocol.
In an embodiment of the present application, the result information is obtained by the fourth application module production log; and synchronizing the log acquisition result information to the first application module in a inter-thread mode.
In a second aspect, an embodiment of the present application provides a vehicle end log obtaining device, including:
the receiving and transmitting unit is used for receiving a log file acquisition instruction sent by the cloud through the communication module;
the acquisition unit is used for responding to the target file acquisition instruction, acquiring the log files 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 transmitting unit is also used for transmitting the log file set to the cloud 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 transmitting unit is further used for sending log obtaining result information to the cloud 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;
and a storage device for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement 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 perform the vehicle-end log obtaining method described in the first aspect.
The application has the beneficial effects that: the efficiency of pulling the log file in the vehicle-side 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 as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram of an exemplary embodiment of an embedded controller assembly at the vehicle end;
FIG. 2 is a diagram of an application deployment on a primary embedded controller A, shown in accordance with an exemplary 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 flow chart of a method of obtaining a vehicle end log according to an exemplary embodiment of the application;
FIG. 5 is a block diagram of a vehicle end log obtaining device according to an exemplary embodiment of the present application;
fig. 6 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Further advantages and effects of the present application will become readily apparent to those skilled in the art from the disclosure herein, by referring to the accompanying drawings and the preferred embodiments. The application may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present application. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present application by way of illustration, and only the components related to the present application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present application, it will be apparent, however, to one skilled in the art that embodiments of the present application may be practiced without these specific details, 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.
It should be noted that the AT command is a command applied to connection and communication between the terminal device and the PC application. The AT is the Attention. Each AT command line can only contain one AT command; for the transmission of AT instructions, a length of 1056 characters (including the last null character) can be received AT most, in addition to the AT two characters.
HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer, hypertext transfer security protocol), which is an HTTP channel that targets security, guarantees the security of the transfer process by transport encryption and authentication on the basis of HTTP. HTTPS adds SSL on an HTTP basis, and the security basis of HTTPS is SSL, so the details of encryption require SSL. HTTPS has a default port other than HTTP and an encryption/authentication layer (between HTTP and TCP). The system provides an authentication and encryption communication method. It is widely used in security-sensitive communications on the world wide web, such as transaction payments.
Fig. 1 is a schematic diagram showing the composition of an embedded controller at the vehicle end according to an exemplary embodiment of the present application. As shown in fig. 1, the vehicle-end embedded controller comprises: the system comprises a main embedded controller A, a communication module B and a control module, wherein the main embedded controller A is at least provided with a communication module B capable of networking; the main embedded controller a may have a plurality of embedded controllers C, D, E, etc. through various linking means. The physical link modes of the main embedded controller A and the embedded controllers C, D and E are respectively in 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, and takes the communication module B as a channel for networking with the cloud, wherein the channel comprises information such as starting and stopping of a communication function of the communication module B, a website needing to be linked with the cloud and the like, and the networking communication function of the vehicle end and the cloud is realized.
FIG. 2 is a diagram of an application deployment on a primary embedded controller A, as shown in an exemplary embodiment of the present application. Firstly, an application module SWC-QA which performs security authentication with a cloud is deployed on a main embedded controller A; SWC-master for realizing the main functions of the vehicle end and the cloud end is completed; SWC-LT for finishing log management on the main embedded controller and SWC-LTService for collecting other embedded control log files; and finishing SWC-LTtransfer of the vehicle-end 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 controller C, the embedded controller D and the embedded controller E comprise SWC-LT requiring deployment log management and SWC-LTClient transmitting the log file of the controller to the main embedded controller A. The embedded controller C, the embedded controller D and the embedded controller E CAN respectively interact data with the SWC-LTservice of the main embedded controller A in a communication mode of UART/SPI, ETH and CAN.
The embodiment of the application can be applied to a vehicle, and the vehicle can 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, and is not limited in this regard.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for acquiring 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, 2 or 3, and is implemented by a main embedded controller a in the implementation environment, hereinafter referred to as a controller a. It should be understood that the method may be adapted to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and the implementation environments to which the method is adapted are not limited by the present embodiment.
For example, an SDK (Software Development Kit, a software development kit, a development kit set when application software is built for a specific software package, a software framework, an operating system, and the like) may be installed in an intelligent terminal to which the vehicle-end log obtaining method disclosed in this embodiment is applicable, and the method disclosed in this embodiment is specifically implemented as one or more functions provided by the SDK externally.
As shown in fig. 4, in an exemplary embodiment, the method for obtaining the vehicle end log includes at least steps S410 to S450, which are described in detail as follows:
in step S410, a log file obtaining instruction sent by the cloud is received through the communication module.
The communication module is the communication module B shown in fig. 1 or fig. 3.
In an embodiment of the present application, before receiving, by the communication module, a log file obtaining instruction sent by the cloud, the controller a may send a preset instruction to the communication module through a second application module, where the second application module may be an SWC-master, and the preset instruction may be an AT instruction, and is used for completing implementation of a host function of the vehicle end and the cloud. And further activating the communication module according to a preset instruction. That is, 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 present application, before receiving a log file obtaining instruction sent by a cloud end through a communication module, the communication module obtains a vehicle identification code of a current vehicle, and obtains hardware identification information of the communication module. The vehicle identification code may be a VIN identification code, and the hardware identification information may be an IMEI (International Mobile Equipment Identity, international mobile equipment identification code) of the communication module B. Further, a third application module is called 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 complete the safe connection with the cloud based on the VIN identification code and the IMEI code by using the MQTT and the openssl bidirectional authentication mode, and the communication safety of the communication module and the cloud can be ensured. The VIN identification code and the IMEI code may be bound, i.e. "one-vehicle-one-code", and the cloud end binds the corresponding vehicle through the unique "one-vehicle-one-code" of the vehicle, so as to realize secure 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 connection between the target controller and the first application module.
In an embodiment of the present application, before the log file stored in the target controller is obtained by the first application module, the log file obtaining instruction is parsed by 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. The log file obtaining instruction may be sent through an MQTT instruction, and the second application module may parse the MQTT instruction and synchronize the parsed result to the first application module, that is, SWC-LTService, through an inter-thread communication manner. SWC-LTService may collect log files of vehicles.
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 the log file in the controllers, and the controller needing to acquire the log file may be the target controller. Further, a target log file acquisition request is sent to at least one target controller, and further, 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.
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 a target file acquisition instruction, so as to acquire storage information of a log file, and obtain a log file set. Wherein the target file acquisition instruction may instruct acquisition of log files of all controllers. Further, the SWC-LTClient module of each embedded controller transmits the file to the SWC-LTService of the master embedded controller A.
Step S430, the log file set is sent to the cloud through the communication module.
Specifically, the controller a invokes the fourth application module and the communication module to send the log file set to the cloud end through hypertext transfer protocol (HTTPS).
And the controller A calls the SWC-LTtransfer application to initiate the HTPPS link mode on the log file set as required, connects with the appointed cloud end, and completes the uploading of the corresponding log file.
Step S440, obtaining log obtaining result information through the first application module, and recording the log obtaining result information through the second application module.
Specifically, obtaining result information through a fourth application module production log; and synchronizing the log acquisition result information to the first application module in a inter-thread mode. Wherein, the fourth application module can be a SWC-LTtransfer module. The second application module, i.e., the SWC-master, may record the log acquisition result information.
Step S450, the log obtaining result information is sent to the cloud through the second application module and the communication module.
That is, the SWC-master may send the log obtaining result information to the cloud end through the AT command, and the communication module B feeds back the log obtaining result information to the cloud end through the MQTT.
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 the log file set to the cloud through the communication module; obtaining log obtaining result information through a first application module, and recording the log obtaining result information through a second application module; and sending log obtaining result information to the cloud through the second application module and the communication module. By the method, the efficiency of pulling the log file in the vehicle-end controller can be improved.
The application adopts a vehicle-to-vehicle code to lock a unique vehicle, and the safe communication link of the cloud end and the main control embedded controller A of the vehicle end adopts an MQTT+openssl bidirectional authentication mode to finish safe login and send a command, so that the safe link of the vehicle end and the cloud end is ensured.
Because the MQTT is suitable for small files and the log files are sometimes massive, the corresponding set of log files is actually uploaded to the cloud by adopting an additional HTTPS mode.
Aiming at different printing grades of logs of the vehicle-end embedded controller in different stages of development, the cloud end remotely configures the log grade of the vehicle-end embedded controller log system operation by remotely sending current and later commands of pulling the corresponding log system operation grade according to the development progress and the requirements of the vehicle in each stage.
The cloud can also specify the requirements of vehicles, time interruption of the log file, the grade of the log, the log file of the application and the like when the log file at the vehicle end is actively pulled, finish customized pulling of the log file required by the user, and then perform unified management on the pulled log file by the cloud, including visual display as required, storage as required and the like.
Fig. 5 is a block diagram of a vehicle-end log obtaining apparatus according to an exemplary embodiment of the present application. The device can be applied to the implementation environment shown in fig. 1 and is particularly configured in a vehicle. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 5, the exemplary vehicle-end log obtaining apparatus includes:
the transceiver unit 510 is configured to receive, through the communication module, a log file acquisition instruction sent by the cloud;
the obtaining unit 520 is configured to obtain, by using the first application module, a log file stored in the target controller in response to the target file obtaining instruction, to obtain a log file set, where the target controller is connected to the first application module;
the transceiver unit 510 is further configured to send a log file set to the cloud end through 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 transceiver 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 present application, before receiving the log file obtaining instruction sent by the cloud through the communication module, 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 present application, the obtaining unit 520 is further configured to obtain a vehicle identification code of a current vehicle through the communication module, and obtain 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.
In an embodiment of the present application, before the log file stored in the target controller is obtained by the first application module in response to the target file obtaining instruction, the processing unit 530 is further configured to parse the log file obtaining instruction by 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 one embodiment of the application, at least one target controller is determined by a first application module; the transceiver unit 510 is 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 present application, the transceiver unit 510 is further configured to invoke the fourth application module and the communication module, and send the log file set to the cloud end through the hypertext transfer protocol.
In an embodiment of the present application, the obtaining unit 520 is further configured to obtain the result information through the 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 a inter-thread manner.
It should be noted that, the vehicle end log obtaining device provided in the foregoing embodiment and the vehicle end log obtaining method provided in the foregoing embodiment belong to the same concept, and a specific manner in which each module and unit perform an operation has been described in detail in the method embodiment, which is not described herein again. In practical application, the vehicle-end log obtaining device provided in the above embodiment may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and a storage device configured to store one or more programs that, when executed by the one or more processors, cause the electronic apparatus to implement the vehicle-end log obtaining method provided in the foregoing respective embodiments.
Fig. 6 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the 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 impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a central processing unit (Central Processing Unit, CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 602 or a program loaded from a storage section 608 into a random access Memory (Random Access Memory, RAM) 603, for example, performing the method described in the above embodiment. In the RAM 603, various programs and data required for system operation are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through 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, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and a speaker, etc.; 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. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts 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 shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. When executed by a Central Processing Unit (CPU) 601, performs the various functions defined in the system of the present application.
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 thereof. 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 (Erasable Programmable Read Only Memory, EPROM), 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 comprise a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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. A computer program embodied on a 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 flowcharts 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. Where 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 involved 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 provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also 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 perform the vehicle end log acquisition method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone 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 instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the vehicle-end log obtaining method provided in the above-described respective embodiments.
The above embodiments are merely illustrative of the principles of the present application and its effectiveness, and are not intended to limit the application. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the application. It is therefore intended that all equivalent modifications and changes made by those skilled in the art without departing from the spirit and technical spirit of the present application shall be covered by the appended claims.
Claims (8)
1. The method for acquiring the vehicle-end log is characterized by comprising the following steps of:
the method comprises the steps that a message queue telemetry transmission protocol and an open secure socket layer protocol bidirectional authentication mode are used for completing secure connection between a communication module and a cloud, a log file acquisition instruction sent by the cloud is received through the communication module, the communication module is connected with a main embedded controller and is used as a channel between the main embedded controller and the cloud, the main embedded controller is configured with a first application module, a second application module and a fourth application module, the log file acquisition instruction comprises at least one of a specified log grade and a specified application, and the log grade is configured by the cloud according to development progress and requirements of each stage of vehicle use;
responding to the log file acquisition instruction, determining at least one target controller through the first application module, sending a target log file acquisition request to the at least one target controller, receiving a corresponding request of a target log file sent by the at least one target controller, and obtaining a log file set, wherein the target controller is connected with the first application module, and the main embedded controller and the target controller are in physical connection so as to enable the target controller and the main embedded controller to perform data interaction;
invoking the fourth application module and the communication module, and sending the log file set to the cloud through a hypertext transfer security protocol;
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 obtaining result information to the cloud through the second application module and the communication module.
2. The method of claim 1, wherein before the 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 the second application module;
and activating the communication module according to the preset instruction.
3. The method according to claim 2, wherein the method further comprises:
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 identification information, wherein the main embedded controller is also configured with the third application module.
4. The method of claim 1, wherein prior to said responding to said log file acquisition instruction, said 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 log file acquisition instruction, and synchronizing the log file acquisition instruction to the first application module.
5. The method of claim 1, wherein the obtaining, by the first application module, log obtaining result information comprises:
producing the log obtaining result information through the fourth application module;
and synchronizing the log acquisition result information to the first application module in a inter-thread mode.
6. A vehicle-end log obtaining device, characterized by comprising:
the system comprises a receiving and transmitting unit, a communication module and a vehicle, wherein the receiving and transmitting unit is used for completing the safe connection between the communication module and a cloud by using a message queue telemetry transmission protocol and an open secure socket layer protocol bidirectional authentication mode, receiving a log file acquisition instruction sent by the cloud through the communication module, connecting the communication module with a main embedded controller as a channel between the main embedded controller and the cloud, wherein the main embedded controller is configured with a first application module, a second application module and a fourth application module, the log file acquisition instruction comprises at least one of a designated log grade and a designated application, and the log grade is configured by the cloud according to the development progress and the requirements of each stage of vehicle use;
the acquisition unit is used for responding to the log file acquisition instruction, determining at least one target controller through the first application module, sending a target log file acquisition request to the at least one target controller, receiving a corresponding request of a target log file sent by the at least one target controller, and obtaining a log file set, wherein the target controller is connected with the first application module, and the main embedded controller and the target controller are in physical connection so as to enable the target controller and the main embedded controller to perform data interaction;
the receiving and transmitting unit is further configured to invoke the fourth application module and the communication module, and send the log file set to the cloud end through a hypertext transfer protocol;
the acquisition unit is further 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 transmitting unit is further configured to send the log obtaining result information to the cloud through the second application module and the communication module.
7. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the vehicle-end log acquisition method of any one of claims 1 to 5.
8. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the vehicle-end log obtaining method according to any one of claims 1 to 5.
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 CN115277780A (en) | 2022-11-01 |
CN115277780B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116168469B (en) * | 2023-01-03 | 2024-10-11 | 重庆长安汽车股份有限公司 | Vehicle automatic driving record data reading system and method based on diagnostic instrument |
CN116094908B (en) * | 2023-01-17 | 2024-07-26 | 中国第一汽车股份有限公司 | Log file storage method, device, equipment and storage medium |
Citations (10)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10361859B2 (en) * | 2017-10-06 | 2019-07-23 | Stealthpath, Inc. | Methods for internet communication security |
-
2022
- 2022-07-30 CN CN202210912536.5A patent/CN115277780B/en active Active
Patent Citations (10)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN115277780A (en) | 2022-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115277780B (en) | Method and device for acquiring vehicle-end log, electronic equipment and storage medium | |
US10884808B2 (en) | Edge computing platform | |
CN111343020A (en) | Unified management method and device for multi-protocol Internet of things equipment | |
KR100941540B1 (en) | System and method for setting configuration-value inthereof | |
CN107608901A (en) | Method of testing and device based on Jmteter, storage medium, electronic equipment | |
CN112434620B (en) | Scene text recognition method, device, equipment and computer readable medium | |
CN111381965B (en) | Method and apparatus for processing requests | |
CN115022297B (en) | Remote debugging method, device and system of vehicle-end controller and vehicle | |
CN111367220B (en) | Internet of things equipment control method and device | |
CN111786939B (en) | Method, device and system for testing management platform of Internet of things | |
CN109918140A (en) | A kind of cloud application method of controlling operation thereof and device | |
CN113886870A (en) | Data processing method, device, equipment and storage medium | |
CN110816435A (en) | Method and device for remotely controlling vehicle | |
CN112434619B (en) | Case information extraction method, apparatus, device and computer readable medium | |
CN115756448A (en) | Method, device, equipment and medium for acquiring vehicle cloud data acquisition system architecture | |
CN111917733B (en) | Equipment integration method, device, equipment and storage medium based on integration platform | |
CN105306515B (en) | Method and device for acquiring application data on terminals of different operating systems | |
KR20130056539A (en) | Apparatas and method for performing communication with media transfer protocol supported device in a portable terminal | |
CN101336425A (en) | Method and apparatus for generating task in network and recording medium storing program for executing the method | |
CN114546530B (en) | Big data loading method, device, equipment and medium | |
CN114968621B (en) | Data communication method, device, equipment, storage medium and system | |
CN113176892B (en) | Standardized continuous delivery method and system based on release unit | |
CN115203165A (en) | Block chain management method, device, server and medium | |
CN118694800A (en) | Vehicle control method and system based on Internet of vehicles platform and electronic equipment | |
CN118890391A (en) | Interface redirection method, server, local terminal, device, medium and product |
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 |