Message transmission method and device, vehicle and server

By using a differential algorithm on the TBOX terminal to compress and encode the vehicle data, keyframe and differential frame messages are generated, and sent to the TSP platform in accordance with preset cycles, the bandwidth pressure problem caused by the increase in the number of vehicles is solved, and efficient Reliable data transmission.

CN119420824APending Publication Date: 2025-02-11CHERY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411543950.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

As the number of vehicles increases, the pressure on the TSP bandwidth of the transmission of fixed data will become increasingly greater, resulting in an increase in network load and a decrease in efficiency.

Method used

By applying a differential algorithm on the TBOX terminal to compress and encode the vehicle data, key frame messages and differential frame messages are generated, and sent to the TSP platform in a preset period to reduce the amount of data and improve transmission efficiency.

Benefits of technology

It effectively reduces the bandwidth pressure of the TSP platform, improves the efficiency and reliability of data transmission, and solves the bandwidth bottleneck problem caused by the increase in the number of vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420824A_ABST
    Figure CN119420824A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle intelligent network connection, in particular to a message transmission method and device, a vehicle and a server. The method comprises the following steps: periodically acquiring vehicle data, and packaging the vehicle data into an original message meeting a preset data exchange format; generating a key frame message based on an original message formed by packaging the vehicle data, and sending the key frame message to a TSP platform according to a preset period; judging whether the key frame message is successfully sent or not; and if the key frame message is successfully sent, sending the differential frame message to the TSP platform. And the TSP platform restores the received message by using a difference algorithm to obtain an original message, and stores the original message obtained by restoration into a database. Therefore, by introducing the difference algorithm, the problem that in the prior art, as the number of the vehicles is increased, the TSP bandwidth pressure caused by sending of the fixed data is larger and larger is solved, and therefore the TSP bandwidth pressure is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent vehicle networking technology, and in particular to a message transmission method, device, vehicle and server. Background Art

[0002] The TSP (Telematics Service Provider) platform occupies a core position in the Internet of Vehicles, connecting hardware, software, and vehicle manufacturers. Its main function is to collect and supply data between cars and service providers, and provide car owners with a variety of services, including location services, navigation services, communication services, social services, entertainment services, remote maintenance services, security services, etc., thereby realizing the Internet of Vehicles.

[0003] In the related technology, the TSP platform often uses the HTTPS (Hypertext Transfer Protocol Secure) protocol, and the message content uses the JSON (JavaScript Object Notation, a lightweight data exchange format) format for message transmission.

[0004] However, in this method, as the number of vehicles increases, the transmission of fixed data will put increasing pressure on the TSP bandwidth, which needs to be solved urgently. Summary of the invention

[0005] The present application provides a message transmission method, device, vehicle and server to solve the problem in the prior art that as the number of vehicles increases, the transmission of fixed data will put increasing pressure on TSP bandwidth, thereby reducing TSP bandwidth pressure.

[0006] To achieve the above-mentioned purpose, a first embodiment of the present application proposes a message transmission method, which is applied to a TBOX (Telematics BOX) terminal, wherein the method comprises the following steps:

[0007] Periodically acquiring vehicle data and packaging the vehicle data into original messages that meet a preset data exchange format;

[0008] Generate a key frame message based on the original message formed by packaging the vehicle data, and send the key frame message to the TSP platform according to a preset period;

[0009] Determine whether the key frame message is sent successfully;

[0010] If the key frame message is sent successfully, the differential frame message is sent to the TSP platform.

[0011] According to an embodiment of the present application, before sending the key frame message to the TSP platform according to the preset period, it also includes:

[0012] Obtain the current number of times the key frame message is sent;

[0013] If the current number of transmissions is the first transmission, a preset tag is added to the original message formed by packaging the vehicle data to obtain the key frame message.

[0014] According to an embodiment of the present application, after obtaining the current number of times the key frame message is sent, the method further includes:

[0015] If the current number of transmissions is not the first transmission, a preset differential algorithm is used to perform differential calculation on the original message corresponding to the key frame message sent last time and the original message formed by packaging the vehicle data to obtain first differential data;

[0016] The preset tag is added to the first differential data to obtain the key frame message.

[0017] According to one embodiment of the present application, before sending the differential frame message to the TSP platform, it also includes:

