Data transmission method and device, electronic equipment and storage medium

The method and device for data transmission in vehicles dynamically adjust upload rates and priorities based on network quality to prevent data loss and ensure stable data transmission, addressing bandwidth constraints and network instability.

CN119094079APending Publication Date: 2024-12-06BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310659280.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Vehicles face issues with data upload failures and jams due to bandwidth constraints and network instability, especially in weak environments, affecting the functionality of vehicle computers.

Method used

A method and device for data transmission that detects the network environment, determines its quality level, adjusts upload rates, prioritizes data types, and manages data flow to optimize data upload in real-time, ensuring stable and efficient transmission.

Benefits of technology

The solution dynamically adjusts data upload rates and priorities based on network quality, preventing data loss and ensuring smooth operation of critical vehicle applications by optimizing bandwidth usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094079A_ABST
    Figure CN119094079A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, electronic equipment and a storage medium, and the method comprises the steps: detecting a network environment where a vehicle-mounted terminal is located, and obtaining the network state information corresponding to the vehicle-mounted terminal; determining a quality level of the network environment based on the network state information; the data uploading rate of the to-be-uploaded data is adjusted to the target uploading rate, so that the network bandwidth is released to a target application, and the target application is an application which uses a network environment and can be perceived by a user; and uploading the to-be-uploaded data to a cloud server according to the target uploading rate. Compared with the prior art, after the network environment where the vehicle machine is located is analyzed, the data uploading rate of the to-be-uploaded data is dynamically adjusted according to the quality grade of the network environment; the uploading strategy of the to-be-uploaded data can be adjusted in time by continuously analyzing the network environment where the vehicle machine is located, and the situation that the to-be-uploaded data is lost or fails to be uploaded due to fluctuation of the network environment can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for data transmission, an electronic device, and a storage medium. Background Art

[0002] With the development of vehicle technology, vehicles can exchange data with the cloud through wireless communication networks, which can enable vehicles to achieve more functions. Uploading data from vehicles to the cloud will take up a lot of bandwidth. When different data are uploaded to the cloud together, some functions of the vehicle computer may not work properly. Especially in a weak network environment, the probability of data upload failure and upload jams will increase. Summary of the invention

[0003] The present invention provides a data transmission method and device, an electronic device and a storage medium.

[0004] According to a first aspect of the present disclosure, a method for data transmission is provided, comprising:

[0005] Detecting the network environment of the vehicle computer and obtaining the network status information corresponding to the vehicle computer;

[0006] Determining a quality level of the network environment based on the network status information;

[0007] When the quality level is the first level, adjusting the data upload rate of the data to be uploaded to the target upload rate to release network bandwidth to the target application, wherein the target application is an application that uses the network environment and can be perceived by the user;

[0008] Uploading the data to be uploaded to the cloud server according to the target upload rate;

[0009] When the quality level is the second level, stop uploading data and return to the network environment where the detection vehicle computer is located;

[0010] The quality level of the first level is higher than the quality level of the second level.

[0011] Optionally, the data to be uploaded includes data of multiple data types, and before uploading the data to be uploaded to the cloud server according to the target upload rate, the method further includes:

[0012] Determine the upload priorities corresponding to the data types of the plurality of data to be uploaded;

[0013] Based on the upload priority, determining an upload order of the plurality of data to be uploaded;

[0014] The uploading of the data to be uploaded to the cloud server according to the target upload rate includes:

[0015] The data to be uploaded is uploaded to the cloud server according to the target upload rate and the order of the upload sequence.

[0016] Optionally, the detecting the network environment of the vehicle computer to obtain the network status information corresponding to the vehicle computer includes:

[0017] Obtaining the network upload rate and network packet loss rate of the network environment in which the vehicle computer is located;

[0018] The network status information is generated based on the network upload rate and the network packet loss rate.

[0019] Optionally, determining the quality level of the network environment based on the network status information includes:

[0020] If the network upload rate is greater than or equal to a first preset threshold and / or the network packet loss rate is less than or equal to a second preset threshold, determining that the quality level of the network environment is the first level;

[0021] If the network upload rate is less than a first preset threshold and / or the network packet loss rate is greater than a second preset threshold, the quality level of the network environment is determined to be the second level.

