OTA-based data transmission method, system, device and vehicle

Through the strategy of dynamically adjusting the packet size, the problems of OTA data transmission delay and low efficiency are solved, and more efficient data transmission and stable OTA upgrade process are achieved.

CN114521000BActive Publication Date: 2025-05-06ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210247211.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2025-05-06
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

In the prior art, OTA data transmission delay is large and data transmission efficiency is low, especially when the upgrade file is large and the network transmission rate is fast, resulting in multiple responses and retransmission problems between the vehicle network terminal and the vehicle gateway.

Method used

Adopt dynamic adjustment strategy to dynamically set the packet size according to the size of the upgrade file and network mode. During data transmission, the packet size is adjusted in real time according to the actual cached data size to avoid multiple responses caused by too small data packets and retransmission caused by too large.

Benefits of technology

By dynamically adjusting the data packet size, the efficiency of data transmission is improved, time wasted and the size of data retransmission is reduced, and the stability and efficiency of the OTA upgrade process are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114521000B_ABST
    Figure CN114521000B_ABST
Patent Text Reader

Abstract

The present invention provides a data transmission method, system, device and vehicle based on OTA, which can receive upgrade instructions and obtain the size of the upgrade file; when the size of the upgrade file reaches a preset threshold and the current network mode meets the preset network mode, a dynamic transmission method is used to transmit data; otherwise, a fixed transmission method is used; data is cached according to the upgrade instruction; when the cached data reaches the set data packet size, the data is transmitted to the vehicle gateway. The present invention can adopt a dynamic transmission method when transmitting data. When the upgrade file is large and the network transmission rate is fast, the dynamic transmission method can adjust the data packet size in real time according to the size of the cached data to prevent the vehicle network terminal from downloading quickly and transmitting slowly, or downloading slowly and transmitting quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to an OTA-based data transmission method, system, device and vehicle. Background Art

[0002] With the popularization of 5G networks and the widespread application of in-vehicle Ethernet in vehicles, the life cycle of vehicle software products has undergone major changes. The life cycle of vehicle software no longer ends with vehicle delivery, but is the entire process from vehicle design to production to delivery to user use. Software products can be quickly updated through over-the-air (OTA) upgrades throughout their life cycle. Therefore, the application of OTA in the automotive industry is becoming more and more important, and it is one of the core competitiveness of automobile companies.

[0003] With the rapid development of smart driving, smart cockpit and other businesses, the number of software products (files) is increasing, and the size of target files that need to be upgraded ranges from tens of KB to hundreds of megabytes to several G. How to quickly download the target file to the vehicle-side OTA main controller VGM (Vehicle Gateway Module, central gateway) is an important issue. However, in the prior art, most OTA download solutions are to send the file data to the vehicle network terminal (Telematics & Connectivity Antenna Module, TCAM) through the cloud service platform. The TCAM partially caches the data and then sends it to the central gateway in a fixed-size User Datagram Protocol (UDP) data packet. The central gateway then upgrades the target controller. If the file to be upgraded is very large, if the UDP packet is set to a small size, the multiple handshakes between the TCAM and the central gateway, as well as the subsequent multiple ACK responses, will seriously affect the data transmission rate; if the UDP packet is set to a large size, when the TCAM transmits an error to the VGM, a large amount of data will need to be retransmitted.

[0004] In summary, the data transmission method in the prior art has the problems of large data transmission delay and low data transmission efficiency. Summary of the invention

[0005] In view of the above shortcomings of the prior art, an object of the present invention is to provide an OTA-based data transmission method, system, device and vehicle, which are used to solve the problem that the data transmission method in the prior art cannot adjust the data transmission speed.

[0006] To achieve the above objectives and other related objectives, the present invention provides an OTA-based data transmission method for transmitting data to a vehicle gateway, comprising:

[0007] Receive an upgrade instruction, and obtain the size of the corresponding upgrade file to be downloaded according to the upgrade instruction;

[0008] Determine whether the size of the upgrade file reaches a preset threshold:

[0009] If the preset threshold is reached, it is further determined whether the current network mode meets the preset network mode. If it meets the preset network mode, the size of the data packet sent to the vehicle gateway is set according to the dynamic adjustment strategy;