[0018] Based on the original message corresponding to the most recently successfully sent key frame message and the original message formed by packaging the vehicle data, a preset differential algorithm is used to calculate and obtain second differential data;

[0019] The second differential data is encoded using a preset encoding format to obtain the differential frame message.

[0020] According to an embodiment of the present application, after determining whether the key frame message is sent successfully, the method further includes:

[0021] If the key frame message is not sent successfully, continue to send the key frame message until it is sent successfully.

[0022] To achieve the above-mentioned purpose, a second aspect of the present application provides a message transmission method, which is applied to a TSP platform, wherein the method comprises the following steps:

[0023] Determine whether the currently received message is a differential frame message;

[0024] If the currently received message is the differential frame message, the currently received message is decoded using a preset coding format to obtain first differential data, and restored using a preset differential algorithm according to the original message corresponding to the most recently saved key frame and the first differential data to obtain a restored message, and the restored message is stored in a database;

[0025] If the currently received message is not the differential frame message, the currently received message is stored in the database.

[0026] According to the message transmission method proposed in the embodiment of the present application, a differential algorithm is introduced to compress and encode the message sent by TBOX to TSP. After receiving the message, TSP uses a restoration algorithm to restore the original message and stores it in a database. This solves the problem in the prior art that as the number of vehicles increases, the transmission of fixed data will put increasing pressure on the TSP bandwidth, thereby reducing the TSP bandwidth pressure.

[0027] To achieve the above-mentioned purpose, a third aspect of the present application provides a message transmission device, which is applied to a TBOX terminal, wherein the device includes:

[0028] An acquisition module, used for periodically acquiring vehicle data and packaging the vehicle data into original messages that meet a preset data exchange format;

[0029] A first sending module, configured to generate a key frame message based on the original message formed by packaging the vehicle data, and send the key frame message to the TSP platform according to a preset period;

[0030] A judging module, used to judge whether the key frame message is sent successfully;

[0031] The second sending module is used to send the differential frame message to the TSP platform when the key frame message is sent successfully.

[0032] According to an embodiment of the present application, before sending the key frame message to the TSP platform according to the preset period, the first sending module further includes:

[0033] An acquisition unit, used to acquire the current number of times the key frame message is sent;

[0034] The obtaining unit is used to add a preset tag to the original message formed by packaging the vehicle data to obtain the key frame message when the current number of transmissions is the first transmission.

[0035] According to one embodiment of the present application, after acquiring the current number of times the key frame message is sent, the obtaining unit is further used to:

[0036] When the current number of transmissions is not the first transmission, a preset differential algorithm is used to perform differential calculation on the original message corresponding to the key frame message sent last time and the original message formed by packaging the vehicle data to obtain first differential data;

[0037] The preset tag is added to the first differential data to obtain the key frame message.

[0038] According to one embodiment of the present application, before sending the differential frame message to the TSP platform, the second sending module is further used to:

[0039] Based on the original message corresponding to the most recently successfully sent key frame message and the original message formed by packaging the vehicle data, a preset differential algorithm is used to calculate and obtain second differential data;

[0040] The second differential data is encoded using a preset encoding format to obtain the differential frame message.

[0041] According to an embodiment of the present application, after determining whether the key frame message is sent successfully, the second sending module is further used to:

[0042] If the key frame message is not sent successfully, continue to send the key frame message until it is sent successfully.

[0043] To achieve the above-mentioned purpose, a fourth aspect of the present application provides a message transmission device, which is applied to a TSP platform, wherein the device includes:

[0044] A judgment module, used to judge whether the currently received message is a differential frame message;

[0045] A first storage module is used for decoding the currently received message using a preset coding format to obtain first differential data when the currently received message is the differential frame message, and restoring the message using a preset differential algorithm according to the original message corresponding to the most recently saved key frame and the first differential data to obtain a restored message, and storing the restored message in a database;

[0046] The second storage module is used to store the currently received message in the database when the currently received message is not the differential frame message.

[0047] According to the message transmission device proposed in the embodiment of the present application, a differential algorithm is introduced to compress and encode the message sent by TBOX to TSP. After receiving the message, TSP uses a restoration algorithm to restore the original message and stores it in a database. This solves the problem in the prior art that as the number of vehicles increases, the transmission of fixed data will put increasing pressure on the TSP bandwidth, thereby reducing the TSP bandwidth pressure.

[0048] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the message transmission method as described in the first aspect of the present application.