[0022] Optionally, adjusting the data upload rate of the data to be uploaded to the target upload rate includes:

[0023] Based on the network status information and the network bandwidth occupied by the target application, a data upload rate of the data to be uploaded is adjusted.

[0024] Optionally, uploading the data to be uploaded to the cloud server according to the target upload rate and the order of the upload sequence includes:

[0025] If the network upload rate is greater than a third preset threshold, uploading the data to be uploaded in sequence according to the order of the upload sequence;

[0026] If the network upload rate is greater than or equal to the first preset threshold and less than the third preset threshold, the network upload rate is allocated to the data to be uploaded in a descending order according to the upload sequence, and the data to be uploaded is uploaded according to the allocated network bandwidth.

[0027] Optionally, before uploading the data to be uploaded to the cloud server according to the target upload rate, the method further includes:

[0028] Obtaining the remaining data flow corresponding to the data type of the data to be uploaded;

[0029] Determining whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data flow;

[0030] If the amount of the data to be uploaded is less than the remaining data flow, determining to upload the data to be uploaded;

[0031] If the amount of the data to be uploaded is greater than or equal to the remaining data flow, determining to suspend uploading of the data to be uploaded;

[0032] If the data volume of the data to be uploaded is greater than or equal to the remaining data flow, and the data type of the data to be uploaded is a data type to which additional data flow can be allocated, it is determined to upload the data to be uploaded.

[0033] According to a second aspect of the present disclosure, a data transmission device is provided, including:

[0034] A detection unit, used to detect the network environment of the vehicle computer and obtain network status information corresponding to the vehicle computer;

[0035] A first determining unit, configured to determine a quality level of the network environment based on the network status information;

[0036] an adjusting unit, configured to adjust, when the quality level is the first level, a data upload rate of the data to be uploaded to a target upload rate, so as to release network bandwidth to a target application, wherein the target application is an application that uses the network environment and can be perceived by a user;

[0037] A first uploading unit, configured to upload the data to be uploaded to a cloud server according to the target upload rate;

[0038] A processing unit, used for stopping data uploading and returning to the network environment where the detection vehicle computer is located when the quality level is the second level;

[0039] The quality level of the first level is higher than the quality level of the second level.

[0040] Optionally, the data to be uploaded includes data of multiple data types, and the device further includes:

[0041] A second determining unit, configured to determine upload priorities respectively corresponding to a plurality of data types of the data to be uploaded before uploading the data to be uploaded to the cloud server according to the target upload rate;

[0042] A third determining unit, configured to determine an uploading order of the plurality of data to be uploaded based on the upload priority;

[0043] The first uploading unit is further used for:

[0044] The data to be uploaded is uploaded to the cloud server according to the target upload rate and the order of the upload sequence.

[0045] Optionally, the detection unit includes:

[0046] An acquisition module, used to acquire a network upload rate and a network packet loss rate in a network environment where the vehicle computer is located;

[0047] A generating module is used to generate the network status information based on the network upload rate and the network packet loss rate.

[0048] Optionally, the first determining unit includes:

[0049] A first determination module, configured to determine that the quality level of the network environment is a first level if the network upload rate is greater than or equal to a first preset threshold and / or the network packet loss rate is less than or equal to a second preset threshold;

[0050] The second determination module is used to determine that the quality level of the network environment is the second level if the network upload rate is less than the first preset threshold and / or the network packet loss rate is greater than the second preset threshold.

[0051] Optionally, the adjustment unit is further used for:

[0052] Based on the network status information and the network bandwidth occupied by the target application, a data upload rate of the data to be uploaded is adjusted.

[0053] Optionally, the uploading unit includes:

[0054] A first uploading module, configured to upload the data to be uploaded in order from high to low according to the upload priority if the network upload rate is greater than a third preset threshold;

[0055] The second uploading module is used to allocate network bandwidth to the data channel in a descending order according to the upload priority according to the network upload rate if the network upload rate is greater than or equal to the first preset threshold and less than the third preset threshold, and upload the data to be uploaded according to the allocated network bandwidth.

[0056] Optionally, the device further comprises:

[0057] an acquisition unit, configured to acquire remaining data flow corresponding to a data type of the data to be uploaded before uploading the data to be uploaded to the cloud server according to the target upload rate;

[0058] A fourth determining unit, configured to determine whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data flow;

[0059] A second uploading unit, configured to determine to upload the data to be uploaded if the amount of the data to be uploaded is less than the remaining data flow;

[0060] A third uploading unit, configured to determine to suspend uploading of the data to be uploaded if the amount of the data to be uploaded is greater than or equal to the remaining data flow;

[0061] The fourth uploading unit is used to determine to upload the data to be uploaded if the data volume of the data to be uploaded is greater than or equal to the remaining data flow, and the data type of the data to be uploaded is a data type to which additional data flow can be allocated.

[0062] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0063] at least one processor; and

[0064] a memory communicatively connected to the at least one processor; wherein,

[0065] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0066] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0067] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0068] The present disclosure provides a data transmission method and device, an electronic device and a storage medium, which detect the network environment where the vehicle computer is located, obtain the network status information corresponding to the vehicle computer; determine the quality level of the network environment based on the network status information; when the quality level is the first level, adjust the data upload rate of the data to be uploaded to the target upload rate to release the network bandwidth to the target application, the target application is an application that uses the network environment and can be perceived by the user; upload the data to be uploaded to the cloud server according to the target upload rate; when the quality level is the second level, stop uploading data and return to the network environment where the vehicle computer is located; the quality level of the first level is higher than the quality level of the second level. Compared with the related art, the present disclosure analyzes the network environment where the vehicle computer is located, and dynamically adjusts the data upload rate of the data to be uploaded according to the quality level of the network environment; by continuously analyzing the network environment where the vehicle computer is located, the upload strategy of the data to be uploaded can be adjusted in time, and the data to be uploaded can be prevented from being lost or failing to upload due to fluctuations in the network environment.

[0069] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0071] Figure 1 A flowchart of a data transmission method provided by an embodiment of the present disclosure;

[0072] Figure 2 A flowchart of another data transmission method provided by an embodiment of the present disclosure;

[0073] Figure 3 A schematic diagram of a data transmission process;

[0074] Figure 4 A schematic diagram of the structure of another data transmission device provided by an embodiment of the present disclosure;

[0075] Figure 5 A schematic diagram of the structure of another data transmission device provided by an embodiment of the present disclosure;

[0076] Figure 6 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0077] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0078] The following describes the data transmission method and apparatus, electronic device, and storage medium according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0079] Figure 1 A flowchart of a data transmission method provided by an embodiment of the present disclosure.

[0080] like Figure 1 As shown, the method comprises the following steps:

[0081] Step 101, detecting the network environment of the vehicle computer and obtaining the network status information corresponding to the vehicle computer.

[0082] The network infrastructure configuration of each place the vehicle passes is different, and the network environment of the vehicle is prone to significant changes in a short period of time. When the vehicle computer uploads data, the network environment of the vehicle (vehicle computer) affects the speed, quality, security and cost of data upload.

[0083] In the embodiments of the present disclosure, the network status information is evaluation index information for evaluating the network environment in which the vehicle computer is located; for example, it may be data upload rate, network packet loss rate, etc. It should be noted that the embodiments of the present disclosure do not limit the network status information. By detecting the network environment in which the vehicle computer in the vehicle is located, the network status information at the current location of the vehicle computer (vehicle) can be obtained. Based on the obtained network status information, the upload rate of the data to be uploaded can be adjusted more accurately and reasonably.

[0084] Step 102: Determine the quality level of the network environment based on the network status information.

[0085] In the embodiments of the present disclosure, the network environment is divided into quality levels, and different upload priorities and network resources are allocated to the data to be uploaded according to different network services and requirements. The quality level division can ensure that key and important network services receive sufficient network resources and guarantees, thereby improving the quality and availability of network services.

[0086] The quality level of the current network environment is determined based on the obtained network status information; different network resources can be allocated to various applications or services in the vehicle computer based on the quality level, thereby improving the stability of data upload.