[0010] Receive and cache the upgrade file according to the upgrade instruction;

[0011] When the cached data reaches a set data packet size, data is extracted from the cached data according to the set data packet size and transmitted to the vehicle gateway.

[0012] In one embodiment of the present invention, the dynamic adjustment strategy includes:

[0013] First, the size of the data packet sent to the vehicle gateway is set to a first preset value, and the size of the data packet is adjusted according to the size of the actual cached data during the data transmission process.

[0014] In an embodiment of the present invention, the step of adjusting the size of the data packet according to the size of the data actually cached during the data transmission process further includes:

[0015] Determine whether the strength of the current network signal is higher than a preset level. If so, transmit data according to the set data packet size. Otherwise, adjust the size of the data packet for the next data transmission to the first preset value.

[0016] In one embodiment of the present invention, it also includes:

[0017] Deleting the transferred data from the cached data;

[0018] The dynamic adjustment strategy adjusts the size of the data packet according to the size of the cached data, including:

[0019] Determine whether the size of the actual cached data reaches twice the size of the set data packet during the current data transmission. If so, mark the process of transmitting the data this time, and when the mark accumulates continuously for a first preset number of times, adjust the size of the data packet for the next data transmission to twice the size of the set data packet. Otherwise, still transmit the data according to the set data packet size.

[0020] In an embodiment of the present invention, the step of dynamically adjusting the size of the data packet according to the size of the cached data further includes:

[0021] When transmitting data according to the set data packet size, the average value of the rate at which the upgrade file is received within the preset time period is used as the download rate corresponding to the set data packet, and it is continuously determined whether the actual rate at which the upgrade file is received is less than the download rate. If so, the process of transmitting the data this time is marked, and when the mark accumulates continuously for a second preset number of times, the size of the data packet for the next data transmission is adjusted to half of the set data packet. Otherwise, the data is still transmitted according to the set data packet size.

[0022] In one embodiment of the present invention, it also includes:

[0023] When the size of the accumulated cached data reaches the size of the upgrade file, an end mark is set on the last cached data.

[0024] In one embodiment of the present invention, when the cached data reaches a set data packet size, the step of extracting data from the cached data according to the set data packet size and transmitting the data to the vehicle gateway includes:

[0025] Determine whether the cached data reaches the set data packet size. If so, transmit the data to the vehicle gateway according to the set data packet size to complete the data transmission; if not, further determine whether the cached data contains the end mark:

[0026] If the end mark exists, all cached data are transmitted to the vehicle gateway to complete the data transmission; if the end mark does not exist, the reception of the upgrade file is suspended until the cached data reaches the set data packet size.

[0027] The present invention also discloses an OTA-based data transmission system for transmitting data to a vehicle gateway, comprising:

[0028] An acquisition module, used to receive an upgrade instruction and acquire the size of the corresponding upgrade file to be downloaded according to the upgrade instruction;

[0029] A judgment module, used to judge whether the size of the upgrade file reaches a preset threshold; if it reaches the preset threshold, further judge whether the current network transmission rate meets the preset network mode; if it meets the preset network mode, set the size of the data packet sent to the vehicle gateway according to the dynamic adjustment strategy; a cache module, used to receive and cache the upgrade file according to the upgrade instruction;

[0030] The transmission module is used to extract data from the cached data according to the set data packet size when the cached data reaches the set data packet size, and transmit the data to the vehicle gateway.

[0031] The present invention also discloses an OTA-based data transmission device, including a display interface, a vehicle networking terminal and a vehicle gateway:

[0032] The display interface is used to generate an upgrade instruction according to the user's operation and send it to the vehicle network terminal;

[0033] The vehicle network terminal adopts the above data transmission method to receive and cache the data of the upgrade file according to the upgrade instruction, and transmit the data to the vehicle gateway;

[0034] The vehicle gateway is used to install the received data into the corresponding vehicle controller to complete the vehicle upgrade.

[0035] The invention also discloses a vehicle, which adopts the data transmission device.