[0049] To achieve the above-mentioned purpose, the sixth aspect of the present application proposes a server on which a computer program is stored, and the program is executed by a processor to implement the message transmission method as described in the second aspect of the present application.

[0050] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0052] Figure 1 A flowchart of a message transmission method provided according to an embodiment of the present application;

[0053] Figure 2 A flowchart of another message transmission method provided according to an embodiment of the present application;

[0054] Figure 3 It is a flowchart of a message transmission method between a TBOX terminal and a TSP platform according to an embodiment of the present application;

[0055] Figure 4 It is a flowchart of a message transmission method between a TBOX terminal and a TSP platform according to another embodiment of the present application;

[0056] Figure 5 A block diagram of a message transmission device provided according to an embodiment of the present application;

[0057] Figure 6 A block diagram of another message transmission device provided according to an embodiment of the present application;

[0058] Figure 7 It is a schematic diagram of the structure of a vehicle provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0059] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0060] The following describes the message transmission method, device, vehicle and server proposed according to the embodiments of the present application with reference to the accompanying drawings.

[0061] Figure 1 It is a flowchart of a message transmission method according to an embodiment of the present application.

[0062] For example, Figure 1 As shown, the message transmission method is applied to a TBOX terminal, wherein the method comprises the following steps:

[0063] In step S101, vehicle data is periodically acquired and packaged into original messages that meet a preset data exchange format.

[0064] Among them, vehicle data includes parameters such as vehicle gear, speed, air-conditioning temperature, and information of each module, such as operation points, system error information and log records.

[0065] Specifically, various data information of the vehicle can be periodically collected through the TBOX device, and the message formed by sorting and packaging the data is used as the original message. To meet the needs of car companies, the original message can be formulated as a message that meets the preset data exchange format, that is, a JSON format message.

[0066] In step S102, a key frame message is generated based on the original message formed by packaging the vehicle data, and the key frame message is sent to the TSP platform according to a preset period.

[0067] It is understandable that when the message starts to be uploaded between the TBOX terminal and the TSP platform, a key frame message is first uploaded. The key frame message is formed based on the original message collected in step S101. Since the length of the key frame message is longer than the length of the original message, in order to reduce the bandwidth pressure, the key frame message is not sent continuously, but the key frame message is sent periodically, that is, in the embodiment of the present application, when sending a non-key frame message, the system will count the number of times it is sent, and stipulate that the TBOX terminal sends a specified number of (calibrated) non-key frame messages as a preset cycle. Among them, the specified number of times can be calculated through historical data. Generally speaking, the farther the time from the key frame, the worse the compression ratio efficiency of the differential algorithm. The key frame itself has a high requirement for the communication success rate. If a key frame fails, the key frame needs to be resent, which will also cause the overall compression efficiency to decrease. Therefore, it is necessary to calculate a better value as the specified number of times based on the compression ratio of the historical data message, the difference point of the change of the original data of the TBOX, the size of the TBOX message and the cycle. The judgment standard may be that when the key frame interval is the value, the communication bandwidth between the TBOX terminal and the TSP platform accounts for a low proportion. The TSP platform sends the value to the TBOX terminal through a command, and the TBOX terminal determines whether it needs to send a key frame message according to the counter.

[0068] Next, how to obtain the key frame message is explained in detail.

[0069] Optionally, in some embodiments, before sending the key frame message to the TSP platform according to a preset period, it also includes: obtaining the current number of times the key frame message is sent; if the current number of times it is sent is the first time, adding a preset tag to the original message formed by packaging the vehicle data to obtain the key frame message.

[0070] Specifically, by counting the sending frequency of the current key frame message, it can be determined whether the current key frame message is sent for the first time. If it is confirmed that the key frame message is sent for the first time, a specific tag can be added to the original message in the JSON format currently used by the TBOX terminal and the TSP platform to identify the currently transmitted message as a key frame message. In this way, it helps the system to accurately mark and process key frame messages, thereby improving the accuracy and efficiency of data transmission.

[0071] Optionally, in other embodiments, after obtaining the current number of transmissions of the key frame message, it also includes: if the current number of transmissions is not the first transmission, using a preset differential algorithm to perform a differential calculation on the original message corresponding to the key frame message sent last time and the original message formed by packaging the vehicle data to obtain first differential data; adding a preset label to the first differential data to obtain the key frame message.