[0087] Step 103, when the quality level is the first level, adjust the data upload rate of the data to be uploaded to the target upload rate to release network bandwidth to the target application, and the target application is an application that uses the network environment and can be perceived by the user.

[0088] In the embodiment of the present disclosure, the first level is the quality level where the network environment is poor and cannot meet the requirement of uploading all the data to be uploaded at the same time. The data to be uploaded is the data that needs to be uploaded to the cloud server; for example, it can be photos and videos collected by the vehicle's image sensor for the vehicle's automatic driving, or it can be log files generated by the vehicle computer, collected user information and other data; the embodiment of the present disclosure does not limit the specific data type of the data to be uploaded.

[0089] When the network connection is stable and the network condition is good, in the upload queue composed of data to be uploaded, data of different data types to be uploaded can be uploaded together, or they can be uploaded in sequence according to the upload priority, and the present disclosure does not limit this. When the network connection is unstable and the data upload rate is low, that is, when the quality level is the first level, the network bandwidth is released to the target application (the data to be uploaded that the target application needs to upload) by adjusting the data upload rate of different data to be uploaded in the upload queue; illustratively, when the quality level of the vehicle's network environment is the first level, the data about autonomous driving obtained by the vehicle needs to be uploaded to the cloud server first; therefore, the upload rate of the data about autonomous driving obtained by the vehicle can be adjusted to the maximum, and the upload rate of other data to be uploaded by the vehicle can be adjusted to a lower level, such as logs generated by the vehicle computer.

[0090] Step 104: uploading the data to be uploaded to the cloud server according to the target upload rate.

[0091] In the embodiments of the present disclosure, by adjusting the data upload rate of the data to be uploaded to the target upload rate, the network bandwidth in the current network environment can be reasonably utilized, reducing the occurrence of slow data upload, upload failure, etc. caused by unstable network connection or poor connection quality.

[0092] Step 105, when the quality level is the second level, stop uploading data and return to the network environment where the detection vehicle is located; the quality level of the first level is higher than the quality level of the second level.

[0093] In the embodiment of the present disclosure, the second level is a quality level where the network environment is very poor and the data to be uploaded cannot be uploaded completely. When the quality level of the network environment is the second level, the uploading of the data to be uploaded in the upload queue is suspended, and the network environment of the vehicle computer is continuously detected. When the network environment of the vehicle computer reaches the first level, the data to be uploaded is continuously uploaded.

[0094] The present disclosure provides a method for data transmission, which includes detecting the network environment where the vehicle computer is located, obtaining the network status information corresponding to the vehicle computer; determining the quality level of the network environment based on the network status information; adjusting the data upload rate of the data to be uploaded to the target upload rate when the quality level is the first level, so as to release the network bandwidth to the target application, the target application is an application that uses the network environment and can be perceived by the user; uploading the data to be uploaded to the cloud server according to the target upload rate; stopping data upload and returning to the network environment where the vehicle computer is located when the quality level is the second level; the quality level of the first level is higher than the quality level of the second level. Compared with the related art, the present disclosure dynamically adjusts the data upload rate of the data to be uploaded according to the quality level of the network environment after analyzing the network environment where the vehicle computer is located; by continuously analyzing the network environment where the vehicle computer is located, the upload strategy of the data to be uploaded can be adjusted in time, and the data to be uploaded can be prevented from being lost or failing to upload due to fluctuations in the network environment.

[0095] In order to clearly illustrate the embodiment of the present disclosure, the embodiment of the present disclosure provides a flowchart of another method for data transmission.

[0096] like Figure 2 As shown, the method comprises the following steps:

[0097] Step 201, obtaining the network upload rate and network packet loss rate in the network environment where the vehicle computer is located.

[0098] Step 202: Generate the network status information based on the network upload rate and the network packet loss rate.

[0099] Specifically, in the embodiments of the present disclosure, the network upload rate and the network packet loss rate in the current network environment are used as network status information. The network upload rate and the network packet loss rate have a direct impact on uploading the data to be uploaded. Therefore, in the embodiments of the present disclosure, the network upload rate and the network packet loss rate are used as technical indicators for evaluating the network environment in which the vehicle is located.

[0100] In some other embodiments of the present disclosure, technical indicators including but not limited to delay and jitter of the network environment in which the vehicle computer is located can be obtained.