[0036] In summary, the OTA-based data transmission method, system, device and vehicle provided by the present invention can adopt a dynamic transmission mode when transmitting data. When the upgrade file is large and the network transmission rate is fast, the dynamic transmission mode can adjust the data packet size in real time according to the size of the cached data to prevent the vehicle network terminal from downloading quickly and transmitting slowly or downloading slowly and transmitting quickly. Through the dynamic adjustment of the data packet, the time waste caused by multiple responses between the vehicle network terminal and the vehicle gateway due to the small data packet is avoided, and the data packet is also avoided due to the large size of the data packet. When data transmission errors occur, the data that needs to be retransmitted is too large. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 FIG. 4 is a timing diagram of an OTA-based data transmission method in an embodiment of the present invention.

[0039] Figure 2 It is a schematic flow chart of an OTA-based data transmission method in one embodiment of the present invention.

[0040] Figure 3 It is a schematic structural diagram of an OTA-based data transmission system in one embodiment of the present invention.

[0041] Figure 4 Shown is a schematic structural diagram of an OTA-based data transmission device in one embodiment of the present invention.

[0042] Component number description

[0043] 100. Data transmission system; 110. Acquisition module; 120. Judgment module; 130. Cache module; 140. Transmission module; 200. Data transmission device; 210. Display interface; 220. Vehicle network terminal; 230. Vehicle gateway. DETAILED DESCRIPTION

[0044] The following is an explanation of the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the features in the following embodiments and the embodiments can be combined with each other without conflict. It should also be understood that the terms used in the embodiments of the present invention are intended to describe specific embodiments, rather than to limit the scope of protection of the present invention. The test methods for which specific conditions are not specified in the following examples are usually carried out under conventional conditions or according to the conditions recommended by the manufacturers.

[0045] See also Figures 1 to 4 . It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical content disclosed by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.

[0046] When numerical ranges are given in the embodiments, it should be understood that, unless otherwise specified in the present invention, both endpoints of each numerical range and any value between the two endpoints can be selected. Unless otherwise defined, all technical and scientific terms used in the present invention are familiar to those skilled in the art and the description of the present invention, and any methods, equipment and materials of the prior art similar or equivalent to the methods, equipment and materials described in the embodiments of the present invention can also be used to implement the present invention.

[0047] With the popularization of 5G networks and the widespread application of in-vehicle Ethernet in vehicles, the life cycle of vehicle software products has changed greatly. The controller software of traditional vehicles is rarely updated after the vehicle leaves the factory. In the wave of new energy vehicle development in recent years, new car companies represented by Tesla have demonstrated the powerful function of upgrading vehicles through over-the-air (OTA) technology to repair faults and improve driving quality during user use. The life cycle of vehicle software no longer ends with vehicle delivery. Software products can be quickly updated through OTA technology throughout the entire life cycle from vehicle design to production to delivery to user use.

[0048] See also Figure 1 , which is a timing diagram of a data transmission method based on OTA in this embodiment, please refer to Figure 2 , which is a flow chart of a data transmission method based on OTA in this embodiment, and the data transmission method includes:

[0049] Step S100: receiving an upgrade instruction, and obtaining the size of the corresponding upgrade file to be downloaded according to the upgrade instruction.

[0050] When OTA technology is used to upgrade the vehicle, the display interface (Infotainment Head Unit, IHU) on the vehicle receives the upgrade reminder sent by the cloud service platform (Telematics Service Platform, TSP) and displays it to the user. The user chooses to upgrade the vehicle according to the upgrade reminder. The display interface generates an upgrade instruction according to the user's operation and sends it to the vehicle network terminal (Telematics & Connectivity Antenna Module, TCAM) on the vehicle body. The vehicle network terminal obtains the size of the upgrade file to be downloaded from the cloud service platform according to the upgrade instruction.

[0051] Step S200, determine whether the size of the upgrade file reaches a preset threshold: if it reaches the preset threshold, further determine whether the current network mode conforms to the preset network mode, and if it conforms to the preset network mode, set the size of the data packet sent to the vehicle gateway according to the dynamic adjustment strategy. There are two types of data transmission methods in this embodiment: dynamic transmission method and fixed transmission method, wherein the dynamic transmission method first sets the size of the data packet sent to the vehicle gateway to a first preset value, and then adjusts the size of the data packet (i.e., UDP data packet) according to the size of the actual cached data during the data transmission process, which is called a dynamic transmission strategy. During the data transmission process of an upgrade file, the size of the data packet (packet size) can change at any time; the fixed transmission method sets the size of the data packet according to the second preset value. During the data transmission process of an upgrade file, the size of the data packet no longer changes.