[0072] The difference algorithm is a commonly used technique in mathematics and computer science, which may be an open source algorithm bsdiff (Binary Similarity Difference) or HDiffPatch, and is used to efficiently process sequence data.

[0073] Specifically, if the current key frame message is not sent for the first time, a pre-set differential algorithm can be used to perform differential calculation on the original message corresponding to the key frame message sent last time and the original message formed by the vehicle data package in step S101, so as to obtain the first differential data. The purpose of this operation is to find the difference between the two original messages, thereby reducing the amount of data transmission and improving efficiency. After obtaining the first differential data, a specific label is added to the first differential data to identify the currently transmitted message as a key frame message. This processing method can not only improve the efficiency of data transmission, but also ensure the accuracy and reliability of the data.

[0074] In step S103, it is determined whether the key frame message is sent successfully.

[0075] It is understandable that after sending the key frame message, the system will make a judgment to confirm whether the key frame message is successfully sent to ensure the continuity and accuracy of the transmission of the vehicle status information.

[0076] In step S104, if the key frame message is sent successfully, the differential frame message is sent to the TSP platform.

[0077] That is to say, if the key frame message is sent successfully, the system will immediately send the differential frame message to the TSP platform.

[0078] Next, how to obtain the differential frame message is described in detail.

[0079] Furthermore, in some embodiments, before sending the differential frame message to the TSP platform, it also includes: based on the original message corresponding to the most recently sent key frame message and the original message formed by packaging the vehicle data, using a preset differential algorithm to calculate the second differential data; using a preset encoding format to encode the second differential data to obtain a differential frame message.

[0080] Specifically, the differential frame message can be calculated based on the original message corresponding to the most recently successfully reported key frame message and the original message formed by packaging the vehicle data collected by TBOX by using a preset differential algorithm to obtain the second differential data. Since the data format after the differential calculation is a binary code stream, it cannot be directly transmitted in JSON format through the HTTPS protocol. The second differential data is encoded using a preset encoding format, namely base64 format.

[0081] In addition, in some embodiments, after determining whether the key frame message is sent successfully, the method further includes: if the key frame message is not sent successfully, continuing to send the key frame message until it is sent successfully.

[0082] That is to say, if the key frame message fails to be sent successfully, the system will not stop or give up, but will continue to try to send the key frame message, and this process will continue until the key frame message is finally successfully sent and confirmed to be received. In this way, the key frame message can be reliably transmitted, avoiding the problem of data loss or communication interruption caused by a single sending failure.

[0083] According to the message transmission method proposed in the embodiment of the present application, by introducing a differential algorithm to compress and encode the message sent by TBOX to TSP, the data volume can be reduced and the transmission efficiency can be improved. This solves the problem in the prior art that as the number of vehicles increases, the transmission of fixed data will put increasing pressure on the TSP bandwidth, thereby reducing the TSP bandwidth pressure.

[0084] Figure 2 A flowchart of a message transmission method provided in another embodiment of the present application.

[0085] For example, Figure 2 As shown, the message transmission method is applied to the TSP platform, wherein the method comprises the following steps:

[0086] In step S201, it is determined whether the currently received message is a differential frame message.

[0087] It is understandable that differential frame messages usually have specific identifiers and formats to facilitate their distinction and processing during the communication process. After receiving the TBOX message, the TSP platform can determine whether the currently received message is a differential frame message by performing a detailed analysis and inspection of the structure and content of the message.

[0088] In step S202, if the currently received message is a differential frame message, the currently received message is decoded using a preset encoding format to obtain third differential data, and based on the original message corresponding to the most recently saved key frame and the third differential data, a preset differential algorithm is used to restore the message to obtain the restored message, and the restored message is stored in a database.

[0089] Specifically, if the message currently received by the TSP platform belongs to the type of differential frame message, then the differential frame message can be decoded according to a preset encoding format, such as base64 encoding format, to obtain the third differential data. Next, the original message corresponding to the most recently saved key frame and the third differential data just decoded can be used to combine and process these two parts of data according to a preset differential algorithm to restore the complete original message. Finally, the restored message is stored in the database for subsequent processing and use.

[0090] It should be noted that before storing the restored message in the database, it is also possible to determine whether the restored message is a key frame message. If the restored message is a key frame message, the original message corresponding to the key frame message can be recorded and stored in the database for the next differential restoration; if the restored message is not a key frame message, it is an original message, and the original message can be directly recorded and stored in the database.