[0101] Step 203: Determine the quality level of the network environment based on the network status information.

[0102] As a refinement of an embodiment of the present disclosure, determining the quality level of the network environment based on the network status information includes: if the network upload rate is greater than or equal to a first preset threshold and / or the network packet loss rate is less than or equal to a second preset threshold, determining the quality level of the network environment to be the first level; if the network upload rate is less than the first preset threshold and / or the network packet loss rate is greater than the second preset threshold, determining the quality level of the network environment to be the second level.

[0103] Specifically, in the embodiment of the present disclosure, when the quality level of the network environment is the first level, when the network packet loss rate under the current network environment is less than or equal to the second preset threshold, it can be considered that the current network state can meet the complete upload of data. If the current network upload rate is greater than the first preset threshold, it can be considered that the current network upload rate can upload data; however, if it does not meet the simultaneous upload of data of multiple data types, it is necessary to upload the data to be uploaded according to the data upload priority.

[0104] Step 204: When the quality level is the first level, the data upload rate of the data to be uploaded is adjusted based on the network status information and the network bandwidth occupied by the target application.

[0105] Specifically in the disclosed embodiment, when it is determined that the current network upload rate is greater than the first preset threshold, the data upload rate of the data to be uploaded is adjusted according to the acquired network upload rate and the bandwidth required by the target application.

[0106] Step 205: Obtain the remaining data flow corresponding to the data type of the data to be uploaded.

[0107] Specifically, in the embodiments of the present disclosure, data traffic fees are also an important expense for car companies and consumers, so it is necessary to manage and control the data traffic of the vehicle. After determining the data type of the data to be uploaded, determine the remaining data traffic corresponding to the data type. Figure 3 In the embodiment of the present disclosure, the priority of data types is divided according to the importance of the data, and important data, ordinary data and lower priority data are used as examples for explanation. For example, when the data to be uploaded is the user's preference data for using the car computer, its data type can be an ordinary data type. At this time, it is necessary to determine the amount of remaining data flow corresponding to the ordinary data type.

[0108] Step 206: Determine whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data flow.

[0109] As a refinement of an embodiment of the present disclosure, determining whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data traffic includes: if the data volume of the data to be uploaded is less than the remaining data traffic, determining to upload the data to be uploaded; if the data volume of the data to be uploaded is greater than or equal to the remaining data traffic, determining to suspend uploading of the data to be uploaded; if the data volume of the data to be uploaded is greater than or equal to the remaining data traffic, and the data type of the data to be uploaded is a data type for which additional data traffic can be allocated, determining to upload the data to be uploaded.

[0110] Specifically, in the embodiments of the present disclosure, the data type to which additional data traffic can be allocated is the data type of important data; it should be noted that the data type to which additional data traffic can be allocated can be a pre-set data type, such as data to be uploaded generated by an application in a whitelist set by a user, or a data type with the highest priority, which is not limited in the present disclosure. The remaining data traffic can be the remaining data traffic purchased by the user, or a set daily or monthly data traffic limit, which is not limited in the present disclosure.

[0111] Please continue reading Figure 3 If the data type corresponding to the data to be uploaded is ordinary data or lower priority data, it is necessary to determine whether the remaining data flow corresponding to these two data types is sufficient to upload the data to be uploaded. If not, the upload is stopped. If the data type corresponding to the uploaded data is important data, important data is a data type that can be allocated additional data flow. Even if the remaining data flow is not enough to upload the data to be uploaded, additional data flow must be allocated to the important data.

[0112] Step 207: Determine the upload priorities corresponding to the data types of the plurality of data to be uploaded.

[0113] Specifically, in the disclosed embodiment, different data types are assigned different upload priorities to ensure that important data types are uploaded first. At different times, the data that the vehicle needs to upload varies greatly. For example, when the vehicle is running, more image information about autonomous driving needs to be uploaded, and image information about autonomous driving is an important data type; when the vehicle is stationary, it does not need to upload a lot of image information compared to when the vehicle is driving, so the released network bandwidth can be released for use by other target applications.

[0114] Step 208: Determine the upload order of the plurality of data to be uploaded based on the upload priority.

