CN116962389A - Log transmission method, log transmission system, vehicle and server - Google Patents

Log transmission method, log transmission system, vehicle and server Download PDF

Info

Publication number
CN116962389A
CN116962389A CN202310868317.6A CN202310868317A CN116962389A CN 116962389 A CN116962389 A CN 116962389A CN 202310868317 A CN202310868317 A CN 202310868317A CN 116962389 A CN116962389 A CN 116962389A
Authority
CN
China
Prior art keywords
log
vehicle
log file
file
communication terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310868317.6A
Other languages
Chinese (zh)
Inventor
李冰涛
杨美玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202310868317.6A priority Critical patent/CN116962389A/en
Publication of CN116962389A publication Critical patent/CN116962389A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a log transmission method, a log transmission system, a vehicle and a server. Receiving a log transmission task issued by a server; transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to package target log data corresponding to a log transmission task into at least one log file package based on the storage space capacity; and each log file sub-package is obtained one by one and is independently uploaded to the server, so that the server obtains a combined log file package based on all the log file sub-packages to obtain target log data. Under the condition that communication is not supported between the vehicle-mounted controller and the server, the vehicle-mounted communication terminal is used for receiving and transmitting tasks and data of other two sides, and therefore the server can remotely acquire log data files of the vehicle.

Description