[0091] In step S203, if the currently received message is not a differential frame message, the currently received message is stored in the database.

[0092] That is to say, if the message currently received by the TSP platform is not a differential frame message, then it means that it is a key frame message. In this case, the original message content corresponding to the key frame message can be recorded for the next differential restoration process. At the same time, in order to ensure the integrity and traceability of the data, the original message content corresponding to the currently received key frame message can be stored in the database for subsequent query and analysis.

[0093] To facilitate those skilled in the art to further understand the message transmission method proposed in the embodiment of the present application, Figure 3 and Figure 4 Further elaboration.

[0094] For example, Figure 3 As shown, the message transmission method between the TBOX terminal and the TSP platform includes the following steps:

[0095] Step S301, TBOX periodically collects vehicle data during vehicle operation, packages the vehicle data into original messages in JSON format, and uploads them to the TSP platform.

[0096] Step S302, (count the number of times the non-key frame message is sent, and send a key frame message after sending a specified number of non-key frame messages.) When the number of times the non-key frame message is sent reaches the specified number, determine whether it is the first time to send a key frame message. If so, execute step S303b, otherwise execute step S303a.

[0097] Step S303a, perform differential calculation using the original message corresponding to the key frame message sent last time and the original message formed by packaging the vehicle data in step S301, add a label to the obtained differential data, obtain the current key frame message and send it to the TSP platform.

[0098] Step S303b, adding a label to the original message formed by the vehicle data packaging in step S301, obtaining the current key frame message and sending it to the TSP platform.

[0099] Step S304: If the current key frame message is sent successfully, the subsequent frames all send differential frame messages. (The differential data is obtained by performing differential calculation based on the original message corresponding to the key frame message sent last time and the original message collected in step S301, and the differential data is encoded in base64 format to obtain the differential frame message.) If the current key frame message fails to be sent, continue to send the current key frame message until it is sent successfully.

[0100] Step S305: After receiving the TBOX message, the cloud TSP determines whether the current message is a differential frame message. If yes, execute step S306a, otherwise execute step S306b.

[0101] Step S306a, decoding the current differential frame message using the base64 format, and restoring it using the original message corresponding to the key frame message sent last time and the currently decoded differential frame message to obtain a restored message.

[0102] Step S306b, the original message corresponding to the current (key frame) message is recorded and stored in a database for use in the next differential restoration.

[0103] Step S307, determine whether the restored message is a key frame message. If yes, execute step S308a, otherwise execute step S308b.

[0104] Step S308a, recording the original message corresponding to the restored key frame message and storing it in a database for use in the next differential restoration.

[0105] Step S308b, directly record and store the restored (original) message in the database.

[0106] In addition, the embodiment of the present application also proposes another message transmission method, that is, the key frame message can also be sent directly instead of being compressed using a differential algorithm.

[0107] For example, Figure 4 As shown, the message transmission method between the TBOX terminal and the TSP platform includes the following steps:

[0108] Step S401, TBOX periodically collects vehicle data during vehicle operation, packages the vehicle data into original messages in JSON format, and uploads them to the TSP platform.

[0109] Step S402, (count the number of times the non-key frame message is sent, and send a key frame message after each specified number of non-key frame messages are sent.) When the number of times the non-key frame is sent reaches the specified number, add a label to the original message packaged with the vehicle data in step S401, obtain the current key frame message and send it to the TSP platform.

[0110] Step S403, if the current key frame message is sent successfully, the subsequent frames all send differential frame messages. (The differential data is obtained by performing differential calculation based on the original message corresponding to the key frame message sent last time and the original message collected in step S401, and the differential data is encoded in base64 format to obtain the differential frame message) If the current key frame message fails to be sent, continue to send the current key frame message until it is sent successfully.

[0111] Step S404: After receiving the TBOX message, the cloud TSP determines whether the current message is a key frame message. If yes, execute step S405a; otherwise, execute step S405b.

[0112] Step S405a, the original message corresponding to the current key frame message is recorded and stored in a database for use in the next differential restoration.

[0113] Step S405b, decode the current differential frame message using base64 format, and restore it using the original message corresponding to the key frame message sent last time and the currently decoded differential frame message to obtain the restored original message, and record and store the restored original message in the database.