[0115] Specifically, in the embodiments of the present disclosure, at different times, the data to be uploaded that the vehicle computer needs to upload is not the same; therefore, it is necessary to determine the upload order of all the data to be uploaded based on the upload priority divided in advance. Exemplarily, at time A, there are three data types of data to be uploaded a, b, c, which correspond to important data types, ordinary data types, and lower priority data types, respectively. When uploading the data to be uploaded, a, b, c are uploaded in sequence according to the upload priority. At time B, there are two data types of data to be uploaded b and c, which correspond to ordinary data types and lower priority data types, respectively. When uploading the data to be uploaded, a, b, c are uploaded in sequence according to the upload priority.

[0116] Step 209: Upload the data to be uploaded to the cloud server according to the target upload rate and the order of upload sequence.

[0117] As a refinement of the embodiment of the present disclosure, uploading the data to be uploaded to the cloud server according to the target upload rate and the order of the upload sequence includes: if the network upload rate is greater than a third preset threshold, uploading the data to be uploaded in sequence according to the order of the upload sequence; if the network upload rate is greater than or equal to the first preset threshold and less than the third preset threshold, allocating network bandwidth to the data to be uploaded in a descending order according to the network upload rate, and uploading the data to be uploaded according to the allocated network bandwidth.

[0118] Specifically, in the disclosed embodiment, if the current network upload rate is between the first preset threshold and the third preset threshold, it can be considered that the current network upload rate can upload data, but does not meet the simultaneous upload of multiple data types, so it is necessary to allocate network bandwidth to the data to be uploaded in the order of data upload sequence. When the network upload rate is greater than the third preset threshold, it can be considered that the current network upload rate can meet the simultaneous upload of multiple data types of data to be uploaded, and is limited by the inconsistent packet state of each data type, resulting in inconsistent bandwidth occupied by each type of data to be uploaded. Therefore, it is only necessary to allocate network bandwidth to the data to be uploaded in a descending order according to the order of upload sequence, giving priority to the upload of data to be uploaded with a high upload priority.

[0119] Step 210, when the quality level is the second level, stop uploading data and return to the network environment where the detection vehicle is located.

[0120] Specifically, in the embodiment of the present disclosure, when the quality level of the network environment is the second level, if the network packet loss rate under the current network environment exceeds the second preset threshold and / or the network upload rate is less than the first preset threshold, then it can be considered that the network connection is unstable and not suitable for continued uploading, for example, when the network upload rate is only a few Kb / s. After it is determined to stop uploading data, the current network environment is continuously tested, and when the network environment meets the requirements for uploading, the data to be uploaded is continued to be uploaded.

[0121] In order to clearly illustrate the embodiment of the present disclosure, the embodiment of the present disclosure provides a schematic diagram of a data transmission process.

[0122] like Figure 3 As shown, the method comprises the following steps:

[0123] Step 301: network environment analysis.

[0124] Detect the network environment where the vehicle computer is located and obtain the network status information corresponding to the vehicle computer.

[0125] Step 302: Determine the upload priorities corresponding to the data types of the multiple data to be uploaded.

[0126] Based on the upload priority, an upload order of the plurality of data to be uploaded is determined.

[0127] Step 303: flow verification.

[0128] Obtain the remaining data flow corresponding to the data type of the data to be uploaded; and determine whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data flow.

[0129] Step 304: upload channel allocation.

[0130] Specifically in the embodiment of the present disclosure, the upload channel is an upload queue for data to be uploaded, and different upload channels are divided according to different upload priorities.

[0131] Step 305, adjust the upload speed.

[0132] The data to be uploaded is uploaded to the cloud server according to the target upload rate and the order of the upload sequence.

[0133] For the description of steps 301 to 305, please refer to the above embodiment, which will not be described in detail in the embodiment of the present disclosure.

[0134] It should be noted that the embodiments of the present disclosure may include multiple steps. For the convenience of description, these steps are numbered, but these numbers do not limit the execution time slots or execution order between the steps; these steps can be implemented in any order, and the embodiments of the present disclosure do not limit this.

