Data transmission method and device of vehicle-mounted terminal, equipment and medium
Through real-time file protocol and multi-threading, the problems of low data transmission efficiency and high storage pressure of on-board terminals are solved, real-time data transmission between terminal equipment and on-board terminals is realized, and transmission efficiency and quality are improved.
Patent Information
- Application Number
- CN202411264446.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-10
AI Technical Summary
The existing on-board terminal data transmission methods have problems such as real-time transmission limitations, low transmission efficiency, poor quality, and high storage costs and pressure through the FTP protocol.
Adopt real-time file protocol to execute file operation commands, data analysis, data packets and data transmission in parallel through multi-threading. It supports file operation commands such as query, deletion, renaming, backup and download, and determines the file download command based on priority. The processing sequence realizes real-time transmission of end-to-end file data between the terminal device and the vehicle terminal.
It improves file transfer efficiency and quality, alleviates the storage cost and pressure of file data, and realizes real-time data transmission between terminal equipment and vehicle-mounted terminals.
Smart Images

Figure CN119109918A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle communication technology, and in particular to a data transmission method, device, equipment and medium of a vehicle-mounted terminal. Background Art
[0002] With the rapid development of Internet of Vehicles technology, vehicle-mounted terminals realize data transmission through wireless technology, support remote monitoring, diagnosis and updating, and are widely used in Internet of Vehicles and intelligent transportation systems. They have become an important means of intelligent and automated vehicle management.
[0003] The existing vehicle terminal data transmission is usually realized through the File Transfer Protocol (FTP). The FTP protocol is based on the client-server mode of the Transmission Control Protocol (TCP) connection. The vehicle terminal first establishes a connection with the FTP server through the FTP protocol, and uses the FTP command to send the file to the FTP server. Only then can other authorized clients connect to the FTP server to upload, download, delete, and other operations. Therefore, this method has certain limitations in the scenario of real-time transmission of file data, and also increases the storage cost and pressure of file data; and the transmission efficiency is limited by the network bandwidth, file size, transmission mode and network delay, resulting in low efficiency of file data transmission. At the same time, under poor working conditions, packet loss errors are prone to occur, resulting in failure of file data transmission.
[0004] In summary, how to solve the real-time transmission of file data on vehicle terminals, improve the transmission efficiency and quality of file data, and alleviate the storage cost and pressure of file data has become an urgent problem to be solved. Summary of the invention
[0005] The present application provides a data transmission method, device, equipment and medium for a vehicle-mounted terminal, which are used to solve the problems that the vehicle-mounted terminal data cannot be transmitted in real time, the transmission efficiency is low, the quality is poor, and the data storage pressure is high.
[0006] In a first aspect, the present application provides a data transmission method for a vehicle-mounted terminal, which is applied to a TSP server, and the method comprises:
[0007] Receiving a file operation command sent by a terminal device through a preset real-time file protocol;
[0008] Sending the file operation command to the vehicle terminal through the real-time file protocol;
[0009] Receiving an operation result returned by the vehicle-mounted terminal through the real-time file protocol;
[0010] Returning the operation result to the terminal device via the real-time file protocol;
[0011] The real-time file protocol is used to indicate that the transmission signaling includes multiple fields, each field's name, data type and field modifier.
[0012] In a specific implementation, the real-time file protocol includes a file command protocol, and the file command protocol is used to instruct the TSP server to send a plurality of fields in the signaling of the file operation command to the vehicle terminal, and the name, data type and field modifier of each field;
[0013] The sending of the file operation command to the vehicle terminal through a preset real-time file protocol includes:
[0014] The file operation command is sent to the vehicle-mounted terminal through the file command protocol.
[0015] In a specific implementation, the real-time file protocol includes a data reply protocol, and the data reply protocol is used to instruct the vehicle terminal to reply to the TSP server a plurality of fields in the signaling of the operation result, the name, data type and field modifier of each field;
[0016] The receiving the operation result returned by the vehicle-mounted terminal through the real-time file protocol includes:
[0017] Receive the operation result returned by the vehicle-mounted terminal through the data reply protocol.
[0018] In a specific implementation, the real-time file protocol includes a data forwarding protocol, the data forwarding protocol is used to instruct the TSP server to forward multiple fields in the signaling of the operation result to the terminal device, the name of each field, the data type and the field modifier;
[0019] The returning the operation result to the terminal device through the real-time file protocol includes:
[0020] The operation result is returned to the terminal device through the data forwarding protocol.
[0021] In a specific implementation, the real-time file protocol also includes: a file operation request protocol corresponding to query, delete, rename, backup or download, respectively, the file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, the name, data type and field modifier of each field;
[0022] The receiving terminal device sends a file operation command through a preset real-time file protocol, including:
[0023] The file operation command sent by the terminal device through the file operation request protocol is received.
[0024] In a specific implementation, the file operation command includes a command generated by any one of the operations of querying, deleting, renaming, backing up or downloading data in the vehicle-mounted terminal.
[0025] In a specific implementation, the file operation command is a file download command, and the operation result includes file data;
[0026] When the TSP server forwards the file data to the terminal device, multiple threads execute command response, data parsing, data packaging and data forwarding operations in parallel.
[0027] In a second aspect, the present application provides a data transmission method of a vehicle-mounted terminal, which is applied to the vehicle-mounted terminal, and the method includes:
[0028] Receive file operation commands sent by the TSP server through a preset real-time file protocol;
[0029] Execute the operation corresponding to the file operation command and obtain the operation result;
[0030] Returning the operation result to the TSP server via the real-time file protocol;
[0031] The real-time file protocol is used to indicate that the transmission signaling includes multiple fields, each field's name, data type and field modifier.
[0032] In a specific implementation, the real-time file protocol includes a file command protocol, and the file command protocol is used to instruct the TSP server to send a plurality of fields in the signaling of the file operation command to the vehicle terminal, and the name, data type and field modifier of each field;
[0033] The receiving of the file operation command sent by the TSP server through a preset real-time file protocol includes:
[0034] Receive the file operation command sent by the TSP server through the file command protocol.
[0035] In a specific implementation, the real-time file protocol includes a data reply protocol, and the data reply protocol is used to instruct the vehicle terminal to reply to the TSP server a plurality of fields in the signaling of the operation result, the name, data type and field modifier of each field;
[0036] The returning the operation result to the TSP server through the real-time file protocol includes:
[0037] The operation result is returned to the TSP server through the data reply protocol.
[0038] In a specific implementation, the file operation command includes a command generated by any one of the operations of querying, deleting, renaming, backing up or downloading data in the vehicle-mounted terminal.
[0039] In a specific implementation, the file operation command is a file download command;
[0040] The performing of the operation corresponding to the file operation command and obtaining the operation result includes:
[0041] Determining the target priority of the target file corresponding to the file operation command according to a preset priority determination rule, wherein the priority determination rule includes priorities corresponding to different types of files;
[0042] If the target priority is higher than the preset priority, determining whether the system processing resources meet the processing requirements of the file download command;
[0043] If the system processing resources do not meet the processing requirements for processing the file download command, the processing tasks with file priorities lower than the preset priority are stopped, and file data is obtained from the target file according to the file download command, and the operation result includes the file data.
[0044] In a specific implementation, when the vehicle-mounted terminal returns the file data to the TSP server, multiple threads execute data reading, data encoding, data packaging and data sending operations in parallel.
[0045] In a third aspect, the present application provides a data transmission method for a vehicle-mounted terminal, which is applied to a terminal device, and the method includes:
[0046] In response to the user's operation, the file operation command is sent to the TSP server through a preset real-time file protocol;
[0047] Receiving an operation result returned by the TSP server according to the real-time file protocol;
[0048] The real-time file protocol is used to indicate that the transmission signaling includes multiple fields, each field's name, data type and field modifier.
[0049] In a specific implementation, the real-time file protocol also includes: a file operation request protocol corresponding to query, delete, rename, backup or download, respectively, the file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, the name, data type and field modifier of each field;
[0050] The sending of the file operation command to the TSP server through a preset real-time file protocol includes:
[0051] The file operation command is sent to the TSP server through the file operation request protocol.
[0052] In a specific implementation, the real-time file protocol includes a data forwarding protocol, the data forwarding protocol is used to instruct the TSP server to forward multiple fields in the signaling of the operation result to the terminal device, the name of each field, the data type and the field modifier;
[0053] The receiving the operation result returned by the TSP server according to the real-time file protocol includes:
[0054] Receive the operation result returned by the TSP server according to the data forwarding protocol.
[0055] In a fourth aspect, the present application provides a data transmission device for a vehicle-mounted terminal, comprising:
[0056] The first module is used to receive a file operation command sent by a terminal device through a preset real-time file protocol;
[0057] The second module is used to send the file operation command to the vehicle terminal through the real-time file protocol;
[0058] The third module is used to receive the operation result returned by the vehicle terminal through the real-time file protocol;
[0059] The fourth module is used to return the operation result to the terminal device through the real-time file protocol.
[0060] In a fifth aspect, the present application provides a data transmission device for a vehicle-mounted terminal, comprising:
[0061] The first module is used to receive the file operation command sent by the TSP server through a preset real-time file protocol;
[0062] The second module is used to execute the operation corresponding to the file operation command and obtain the operation result;
[0063] The third module is used to return the operation result to the TSP server through the real-time file protocol.
[0064] In a sixth aspect, the present application provides a data transmission device for a vehicle-mounted terminal, comprising:
[0065] The first module is used to send a file operation command to the TSP server through a preset real-time file protocol in response to a user operation;
[0066] The second module is used to receive the operation result returned by the TSP server according to the real-time file protocol.
[0067] In a seventh aspect, the present application provides an electronic device, including:
[0068] Processor, memory and communication interface;
[0069] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the data transmission method for the vehicle-mounted terminal described in the first aspect, the second aspect or the third aspect.
[0070] In an eighth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the data transmission method of the vehicle-mounted terminal described in the first aspect, the second aspect or the third aspect.
[0071] In a ninth aspect, the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the data transmission method for the vehicle-mounted terminal described in the first aspect, the second aspect or the third aspect.
[0072] The present application provides a data transmission method, device, equipment and medium for a vehicle-mounted terminal. In this solution, in response to a user operation, the terminal device sends a file operation command to the TSP server through a preset real-time file protocol, and the TSP server sends the file operation command to the vehicle-mounted terminal through the real-time file protocol. The vehicle-mounted terminal performs the operation corresponding to the file operation command and obtains the operation result, and returns the operation result to the TSP server through the real-time file protocol. The TSP server returns the operation result to the terminal device through the real-time file protocol, and the terminal device has received the operation result returned by the TSP server according to the real-time file protocol. Through the above method, the efficiency and quality of file transmission are improved, the cost and pressure of file data storage are alleviated, and end-to-end real-time transmission of file data from the terminal device to the vehicle-mounted terminal is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0074] Figure 1 A schematic diagram of an application scenario of a data transmission method for a vehicle-mounted terminal provided in an embodiment of the present application;
[0075] Figure 2 A flowchart of a first embodiment of a data transmission method for a vehicle-mounted terminal provided in an embodiment of the present application;
[0076] Figure 3 A flowchart of a second embodiment of a data transmission method for a vehicle-mounted terminal provided in an embodiment of the present application;
[0077] Figure 4 A schematic diagram of the principle of a data transmission method for a vehicle-mounted terminal provided in an embodiment of the present application;
[0078] Figure 5 A schematic diagram of the structure of a first embodiment of a data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application;
[0079] Figure 6 A schematic diagram of the structure of a second embodiment of a data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application;
[0080] Figure 7 A schematic diagram of the structure of a third embodiment of a data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application;
[0081] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0082] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0083] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0084] Before introducing the embodiments of the present application, the application background of the embodiments of the present application is first explained:
[0085] With the rapid development of Internet of Vehicles technology, the on-board telematics control unit TBOX (Telematics BOX, TBOX for short) realizes file data transmission through wireless technology, supports remote monitoring, diagnosis and updating, and is widely used in Internet of Vehicles intelligent transportation systems. It has become an important means of intelligent and automated vehicle management.
[0086] The vehicle-mounted TBOX is an intelligent vehicle-mounted terminal in the intelligent networked car and one of the core components of the vehicle networking system. The vehicle networking system consists of four parts: the host, the vehicle-mounted TBOX, the mobile application and the background system, which work together to realize the intelligence and networking of the vehicle. As a wireless gateway, the vehicle-mounted TBOX communicates with the host through the controller area network (CAN) bus, transmits various messages including vehicle status, key status and control instructions, and provides the whole vehicle with a network communication interface and vehicle operation information collection, vehicle remote control function, vehicle safety and other service functions. The vehicle-mounted TBOX integrates a variety of advanced technologies such as wireless wide area network, wireless local area network, vehicle body communication network, multi-network routing, vehicle data security, air number burning, global positioning system (GPS) and Beidou positioning, three-dimensional acceleration sensor, multi-axis sensor and real-time inertial navigation, etc., deeply reads the vehicle CAN bus data and special protocols, and uploads these data to the cloud server through the wireless network, providing users with rich vehicle information and remote control services. As an independent terminal system, the vehicle-mounted TBOX has many file data interaction scenarios with the TSP server and terminal devices, such as uploading file data from the vehicle-mounted TBOX to the TSP server, the TSP server sending configuration files to the vehicle-mounted TBOX, and the terminal device obtaining log files from the vehicle-mounted TBOX.
[0087] The existing vehicle-mounted TBOX file data transmission is usually implemented through FTP. The FTP protocol is a client-server mode based on TCP connection, using TCP port 21 as the control port for sending commands and receiving server responses. The vehicle-mounted TBOX first establishes a connection with the FTP server through the FTP protocol, and uses the FTP command to send files to the FTP server. Only then can other authorized clients connect to the FTP server to perform operations such as uploading, downloading, and deleting files. The FTP protocol supports two connection modes: active mode and passive mode. In the active mode, the client informs the server of its Internet Protocol (IP) address and port number, and the server actively connects to the client's designated port for data transmission; in the passive mode, the server informs the client of its data port number, and the client connects to the port to receive data. This flexibility enables the FTP protocol to adapt to different network environments. However, this method has certain limitations in the scenario of real-time transmission of file data, and also increases the storage cost and pressure of file data; and the transmission efficiency is limited by network bandwidth, file size, transmission mode and network delay, resulting in low efficiency of file data transmission. At the same time, packet loss errors are prone to occur under poor working conditions, resulting in failure of file data transmission.
[0088] In summary, how to solve the real-time transmission of file data on vehicle terminals, improve the transmission efficiency and quality of file data, and alleviate the storage cost and pressure of file data has become an urgent problem to be solved.
[0089] Based on the above technical problems, the inventors found that the real-time file protocol supporting efficient data frame format and data packet processing mechanism clearly specifies the format and meaning of the file operation command by indicating the data type and modifier corresponding to multiple fields such as file operation command, access file path, total number of files, file information, and file download status and file download information under the file download command. The communication between the terminal device, TSP server and the vehicle terminal complies with the preset real-time file protocol, and file data transmission can be performed, which simplifies user interaction, realizes real-time access and transmission of file data, and improves file transmission efficiency. Based on this, the present application provides a data transmission method for a vehicle terminal, in which the terminal device, TSP server and vehicle terminal perform file data transmission through a preset real-time file protocol, and at the same time, the process of obtaining the file operation result is executed in parallel by multi-threading on the TSP server side and the vehicle terminal device side. When the file operation command is a file download command, in the process of obtaining the file operation result, the vehicle terminal needs to determine the priority of the target file according to the preset priority determination rule, and determine whether the system resources meet the processing requirements of the target file download command. It simplifies user interaction, realizes real-time access and transmission of file data, and improves file transmission efficiency.
[0090] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0091] Figure 1 A schematic diagram of an application scenario of a data transmission method for a vehicle terminal provided in an embodiment of the present application, such as Figure 1 As shown, the application scenario at least includes: a terminal device, a TSP server, and a vehicle-mounted terminal. In response to a user operation, the terminal device sends a file operation command to the TSP server through a preset real-time file protocol, and the TSP server sends the file operation command to the vehicle-mounted terminal through the real-time file protocol. The vehicle-mounted terminal performs the operation corresponding to the file operation command and obtains the operation result, and returns the operation result to the TSP server through the real-time file protocol. The TSP server returns the operation result to the terminal device through the real-time file protocol. At this point, the terminal device receives the operation result returned by the TSP server according to the real-time file protocol.
[0092] The terminal device can be a smart phone, tablet computer, local personal computer (PC), etc., which has network connection capability, supports preset real-time file protocols, has a user interaction interface, and has sufficient processing power to generate and parse file operation commands and communicate with the TSP server; the vehicle-mounted terminal can be a vehicle-mounted TBOX, on-board diagnostic system (OBD) interface device, vehicle-mounted computer or smart gateway, etc., which has network connection capability, supports preset real-time file protocols, and has sufficient processing power to execute file operation commands and communicate with the TSP server; the TSP server here is only used for illustration, and in the specific implementation, it can also be executed by cloud servers, internal enterprise servers, etc., and this solution does not limit the specific device form.
[0093] The physical devices involved in the above description are exemplary in the figures and do not represent the only ones. This application does not specifically limit the specific form and type of the specific devices involved.
[0094] Figure 2 A flowchart of a first embodiment of a data transmission method for a vehicle terminal provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, specifically including:
[0095] S201: In response to a user operation, a file operation command is sent to a TSP server via a preset real-time file protocol.
[0096] For the TSP server side, the receiving terminal device sends the operation command through a preset real-time file protocol.
[0097] In this step, in order to ensure that the TSP server can timely receive the file operation command sent by the terminal device through the preset real-time file protocol, so as to forward the file operation command to the vehicle terminal in time through the preset real-time file protocol, the communication connection between the terminal device, the TSP server and the vehicle terminal is first established. At the same time, the vehicle identification number (VIN) and the file path of the vehicle TBOX end to be accessed are configured in the terminal device, and the TSP server subscribes to the file event of the corresponding vehicle TBOX end according to the configuration information. Among them, the terminal device, as the initiator of the operation command, is the entrance for the user to interact with the TSP server; the TSP server, as the hub of the entire communication system, plays the role of a transfer station, responsible for receiving the file operation command of the terminal device, and then forwarding the operation instruction to the vehicle terminal; the vehicle terminal, as the executor of the file operation instruction, is responsible for receiving the command from the TSP server and converting it into a specific control signal through the vehicle internal system, so as to realize the operation of the vehicle-related functions.
[0098] The preset real-time file protocol supports efficient data frame format and data packet processing mechanism, and instructs the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, including the file operation command CommandType, the access file path Dir, the total number of files Count, the file information array FileInfo, and the file download state DownFileState and file download information DownFileInfo under the file download command, as well as the data type (enum, string, int32, FileInfo, bool, DownFileInfo, etc.) and field modifiers (required, optional, repeated) corresponding to each field. FileInfo contains the file name filename, file type type and file length size; DownFileInfo contains the file name filename and file data data. These fields clearly define the format and meaning of the file operation command. Different file operation commands include the corresponding file query command, file deletion command, file renaming command, file backup command and file download command generated by any operation of querying, deleting, renaming, backing up or downloading the data in the vehicle terminal, where 0 means query, 1 means download, 2 means delete, 3 means backup, and 4 means rename.
[0099] The preset real-time file protocol includes at least one of the file operation request protocol, file command protocol, data reply protocol and data forwarding protocol corresponding to different file operation commands, and these protocols are used in different stages of file data transmission. The preset real-time file protocol is pre-configured in the configuration files of the terminal device, TSP server and vehicle-mounted terminal, wherein the file operation request protocol is used to indicate the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, the name, data type and field modifier of each field; the file command protocol is used to indicate the TSP server to send multiple fields in the signaling of the file operation command to the vehicle-mounted terminal, the name, data type and field modifier of each field; the data reply protocol is used to indicate the vehicle-mounted terminal to reply the operation result to the TSP server. Multiple fields in the signaling, the name, data type and field modifier of each field; the data forwarding protocol is used to indicate the TSP server to forward the operation result to the terminal device. Multiple fields in the signaling, the name, data type and field modifier of each field. The terminal device, TSP server and vehicle-mounted TBOX can perform file data transmission through the signaling that complies with the preset real-time file protocol, which simplifies user interaction and improves file transmission efficiency.
[0100] The file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, and the name, data type and field modifier of each field.
[0101] Specifically, in response to the user's operation, a file operation command is sent to the TSP server through the file operation request protocol, and the TSP server receives the operation command sent by the terminal device through the file operation request protocol. When the file operation command is query, delete, backup or rename, the file data transmission process is described as follows. Take the case where the user sends a file query command through the local PC to request to query the VehicleLog_20240101.log log file stored in the / Data / Logs path of the vehicle-mounted TBOX end, that is, there is a Data folder in the root directory of the vehicle-mounted TBOX for storing user data, and the Logs folder under the Data folder is used to store log files. The path of the log file being queried is: / Data / Logs / VechicleLog_20240101.log. The user sends a file query command to the TSP server through the file query request protocol, and the TSP server receives the file query command sent by the local PC through the file query request protocol, and responds to the user's file query command request in real time.
[0102] S202: Sending the file operation command to the vehicle terminal via a real-time file protocol.
[0103] For the vehicle-mounted terminal side, the file operation command sent by the TSP server through the preset real-time file protocol is received.
[0104] In this step, the TSP server receives the file operation command request from the terminal device, parses and verifies the file operation command request, and ensures that the file operation command request is legal and the target file path is valid. The TSP server encodes the file operation command into a format that the vehicle terminal can receive and understand, and sends the file operation command to the vehicle terminal through the file command protocol. The file command protocol is used to indicate multiple fields in the signaling of the TSP server sending the file operation command to the vehicle terminal, the name, data type and field modifier of each field.
[0105] Specifically, taking the example of a user sending a file query command through the local PC to request a query for the VehicleLog_20240101.log log file stored in the / Data / Logs path of the on-board TBOX, the user sends the file query command to the TSP server through the file query request protocol. The TSP server receives the file query command sent by the local PC through the file query request protocol, responds to the user's file query command request in real time, and sends the file query command to the on-board TBOX through the file query command protocol. The on-board TBOX receives the file query command sent by the TSP server through the file query command protocol.
[0106] S203: Execute the operation corresponding to the file operation command and obtain the operation result.
[0107] In this step, the vehicle terminal receives the file operation command sent by the TSP server through the file command protocol and executes the operation corresponding to the file operation command. The vehicle terminal responds to the file operation command sent by the TSP server, parses it into specific operation instructions and parameters, confirms whether the format of the file operation command conforms to the preset real-time file protocol, such as the operation command length, data type, and field modifier, and then checks whether system resources such as storage space, processor time, network bandwidth, etc. support the file command operation, and then calls the underlying file system interface through the microcontroller module (MCU) according to the parsed operation instructions and parameters to execute the operation corresponding to the file operation command, obtains the operation result and stores it in the storage management module embedded in the MCU module.
[0108] Specifically, take the case where a user issues a file query command through a local PC to request to query the VehicleLog_20240101.log log file stored in the path / Data / Logs on the vehicle TBOX as an example. The user sends a file query command to the TSP server through the file query request protocol. The TSP server receives the file query command sent by the local PC through the file query request protocol, and sends the file query command to the vehicle TBOX through the file query command protocol. The vehicle TBOX receives the file query command sent by the TSP server through the file query command protocol, and calls the underlying file system interface through the MCU module to execute the file query command to obtain the query result. The query result includes "query success" or "query failure". If it indicates "query failure", the query result also includes an error message indicating the reason for the query failure, such as insufficient permissions, file non-existence, etc. The vehicle TBOX stores the query result in a storage management module, such as a flash memory, a secure digital memory card (SecureDigital, SD), etc.
[0109] S204: Return the operation result to the TSP server via the real-time file protocol.
[0110] For the TSP server side, it receives the operation results returned by the vehicle terminal through the real-time file protocol.
[0111] In this step, the vehicle terminal performs the operation corresponding to the file operation command, obtains the operation result, encodes and packages the operation result, and returns the operation result to the TSP server through the data reply protocol to ensure that the TSP server can accurately receive and parse it. The data reply protocol is used to indicate the multiple fields in the signaling of the vehicle terminal to reply the operation result to the TSP server, the name, data type and field modifier of each field.
[0112] Specifically, taking the example of a user sending a file query command through the local PC to request a query for the VehicleLog_20240101.log log file stored in the / Data / Logs path of the on-board TBOX, the user sends a file query command to the TSP server through the file query request protocol. The TSP server receives the file query command sent by the local PC through the file query request protocol, and sends the file query command to the on-board TBOX through the file query command protocol. The on-board TBOX receives the file query command sent by the TSP server through the file query command protocol, executes the file query command through the MCU module, obtains the query result, and returns the file query result to the TSP server through the data reply protocol.
[0113] S205: Return the operation result to the terminal device via a real-time file protocol.
[0114] For the terminal device, it receives the operation result returned by the TSP server according to the real-time file protocol.
[0115] In this step, the TSP server responds to the operation results sent by the vehicle terminal according to the specifications of the data reply protocol, parses and packages them, and returns them to the terminal device through the data forwarding protocol. The terminal device receives the operation results returned by the TSP server according to the data forwarding protocol. The data forwarding protocol is used to instruct the TSP server to forward multiple fields in the signaling of the operation results to the terminal device, including the name, data type and field modifier of each field. Through the forwarding of file data by the TSP server, the terminal device can arbitrarily configure the vehicle terminal, thereby realizing end-to-end communication between the terminal device and the vehicle terminal, and reducing the cost of the intermediate file server.
[0116] Specifically, taking the example of a user sending a file query command through the local PC to request a query for the VehicleLog_20240101.log log file stored in the / Data / Logs path of the vehicle-mounted TBOX, the user sends a file query command to the TSP server through the file query request protocol, the TSP server receives the file query command sent by the local PC through the file query request protocol, and sends the file query command to the vehicle-mounted TBOX through the file query command protocol, the vehicle-mounted TBOX receives the file query command sent by the TSP server through the file query command protocol, executes the file query command through the MCU module, and returns the file query result to the TSP server through the data reply protocol, the TSP server receives the query result returned by the vehicle-mounted BOX through the data reply protocol, and returns the query result to the local PC through the data forwarding protocol, the local PC receives the query result returned by the TSP server according to the data forwarding protocol, thereby realizing end-to-end file data transmission between the local PC and the vehicle-mounted TBOX.
[0117] The data transmission method of the vehicle terminal provided in this embodiment is that the terminal device responds to the user operation and sends the file operation command to the TSP server through the file operation request protocol. The TSP server receives the file operation command sent by the terminal device through the file operation request protocol, and sends the file operation command to the vehicle terminal through the file command protocol. The vehicle terminal receives the file operation command sent by the TSP server through the file command protocol, executes the operation corresponding to the file operation command, and obtains the operation result. Then the vehicle terminal returns the operation result to the TSP server through the data reply protocol. The TSP server receives the operation result sent by the vehicle terminal through the data reply protocol, and returns the operation result to the terminal device through the data forwarding protocol. The terminal device receives the operation result returned by the TSP server through the data forwarding protocol. Through the above method, the end-to-end real-time transmission of file data between the terminal device and the vehicle terminal is realized, and the user can arbitrarily configure the vehicle terminal on the terminal device, while alleviating the cost pressure of file data storage and intermediate servers.
[0118] Figure 3 A flow chart of a second embodiment of a data transmission method for a vehicle terminal provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, based on the above embodiment, if the file operation command is a file download command, the specific processing process is different from other commands, and the implementation on the vehicle terminal side also includes:
[0119] S301: Determine a target priority of a target file corresponding to a file operation command according to a preset priority determination rule, wherein the priority determination rule includes priorities corresponding to different types of files.
[0120] In this step, when the file operation command is a file download command, the terminal device responds to the user's operation and sends the file download command to the TSP server through the file download request protocol. The TSP server receives the file download command sent by the terminal device through the file download request protocol, and then sends the file download command to the vehicle-mounted terminal through the file download command protocol. The vehicle-mounted terminal receives the file download command sent by the TSP server through the file download command protocol, and when executing the operation corresponding to the file download command, determines the target priority of the target file corresponding to the file download command according to a preset priority determination rule, and the priority determination rule includes priorities corresponding to different types of files.
[0121] The preset file priority rules usually involve assigning different priority levels to different types of files. The priority of different types of files can be defined according to the importance, purpose and urgency of the files. The level can be a numerical value, such as 1 to 10, where 1 represents the highest priority and 10 represents the lowest priority, or a descriptive label, such as "high" or "low". The file priority rules are pre-configured in the configuration file of the vehicle terminal so that when the vehicle terminal receives a file download command, it automatically determines its priority according to the file type and arranges the download order accordingly.
[0122] Specifically, system update files and security patch files have high priority. These files contain critical vulnerability fixes or performance improvements, which directly affect the security and stability of the vehicle terminal to prevent potential security threats; navigation map update files and real-time traffic data files also have high priority. These files directly affect the user's driving experience and navigation accuracy; multimedia files such as music and videos have low priority. Although these files are used to enhance the user experience, they do not affect the core functions such as the operation of the vehicle; advertising files and non-emergency log files also have low priority. These files have the least impact on the core functions and user experience of the entire vehicle system.
[0123] S302: If the target priority is higher than the preset priority, determine whether the system processing resources meet the processing requirements of the file download command.
[0124] In this step, the vehicle terminal receives the file download command sent by the TSP server through the file download command protocol, identifies the type of the target according to the preset priority rule, and maps the identified file type to the response priority level. If the target priority is higher than a preset threshold or higher than the priority of all tasks currently being processed by the vehicle system, it is determined whether the system processing resources meet the processing requirements of the file download command, which includes checking network bandwidth, storage space, central processing unit (CPU) load, network interface and other resources.
[0125] S303: If the system processing resources do not meet the processing requirements for processing the file download command, stop the processing tasks with file priorities lower than the preset priority, and obtain file data from the target file according to the file download command. The operation result includes the file data.
[0126] In this step, the vehicle terminal receives the file download command sent by the TSP server through the file download command protocol, and identifies the priority of the target file according to the preset priority rule. If the target priority is higher than the preset priority, it is determined whether the system processing resources meet the processing requirements of the file download command. If the system processing resources meet the processing requirements of the file download command, the file download command continues to be executed; if the system processing resources do not meet the processing requirements of the file download command, the processing tasks with a priority lower than the preset priority are terminated or suspended, and network bandwidth, storage space, CPU, network interface and other resources are released to process high-priority file download commands, and the system resource allocation is dynamically adjusted to ensure that the vehicle terminal can allocate sufficient system resources when processing high-priority file download commands, thereby ensuring the timely download and application of the target file, avoiding the failure or delay of downloading important files due to insufficient resources, and ensuring the safety of the system and the normal operation of key functions. After executing the file download command, the file data is obtained from the target file as the operation result so as to be sent to the TSP server.
[0127] In a specific implementation, when the vehicle-mounted terminal returns the file data to the TSP server, multiple threads execute data reading, data encoding, data packaging and data sending operations in parallel.
[0128] In this step, when the vehicle terminal returns the file data to the TSP server through the data reply protocol, multi-threaded parallel processing allows the vehicle terminal to process multiple tasks at the same time, including data reading, data encoding, data packaging and data sending. These tasks are assigned to different threads, and each thread performs its assigned tasks independently. For example, one thread is responsible for reading data from a file, another thread is responsible for encoding the read data, the third thread is responsible for packaging the encoded data, and the last thread is responsible for sending the packaged data to the TSP server. Multi-threaded parallel processing significantly improves the efficiency of data processing and transmission and reduces the waiting time for data processing. At the same time, it also improves the stability and reliability of the system, avoids the bottleneck problem of a single thread, and ensures that even if a thread has problems during execution, other threads can still continue to execute, thereby avoiding the collapse of the entire system, ensuring that the vehicle terminal quickly returns the operation results to the TSP server through the data reply protocol, and improving the response speed and performance of the system.
[0129] In a specific implementation, when the vehicle-mounted terminal returns the operation result to the TSP server through the data reply protocol, if the file data transmission is abnormal, the file breakpoint saving and recovery mechanism is started.
[0130] Specifically, when the vehicle terminal returns the operation result to the TSP server through the data reply protocol, if the file data transmission is abnormal due to timeout, packet error, packet loss or network abnormality, the vehicle terminal will start the file breakpoint saving and recovery mechanism, that is, the vehicle terminal will immediately save the current packaged data and the file's read and write pointer information to the storage medium. When it is determined that the current transmission link is normal, the saved data and file pointer are restored, and the file operation result is continued to be sent. After ensuring that the file operation result is sent successfully at least once, the file breakpoint is cleared.
[0131] In a specific implementation, when the TSP server forwards file data to the terminal device, multiple threads execute command response, data parsing, data packaging and data forwarding operations in parallel.
[0132] In this step, the TSP server breaks down the process of forwarding file data to the terminal device through the data forwarding protocol into multiple processes including command response, data parsing, data packaging and data forwarding, and adopts the principles and beneficial effects of multi-threaded parallel processing. This is similar to the principles and beneficial effects of multi-threaded parallel execution of data reading, data encoding, data packaging and data sending operations when the vehicle-mounted terminal returns the file data to the TSP server through the data recovery protocol, and will not be repeated here.
[0133] The data transmission method of the vehicle terminal provided in this embodiment, when the file operation command is a file download command, the terminal device responds to the user's operation and sends the file download command to the TSP server through the file download request protocol, the TSP server receives the file download command sent by the terminal device through the file download request protocol, and then sends the file download command to the vehicle terminal through the file download command protocol, the vehicle terminal receives the file download command sent by the TSP server through the file download command protocol, determines the target priority of the target file corresponding to the file download command according to the preset priority determination rule, and checks whether the system processing resources meet the processing requirements of the file download command, so as to ensure the timely download and application of high priority files. After executing the operation corresponding to the file download command, the file data is obtained from the target file according to the file download command as the operation result. Then, the multi-threaded parallel processing vehicle terminal returns the file data to the TSP server through the data reply protocol. After the TSP server receives the file data, the multi-threaded parallel processing TSP server forwards the file data to the terminal device through the data forwarding protocol, and the terminal device receives the file data returned by the TSP server through the data forwarding protocol. Through the above method, end-to-end real-time transmission of file data between the terminal device and the vehicle terminal is realized. The user can arbitrarily configure the vehicle terminal on the terminal device, while improving the file data transmission efficiency and file data transmission quality.
[0134] Figure 4A schematic diagram of a data transmission method for a vehicle terminal provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the overall logic of this solution is:
[0135] When the file operation command is a file query, delete, backup or rename command, the terminal device responds to the user operation and sends the file operation command to the TSP server through the file operation request protocol. The TSP server receives the file operation command sent by the terminal device through the file operation request protocol, and sends the file operation command to the vehicle terminal through the file command protocol. The vehicle terminal receives the file operation command sent by the TSP server through the file command protocol, determines whether there is file breakpoint data, and restores the breakpoint data first if there is, otherwise directly executes the operation corresponding to the file operation command to obtain the operation result. Then the vehicle terminal returns the operation result to the TSP server through the data reply protocol. The TSP server receives the operation result sent by the vehicle terminal through the data reply protocol and returns the operation result to the terminal device through the data forwarding protocol. At this point, the terminal device has received the operation result returned by the TSP server through the data forwarding protocol.
[0136] When the file operation command is a file download command, the terminal device responds to the user operation and sends the file download command to the TSP server through the file download request protocol. The TSP server receives the file download command sent by the terminal device through the file download request protocol, and sends the file download command to the vehicle-mounted terminal through the file download command protocol. After the vehicle-mounted terminal receives the file download command sent by the TSP server through the file download command protocol, it first determines the target priority of the target file corresponding to the file operation command according to a preset priority determination rule, and the priority determination rule includes priorities corresponding to different types of files.
[0137] If the target priority is higher than the preset priority, it is determined whether the system processing resources meet the processing requirements of the file download command. If the system processing resources do not meet the processing requirements of the file download command, the processing tasks with a priority lower than the preset priority are terminated or paused, and network bandwidth, storage space, CPU, network interface and other resources are released to process high-priority file download commands, thereby dynamically adjusting system resource allocation and improving file data transmission efficiency without affecting the normal operation of the vehicle terminal system.
[0138] After executing the file download command, the file data is obtained from the target file as the operation result and sent to the TSP server, and the pipeline working mode is adopted. The vehicle terminal breaks down the file data sending process into data reading, data encoding, data packaging and data sending, and multi-threads parallelly process these four processes, which improves the efficiency of file data transmission. At the same time, if the file data transmission is abnormal due to timeout, wrong packet, packet loss or network abnormality, the file breakpoint saving and recovery mechanism of the vehicle terminal will be started immediately, and the current packaged data and the file's read and write pointer information will be saved to the storage medium. When it is determined that the current transmission link is normal, the saved data and file pointer are restored, and the file data is sent continuously to ensure that the file data is sent successfully at least once, and then the file breakpoint is cleared.
[0139] After the TSP server receives the file data sent by the vehicle terminal through the data reply protocol, it adopts the pipeline working mode when sending it to the terminal device through the data forwarding protocol. The TSP server breaks down the file data forwarding process into command response, data parsing, data packaging and data forwarding, and multi-threads parallel processing these four processes, which ensures the fast response of the TSP server and improves the efficiency of file data forwarding. At this point, the terminal device receives the operation result returned by the TSP server through the data forwarding protocol.
[0140] Figure 5 A structural diagram of a data transmission device for a vehicle terminal according to an embodiment of the present application is shown in FIG. Figure 5 As shown, the data transmission device 500 of the vehicle terminal includes:
[0141] The first processing module 501 is used to receive a file operation command sent by a terminal device through a preset real-time file protocol.
[0142] The second module 502 is used to send the file operation command to the vehicle terminal through the real-time file protocol.
[0143] The third module 503 is used to receive the operation result returned by the vehicle terminal through the real-time file protocol.
[0144] The fourth module 504 is used to return the operation result to the terminal device through the real-time file protocol.
[0145] A data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application is used to execute the technical solution in the aforementioned method embodiment, and its implementation principle and technical effect are similar and will not be repeated here.
[0146] In a specific implementation, the real-time file protocol includes a file command protocol, which is used to instruct the TSP server to send a plurality of fields in the signaling of the file operation command to the vehicle terminal, and the name, data type and field modifier of each field. The second processing module 502 is specifically used to:
[0147] The file operation command is sent to the vehicle terminal through the file command protocol.
[0148] In a specific implementation, the real-time file protocol includes a data reply protocol, which is used to instruct the vehicle terminal to reply to the TSP server with multiple fields in the signaling of the operation result, the name, data type and field modifier of each field. The third processing module 503 is specifically used to:
[0149] Receive the operation results returned by the vehicle terminal through the data reply protocol.
[0150] In a specific implementation, the real-time file protocol includes a data forwarding protocol, which is used to instruct the TSP server to forward multiple fields in the signaling of the operation result to the terminal device, the name, data type and field modifier of each field. The fourth module 504 is specifically used to:
[0151] The operation results are returned to the terminal device through the data forwarding protocol.
[0152] In a specific implementation, the file operation command includes a command generated by any one of the operations of querying, deleting, renaming, backing up or downloading the data in the vehicle terminal, and the real-time file protocol also includes: a file operation request protocol corresponding to the query, deletion, renaming, backing up or downloading, respectively, and the file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, and the name, data type and field modifier of each field. The first processing module 501 is specifically used to:
[0153] Receive the file operation command sent by the terminal device through the file operation request protocol.
[0154] In a specific implementation, when the file operation command is a file download command, and the operation result includes file data, the fourth module 504 is further configured to:
[0155] Multi-threaded parallel execution of command response, data parsing, data packaging and data forwarding operations.
[0156] The data transmission device of the vehicle terminal provided in any of the above embodiments is used to execute the technical solution in the above method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0157] Figure 6A structural diagram of a second embodiment of a data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the data transmission device 600 of the vehicle terminal includes:
[0158] The first processing module 601 is used to receive a file operation command sent by a TSP server through a preset real-time file protocol.
[0159] The second processing module 602 is used to execute the operation corresponding to the file operation command and obtain the operation result.
[0160] The third processing module 603 is used to return the operation result to the TSP server through the real-time file protocol.
[0161] A data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application is used to execute the technical solution in the aforementioned method embodiment, and its implementation principle and technical effect are similar and will not be repeated here.
[0162] In a specific implementation, the real-time file protocol includes a file command protocol, which is used to instruct the TSP server to send a plurality of fields in the signaling of the file operation command to the vehicle terminal, and the name, data type and field modifier of each field. The first processing module 601 is specifically used to:
[0163] Receive file operation commands sent by the TSP server through the file command protocol.
[0164] In a specific implementation, the real-time file protocol includes a data reply protocol, which is used to instruct the vehicle terminal to reply to the TSP server with multiple fields in the signaling of the operation result, the name, data type and field modifier of each field. The third processing module 603 is specifically used to:
[0165] The operation results are returned to the TSP server through the data reply protocol.
[0166] In a specific implementation, the file operation command includes a command generated by any one of querying, deleting, renaming, backing up or downloading data in the vehicle terminal. When the file operation command is a file download command, the second processing module 602 is specifically used to:
[0167] Determine the target priority of the target file corresponding to the file operation command according to a preset priority determination rule, wherein the priority determination rule includes priorities corresponding to different types of files;
[0168] If the target priority is higher than the preset priority, determining whether the system processing resources meet the processing requirements of the file download command;
[0169] If the system processing resources do not meet the processing requirements for processing the file download command, the processing tasks with file priorities lower than the preset priority are stopped, and file data is obtained from the target file according to the file download command, and the operation result includes the file data.
[0170] In a specific implementation, the third processing module 603 is further configured to:
[0171] Multithreaded parallel execution of data reading, data encoding, data packaging and data sending operations.
[0172] The data transmission device of the vehicle terminal provided in any of the above embodiments is used to execute the technical solution in the above method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0173] Figure 7 A structural diagram of a third embodiment of a data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the data transmission device 700 of the vehicle-mounted terminal includes:
[0174] The first processing module 701 is used to send a file operation command to the TSP server through a preset real-time file protocol in response to a user operation.
[0175] The second processing module 702 is used to receive the operation result returned by the TSP server according to the real-time file protocol.
[0176] A data transmission device for a vehicle-mounted terminal provided in an embodiment of the present application is used to execute the technical solution in the aforementioned method embodiment, and its implementation principle and technical effect are similar and will not be repeated here.
[0177] In a specific implementation, the real-time file protocol also includes: a file operation request protocol corresponding to query, delete, rename, backup or download, respectively, and the file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, and the name, data type and field modifier of each field. The first processing module 701 is specifically used to:
[0178] Send file operation commands to the TSP server through the file operation request protocol.
[0179] In a specific implementation, the real-time file protocol includes a data forwarding protocol, which is used to instruct the TSP server to forward multiple fields in the signaling of the operation result to the terminal device, the name, data type and field modifier of each field. The second processing module 702 is specifically used to:
[0180] Receive the operation result returned by the TSP server according to the data forwarding protocol.
[0181] The data transmission device of the vehicle terminal provided in any of the above embodiments is used to execute the technical solution in the above method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0182] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 8 As shown, an embodiment of the present application provides an electronic device, including: a processor, a memory and a communication interface;
[0183] Memory stores computer-executable instructions;
[0184] The processor executes the computer execution instructions stored in the memory, so that the processor executes the technical solution provided in the aforementioned method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0185] An embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the technical solution in the aforementioned method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0186] The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the technical solution in the aforementioned method embodiment is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0187] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0188] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0189] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0190] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data transmission method for a vehicle terminal, It is characterized in that Applied to a telematics service platform TSP, the method comprises: Receiving a file operation command sent by a terminal device through a preset real-time file protocol; Sending the file operation command to the vehicle terminal through the real-time file protocol; Receiving an operation result returned by the vehicle-mounted terminal through the real-time file protocol; Returning the operation result to the terminal device via the real-time file protocol; The real-time file protocol is used to indicate that the transmission signaling includes multiple fields, each field's name, data type and field modifier.
2. The method according to claim 1, It is characterized in that The real-time file protocol includes a file command protocol, which is used to instruct the TSP server to send a plurality of fields in the signaling of the file operation command to the vehicle terminal, the name, data type and field modifier of each field; The sending of the file operation command to the vehicle terminal through a preset real-time file protocol includes: The file operation command is sent to the vehicle-mounted terminal through the file command protocol.
3. The method according to claim 1, It is characterized in that The real-time file protocol includes a data reply protocol, which is used to instruct the vehicle terminal to reply to the TSP server with multiple fields in the signaling of the operation result, the name, data type and field modifier of each field; The receiving the operation result returned by the vehicle-mounted terminal through the real-time file protocol includes: Receive the operation result returned by the vehicle-mounted terminal through the data reply protocol.
4. The method according to any one of claims 1 to 3, It is characterized in that The real-time file protocol includes a data forwarding protocol, and the data forwarding protocol is used to instruct the TSP server to forward multiple fields in the signaling of the operation result to the terminal device, the name, data type and field modifier of each field; The returning the operation result to the terminal device through the real-time file protocol includes: The operation result is returned to the terminal device through the data forwarding protocol.
5. The method according to any one of claims 1 to 3, It is characterized in that The real-time file protocol also includes: a file operation request protocol corresponding to query, delete, rename, backup or download, respectively, the file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, the name, data type and field modifier of each field; The receiving terminal device sends a file operation command through a preset real-time file protocol, including: The file operation command sent by the terminal device through the file operation request protocol is received.
6. The method according to claim 5, It is characterized in that The file operation command includes a command generated by any operation of querying, deleting, renaming, backing up or downloading data in the vehicle terminal.
7. The method according to any one of claims 1 to 3, It is characterized in that The file operation command is a file download command, and the operation result includes file data; When the TSP server forwards the file data to the terminal device, multiple threads execute command response, data parsing, data packaging and data forwarding operations in parallel.
8. A data transmission method for a vehicle terminal, It is characterized in that Applied to a vehicle-mounted terminal, the method comprises: Receive file operation commands sent by the TSP server through a preset real-time file protocol; Execute the operation corresponding to the file operation command and obtain the operation result; Returning the operation result to the TSP server via the real-time file protocol; The real-time file protocol is used to indicate that the transmission signaling includes multiple fields, each field's name, data type and field modifier.
9. The method according to claim 8, It is characterized in that The real-time file protocol includes a file command protocol, which is used to instruct the TSP server to send a plurality of fields in the signaling of the file operation command to the vehicle terminal, the name, data type and field modifier of each field; The receiving of the file operation command sent by the TSP server through a preset real-time file protocol includes: Receive the file operation command sent by the TSP server through the file command protocol.
10. The method according to claim 8, It is characterized in that The real-time file protocol includes a data reply protocol, which is used to instruct the vehicle terminal to reply to the TSP server with multiple fields in the signaling of the operation result, the name, data type and field modifier of each field; The returning the operation result to the TSP server through the real-time file protocol includes: The operation result is returned to the TSP server through the data reply protocol.
11. The method according to any one of claims 8 to 10, It is characterized in that The file operation command includes a command generated by any operation of querying, deleting, renaming, backing up or downloading data in the vehicle terminal.
12. The method according to any one of claims 8 to 10, It is characterized in that The file operation command is a file download command; The performing of the operation corresponding to the file operation command and obtaining the operation result includes: Determining the target priority of the target file corresponding to the file operation command according to a preset priority determination rule, wherein the priority determination rule includes priorities corresponding to different types of files; If the target priority is higher than the preset priority, determining whether the system processing resources meet the processing requirements of the file download command; If the system processing resources do not meet the processing requirements for processing the file download command, the processing tasks with file priorities lower than the preset priority are stopped, and file data is obtained from the target file according to the file download command, and the operation result includes the file data.
13. The method according to claim 12, It is characterized in that When the vehicle-mounted terminal returns the file data to the TSP server, multiple threads execute data reading, data encoding, data packaging and data sending operations in parallel.
14. A data transmission method for a vehicle terminal, It is characterized in that Applied to a terminal device, the method comprises: In response to the user's operation, the file operation command is sent to the TSP server through a preset real-time file protocol; Receiving an operation result returned by the TSP server according to the real-time file protocol; The real-time file protocol is used to indicate that the transmission signaling includes multiple fields, each field's name, data type and field modifier.
15. The method according to claim 14, It is characterized in that The real-time file protocol also includes: a file operation request protocol corresponding to query, delete, rename, backup or download, respectively, the file operation request protocol is used to instruct the terminal device to send multiple fields in the signaling of different file operation commands to the TSP server, the name, data type and field modifier of each field; The sending of the file operation command to the TSP server through a preset real-time file protocol includes: The file operation command is sent to the TSP server through the file operation request protocol.
16. The method according to claim 14 or 15, It is characterized in that The real-time file protocol includes a data forwarding protocol, and the data forwarding protocol is used to instruct the TSP server to forward multiple fields in the signaling of the operation result to the terminal device, the name, data type and field modifier of each field; The receiving the operation result returned by the TSP server according to the real-time file protocol includes: Receive the operation result returned by the TSP server according to the data forwarding protocol.
17. A data transmission device for a vehicle terminal, It is characterized in that include: The first module is used to receive a file operation command sent by a terminal device through a preset real-time file protocol; The second module is used to send the file operation command to the vehicle terminal through the real-time file protocol; The third module is used to receive the operation result returned by the vehicle terminal through the real-time file protocol; The fourth module is used to return the operation result to the terminal device through the real-time file protocol.
18. A data transmission device for a vehicle terminal, It is characterized in that include: The first module is used to receive the file operation command sent by the TSP server through a preset real-time file protocol; The second module is used to execute the operation corresponding to the file operation command and obtain the operation result; The third module is used to return the operation result to the TSP server through the real-time file protocol.
19. A data transmission device for a vehicle terminal, It is characterized in that include: The first module is used to send a file operation command to the TSP server through a preset real-time file protocol in response to a user operation; The second module is used to receive the operation result returned by the TSP server according to the real-time file protocol.
20. An electronic device, It is characterized in that include: Processor, memory and communication interface; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the data transmission method for the vehicle-mounted terminal as described in any one of claims 1 to 16.
21. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the data transmission method for the vehicle-mounted terminal according to any one of claims 1 to 16.
22. A computer program product, It is characterized in that It comprises a computer program, which, when executed by a processor, implements the data transmission method of the vehicle-mounted terminal as claimed in any one of claims 1 to 16.