[0052] Before receiving the data of an upgrade file, it is necessary to first determine the transmission method of the data of the upgrade file according to the size of the upgrade file to be downloaded this time, and first determine whether the size of the upgrade file reaches a preset threshold:

[0053] If so, it is considered that the upgrade file is relatively large. At this time, it is further determined whether the current network mode conforms to the preset network mode. If so, the size of the data packet sent to the vehicle gateway is set according to the dynamic adjustment strategy. If not, it is considered that the current network environment is poor, and a fixed transmission method is used to transmit the data of the upgrade file. At this time, the size of the data packet is set according to the second preset value, and the vehicle network terminal transmits the data of the current upgrade file to the vehicle gateway (Vehicle Gateway Module, VGM) in batches according to the size of the data packet.

[0054] Among them, the preset threshold is, for example, 50M, and the preset network mode is, for example, 4G / 5G.

[0055] For example, if the current network mode is 4G / 5G, it is considered that the current network transmission rate has reached the preset rate threshold, and a dynamic transmission method is used to transmit data; if the current network mode is 2G / 3G, it is considered that the current network transmission rate has not reached the preset rate threshold, and a fixed transmission method is used to transmit data.

[0056] If not, it is considered that the upgrade file is relatively small, and a fixed transmission method can be directly used to transmit the data of the upgrade file. At this time, the size of the data packet is set according to the second preset value, and the vehicle network terminal transmits the data of the current upgrade file to the vehicle gateway in batches according to the size of the data packet.

[0057] Step S300: receiving and caching the upgrade file according to the upgrade instruction.

[0058] After determining the method of transmitting data, the vehicle network terminal receives the data of the upgrade file from the cloud service platform and caches it. The vehicle network terminal transmits data while receiving and caching data. As long as the size of the data cached by the vehicle network terminal reaches the set data packet size, data transmission can be performed once.

[0059] Furthermore, after completing a data transmission, the vehicle network terminal deletes the transmitted data from the cached data, thereby clearing the storage space in the vehicle network terminal in a timely manner.

[0060] Further, if the data of the upgrade file is transmitted in a dynamic transmission mode, then according to step S300, the step of adjusting the size of the data packet according to the size of the actual cached data during the data transmission process includes:

[0061] Determine whether the size of the data actually cached by the vehicle network terminal reaches twice the size of the set data packet when the vehicle network terminal transmits data to the vehicle gateway once. If so, mark the process of transmitting the data this time, and when the mark accumulates continuously for a first preset number of times, adjust the size of the data packet for the next data transmission to twice the size of the set data packet. Otherwise, transmit the data according to the set data packet size.

[0062] For example, the set data packet size is 4k. When the vehicle network terminal transmits 4k data to the vehicle gateway, the data cached in the vehicle network terminal reaches 8k. The data transmission process is marked, and it is considered that the current download speed of the vehicle network terminal is too fast. If this mark appears consecutively for 5 times, it is considered that the current vehicle network terminal has accumulated a lot of data and needs to speed up data transmission. At this time, the size of the data packet is increased and changed to twice the set size of the data packet. The size of the data packet for the next data transmission is 8k, and the vehicle network terminal transmits 8k of data to the vehicle gateway at a time.

[0063] The above data packet expansion process is called the step-by-step data packet enhancement strategy. If the data cached in the vehicle network terminal continues to be larger than twice the set data packet size, the size of the data packet will be gradually expanded, for example, to 4k, 8k, 16k, 32k, etc.

[0064] Furthermore, according to step S300, the step of adjusting the size of the data packet according to the size of the data actually cached during the data transmission process further includes:

[0065] When data is transmitted according to the set data packet size, the average value of the rate at which the upgrade file is received within the preset time period is used as the download rate corresponding to the set data packet, and it is continuously determined whether the actual rate at which the upgrade file is received is less than the download rate each time the data is transmitted. If so, the process of transmitting the data this time is marked, and when the mark accumulates continuously for a second preset number of times, the size of the data packet for the next data transmission is adjusted to half of the set data packet. Otherwise, the data is still transmitted according to the set data packet size.