[0135] Corresponding to the above data transmission method, the present invention also provides a data transmission device. Since the device embodiment of the present invention corresponds to the above method embodiment, details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be repeated in the present invention.

[0136] Figure 4 A schematic diagram of a data transmission device provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, including:

[0137] The detection unit 41 is used to detect the network environment of the vehicle computer and obtain the network status information corresponding to the vehicle computer;

[0138] A first determining unit 42, configured to determine a quality level of the network environment based on the network status information;

[0139] an adjusting unit 43, configured to adjust, when the quality level is the first level, a data upload rate of the data to be uploaded to a target upload rate, so as to release network bandwidth to a target application, wherein the target application is an application that uses the network environment and can be perceived by a user;

[0140] A first uploading unit 44, configured to upload the data to be uploaded to a cloud server according to the target upload rate;

[0141] The processing unit 45 is used to stop uploading data and return to the network environment where the detection vehicle computer is located when the quality level is the second level; the quality level of the first level is higher than the quality level of the second level.

[0142] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the data to be uploaded includes data of multiple data types, and the device further includes:

[0143] A second determining unit 46 is used to determine the upload priorities corresponding to the data types of the plurality of data to be uploaded before uploading the data to be uploaded to the cloud server according to the target upload rate;

[0144] A third determining unit 47 is used to determine an uploading order of the plurality of data to be uploaded based on the upload priority;

[0145] The first uploading unit 44 is further configured to:

[0146] The data to be uploaded is uploaded to the cloud server according to the target upload rate and the order of the upload sequence.

[0147] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the detection unit 41 includes:

[0148] An acquisition module 411 is used to acquire a network upload rate and a network packet loss rate in a network environment where the vehicle computer is located;

[0149] The generating module 412 is used to generate the network status information based on the network upload rate and the network packet loss rate.

[0150] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the first determining unit 42 includes:

[0151] A first determination module 421, configured to determine that the quality level of the network environment is a first level if the network upload rate is greater than or equal to a first preset threshold and / or the network packet loss rate is less than or equal to a second preset threshold;

[0152] The second determination module 422 is configured to determine that the quality level of the network environment is the second level if the network upload rate is less than the first preset threshold and / or the network packet loss rate is greater than the second preset threshold.

[0153] Furthermore, in a possible implementation of this embodiment, the adjusting unit 43 is further configured to:

[0154] Based on the network status information and the network bandwidth occupied by the target application, a data upload rate of the data to be uploaded is adjusted.

[0155] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the first uploading unit 44 includes:

[0156] A first uploading module 441 is configured to upload the data to be uploaded in order from high to low according to the upload priority if the network upload rate is greater than a third preset threshold;

[0157] The second uploading module 442 is used to allocate network bandwidth to the data channel in a descending order according to the upload priority according to the network upload rate if the network upload rate is greater than or equal to the first preset threshold and less than the third preset threshold, and upload the data to be uploaded according to the allocated network bandwidth.

[0158] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the device also includes:

[0159] An acquisition unit 48 is used to acquire the remaining data flow corresponding to the data type of the data to be uploaded before uploading the data to be uploaded to the cloud server according to the target upload rate;

[0160] A fourth determining unit 49, configured to determine whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data flow;

[0161] A second uploading unit 410 is configured to upload the data to be uploaded if the amount of the data to be uploaded is less than the remaining data flow;

[0162] The third uploading unit 411 is configured to suspend uploading the data to be uploaded if the amount of the data to be uploaded is greater than or equal to the remaining data flow;

[0163] The fourth uploading unit 412 is configured to upload the data to be uploaded if the amount of the data to be uploaded is greater than or equal to the remaining data traffic and the data type of the data to be uploaded is a data type to which additional data traffic can be allocated.

[0164] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is no longer limited in this embodiment.

[0165] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0166] Figure 6 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0167] like Figure 6As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 502 or a computer program loaded from a storage unit 508 to a RAM (Random Access Memory) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An I / O (Input / Output) interface 505 is also connected to the bus 504.

[0168] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0169] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as a method for data transmission. For example, in some embodiments, the method for data transmission may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the aforementioned data transmission method in any other appropriate manner (for example, by means of firmware).