[0114] For example, assuming that the TBOX of each vehicle transmits 1KB data message to the TSP platform per second, and the TSP supports a maximum of 200,000 vehicles concurrently, 200,000*1000*8=1600,000,000bps, or about 1.6Gbps bandwidth, is required per second. By introducing a differential algorithm, assuming that one key frame is sent every 10 seconds, followed by nine differential frames, and the average compression rate of the differential frames is set to 70%, the bandwidth requirement of a single TBOX per second is (1*1000+9*1000*(1-0.7)) / 2*3 / 10=555B. The total bandwidth required by the TSP platform is 200,000*555*8=8880,000,000bps, or about 888Mbps bandwidth. It can be seen that the method proposed in the embodiment of the present application effectively reduces the bandwidth pressure of the TSP. According to the specific vehicle model and environment, the bandwidth pressure can be further reduced by using the ratio of key frames to differential frames, using the restored original frames as key frames, and other methods.

[0115] According to the message transmission method proposed in the embodiment of the present application, the received differential data message is decoded and restored through the TSP platform, and the restored original message is entered into the database for storage, thereby realizing centralized management and efficient query of data.

[0116] Next, the message transmission device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0117] Figure 5 It is a block diagram of a message transmission device according to an embodiment of the present application.

[0118] like Figure 5 As shown, the message transmission device 10 is applied to a TBOX terminal, wherein the device 10 comprises: an acquisition module 100 , a first sending module 200 , a determination module 300 and a second sending module 400 .

[0119] The acquisition module 100 is used to periodically acquire vehicle data and package the vehicle data into original messages that meet the preset data exchange format;

[0120] The first sending module 200 is used to generate a key frame message based on the original message formed by packaging the vehicle data, and send the key frame message to the TSP platform according to a preset period;

[0121] The judging module 300 is used to judge whether the key frame message is sent successfully;

[0122] The second sending module 400 is used to send the differential frame message to the TSP platform when the key frame message is sent successfully.

[0123] Furthermore, in some embodiments, before sending the key frame message to the TSP platform according to a preset period, the first sending module 200 further includes:

[0124] An acquisition unit, used to acquire the current number of times the key frame message is sent;

[0125] The obtaining unit is used to add a preset tag to the original message formed by packaging the vehicle data to obtain a key frame message when the current number of transmissions is the first transmission.

[0126] Further, in some embodiments, after obtaining the current number of times the key frame message is sent, the obtaining unit is further configured to:

[0127] When the current number of transmissions is not the first transmission, a preset differential algorithm is used to perform differential calculation on the original message corresponding to the key frame message sent last time and the original message formed by packaging the vehicle data to obtain first differential data;

[0128] A preset label is added to the first differential data to obtain a key frame message.

[0129] Furthermore, in some embodiments, before sending the differential frame message to the TSP platform, the second sending module 400 is further configured to:

[0130] Based on the original message corresponding to the most recently successfully sent key frame message and the original message formed by packaging the vehicle data, a preset differential algorithm is used to calculate and obtain second differential data;

[0131] The second differential data is encoded using a preset encoding format to obtain a differential frame message.

[0132] Further, in some embodiments, after determining whether the key frame message is sent successfully, the second sending module 400 is further used to:

[0133] If the key frame message is not sent successfully, continue to send the key frame message until it is sent successfully.

[0134] It should be noted that the above explanation of the message transmission method embodiment is also applicable to the message transmission device of this embodiment, and will not be repeated here.

[0135] According to the message transmission device proposed in the embodiment of the present application, by introducing a differential algorithm to compress and encode the message sent by TBOX to TSP, the data volume can be reduced and the transmission efficiency can be improved. This solves the problem in the prior art that as the number of vehicles increases, the transmission of fixed data will put increasing pressure on the TSP bandwidth, thereby reducing the TSP bandwidth pressure.

[0136] Figure 6 It is a block diagram of a message transmission device according to another embodiment of the present application.

[0137] like Figure 6As shown, the message transmission device 20 includes: a judgment module 500, a first storage module 600 and a second storage module 700.

[0138] Wherein, the judging module 500 is used to judge whether the currently received message is a differential frame message;

[0139] The first storage module 600 is used to decode the currently received message using a preset coding format to obtain first differential data when the currently received message is a differential frame message, and restore the message using a preset differential algorithm according to the original message corresponding to the most recently saved key frame and the first differential data to obtain a restored message, and store the restored message in a database;