Log transmission method, log transmission system, vehicle and server
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a log transmission method, a log transmission system, a vehicle, and a server.
Background
With the development of technology and economy in the automotive field, the maintenance of intelligent control vehicles in recent years has greatly increased. The log data generated when each module in the vehicle runs reflects the running condition of the intelligent control system, so that maintenance engineers usually use external diagnosis equipment to interact with the vehicle in real vehicle to acquire the log data of the whole vehicle, and the state of the vehicle can be diagnosed based on the log data. However, when the vehicle fails, the maintenance engineer may not be able to perform real-vehicle interaction in time to determine the vehicle state. Therefore, how to support remote transmission of log data is a problem to be solved.
Disclosure of Invention
The application provides a log transmission method, a log transmission system, a vehicle and a server, which can solve the technical problems of difficult acquisition of vehicle log data and inconvenient troubleshooting in the related art.
In a first aspect, an embodiment of the present application provides a log transmission method, which is applied to an on-vehicle communication terminal, where the method includes:
receiving a log transmission task issued by a server, and determining target log data corresponding to the log transmission task;
transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to pack the target log data into at least one log file sub-packet based on the storage space capacity, wherein the data volume of each log file sub-packet is smaller than or equal to the storage space capacity;
and acquiring each log file sub-package one by one and independently uploading the log file sub-packages to the server so that the server obtains a combined log file package based on all the log file sub-packages and determines the target log data based on the combined log file package.
In a second aspect, an embodiment of the present application provides a log transmission method, applied to a vehicle-mounted controller, where the method includes:
Acquiring the storage space capacity of a vehicle-mounted communication terminal;
responding to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data, packaging the target log data into at least one log file sub-package based on the storage space capacity, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity;
and sending each log file sub-package to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server.
In a third aspect, an embodiment of the present application provides a log transmission method, applied to a server, where the method includes:
a log transmission task is issued to a vehicle-mounted communication terminal, and the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data;
receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at the log transmission task;
combining all log file sub-packets to obtain a combined log file packet, and determining the target log data based on the combined log file packet.
In a fourth aspect, embodiments of the present application provide a vehicle adapted to perform the steps of the method of the first or second aspect described above.
In a fifth aspect, an embodiment of the present application provides a server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of the third aspect described above when the computer program is executed.
In a sixth aspect, an embodiment of the present application provides a log transmission system, including: the vehicle comprises a vehicle-mounted communication terminal and a vehicle-mounted controller; wherein:
the vehicle-mounted communication terminal is used for:
receiving a log transmission task issued by the server, and determining target log data corresponding to the log transmission task;
transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to pack the target log data into at least one log file sub-packet based on the storage space capacity, wherein the data volume of each log file sub-packet is smaller than or equal to the storage space capacity;
each log file sub-package is obtained one by one and is independently uploaded to the server, so that the server obtains a combined log file package based on all log file sub-packages and determines the target log data based on the combined log file package;
The vehicle-mounted controller is used for:
storing the storage space capacity of the vehicle-mounted communication terminal;
responding to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data, packaging the target log data into at least one log file sub-package based on the storage space capacity, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity;
each log file sub-package is sent to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server;
the server is used for:
the method comprises the steps that a log transmission task is issued to the vehicle-mounted communication terminal, and the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data;
receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at the log transmission task;
combining all log file sub-packets to obtain a combined log file packet, and determining the target log data based on the combined log file packet.
The technical scheme provided by the embodiments of the application has the beneficial effects that at least:
the application provides a log transmission method which is applied to an on-vehicle communication terminal and used for receiving a log transmission task issued by a server; transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to package target log data corresponding to a log transmission task into at least one log file package based on the storage space capacity; and each log file sub-package is obtained one by one and is independently uploaded to the server, so that the server obtains a combined log file package based on all the log file sub-packages to obtain target log data. The vehicle-mounted communication terminal indicates the vehicle-mounted controller to sub-package the log file package based on the storage space capacity of the vehicle-mounted communication terminal, so that the data volume of each log file sub-package is smaller than or equal to the storage space capacity, the vehicle-mounted communication terminal can upload each log file sub-package based on a limited memory, finally, the target log data with large data volume can be uploaded to the server through a plurality of file packages with small data volume for a plurality of times, and maintenance engineers at the server can directly analyze the data of the vehicle through the target log data to check the vehicle condition.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application and that other drawings may be obtained from them without inventive effort for a person skilled in the art.
Fig. 1 is an exemplary system architecture diagram of a log transmission method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a log transmission method according to an embodiment of the present application;
fig. 3 is a communication schematic diagram of a vehicle-mounted communication terminal, a vehicle-mounted controller and a server according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a log transmission method according to an embodiment of the present application;
fig. 5 is a system interaction diagram of a log transmission method according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a log transmission method according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a log transmission method according to an embodiment of the present application;
fig. 8 is a schematic flow chart of a log transmission method according to an embodiment of the present application;
Fig. 9 is a schematic flow chart of a log transmission method according to an embodiment of the present application;
fig. 10 is a block diagram of a log transmission device according to an embodiment of the present application;
fig. 11 is a block diagram of a log transmission device according to an embodiment of the present application;
fig. 12 is a block diagram of a log transmission device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the features and advantages of the present application more comprehensible, embodiments accompanied with figures in the present application are described in detail below, wherein the embodiments are described only in some but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application as detailed in the accompanying claims.
With the development of technology and economy in the automotive field, the maintenance of intelligent control vehicles in recent years has greatly increased. The log data generated when each module in the vehicle is running reflects the running condition of the intelligent control system, so maintenance engineers typically check the vehicle condition based on the vehicle log data.
At present, the log data is collected by sensors in the vehicle and vehicle-mounted controllers of all functional modules, namely electronic control units (Electronic Control Unit, ECU), and when the vehicle condition needs to be analyzed based on the log data, all vehicle-mounted controllers are communicated to package and transmit the log data. Specifically, each vehicle-mounted controller collects log data through unified diagnostic service (Unified Diagnostic Services, UDS protocol), the UDS protocol is a diagnostic mode for all vehicle-mounted controllers of the whole vehicle, based on the UDS diagnostic protocol, a control system on the vehicle records and processes faults according to the regularized diagnostic protocol, and finally the fault records are reflected as diagnostic fault codes (Diagnostic Trouble Code, DTC), and long-time vehicle information records and diagnoses are continuously carried out, namely log data of the vehicle are formed.
Based on the limitation of the diagnostic protocol, the communication transmission protocol of the log data obtained based on the diagnostic protocol also has limitation, namely when the log data file packet is obtained, the communication protocol supporting the transmission of the log data is needed to be based on so as to realize the communication with each vehicle-mounted controller to read the log data file packet collected and packed by each vehicle-mounted controller. Therefore, maintenance engineers usually use external diagnosis equipment to interact with the vehicle in real vehicle, the diagnosis equipment is connected with the vehicle through a special interface, and further log data of the whole vehicle is obtained, and the vehicle state is further diagnosed based on the log data. However, when the vehicle condition is to be checked, the maintenance engineer may not be able to timely carry the diagnosis device to the site where the vehicle is located to perform real vehicle interaction to check the vehicle condition, which makes the vehicle condition check difficult.
Therefore, the embodiment of the application provides a log transmission method to solve the technical problems of difficult acquisition of vehicle log data and inconvenient troubleshooting.
Referring to fig. 1, fig. 1 is an exemplary system architecture diagram of a log transmission method according to an embodiment of the present application.
As shown in fig. 1, the system architecture may include a vehicle 101, a network 102, and a server 103, and the vehicle 101 may include an in-vehicle communication terminal 1011 and an in-vehicle controller 1012, wherein the locations of the in-vehicle communication terminal 1011 and the in-vehicle controller 1012 shown in fig. 1 are merely illustrative. The network 102 is a medium for providing a communication link between the vehicle 101 and the server 103, and specifically includes a medium in which the network 102 is used to provide a communication link between the in-vehicle communication terminal 1011 and the in-vehicle controller 1012, and a medium in which a communication link is provided between the in-vehicle communication terminal 1011 and the server 103. Network 102 may include various types of wired or wireless communication links, such as: the wired communication link includes an optical fiber, a twisted pair wire, or a coaxial cable, and the Wireless communication link includes a bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, a microwave communication link, or the like.
The vehicle 101 may interact with the server 103 via the network 102 to receive messages from the server 103 or to send messages to the server 103, or the vehicle 101 may interact with the server 103 via the network 102 to receive messages or data sent by other users to the server 103. The vehicle 101 may be hardware or software. When the vehicle 101 is hardware, it may be a variety of electronic devices including, but not limited to, a smart watch, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the vehicle 101 is software, it may be installed in the above-listed electronic device, which may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, which is not specifically limited herein.
The server 103 may be a business server providing various services. The server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 103 is software, it may be implemented as a plurality of software or software modules (for example, to provide a distributed service), or may be implemented as a single software or software module, which is not specifically limited herein.
In the embodiment of the present application, the server 103 issues a log transmission task to the vehicle-mounted communication terminal 1011, where the log transmission task is used to instruct the vehicle-mounted communication terminal 1011 to upload target log data; the vehicle-mounted communication terminal 1011 receives the log transmission task issued by the server 103 and determines target log data corresponding to the log transmission task; the vehicle-mounted communication terminal 1011 sends the storage space capacity of the vehicle-mounted communication terminal 1011 to the vehicle-mounted controller 1012, and instructs the vehicle-mounted controller 1012 to package the target log data into at least one log file sub-package, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity; the in-vehicle controller 1012 stores the storage space capacity of the in-vehicle communication terminal 1011; the vehicle-mounted controller 1012 responds to a log packaging instruction sent by the vehicle-mounted communication terminal 1011 for the target log data and packages the target log data into at least one log file package based on the storage space capacity; the vehicle-mounted controller 1012 sends the log file sub-packets to the vehicle-mounted communication terminal 1011 one by one, so that the vehicle-mounted communication terminal 1011 obtains the log file sub-packets one by one and independently uploads the log file sub-packets to the server 103; the vehicle-mounted communication terminal 1011 acquires each log file packet from the vehicle-mounted controller 1012 one by one and individually uploads the log file packet to the server 103; the server 103 receives at least one log file packet uploaded by the in-vehicle communication terminal 1011 for the log transmission task, and determines the target log data based on all the log file packets.
It should be appreciated that the number of vehicles, networks, and servers in FIG. 1 is merely illustrative, and that any number of vehicles, networks, and servers may be used as desired for an implementation.
Referring to fig. 2, fig. 2 is a flow chart of a log transmission method according to an embodiment of the application. The execution body of the embodiment of the application can be a vehicle for executing log transmission, a processor in the vehicle for executing the log transmission method, and a log transmission service in the vehicle for executing the log transmission method. For convenience of description, a specific execution procedure of the log transmission method will be described below taking an example in which the execution subject is a processor in a vehicle.
As shown in fig. 2, the log transmission method, applied to the vehicle-mounted communication terminal, may at least include:
s202, receiving a log transmission task issued by a server, and determining target log data corresponding to the log transmission task.
Optionally, when the diagnostic device is used to acquire log data of the vehicle, a maintenance engineer needs to interact with the vehicle through the diagnostic device, and the maintenance engineer cannot timely carry the diagnostic device to the site every time the vehicle condition is required to be checked, so that complicated and severe data acquisition conditions cause obstruction to a large number of vehicle condition checking works. In order to improve the acquisition efficiency of the log data, the log data in the vehicle can be acquired through remote wireless communication between other remote terminals and the vehicle, so that a maintenance engineer can directly check and analyze the log data at the remote terminals, and further the convenience and efficiency of investigation of the vehicle condition are improved.
Optionally, in one possible embodiment, the remote terminal may select a server having efficient data transmission capabilities, processing capabilities, and facilitating vehicle status investigation by a maintenance engineer based on vehicle log data. In order to realize external communication connection with the server, the vehicle may include a vehicle-mounted communication terminal, for example, a vehicle-mounted communication Terminal (TBOX), where the TBOX is used for performing remote information processing on the vehicle, and is responsible for communication connection between the vehicle and other external terminals, that is, the vehicle-mounted communication terminal supports communication with the server using a second communication protocol, where the second communication protocol is a communication protocol supportable by the server, for example, hypertext transfer protocol (HTTP), hypertext transfer security protocol (H2 ypertext Transfer Protocol Secure, HTTPs), and so on. Referring to fig. 3, fig. 3 is a communication schematic diagram of a vehicle-mounted communication terminal, a vehicle-mounted controller, and a server according to an embodiment of the present application. As shown in fig. 3, when the server communicates with the vehicle-mounted communication terminal, in order to ensure the security and stability of data transmission, a hypertext transfer security protocol may be used for communication, where the HTTPS protocol is a hypertext transfer (HTTP) channel with security as a target, and the security of the transmission process is ensured by transmission encryption and identity authentication on the basis of HTTP.
Further, in the vehicle, log data in the vehicle is collected based on a universal diagnosis protocol (UDS), and the UDS diagnosis service CAN be implemented on a whole vehicle CAN bus and an ethernet, so that the vehicle-mounted communication terminal also has internal communication capability and CAN communicate with the vehicle-mounted controller based on a first communication protocol, wherein the first communication protocol is a communication protocol supported by the vehicle-mounted controller, such as a whole vehicle CAN bus protocol, an ethernet protocol and the like.
Optionally, considering that the data transmission capability of the ethernet is more efficient, in a possible embodiment, the first communication protocol is ethernet, and then please continue to refer to fig. 3, where the in-vehicle communication terminal communicates with other in-vehicle controllers in the vehicle based on ethernet and ethernet gateway (Great wall). Specifically, the UDS service based on the Ethernet communication technology can use DoIP (Diagnostic over Internet protocol) protocol for diagnosis communication, doIP diagnosis has higher data transmission rate, the hardware cost is low, the DoIP technology can be matched with the infrastructure of an intelligent vehicle type, and both fixed diagnosis and remote diagnosis can be applied. Based on the above, the vehicle-mounted communication terminal has the function of completing data receiving and transmitting with the server and the vehicle-mounted controller, so that the vehicle-mounted communication terminal can receive the log data transmission task issued by the server, and the corresponding log data file packet is taken from the vehicle-mounted controller based on the log data transmission task, so that the log data of the vehicle can be conveniently and remotely obtained by the server.
Specifically, when the server needs to acquire the target log data, a log transmission task corresponding to the target log data is issued to the vehicle-mounted communication terminal through a second communication protocol between the vehicle-mounted communication terminal and the server, and the vehicle-mounted communication terminal receives the log transmission task issued by the server and determines the target log data to be uploaded by the current log transmission task. The follow-up vehicle-mounted communication terminal is communicated with the vehicle-mounted controller based on the first communication protocol, log data are obtained and uploaded to the server, wherein the first communication protocol between the vehicle-mounted communication terminal and the vehicle-mounted controller is different from the second communication protocol between the vehicle-mounted communication terminal and the server, and therefore the checking convenience and efficiency of the vehicle condition are improved.
Optionally, if the server issues the log transmission task, the vehicle-mounted communication terminal is in a power-down state, the log transmission task is stored in a message queue of the terminal after being sent, and the log transmission task can be directly obtained from the message queue after the vehicle-mounted communication terminal is powered on and responded to the log transmission task.
S204, the storage space capacity of the vehicle-mounted communication terminal is sent to the vehicle-mounted controller, and the vehicle-mounted controller is instructed to pack target log data into at least one log file sub-packet based on the storage space capacity, wherein the data volume of each log file sub-packet is smaller than or equal to the storage space capacity.
Optionally, in the process that the vehicle-mounted communication terminal reads the log data file package from the vehicle-mounted controller and uploads the log data file package to the server, the read log data needs to be stored in a local storage space of the vehicle-mounted communication terminal, and then uploaded to the server from the local storage space. The size of the file that can be stored in the storage space is determined by the capacity of the storage space, that is, the storage capacity, which refers to the binary information amount that can be contained in the memory. Generally, the storage space capacity of the vehicle-mounted communication terminal is smaller, but the target log data corresponding to the log transmission task generally obtains all log data in a period of time, so that the volume of the log file packet corresponding to the target log data may exceed the local storage capacity of the vehicle-mounted communication terminal, and the vehicle-mounted communication terminal cannot bear the one-time complete transmission of the general volume log file packet.
Further, in order to enable the vehicle-mounted communication terminal to transmit log data with larger data volume, the log file package can be divided into a plurality of log file packages with smaller data volume, and then the vehicle-mounted communication terminal can independently upload each log file package for a plurality of times, so that all log file packages are uploaded to the server, and the server obtains complete target log data based on the log file packages.
Optionally, in order for the vehicle-mounted communication terminal to upload all the log file sub-packets, the data volume of each log file sub-packet needs to be smaller than or equal to the storage space capacity of the vehicle-mounted communication terminal, and then the vehicle-mounted communication terminal needs to send its own storage space capacity to the vehicle-mounted controller, so that the vehicle-mounted controller sub-packets the log file packets based on the storage space capacity in the following process, and the data volume of all the sub-packet files is in the data volume range allowed by the storage space capacity.
Optionally, after the vehicle-mounted communication terminal determines the target log data, the storage space capacity of the vehicle-mounted communication terminal is sent to the vehicle-mounted controller through the first communication protocol, an instruction is sent to the vehicle-mounted controller, the vehicle-mounted controller is instructed to package the target log data into at least one log file package based on the storage space capacity, and the data volume of each log file package is smaller than or equal to the storage space capacity during packaging. The packaging in the embodiment of the application is the whole process of packaging the data into the folder and compressing the folder, wherein a special default storage path for the log file package exists in the vehicle-mounted controller, and the vehicle-mounted controller stores all the packaged log files under the default path, so that the vehicle-mounted communication terminal can conveniently read the log files.
S206, each log file sub-package is obtained one by one and is uploaded to the server individually, so that the server obtains a combined log file package based on all the log file sub-packages and determines target log data based on the combined log file package.
Optionally, after the vehicle-mounted communication terminal instructs the vehicle-mounted controller to complete the file sub-packaging, each log file sub-packaging is obtained one by one and is uploaded to the server individually, so that the server obtains a combined log file package based on all the log file sub-packaging and determines the target log data based on the combined log file package.
Specifically, the vehicle-mounted controller packages and generates sub-package file information of all log file sub-packages at the same time, and then the vehicle-mounted communication terminal receives the sub-package file information returned by the vehicle-mounted controller based on all log file sub-packages, wherein the sub-package file information comprises, but is not limited to, the sub-package number, the sub-package file name length, the sub-package serial number of each log file sub-package and the like, and at the moment, the vehicle-mounted communication terminal can acquire the log file sub-packages one by one according to the sequence of the sub-package serial numbers and independently upload the log file sub-packages to the server so that the server obtains a combined log file package based on all log file sub-packages and determines target log data based on the combined log file package.
In the embodiment of the application, a log transmission method is provided, which is applied to an on-vehicle communication terminal and used for receiving a log transmission task issued by a server; transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to package target log data corresponding to a log transmission task into at least one log file package based on the storage space capacity; and each log file sub-package is obtained one by one and is independently uploaded to the server, so that the server obtains a combined log file package based on all the log file sub-packages to obtain target log data. The vehicle-mounted communication terminal indicates the vehicle-mounted controller to sub-package the log file package based on the storage space capacity of the vehicle-mounted communication terminal, so that the data volume of each log file sub-package is smaller than or equal to the storage space capacity, the vehicle-mounted communication terminal can upload each log file sub-package based on a limited memory, finally, the target log data with large data volume can be uploaded to the server through a plurality of file packages with small data volume for a plurality of times, and maintenance engineers at the server can also directly analyze the data of the vehicle through the target log data to check the vehicle condition.
Referring to fig. 4, fig. 4 is a flow chart of a log transmission method according to an embodiment of the application.
As shown in fig. 4, the log transmission method, applied to the vehicle-mounted communication terminal, may at least include:
s402, receiving a log transmission task issued by a server, and determining target log data corresponding to the log transmission task.
For step S402, please refer to the detailed description in step S202, and the detailed description is omitted here.
S404, the storage space capacity of the vehicle-mounted communication terminal is sent to the vehicle-mounted controller.
Optionally, referring to fig. 5, fig. 5 is a system interaction diagram of a log transmission method according to an embodiment of the present application. As shown in fig. 5, the server first issues a log transmission task to the vehicle-mounted communication terminal, and after the vehicle-mounted communication terminal receives the log transmission task and determines target log data, the vehicle-mounted communication terminal communicates with the vehicle-mounted controller to obtain a file packet corresponding to the target log data. That is, the in-vehicle communication terminal establishes a diagnosis session with the in-vehicle controller to use various diagnosis services provided by the in-vehicle controller based on the diagnosis session, including log data acquisition, and the like. The diagnostic session has a plurality of diagnostic session modes, each of which can provide different diagnostic services, and the diagnostic session modes are divided into two main categories: default sessions and non-default sessions, wherein the non-default sessions in turn include programming sessions and extension sessions. The default session is a session state maintained by the vehicle-mounted controller when the vehicle-mounted controller is just powered on, the service using authority is small, the service of the operable functional units is less, and more unusable services exist in the mode; the programming session is the use of only diagnostic services related to the brushware program; and the session is extended, the authority of using the service is larger, namely the functional unit which can be operated can serve more services, and the service which can not be used in the default session mode can be used in the extension mode.
Based on this, please continue to refer to fig. 5, after receiving the log transmission task, the vehicle-mounted communication terminal first needs to activate the vehicle-mounted controller to enter the extended session from the default session. Meanwhile, considering that the log data in the vehicle-mounted controller necessarily contains relevant development data sensitive to safety, the data has higher confidentiality and is not opened to users, and the reading service corresponding to the data generally has confidentiality setting so as to protect the data from being acquired by non-maintenance engineers. When the reading service of the data is used, the security unlocking is needed, the log transmission task carries a security unlocking key corresponding to the reading service which is needed to be used locally, and with continued reference to fig. 5, the data reading service request can be unlocked through verification of a known key under the extended session, so that the normal response of the vehicle-mounted controller is obtained.
Optionally, after the safety unlocking, a communication link for transmitting the current log data is established between the vehicle-mounted controller and the vehicle-mounted communication terminal, and the execution environment of the vehicle-mounted controller is further checked to check whether the execution environment of the vehicle-mounted controller can complete the packaging and transmission of the current target log data. With continued reference to fig. 5, the vehicle-mounted communication terminal sends an execution environment inspection instruction to the vehicle-mounted controller for the log transmission task to instruct the vehicle-mounted controller to inspect the task execution environment inside the vehicle-mounted controller, and the vehicle-mounted communication terminal subsequently receives the inspection result returned by the vehicle-mounted controller after the vehicle-mounted controller responds to the execution environment inspection instruction.
Optionally, the checking result has two cases, namely supporting task execution and not supporting task execution, if the checking result is supporting task execution, the environment checking is passed, the vehicle-mounted controller can normally package and transmit log data, and at the moment, the vehicle-mounted communication terminal can continuously execute and instruct the vehicle-mounted controller to package target log data.
Optionally, if the checking result is that the task execution is not supported, it indicates that the vehicle-mounted controller cannot normally package and transmit the log data at this time, then a task failure report is generated based on the checking result and the task failure report is returned to the server, so that the server knows that the task fails this time, and the cause of the task failure can be analyzed and solved based on the task failure report.
Optionally, after confirming that the environment support of the vehicle-mounted controller completes the log transmission task, further executing the vehicle-mounted communication terminal. Specifically, referring to fig. 5, a specific process of storing a storage space capacity in a vehicle-mounted controller by a vehicle-mounted communication terminal may be to newly write a piece of data in the vehicle-mounted controller, for example, to add an identifier of the storage space capacity to the vehicle-mounted controller, where the identifier may be a DID, and the DID is an ID stored in a Non-volatile memory (NVM) to indicate some identifiers of a vehicle or software, and after the identifiers are created, the vehicle-mounted communication terminal may write the data corresponding to the DID in the Non-volatile memory (NVM) corresponding to the vehicle-mounted controller through a writing service (2E service), that is, write the data corresponding to the DID in the NVM.
S406, instructing the vehicle-mounted controller to package the target log data into a log file package.
Optionally, the specific process of instructing the vehicle-mounted controller to package the target log data and divide the target log data into a plurality of log file packages is that firstly, the vehicle-mounted controller is instructed to package the target log data to obtain a log file package corresponding to the target log data, the log file package is a file completely containing the target log data, and after obtaining the log file package completely containing all the target log data, the vehicle-mounted controller also simultaneously generates file information of the log file package.
Optionally, the vehicle-mounted controller packages the target log data to obtain a log file package, the vehicle-mounted communication terminal can obtain the log file package from the vehicle-mounted controller at the moment, namely, obtain complete target log data, establish communication with the server, upload the log file package to the server, so that the server receives the log file package, analyzes and decompresses the log file package to further determine the target log data, and therefore, under the condition that communication is not supported between the vehicle-mounted controller and the server, the server can remotely obtain the log data file of the vehicle, remote and non-contact transmission of the vehicle log data is realized, and convenience in vehicle condition investigation through the log data is also increased.
S408, receiving file information returned by the vehicle-mounted controller based on the log file packet.
Optionally, when the vehicle-mounted controller packages the target log data to obtain a log file packet corresponding to the target log data, file information corresponding to the log file packet is generated at the same time, wherein the file information comprises at least one of a log type, a package start-stop time, a package storage path and a file packet characteristic value, and further comprises but is not limited to various information such as the number of logs in each type, a log catalog, the whole package file data quantity and the like. The log types are divided into a system log (system log), a software log (APP log) and a data capture (data capture), wherein the system log usually records loopholes of an underlying operating system, such as an operating system crash and the like; the software log is typically the running data of the application layer software; the data collection is to indicate fault information of each functional module, for example, if the temperature of the component is too high, specific temperature data can be collected. Referring to fig. 5, after the vehicle-mounted controller generates the file information, the file information is returned to the vehicle-mounted communication terminal, and the vehicle-mounted communication terminal receives the file information returned by the vehicle-mounted controller based on the log file packet, so that the detailed information of the packaging folder is obtained.
S410, returning the file information to the server, so that the server verifies the file consistency of the combined log file package and the log file package based on the file package characteristic value after obtaining the combined log file package.
Optionally, the feature value of the file package is a unique feature value for characterizing the overall feature of the log file package after the log file package is calculated by a preset algorithm. Considering that the log file package may have incomplete downloading, error downloading and other problems during the transmission process, the final server receives incomplete log file package, so that the server may calculate the characteristic value of the log file package to compare the characteristic value of the packaged log file package to verify the consistency of the received log file and the original file.
In a possible embodiment, the file information comprises a package characteristic value. And after receiving the file information, the vehicle-mounted communication terminal returns the file information to the server so that the server verifies the file consistency of the received file and the original file based on the file package characteristic value in the file information. Specifically, when calculating the feature value of the file package, an MD5 Message-Digest Algorithm (english: MD5 Message-Digest Algorithm) may be used, where the MD5 Algorithm is a cryptographic hash function, and a 128-bit (16-byte) hash value may be generated to ensure that the information transmission is completely consistent.
And S412, based on the file information, instructing the vehicle-mounted controller to packetize the log file packets into at least one log file packet based on the storage space capacity.
Alternatively, as can be seen from the above embodiment, the storage space capacity is already written in the vehicle-mounted controller, and after receiving the file information, the vehicle-mounted communication terminal confirms that the file information is correct and triggers the vehicle-mounted controller to carry out continuous subpackaging. That is, as shown in fig. 5, the vehicle-mounted communication terminal instructs the vehicle-mounted controller to packetize the log file packets based on the storage space capacity to obtain at least one log file packet based on the file information, wherein the data volume of each log file packet is smaller than or equal to the storage space capacity, so that the vehicle-mounted communication terminal can acquire and store each log file packet based on the storage space capacity, and upload each log file packet.
S414, each log file sub-package is obtained one by one and is uploaded to the server individually, so that the server obtains a combined log file package based on all the log file sub-packages and determines target log data based on the combined log file package.
Optionally, referring to fig. 5, after the vehicle-mounted communication terminal instructs the vehicle-mounted controller to complete the file sub-packaging, each log file sub-packaging is obtained one by one and is individually uploaded to the server, so that the server obtains a combined log file package based on all the log file sub-packaging and determines the target log data based on the combined log file package.
In another possible embodiment, in the uploading process of the plurality of log file sub-packets, the vehicle may be powered down, so that in order to continue to complete the log transmission task when the vehicle is powered up next time, the vehicle-mounted communication terminal may memorize task execution data of the log transmission task, record, when the plurality of log file sub-packets are uploaded, to which sub-packet serial number the uploading task is executed, whether the uploading of the packet is successful or not, when the vehicle is powered up next time, the vehicle-mounted communication terminal responds to a wake-up signal of the vehicle-mounted communication terminal, and responds to a task continuation instruction corresponding to the log transmission task, reads the task execution data corresponding to the log transmission task to determine at least one non-uploaded log file sub-packet, wherein the task execution data includes uploading state information of each log file sub-packet.
Optionally, after all the log file packets are uploaded to the server, the server instructs the vehicle-mounted controller to clear the locally packaged file data so as to prevent the log data from excessively occupying the memory space, and at this time, as shown in fig. 5, the vehicle-mounted communication terminal receives a local log deletion instruction sent after the server determines the target log data so as to instruct the vehicle-mounted controller to delete the log file packet.
Optionally, the vehicle-mounted communication terminal instructs the vehicle-mounted controller to delete the log file packet based on the local log deleting instruction, and if the vehicle-mounted controller carries out the packetizing processing on the whole packet, the packetizing is also deleted together, so as to remove the log data packaged at the present time in the default path of the log data, and the packaging and uploading of the next log data are not affected.
In the embodiment of the application, a log transmission method is provided and is applied to an on-vehicle communication terminal. The vehicle-mounted communication terminal indicates the vehicle-mounted controller to sub-package the log file package based on the storage space capacity of the vehicle-mounted communication terminal, so that the data volume of each log file sub-package is smaller than or equal to the storage space capacity, the vehicle-mounted communication terminal can upload each log file sub-package based on a limited memory, finally the server can obtain a combined log file package containing complete target log data based on all the log file sub-packages, and a maintenance engineer at the server can directly analyze the data of the vehicle through the target log data to check the vehicle condition.
Referring to fig. 6, fig. 6 is a flowchart of a log transmission method according to an embodiment of the present application.
As shown in fig. 6, the log transmission method, applied to the vehicle-mounted controller, may at least include:
s602, acquiring the storage space capacity of the vehicle-mounted communication terminal.
Optionally, the embodiment of the application executes the log transmission method based on the vehicle-mounted controller. In the process that the vehicle-mounted communication terminal reads the log data file package from the vehicle-mounted controller and uploads the log data file package to the server, the read log data is required to be stored in a local storage space of the terminal, and then uploaded to the server from the local storage space, and the storage space of the vehicle-mounted communication terminal is limited, so that the vehicle-mounted communication terminal cannot bear one-time complete transmission of a large amount of log file packages. At this time, the vehicle-mounted communication terminal can instruct the vehicle-mounted controller to divide a whole log file packet into a plurality of log file sub-packets with smaller data volume, so that the vehicle-mounted communication terminal can separately upload each log file sub-packet for a plurality of times, and all the log file sub-packets are uploaded to the server.
Further, in order to enable the vehicle-mounted communication terminal to upload all the log file sub-packets, the vehicle-mounted controller needs to ensure that the data volume of each log file sub-packet is smaller than or equal to the storage space volume when the vehicle-mounted controller sub-packets, so that the vehicle-mounted communication terminal can send the storage space volume to the vehicle-mounted controller, namely, the vehicle-mounted controller receives and stores the storage space volume sent by the vehicle-mounted communication terminal, and sub-packets are conveniently carried out according to the data volume allowed by the storage space volume when the vehicle-mounted communication terminal needs to sub-packet later.
S602, responding to a log packaging instruction sent by the vehicle-mounted communication terminal for target log data, packaging the target log data into at least one log file package based on the storage space capacity, wherein the data volume of each log file package is smaller than or equal to the storage space capacity.
Optionally, the storage space capacity is already written into the vehicle-mounted controller, the vehicle-mounted communication terminal further instructs the vehicle-mounted controller to package, that is, the vehicle-mounted controller responds to a log packaging instruction sent by the vehicle-mounted communication terminal for target log data, packages the log file package based on the storage space capacity to obtain at least one log file package, wherein the package is for uploading all the log file packages by the vehicle-mounted communication terminal, and therefore the data volume of each log file package is smaller than or equal to the storage space capacity.
S606, each log file sub-package is sent to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server.
Optionally, after the vehicle-mounted controller completes the file sub-packaging, the vehicle-mounted controller sends each log file sub-packaging to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal obtains each log file sub-packaging from the vehicle-mounted controller one by one and independently uploads the log file sub-packaging to the server, and the server obtains a combined log file package based on all the log file sub-packaging and determines target log data based on the combined log file package.
In the embodiment of the application, a log transmission method is provided, which is applied to a vehicle-mounted controller and responds to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data; packaging the target log data to obtain at least one log file sub-package corresponding to the target log data, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity; and sending each log file sub-package to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server. And transmitting target log data to a server which cannot directly communicate through the vehicle-mounted communication terminal, so that the server can remotely acquire the log data file of the vehicle, and remote and non-contact transmission of the vehicle log data is realized.
Referring to fig. 7, fig. 7 is a flowchart of a log transmission method according to an embodiment of the present application.
As shown in fig. 7, the log transmission method, applied to the vehicle-mounted controller, may at least include:
s702, acquiring the storage space capacity of the vehicle-mounted communication terminal.
Optionally, after receiving the log transmission task, the vehicle-mounted communication terminal establishes communication connection with the vehicle-mounted communication terminal based on the log transmission task, so as to facilitate subsequent data transmission. The step of communication connection may specifically include: the vehicle-mounted controller responds to an extension session activating request sent by the vehicle-mounted communication terminal, an extension session mode is activated, so that the vehicle-mounted communication terminal can conveniently use various extension services, and a safety unlocking key sent by the vehicle-mounted communication terminal is received, and the vehicle-mounted controller can unlock the data reading service required by the task through verification of a known key under the extension session mode, so that the vehicle-mounted communication terminal obtains the authority of reading log data from the vehicle-mounted controller.
Optionally, after the safety unlocking, the vehicle-mounted controller receives an execution environment checking instruction sent by the vehicle-mounted communication terminal aiming at the log transmission task, checks whether the self programming environment supports the execution of the log transmission task, determines a checking result and returns the checking result to the vehicle-mounted communication terminal. If the checking result is that the task execution is supported, the vehicle-mounted controller is indicated to be capable of normally packing and transmitting log data, and the next task is continuously executed at the moment; if the checking result is that the task execution is not supported, the vehicle-mounted controller is not capable of normally packing and transmitting the log data, and the current environment information needs to be returned at the moment, so that the vehicle-mounted communication terminal can conveniently generate a task failure report and return the task failure report to the server.
Optionally, after confirming that the environment support of the vehicle-mounted controller completes the log transmission task, receiving the storage space capacity stored by the vehicle-mounted communication terminal. The method specifically comprises the steps of storing a piece of data which is newly written into the vehicle-mounted controller by the vehicle-mounted communication terminal, wherein the data indicates the storage space capacity, the data is stored in the nonvolatile memory, and power failure is avoided, namely if the power failure of the vehicle leads to task interruption before task sub-packaging, the written storage space capacity is directly used for continuous sub-packaging after the vehicle is powered on.
S704, responding to a log packaging instruction sent by the vehicle-mounted communication terminal aiming at the target log data, and packaging the target log data into a log file packet.
Optionally, when the server needs to obtain the target log data, the vehicle-mounted communication terminal determines the target log data to be uploaded in the current log transmission task, and firstly sends a log packaging instruction to the vehicle-mounted controller for the target log data through the first communication protocol, and then the vehicle-mounted controller needs to respond to the log packaging instruction sent by the vehicle-mounted communication terminal for the target log data, so that the server can obtain a log file packet corresponding to the packaged target log data from the vehicle-mounted controller through the vehicle-mounted communication terminal, and the convenience and efficiency of vehicle condition investigation at the cloud are improved.
Optionally, the vehicle-mounted controller packages the target log data and obtains a log file packet corresponding to the target log data, so that the subsequent vehicle-mounted communication terminal reads the log file packet from the vehicle-mounted controller, uploads the log file packet to the server, and finally, the server remotely acquires real vehicle log data of the vehicle.
S706, returning the file information corresponding to the log file packet to the vehicle-mounted communication terminal.
Optionally, when the vehicle-mounted controller packages the target log data to obtain a log file packet corresponding to the target log data, file information corresponding to the log file packet is generated at the same time, wherein the file information comprises at least one of a log type, a package start-stop time, a package storage path and a file packet characteristic value, and further comprises but is not limited to various information such as the number of logs in each type, a log catalog, the whole package file data quantity and the like. And the vehicle-mounted controller returns the file information corresponding to the log file packet to the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal obtains the detailed information of the packaged file.
S708, responding to the log packetizing instruction sent by the vehicle-mounted communication terminal based on the file information, and packetizing the log file packets into at least one log file packet based on the storage space capacity.
Optionally, after the storage space capacity has been written in the vehicle-mounted controller, if the file information is correct after the vehicle-mounted communication terminal receives the file information, the vehicle-mounted controller is further instructed to packetize, that is, the vehicle-mounted controller responds to a log packetizing instruction sent by the vehicle-mounted communication terminal based on the file information, packetizes the log file packet based on the storage space capacity to obtain at least one log file packetizing, wherein the packetizing is that the vehicle-mounted communication terminal can upload all the log file packetizing, so that the data volume of each log file packetizing is smaller than or equal to the storage space capacity.
Further, during the sub-packaging, the vehicle-mounted controller performs sub-packaging according to a certain sub-packaging rule, wherein the sub-packaging rule at least specifies the sub-packaging number, the sub-packaging file data volume, the sub-packaging file name length and the like corresponding to the log file package, and the sub-packaging rule is that the vehicle-mounted controller calculates based on the storage space capacity, for example, the storage space capacity is 5M, the log file package corresponding to the current log transmission task is 100M, and then the vehicle-mounted controller can unpack the 100M log file packages into 20 log file sub-packages of 5M according to 100 m=5m. It should be noted that, the calculation mode of the packetizing rule is not particularly limited in the application, and the packetized log file can meet the transmissible data volume of the vehicle-mounted communication terminal.
Optionally, after all the log file packets are uploaded to the server, the server instructs the vehicle-mounted controller to clear the locally packaged file data, so as to prevent the log data from occupying too much memory space, and the vehicle-mounted communication terminal receives a local log deletion instruction sent by the server after determining the target log data, so as to instruct the vehicle-mounted controller to delete the log file packet. And the vehicle-mounted controller receives a local log deleting instruction forwarded by the vehicle-mounted communication terminal and deletes all log file packets. And if the vehicle-mounted controller carries out the sub-packaging processing on the whole package, the sub-packaging is also deleted together so as to remove the log data packaged at the present time in the default path of the log data, and the packaging and uploading of the next log data are not affected.
And S710, each log file sub-package is sent to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server.
For step S710, please refer to the detailed description in step S606, and the detailed description is omitted here.
In the embodiment of the application, a log transmission method is provided and applied to a vehicle-mounted controller, and firstly, the vehicle-mounted controller can check whether a programming environment supports the execution of a log transmission task; acquiring the storage space capacity of the vehicle-mounted communication terminal after environmental inspection; after the target log data are packaged completely, packaging the log file package based on the storage space capacity to obtain at least one log file package; and receiving a local log deleting instruction forwarded by the vehicle-mounted communication terminal, and deleting all log file packets. The vehicle-mounted controller can packetize the log file packet based on the storage space capacity of the vehicle-mounted communication terminal, so that the data volume of each log file packet is smaller than or equal to the storage space capacity, the vehicle-mounted communication terminal can upload each log file packet based on a limited memory, the final server can obtain a combined log file packet containing complete target log data based on all the log file packets, and a maintenance engineer at the server analyzes the data of the vehicle through the target log data to check the vehicle condition.
Referring to fig. 8, fig. 8 is a flowchart of a log transmission method according to an embodiment of the present application.
As shown in fig. 8, the log transmission method, applied to a server, may at least include:
s802, issuing a log transmission task to the vehicle-mounted communication terminal, wherein the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data.
Optionally, in order to promote the efficiency of obtaining log data, maintenance engineer can carry out long-range wireless communication through server and vehicle, obtains the log data in the vehicle to realize that maintenance engineer can directly look over, analyze the log data at the remote terminal, make the investigation of vehicle condition become convenient and high-efficient. The embodiment of the present application performs a log transmission method based on the server. When the server needs to acquire the target log data, a second communication protocol between the vehicle-mounted communication terminal and the server issues a log transmission task to the vehicle-mounted communication terminal, and the log transmission task is used for indicating the vehicle-mounted communication terminal to upload the target log data, wherein the target log data is the log data required by the current vehicle condition investigation.
Optionally, the log transmission task issued by the server may be manually triggered based on a maintenance engineer, for example, when the maintenance engineer knows that the vehicle needs vehicle condition investigation, the log transmission task is issued to the target vehicle manually by the server to obtain log data of the target vehicle; or automatically issuing a task every other cycle based on a preset checking cycle to timely acquire the specific vehicle condition of the vehicle in each cycle.
S804, receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at the log transmission task.
Optionally, the vehicle-mounted communication terminal communicates to the vehicle-mounted controller, so that the vehicle-mounted controller packages the target log data corresponding to the log transmission task according to the storage space capacity of the vehicle-mounted communication terminal, at least one log file sub-package of the target log data is obtained, at this time, the vehicle-mounted communication terminal can read the log file sub-packages one by one from the vehicle-mounted controller, and upload the log file sub-packages read this time after each log file sub-package is read, at this time, the server receives the at least one log file sub-package uploaded one by the vehicle-mounted communication terminal aiming at the log transmission task, and the further server can determine the target log data based on all the log file sub-packages.
S806, combining all log file sub-packets to obtain a combined log file packet, and determining target log data based on the combined log file packet.
Optionally, after receiving all log file sub-packets, the server needs to group each log file sub-packet to group multiple log file sub-packets into one complete combined log file packet. The combined log file package is analyzed and decompressed, and target log data can be further determined, so that the server can remotely acquire the log data file of the vehicle under the condition that communication is not supported between the vehicle-mounted controller and the server, remote and non-contact transmission of the vehicle log data is realized, and convenience in vehicle condition investigation through the log data is also improved.
In the embodiment of the application, a log transmission method is provided, which is applied to a server and used for issuing a log transmission task to a vehicle-mounted communication terminal, wherein the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data; receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at a log transmission task; combining all log file sub-packets to obtain a combined log file packet, and determining target log data based on the combined log file packet. The server issues a log transmission task to the vehicle-mounted communication terminal, instructs the vehicle-mounted communication terminal to read and upload at least one log file sub-packet corresponding to the target log data from the vehicle-mounted controller one by one through communication with the vehicle-mounted controller, the data volume of each log file sub-packet meets the data volume which can be supported to be transmitted by the vehicle-mounted communication terminal, and a maintenance engineer of the server can analyze the data of the vehicle directly through the target log data to check the vehicle condition.
Referring to fig. 9, fig. 9 is a flowchart of a log transmission method according to an embodiment of the present application.
As shown in fig. 9, the log transmission method, applied to a server, may at least include:
S902, issuing a log transmission task to the vehicle-mounted communication terminal, wherein the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data.
For step S902, please refer to the detailed description in step S802, and the detailed description is omitted here.
S904, receiving file information sent by the vehicle-mounted communication terminal, wherein the file information is information of a log file packet obtained after the vehicle-mounted controller packages target log data, and the file information comprises a file packet characteristic value.
Optionally, in a specific process that the vehicle-mounted controller packages the target log data into at least one log file package, firstly, the vehicle-mounted controller packages the target log data into a log file package based on an instruction of the vehicle-mounted communication terminal, after the vehicle-mounted controller packages the target log data, file information corresponding to the log file package is generated at the same time, the vehicle-mounted controller sends the file information to the vehicle-mounted communication terminal, and the file information comprises at least one of a log type, package start-stop time, package storage path and file package characteristic value, and additionally comprises but is not limited to various information such as the number of logs, a log catalog and the whole package file data volume. The characteristic value of the file package is a unique characteristic value which is calculated on the log file package through a preset algorithm and is used for representing the integral characteristic of the log file package, and considering that the problem that the log file package is possibly incomplete in downloading, error in downloading and the like due to the problems of network and equipment in the transmission process is solved, the combined log file package received by a final server is incomplete, so that in order to verify the integrity and the effectiveness of the combined log file package when the combined log file package is received, the server can calculate the characteristic value of the file package of the combined log file package received by the server, and compare the characteristic value of the file package of the file after the file is packaged, thereby verifying the consistency of the received file and the original file. Then, based on this, the server needs to receive the file information sent by the vehicle-mounted communication terminal, and the file information includes the package feature value.
S906, receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at the log transmission task.
For step S906, please refer to the detailed description in step S804, and the detailed description is omitted here.
S908, combining all log file sub-packets to obtain a combined log file packet.
Optionally, after receiving all log file sub-packets, the server needs to group each log file sub-packet to group multiple log file sub-packets into one complete combined log file packet. Specifically, each log file packet includes information such as packet file name and packet sequence number, so the server can group packets according to the original packet sequence based on the information of each log file packet, and restore the combined log file packet to be the same as the log file packet.
S910, verifying the file consistency of the combined log file package and the log file package based on the file package characteristic value.
Optionally, after the combined log file package is obtained, verification of file consistency between the combined log file package and the log file package based on the file package characteristic value is started. Specifically, generating a group package log characteristic value corresponding to the combined log file package, comparing the group package log characteristic value with the file package characteristic value, and if the group package log characteristic value and the file package characteristic value meet a preset consistency condition, confirming that the combined log file package is consistent with the log file package.
S912, determining target log data based on the combined log file package.
Optionally, after the combined log file packet is determined to be correct, the combined log file packet can be directly analyzed and decompressed to determine target log data, so that the server can remotely acquire the log data file of the vehicle under the condition that communication is not supported between the vehicle-mounted controller and the server, remote and non-contact transmission of the vehicle log data is realized, and convenience in vehicle condition investigation through the log data is also increased.
Optionally, in order to prevent the log data from excessively occupying the memory space of the vehicle, the server sends a local log deletion instruction to the vehicle-mounted communication terminal so as to instruct the vehicle-mounted controller to delete the log file packet. And if the vehicle-mounted controller carries out the sub-packaging processing on the whole package, the vehicle-mounted controller is instructed to delete the sub-packaging together so as to remove the log data packaged at the time in the default path of the log data, and the packaging and uploading of the next log data are not affected.
In the embodiment of the application, a log transmission method is provided, which is applied to a server and used for receiving file information sent by a vehicle-mounted communication terminal, wherein the file information comprises a file packet characteristic value; receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at a log transmission task; combining the log file sub-packets to obtain a combined log file packet, and verifying the file consistency of the combined log file packet and the log file packet based on the file packet characteristic value; determining target log data based on the combined log file package; and sending a local log deleting instruction to the vehicle-mounted communication terminal, wherein the local log deleting instruction is used for indicating the vehicle-mounted controller to delete the log file packet. The server obtains the combined log file package containing the complete target log data by grouping all the log file packages, and after confirming the correctness of the combined log file package through the characteristic value, a maintenance engineer of the server can analyze the data of the vehicle through the target log data to realize the investigation of the vehicle condition.
Referring to fig. 10, fig. 10 is a block diagram illustrating a log transmission device according to an embodiment of the present application. As shown in fig. 10, the log transmission device 1000, applied to an on-vehicle communication terminal, includes:
the task receiving module 1010 is configured to receive a log transmission task sent by the server, and determine target log data corresponding to the log transmission task;
the packaging triggering module 1020 is configured to send a storage space capacity of the vehicle-mounted communication terminal to the vehicle-mounted controller, instruct the vehicle-mounted controller to package the target log data into at least one log file packet based on the storage space capacity, and make the data volume of each log file packet smaller than or equal to the storage space capacity;
the file transmission module 1030 is configured to obtain each log file packet one by one and upload the log file packets to the server individually, so that the server obtains a combined log file packet based on all the log file packets and determines the target log data based on the combined log file packet.
Optionally, the packaging triggering module 1020 is further configured to instruct the vehicle-mounted controller to package the target log data into a log file package; receiving file information returned by the vehicle-mounted controller based on the log file packet; based on the file information, the on-board controller is instructed to packetize the log file packets into at least one log file packet based on the storage space capacity.
Optionally, the file information includes a file packet characteristic value, and the log transmission device 1000 further includes: and the file information sending module is used for returning the file information to the server so that the server can verify the file consistency of the combined log file package and the log file package based on the file package characteristic value after obtaining the combined log file package.
Optionally, the log transmission device 1000 further includes: the breakpoint continuous transmission module is used for responding to a wake-up signal of the vehicle-mounted communication terminal and responding to a task continuous instruction corresponding to the log transmission task, determining at least one unremitted log file sub-packet based on task execution data corresponding to the log transmission task, wherein the task execution data comprises uploading state information of each log file sub-packet; and independently acquiring each unremitted log file sub-packet one by one and independently uploading the unremitted log file sub-packets to the server so that the server receives all the unremitted log file sub-packets.
In an embodiment of the application, a log transmission device is provided and is applied to a vehicle-mounted communication terminal. The task receiving module is used for receiving the log transmission task issued by the server and determining target log data corresponding to the log transmission task; the packaging triggering module is used for sending the storage space capacity of the vehicle-mounted communication terminal to the vehicle-mounted controller, and instructing the vehicle-mounted controller to package the target log data into at least one log file sub-package based on the storage space capacity, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity; and the file transmission module is used for acquiring each log file sub-packet one by one and independently uploading the log file sub-packets to the server so that the server obtains a combined log file packet based on all the log file sub-packets and determines target log data based on the combined log file packet. The vehicle-mounted communication terminal indicates the vehicle-mounted controller to sub-package the log file package based on the storage space capacity of the vehicle-mounted communication terminal, so that the data volume of each log file sub-package is smaller than or equal to the storage space capacity, the vehicle-mounted communication terminal can upload each log file sub-package based on a limited memory, finally, the target log data with large data volume can be uploaded to the server through a plurality of file packages with small data volume for a plurality of times, and maintenance engineers at the server can directly analyze the data of the vehicle through the target log data to check the vehicle condition.
Referring to fig. 11, fig. 11 is a block diagram illustrating a log transmission device according to an embodiment of the present application. As shown in fig. 11, the log transmission device 1100, applied to an in-vehicle controller, includes:
a capacity writing module 1110, configured to obtain a storage space capacity of the vehicle-mounted communication terminal;
the log packaging module 1120 is configured to respond to a log packaging instruction sent by the vehicle-mounted communication terminal for the target log data, and package the target log data into at least one log file package based on the storage space capacity, where the data volume of each log file package is less than or equal to the storage space capacity.
And the log sending module 1130 is configured to send each log file sub-packet to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal obtains each log file sub-packet one by one and independently uploads the log file sub-packet to the server.
Optionally, the log packaging module 1120 is further configured to package the target log data into a log file packet in response to a log packaging instruction sent by the vehicle-mounted communication terminal for the target log data; returning the file information corresponding to the log file packet to the vehicle-mounted communication terminal; and responding to a log packetizing instruction sent by the vehicle-mounted communication terminal based on the file information, and packetizing the log file packets into at least one log file packet based on the storage space capacity.
Optionally, the log packaging module 1120 is further configured to calculate a packetizing rule corresponding to the vehicle-mounted communication terminal based on the storage space capacity, where the packetizing rule at least specifies the number of packetizes and the data amount of the packetizing file corresponding to the log file packet; and subpackaging the log file packet according to the subpackaging rule to obtain at least one log file packet.
In an embodiment of the application, a log transmission device is provided and is applied to a vehicle-mounted controller. The capacity writing module is used for acquiring the storage space capacity of the vehicle-mounted communication terminal; the system comprises a log packaging module, a storage space capacity and a log file sub-package module, wherein the log packaging module is used for responding to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data, packaging the target log data into at least one log file sub-package based on the storage space capacity, and the data volume of each log file sub-package is smaller than or equal to the storage space capacity; and the log sending module is used for sending each log file sub-packet to the vehicle-mounted communication terminal one by one so that the vehicle-mounted communication terminal can acquire each log file sub-packet one by one and independently upload the log file sub-packet to the server. And transmitting target log data to a server which cannot directly communicate through the vehicle-mounted communication terminal, so that the server can remotely acquire the log data file of the vehicle, and remote and non-contact transmission of the vehicle log data is realized.
Referring to fig. 12, fig. 12 is a block diagram illustrating a log transmission device according to an embodiment of the present application. As shown in fig. 12, the log transmission device 1200, applied to a server, includes:
the task issuing module 1210 is configured to issue a log transmission task to the vehicle-mounted communication terminal, where the log transmission task is used to instruct the vehicle-mounted communication terminal to upload target log data;
the file receiving module 1220 is configured to receive at least one log file packet uploaded by the vehicle-mounted communication terminal for the log transmission task one by one;
the data confirmation module 1230 is configured to combine all log file packets to obtain a combined log file packet, and determine the target log data based on the combined log file packet.
Optionally, the log transmission device 1200 further includes: the file information receiving module is used for receiving file information sent by the vehicle-mounted communication terminal, wherein the file information is information of a log file packet obtained after the vehicle-mounted controller packages target log data, and the file information comprises a file packet characteristic value; and the file verification module is used for verifying the file consistency of the combined log file package and the log file package based on the file package characteristic value.
In an embodiment of the application, a log transmission device is provided and is applied to a server. The task issuing module is used for issuing a log transmission task to the vehicle-mounted communication terminal, wherein the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data; the file receiving module is used for receiving at least one log file sub-packet uploaded one by the vehicle-mounted communication terminal aiming at the log transmission task; and the data confirmation module is used for combining all log file sub-packets to obtain a combined log file packet and determining target log data based on the combined log file packet. The server issues a log transmission task to the vehicle-mounted communication terminal, instructs the vehicle-mounted communication terminal to read and upload at least one log file sub-packet corresponding to the target log data from the vehicle-mounted controller one by one through communication with the vehicle-mounted controller, the data volume of each log file sub-packet meets the data volume which can be supported to be transmitted by the vehicle-mounted communication terminal, and a maintenance engineer of the server can analyze the data of the vehicle directly through the target log data to check the vehicle condition.
Embodiments of the present application also provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any of the embodiments described above.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a vehicle according to an embodiment of the application. As shown in fig. 13, a vehicle 1300 may include: at least one vehicle processor 1301, at least one network interface 1304, a user interface 1303, a memory 1305, at least one communication bus 1302, an in-vehicle communication terminal 1306, an in-vehicle controller 1307.
Wherein a communication bus 1302 is used to enable connected communications between these components.
The user interface 1303 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1303 may further include a standard wired interface and a standard wireless interface.
The network interface 1304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The vehicle processor 1301 may include one or more processing cores, among other things. The vehicle processor 1301 uses various interfaces and lines to connect various parts throughout the vehicle 1300, by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1305, and invoking data stored in the memory 1305, to perform various functions of the vehicle 1300 and process data. Alternatively, the vehicle processor 1301 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The vehicle processor 1301 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the vehicle processor 1301 and may be implemented by a single chip.
The Memory 1305 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 1305 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1305 may be used to store instructions, programs, code sets, or instruction sets. The memory 1305 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 1305 may also optionally be at least one storage device located remotely from the aforementioned vehicle processor 1301. As shown in fig. 13, an operating system, a network communication module, a user interface module, and a log transfer program may be included in the memory 1305 as one type of computer storage medium.
In the vehicle 1300 shown in fig. 13, when the vehicle 1300 includes the in-vehicle communication terminal 1306, the vehicle processor 1301 may be configured to call a log transmission program stored in the memory 1305, and specifically perform the following operations:
Receiving a log transmission task issued by a server, and determining target log data corresponding to the log transmission task;
transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to pack target log data into at least one log file sub-packet based on the storage space capacity, wherein the data volume of each log file sub-packet is smaller than or equal to the storage space capacity;
and each log file sub-package is acquired one by one and is independently uploaded to the server, so that the server obtains a combined log file package based on all the log file sub-packages and determines target log data based on the combined log file package.
In some embodiments, the vehicle processor 1301, when executing instructions that instruct the on-board controller to package the target log data into at least one log file sub-package based on the storage space capacity, each log file sub-package having a data amount less than or equal to the storage space capacity, specifically performs the following steps: instructing the vehicle-mounted controller to pack the target log data into a log file packet; receiving file information returned by the vehicle-mounted controller based on the log file packet; based on the file information, the on-board controller is instructed to packetize the log file packets into at least one log file packet based on the storage space capacity.
In some embodiments, the file information includes a package feature value, and the vehicle processor 1301, after executing receiving the file information returned by the vehicle-mounted controller based on the log package, further specifically executes the following steps: and returning the file information to the server so that the server verifies the file consistency of the combined log file package and the log file package based on the file package characteristic value after obtaining the combined log file package.
In some embodiments, vehicle processor 1301 also specifically performs the following steps: responding to a wake-up signal of the vehicle-mounted communication terminal and responding to a task continuation instruction corresponding to the log transmission task, and determining at least one unrepeated log file sub-packet based on task execution data corresponding to the log transmission task, wherein the task execution data comprises uploading state information of each log file sub-packet; and independently acquiring each unremitted log file sub-packet one by one and independently uploading the unremitted log file sub-packets to the server so that the server receives all the unremitted log file sub-packets.
In the vehicle 1300 shown in fig. 13, when the vehicle 1300 includes the in-vehicle controller 1307, the vehicle processor 1301 can be configured to call a log transfer program stored in the memory 1305 and specifically perform the following operations:
Acquiring the storage space capacity of a vehicle-mounted communication terminal;
responding to a log packaging instruction sent by the vehicle-mounted communication terminal aiming at target log data, and packaging the target log data into at least one log file package based on the storage space capacity, wherein the data volume of each log file package is smaller than or equal to the storage space capacity;
and sending each log file sub-package to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server.
In some embodiments, the vehicle processor 1301, when executing a log packaging instruction for target log data transmission in response to the in-vehicle communication terminal, packages the target log data into at least one log file package based on the storage space capacity, specifically performs the following steps: responding to a log packaging instruction sent by the vehicle-mounted communication terminal aiming at target log data, and packaging the target log data into a log file packet; returning the file information corresponding to the log file packet to the vehicle-mounted communication terminal; and responding to a log packetizing instruction sent by the vehicle-mounted communication terminal based on the file information, and packetizing the log file packets into at least one log file packet based on the storage space capacity.
In some embodiments, vehicle processor 1301, when executing the packing of the target log data into at least one log file packet based on the storage space capacity, specifically performs the steps of: calculating a sub-packaging rule corresponding to the vehicle-mounted communication terminal based on the storage space capacity, wherein the sub-packaging rule at least prescribes the sub-packaging number and the sub-packaging file data quantity corresponding to the log file package; and subpackaging the log file packet according to the subpackaging rule to obtain at least one log file packet.
Referring to fig. 14, fig. 14 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 14, the server 1400 may include: at least one server processor 1401, at least one network interface 1404, a user interface 1403, a memory 1405, at least one communication bus 1402.
Wherein a communication bus 1402 is used to enable connected communication among the components.
The user interface 1403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1403 may further include a standard wired interface and a standard wireless interface.
The network interface 1404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the server processor 1401 may include one or more processing cores. The server processor 1401 connects various portions of the overall server 1400 using various interfaces and lines, and performs various functions of the server 1400 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1405, and invoking data stored in the memory 1405. Alternatively, the server processor 1401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The server processor 1401 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the server processor 1401 and may be implemented as a single chip.
The Memory 1405 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 1405 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 1405 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, and the like; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 1405 may also optionally be at least one storage device located remotely from the aforementioned server processor 1401. As shown in fig. 14, an operating system, a network communication module, a user interface module, and a log transfer program may be included in the memory 1405 as one type of computer storage medium.
In the server 1400 shown in fig. 14, a server processor 1401 may be used to call a log transfer program stored in a memory 1405, and specifically perform the following operations:
The method comprises the steps that a log transmission task is issued to a vehicle-mounted communication terminal, and the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data;
receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at a log transmission task;
combining all log file sub-packets to obtain a combined log file packet, and determining target log data based on the combined log file packet.
In some embodiments, the server processor 1401 further specifically performs the following steps after performing the task of transmitting the log to the in-vehicle communication terminal: receiving file information sent by a vehicle-mounted communication terminal, wherein the file information is information of a log file packet obtained after a vehicle-mounted controller packages target log data, and the file information comprises a file packet characteristic value; the server processor 1401, after executing the combination of all log file packetizations to obtain a combined log file packet, further specifically executes the following steps: and verifying the file consistency of the combined log file package and the log file package based on the file package characteristic value.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product described above includes one or more computer instructions. When the computer program instructions described above are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present specification are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage media may be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a digital versatile Disk (Digital Versatile Disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing describes a log transmission method, a log transmission system, a vehicle and a server provided by the present application, and those skilled in the art should not understand the present application to limit the present application in summary, where the specific embodiments and application ranges are changed according to the concepts of the embodiments of the present application.

Claims (12)

1. The log transmission method is characterized by being applied to a vehicle-mounted communication terminal, and comprises the following steps:
Receiving a log transmission task issued by a server, and determining target log data corresponding to the log transmission task;
transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to pack the target log data into at least one log file sub-packet based on the storage space capacity, wherein the data volume of each log file sub-packet is smaller than or equal to the storage space capacity;
and acquiring each log file sub-package one by one and independently uploading the log file sub-packages to the server so that the server obtains a combined log file package based on all the log file sub-packages and determines the target log data based on the combined log file package.
2. The method of claim 1, wherein the instructing the onboard controller to package the target log data into at least one log file packet based on the storage space capacity, each log file packet having a data volume less than or equal to the storage space capacity, comprises:
instructing the vehicle-mounted controller to package the target log data into a log file package;
receiving file information returned by the vehicle-mounted controller based on the log file packet;
And based on the file information, instructing the vehicle-mounted controller to packetize the log file packets into at least one log file packet based on the storage space capacity.
3. The method according to claim 2, wherein the file information includes the package feature value, and the receiving the file information returned by the in-vehicle controller based on the log package further includes:
and returning the file information to the server so that the server verifies the file consistency of the combined log file package and the log file package based on the file package characteristic value after obtaining the combined log file package.
4. The method according to claim 1, wherein the method further comprises:
responding to a wake-up signal of the vehicle-mounted communication terminal and responding to a task continuing instruction corresponding to the log transmission task, and determining at least one unremitted log file sub-packet based on task execution data corresponding to the log transmission task, wherein the task execution data comprises uploading state information of each log file sub-packet;
and independently acquiring and independently uploading each unremitted log file sub-packet to the server one by one so that the server receives all the unremitted log file sub-packets.
5. A log transmission method, applied to a vehicle-mounted controller, comprising:
acquiring the storage space capacity of a vehicle-mounted communication terminal;
responding to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data, packaging the target log data into at least one log file sub-package based on the storage space capacity, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity;
and sending each log file sub-package to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server.
6. The method according to claim 5, wherein said packaging the target log data into at least one log file packet based on the storage space capacity in response to a log packaging instruction sent by the in-vehicle communication terminal for the target log data, comprises:
responding to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data, and packaging the target log data into a log file packet;
returning the file information corresponding to the log file packet to the vehicle-mounted communication terminal;
And responding to a log packetizing instruction sent by the vehicle-mounted communication terminal based on the file information, and packetizing the log file packets into at least one log file packet based on the storage space capacity.
7. The method of claim 5, wherein said packaging said target log data into at least one log file packet based on said storage space capacity comprises:
calculating a sub-packaging rule corresponding to the vehicle-mounted communication terminal based on the storage space capacity, wherein the sub-packaging rule at least prescribes the sub-packaging number and the sub-packaging file data quantity corresponding to the log file package;
and subpackaging the log file package according to the subpackaging rule to obtain at least one log file subpackage.
8. A log transmission method, applied to a server, the method comprising:
a log transmission task is issued to a vehicle-mounted communication terminal, and the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data;
receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at the log transmission task;
combining all log file sub-packets to obtain a combined log file packet, and determining the target log data based on the combined log file packet.
9. The method according to claim 8, further comprising, after the task of transmitting the log to the in-vehicle communication terminal:
receiving file information sent by the vehicle-mounted communication terminal, wherein the file information is information of a log file packet obtained after the vehicle-mounted controller packages the target log data, and the file information comprises a file packet characteristic value;
after the grouping of all log files to obtain a combined log file package, the method further comprises:
and verifying the file consistency of the combined log file package and the log file package based on the file package characteristic value.
10. A vehicle, characterized in that it is capable of performing the steps of the method according to any one of claims 1 to 4 or 5 to 7.
11. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 8 to 9 when the computer program is executed.
12. A log transmission system, comprising a vehicle and a server, the vehicle comprising a vehicle-mounted communication terminal and a vehicle-mounted controller, wherein:
The vehicle-mounted communication terminal is used for:
receiving a log transmission task issued by the server, and determining target log data corresponding to the log transmission task;
transmitting the storage space capacity of the vehicle-mounted communication terminal to a vehicle-mounted controller, and indicating the vehicle-mounted controller to pack the target log data into at least one log file sub-packet based on the storage space capacity, wherein the data volume of each log file sub-packet is smaller than or equal to the storage space capacity;
each log file sub-package is obtained one by one and is independently uploaded to the server, so that the server obtains a combined log file package based on all log file sub-packages and determines the target log data based on the combined log file package;
the vehicle-mounted controller is used for:
storing the storage space capacity of the vehicle-mounted communication terminal;
responding to a log packaging instruction sent by a vehicle-mounted communication terminal aiming at target log data, packaging the target log data into at least one log file sub-package based on the storage space capacity, wherein the data volume of each log file sub-package is smaller than or equal to the storage space capacity;
each log file sub-package is sent to the vehicle-mounted communication terminal one by one, so that the vehicle-mounted communication terminal can acquire each log file sub-package one by one and independently upload the log file sub-package to a server;
The server is used for:
the method comprises the steps that a log transmission task is issued to the vehicle-mounted communication terminal, and the log transmission task is used for indicating the vehicle-mounted communication terminal to upload target log data;
receiving at least one log file sub-packet uploaded by the vehicle-mounted communication terminal one by one aiming at the log transmission task;
combining all log file sub-packets to obtain a combined log file packet, and determining the target log data based on the combined log file packet.
CN202310868317.6A 2023-07-14 2023-07-14 Log transmission method, log transmission system, vehicle and server Pending CN116962389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310868317.6A CN116962389A (en) 2023-07-14 2023-07-14 Log transmission method, log transmission system, vehicle and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310868317.6A CN116962389A (en) 2023-07-14 2023-07-14 Log transmission method, log transmission system, vehicle and server

Publications (1)

Publication Number Publication Date
CN116962389A true CN116962389A (en) 2023-10-27

Family

ID=88452265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310868317.6A Pending CN116962389A (en) 2023-07-14 2023-07-14 Log transmission method, log transmission system, vehicle and server

Country Status (1)

Country Link
CN (1) CN116962389A (en)

Similar Documents

Publication Publication Date Title
CN110427785B (en) Equipment fingerprint acquisition method and device, storage medium and electronic device
CN111024405B (en) Automobile diagnosis method, related device and system
US20190057214A1 (en) Update control device, terminal, and method of controlling
JP7562661B2 (en) Software upgrade method, apparatus and system
JP7176488B2 (en) Data storage device and data storage program
CN111506047B (en) Vehicle diagnosis method, device and storage medium
US20180310173A1 (en) Information processing apparatus, information processing system, and information processing method
CN112652089A (en) Diagnostic method, vehicle, system, and storage medium
CN112069511B (en) Data protection method, device, electronic control unit, equipment and storage medium
CN111552266B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
JP2018073245A (en) Inspection apparatus, inspection system, information processing apparatus, inspection method and computer program
CN112585930A (en) Data storage method, device and system
CN113672478A (en) Log obtaining method, device, terminal, server and storage medium
CN114788199A (en) Data verification method and device
CN116962389A (en) Log transmission method, log transmission system, vehicle and server
CN116866172A (en) Diagnostic flashing system, method, device and medium in automobile OTA upgrading process
CN116232571A (en) Vehicle encryption method, device, equipment, storage medium and vehicle
CN109522026B (en) Data flashing method and system and automobile
CN114756258B (en) ECU software refreshing method and system based on ODX
CN116224976B (en) Test method and device
KR102720909B1 (en) Software Upgrade Methods, Devices and Systems
CN112565041B (en) Hardware information configuration method, device and medium of FF field bus system
WO2024209906A1 (en) Vehicle-mounted apparatus, setting processing method, and setting processing program
CN115617370A (en) Data refreshing method and device, electronic equipment and storage medium
CN118113641A (en) High-reliability unidirectional transmission method, device, equipment and storage medium

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