[0170] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0171] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0172] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0173] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball), through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0174] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0175] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0176] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0177] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0178] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for data transmission, It is characterized in that include: Detecting the network environment of the vehicle computer and obtaining the network status information corresponding to the vehicle computer; Determining a quality level of the network environment based on the network status information; When the quality level is the first level, adjusting the data upload rate of the data to be uploaded to the target upload rate to release network bandwidth to the target application, wherein the target application is an application that uses the network environment and can be perceived by the user; Uploading the data to be uploaded to the cloud server according to the target upload rate; When the quality level is the second level, stop uploading data and return to the network environment where the detection vehicle computer is located; The quality level of the first level is higher than the quality level of the second level.

2. The method according to claim 1, It is characterized in that The data to be uploaded includes data of multiple data types. Before uploading the data to be uploaded to the cloud server according to the target upload rate, the method further includes: Determine the upload priorities corresponding to the data types of the plurality of data to be uploaded; Based on the upload priority, determining an upload order of the plurality of data to be uploaded; The uploading of the data to be uploaded to the cloud server according to the target upload rate includes: The data to be uploaded is uploaded to the cloud server according to the target upload rate and the order of the upload sequence.

3. The method according to claim 1, It is characterized in that The detecting the network environment of the vehicle computer and obtaining the network status information corresponding to the vehicle computer includes: Obtaining the network upload rate and network packet loss rate of the network environment in which the vehicle computer is located; The network status information is generated based on the network upload rate and the network packet loss rate.

4. The method according to claim 3, It is characterized in that The determining, based on the network status information, the quality level of the network environment includes: If the network upload rate is greater than or equal to a first preset threshold and / or the network packet loss rate is less than or equal to a second preset threshold, determining that the quality level of the network environment is the first level; If the network upload rate is less than a first preset threshold and / or the network packet loss rate is greater than a second preset threshold, the quality level of the network environment is determined to be the second level.

5. The method according to any one of claims 1 to 4, It is characterized in that The step of adjusting the data upload rate of the data to be uploaded to the target upload rate includes: Based on the network status information and the network bandwidth occupied by the target application, a data upload rate of the data to be uploaded is adjusted.

6. The method according to claim 2, It is characterized in that The step of uploading the data to be uploaded to the cloud server according to the target upload rate and the order of the upload sequence also includes: If the network upload rate is greater than a third preset threshold, uploading the data to be uploaded in sequence according to the order of the upload sequence; If the network upload rate is greater than or equal to the first preset threshold and less than the third preset threshold, the network upload rate is allocated to the data to be uploaded in a descending order according to the upload sequence, and the data to be uploaded is uploaded according to the allocated network bandwidth.

7. The method according to claim 1, It is characterized in that Before uploading the data to be uploaded to the cloud server according to the target upload rate, the method further includes: Obtaining the remaining data flow corresponding to the data type of the data to be uploaded; Determining whether to upload the data to be uploaded based on the data volume of the data to be uploaded and the remaining data flow; If the amount of the data to be uploaded is less than the remaining data flow, determining to upload the data to be uploaded; If the amount of the data to be uploaded is greater than or equal to the remaining data flow, determining to suspend uploading of the data to be uploaded; If the data volume of the data to be uploaded is greater than or equal to the remaining data flow, and the data type of the data to be uploaded is a data type to which additional data flow can be allocated, it is determined to upload the data to be uploaded.

8. A device for data transmission, It is characterized in that include: A detection unit, used to detect the network environment of the vehicle computer and obtain network status information corresponding to the vehicle computer; A first determining unit, configured to determine a quality level of the network environment based on the network status information; an adjusting unit, configured to adjust, when the quality level is the first level, a data upload rate of the data to be uploaded to a target upload rate, so as to release a network bandwidth target application, wherein the target application is an application that uses the network environment and can be perceived by a user; An uploading unit, used for uploading the data to be uploaded to a cloud server according to the target upload rate; A processing unit, used for stopping data uploading and returning to the network environment where the detection vehicle computer is located when the quality level is the second level; The quality level of the first level is higher than the quality level of the second level.

9. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

11. A computer program product, It is characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Automatic driving remote packet fishing processing method and system based on public network condition

    CN120896956A