[0140] The second storage module 700 is used to store the currently received message in the database when the currently received message is not a differential frame message.

[0141] It should be noted that the above explanation of the message transmission method embodiment is also applicable to the message transmission device of this embodiment, and will not be repeated here.

[0142] According to the message transmission device proposed in the embodiment of the present application, the received differential data message is decoded and restored through the TSP platform, and the restored original message is entered into the database for storage, thereby realizing centralized management and efficient query of data.

[0143] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0144] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .

[0145] When the processor 702 executes the program, the message transmission method provided in the above embodiment is implemented.

[0146] Furthermore, the vehicle also includes:

[0147] The communication interface 703 is used for communication between the memory 701 and the processor 702 .

[0148] The memory 701 is used to store computer programs that can be executed on the processor 702 .

[0149] The memory 701 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0150] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0151] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.

[0152] The processor 702 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0153] An embodiment of the present application also provides a server on which a computer program is stored, and when the program is executed by a processor, the above-mentioned message transmission method is implemented.

[0154] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0155] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0156] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A message transmission method, characterized in that: The method is applied to a TBOX terminal, wherein the method comprises the following steps: Periodically acquiring vehicle data and packaging the vehicle data into original messages that meet a preset data exchange format; Generate a key frame message based on the original message formed by packaging the vehicle data, and send the key frame message to the TSP platform according to a preset period; Determine whether the key frame message is sent successfully; If the key frame message is sent successfully, the differential frame message is sent to the TSP platform.

2. The method according to claim 1, characterized in that Before sending the key frame message to the TSP platform according to the preset period, the method further includes: Obtain the current number of times the key frame message is sent; If the current number of transmissions is the first transmission, a preset tag is added to the original message formed by packaging the vehicle data to obtain the key frame message.

3. The method according to claim 2, characterized in that After obtaining the current number of times the key frame message is sent, the method further includes: If the current number of transmissions is not the first transmission, a preset differential algorithm is used to perform differential calculation on the original message corresponding to the key frame message sent last time and the original message formed by packaging the vehicle data to obtain first differential data; The preset tag is added to the first differential data to obtain the key frame message.

4. The method according to claim 3, characterized in that Before sending the differential frame message to the TSP platform, the method further includes: Based on the original message corresponding to the most recently sent key frame message and the original message formed by packaging the vehicle data, a preset differential algorithm is used to calculate and obtain second differential data; The second differential data is encoded using a preset encoding format to obtain the differential frame message.

5. The method according to claim 1, characterized in that After determining whether the key frame message is sent successfully, the method further includes: If the key frame message is not sent successfully, continue to send the key frame message until it is sent successfully.

6. A message transmission method, characterized in that: The method is applied to the TSP platform, wherein the method comprises the following steps: Determine whether the currently received message is a differential frame message; If the currently received message is the differential frame message, the currently received message is decoded using a preset coding format to obtain third differential data, and restored using a preset differential algorithm according to the original message corresponding to the most recently saved key frame and the third differential data to obtain a restored message, and the restored message is stored in a database; If the currently received message is not the differential frame message, the currently received message is stored in the database.

7. A message transmission device, characterized in that: The device is applied to a TBOX terminal, wherein the device comprises: An acquisition module, used for periodically acquiring vehicle data and packaging the vehicle data into original messages that meet a preset data exchange format; A first sending module, configured to generate a key frame message based on the original message formed by packaging the vehicle data, and send the key frame message to the TSP platform according to a preset period; A judging module, used to judge whether the key frame message is sent successfully; The second sending module is used to send the differential frame message to the TSP platform when the key frame message is sent successfully.

8. A message transmission device, characterized in that: The device is applied to a TSP platform, wherein the device comprises: A judgment module, used to judge whether the currently received message is a differential frame message; A first storage module is used for decoding the currently received message using a preset coding format to obtain first differential data when the currently received message is the differential frame message, and restoring the message using a preset differential algorithm according to the original message corresponding to the most recently saved key frame and the first differential data to obtain a restored message, and storing the restored message in a database; The second storage module is used to store the currently received message in the database when the currently received message is not the differential frame message.

9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the message transmission method according to any one of claims 1 to 5.

10. A server having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the message transmission method as claimed in claim 6.