[0066] For example, the size of the set data packet is 16k. During the process of the vehicle network terminal transmitting 16k data to the vehicle gateway, the average rate at which the vehicle network terminal receives the data of the upgrade file within a preset period of time is 12k / s. At this time, 12k / s is used as the download rate when the data packet size is 16k. Then, the actual rate of receiving the data of the upgrade file is continuously judged. If the current rate becomes 4k / s, which does not reach half of the set data packet download rate of 12k / s, then it is considered that the download speed of the vehicle network terminal is too slow, and the process of transmitting the data is marked. If this mark appears five times in a row, which is a second preset number, then it is considered that the current vehicle network terminal downloads data too slowly and the data transmission needs to be slowed down. At this time, the size of the data packet is reduced to half of the set data packet size. Then, the size of the data packet for the next data transmission is 8k, and the vehicle network terminal transmits 8k of data to the vehicle gateway at a time.

[0067] The above data packet reduction process is called the step-by-step reduction strategy of the data packet. The vehicle networking terminal reduces the size of the data packet step by step, for example, 32k, 16k, 8k, and 4k respectively, and in the step-by-step reduction strategy, the smallest data packet is the first preset value.

[0068] Furthermore, the step of adjusting the size of the data packet according to the size of the actual cached data during the data transmission process also includes:

[0069] Determine whether the strength of the current network signal is higher than a preset level. If so, transmit data according to the set data packet size. Otherwise, adjust the size of the data packet for the next data transmission to a first preset value.

[0070] In the dynamic adjustment strategy, the strength of the network signal is continuously monitored. If the current network mode is 4G / 5G, but the strength of the network signal does not reach the preset level, it is considered that the network signal is not good. At this time, the size of the data packet in the dynamic adjustment strategy is directly adjusted to the first preset value.

[0071] Among them, for example, 64 cache blocks are set in the vehicle network terminal, each cache block is 4K, and the entire data cache size is 4K×64=256K. The vehicle network terminal receives data from the cloud service platform and caches it into the cache block for storage. The size of the cache block can be changed according to the size of the first preset value and the second preset value.

[0072] Step S400: When the cached data reaches the set data packet size, data is extracted from the cached data according to the set data packet size and transmitted to the vehicle gateway.

[0073] The data transmission method in this embodiment also includes:

[0074] When the size of the accumulated cached data reaches the size of the upgrade file, an end marker is set on the last cached data.

[0075] According to the size of the upgrade file obtained from the cloud service platform, the vehicle network terminal can judge the integrity of the received data based on the size of the accumulated cached data. When the last data of the upgrade file is received, the vehicle network terminal sets an end mark on the data to indicate that the data of the upgrade file has been cached.

[0076] Then step S400 specifically includes:

[0077] Determine whether the cached data reaches the set data packet size. If so, transmit the data to the vehicle gateway according to the set data packet size to complete the data transmission; if not, further determine whether the cached data contains the end mark:

[0078] If the end mark exists, all cached data are transmitted to the vehicle gateway to complete the data transmission; if the end mark does not exist, the reception of the upgrade file is suspended until the cached data reaches the set data packet size.

[0079] In the process of extracting data from the vehicle network terminal, it is first determined whether the cached data reaches the set data packet size: if the set data packet size is reached, the data will be transmitted to the vehicle gateway according to the set data packet size; if the set data packet size is not reached, it is further determined whether there is an end mark in the cached data; if there is an end mark, it is considered that the last packet of data of the current upgrade file has been extracted. At this time, even if the extracted data does not reach the set data packet size, it is sent to the vehicle gateway to complete the transmission of the data of the current upgrade file; if there is no end mark, it is considered that the currently extracted data is not the last packet of data of the current upgrade file, and the data needs to be transmitted according to the size of the current data packet. If there is no end mark, it is considered that the currently extracted data is not the last packet of data of the current upgrade file, and the upgrade file is continuously received until the cached data reaches the set data packet size.

[0080] See also Figure 3 The present embodiment further includes an OTA-based data transmission system 100 for transmitting data to a vehicle gateway, including:

[0081] The acquisition module 110 is used to receive an upgrade instruction and acquire the size of the corresponding upgrade file to be downloaded according to the upgrade instruction;

[0082] The judging module 120 is used to judge whether the size of the upgrade file reaches a preset threshold value: if it reaches the preset threshold value, further judge whether the current network transmission rate meets the preset network mode; if it meets the preset network mode, set the size of the data packet sent to the vehicle gateway according to the dynamic adjustment strategy;

[0083] The cache module 130 is used to receive and cache the upgrade file according to the upgrade instruction;

[0084] The transmission module 140 is used to extract data from the cached data according to the set data packet size when the cached data reaches the set data packet size, and transmit the data to the vehicle gateway.

[0085] See also Figure 4 , this embodiment also includes an OTA-based data transmission device 200, including a display interface 210, a vehicle networking terminal 220 and a vehicle gateway 230:

[0086] The display interface 210 is used to generate an upgrade instruction according to the user's operation and send it to the vehicle network terminal 220;

[0087] The vehicle network terminal 220 adopts the above data transmission method to receive and cache the data of the upgrade file according to the upgrade instruction, and transmit the data to the vehicle gateway 230;

[0088] The vehicle gateway 230 is used to install the received data into the corresponding vehicle controller to complete the vehicle upgrade.

[0089] This embodiment also includes a vehicle, which is equipped with the above-mentioned data transmission device 200.

[0090] In summary, the OTA-based data transmission method, system, device and vehicle provided by the present invention can adopt a dynamic transmission mode when transmitting data. When the upgrade file is large and the network transmission rate is fast, the dynamic transmission mode can adjust the data packet size in real time according to the size of the cached data to prevent the vehicle network terminal from downloading quickly and transmitting slowly or downloading slowly and transmitting quickly. Through the dynamic adjustment of the data packet, the time waste caused by multiple responses between the vehicle network terminal and the vehicle gateway due to the small data packet is avoided, and the data packet is also avoided due to the large size of the data packet. When data transmission errors occur, the data that needs to be retransmitted is too large.

[0091] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A data transmission method based on OTA, characterized in that: Used to transmit data to the vehicle gateway, including: Receive an upgrade instruction, and obtain the size of the corresponding upgrade file to be downloaded according to the upgrade instruction; Determine whether the size of the upgrade file reaches a preset threshold: If the preset threshold is reached, it is further determined whether the current network mode meets the preset network mode. If it meets the preset network mode, the size of the data packet sent to the vehicle gateway is set according to the dynamic adjustment strategy; Receive and cache the upgrade file according to the upgrade instruction; When the cached data reaches a set data packet size, extracting data from the cached data according to the set data packet size and transmitting it to the vehicle gateway; The dynamic adjustment strategy includes: firstly setting the size of a data packet sent to the vehicle gateway to a first preset value, and adjusting the size of the data packet according to the size of the actual cached data during the data transmission process; The step of adjusting the size of the data packet according to the size of the actual cached data during the data transmission process includes: determining whether the size of the actual cached data reaches twice the size of the set data packet during the current data transmission; if so, marking the process of transmitting the data, and when the mark accumulates continuously for a first preset number of times, adjusting the size of the data packet for the next data transmission to twice the size of the set data packet; otherwise, still transmitting the data according to the size of the set data packet.

2. The data transmission method according to claim 1, characterized in that: The step of adjusting the size of the data packet according to the size of the data actually cached during the data transmission process also includes: Determine whether the strength of the current network signal is higher than a preset level. If so, transmit data according to the set data packet size. Otherwise, adjust the size of the data packet for the next data transmission to the first preset value.

3. The data transmission method according to claim 1, characterized in that: Also includes: Delete the transferred data from the cached data.

4. The data transmission method according to claim 1, characterized in that: The step of adjusting the size of the data packet according to the size of the data actually cached during the data transmission process also includes: When data is transmitted according to the set data packet size, the average value of the rate at which the upgrade file is received within the preset time period is used as the download rate corresponding to the set data packet, and a determination is continuously made as to whether the actual rate at which the upgrade file is received each time the data is transmitted is less than half of the download rate. If so, the process of this data transmission is marked, and when the mark accumulates continuously for a second preset number of times, the size of the data packet for the next data transmission is adjusted to half of the set data packet. Otherwise, the data is still transmitted according to the set data packet size.

5. The data transmission method according to claim 1, characterized in that: Also includes: When the size of the accumulated cached data reaches the size of the upgrade file, an end mark is set on the last cached data.

6. The data transmission method according to claim 5, characterized in that: When the cached data reaches a set data packet size, the step of extracting data from the cached data according to the set data packet size and transmitting the data to the vehicle gateway includes: Determine whether the cached data reaches the set data packet size. If so, transmit the data to the vehicle gateway according to the set data packet size to complete the data transmission; if not, further determine whether the cached data contains the end mark: If the end mark exists, all cached data are transmitted to the vehicle gateway to complete the data transmission; if the end mark does not exist, the upgrade file is continuously received until the cached data reaches the set data packet size.

7. A data transmission method based on OTA, characterized in that: Used to transmit data to the vehicle gateway, including: Receive an upgrade instruction, and obtain the size of the corresponding upgrade file to be downloaded according to the upgrade instruction; Determine whether the size of the upgrade file reaches a preset threshold: If the preset threshold is reached, it is further determined whether the current network mode meets the preset network mode. If it meets the preset network mode, the size of the data packet sent to the vehicle gateway is set according to the dynamic adjustment strategy; Receive and cache the upgrade file according to the upgrade instruction; When the cached data reaches a set data packet size, extracting data from the cached data according to the set data packet size and transmitting it to the vehicle gateway; The dynamic adjustment strategy includes: firstly setting the size of a data packet sent to the vehicle gateway to a first preset value, and adjusting the size of the data packet according to the size of the actual cached data during the data transmission process; The step of adjusting the size of the data packet according to the size of the actual cached data during the data transmission process includes: when transmitting data according to the set data packet size, taking the average value of the rate of receiving the upgrade file within a preset time period as the download rate corresponding to the set data packet, and continuously judging whether the actual rate of receiving the upgrade file each time the data is transmitted is less than half of the download rate; if so, marking the process of transmitting the data, and when the mark accumulates continuously for a second preset number of times, adjusting the size of the data packet for the next data transmission to half of the set data packet; otherwise, still transmitting the data according to the set data packet size.

8. An OTA-based data transmission system, characterized in that: Used to transmit data to the vehicle gateway, including: An acquisition module, used to receive an upgrade instruction and acquire the size of the corresponding upgrade file to be downloaded according to the upgrade instruction; A judgment module, used to judge whether the size of the upgrade file reaches a preset threshold: if it reaches the preset threshold, further judge whether the current network transmission rate meets the preset network mode, and if it meets the preset network mode, set the size of the data packet sent to the vehicle gateway according to the dynamic adjustment strategy; A cache module, used for receiving and caching the upgrade file according to the upgrade instruction; A transmission module, used for extracting data from the cached data according to the set data packet size and transmitting the data to the vehicle gateway when the cached data reaches the set data packet size; The dynamic adjustment strategy includes: firstly setting the size of a data packet sent to the vehicle gateway to a first preset value, and adjusting the size of the data packet according to the size of the actual cached data during the data transmission process; The step of adjusting the size of the data packet according to the size of the actual cached data during the data transmission process includes: determining whether the size of the actual cached data reaches twice the size of the set data packet during the current data transmission; if so, marking the process of transmitting the data, and when the mark accumulates continuously for a first preset number of times, adjusting the size of the data packet for the next data transmission to twice the size of the set data packet; otherwise, still transmitting the data according to the size of the set data packet.

9. An OTA-based data transmission device, characterized in that: Including display interface, vehicle networking terminal and vehicle gateway: The display interface is used to generate an upgrade instruction according to the user's operation and send it to the vehicle network terminal; The vehicle network terminal adopts the data transmission method according to any one of claims 1 to 7, and is used to receive and cache the data of the upgrade file according to the upgrade instruction, and transmit the data to the vehicle gateway; The vehicle gateway is used to install the received data into the corresponding vehicle controller to complete the vehicle upgrade.

10. A vehicle, characterized in that: A data transmission device as claimed in claim 9 is used.

Citation Information

Patent Citations

  • File transferring method and apparatus

    CN104185216A