Data transmission method and device
By deduplication and filtering the received index array on the vehicle side, only the newly added indexed signal data is collected and updated, the problem of low data acquisition and transmission efficiency of traditional vehicle control function parts is solved, and lightweight data transmission is achieved.
Patent Information
- Application Number
- CN202111279399.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-01-04
AI Technical Summary
During the automotive software development process, due to the low data collection and transmission efficiency during the software development and release of traditional vehicle control functional parts, the software debugging and troubleshooting process is inefficient.
The vehicle terminal receives the index array sent by the cloud and deduplicates elements, filters out new indexes, and only collects and updates the signal data of these newly added indexes, and then passes the updated signal data back to the cloud.
It improves the efficiency of updating indexes on the vehicle side, realizes lightweight data acquisition and transmission, and reduces the amount of data transmission.
Smart Images

Figure CN114090557B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a method and device for data transmission between an automobile and a cloud. Background Art
[0002] Functional failures caused by software logic design have always accounted for a high proportion of automotive software development. Currently, the software development and published standards for many traditional vehicle control components tend to rely on offline bench simulation testing. These inputs are all simulated signals. Once a functional failure occurs, there is no real vehicle data available for troubleshooting. This results in a lengthy and inefficient software debugging and troubleshooting process for both new and legacy functions.
[0003] In order to overcome the above-mentioned defects, the existing technology enables vehicle control functional parts such as the vehicle controller to have Internet access capabilities. The cloud development interface customizes the required signals for a specific experimental vehicle and issues tasks. The vehicle side then transmits the corresponding data packet back to the cloud. The cloud side can then save the data packet for use as a test input for new software functions or to replay the original signal data of the vehicle side.
[0004] However, the amount of data currently required in the cloud-side customization of required signals and in the process of transmitting data back from the vehicle is very large, and the efficiency of data collection and transmission is not high. Summary of the Invention
[0005] The present invention provides a data transmission method and device, in which the vehicle side only updates the newly added index, which can improve the efficiency of updating the index on the vehicle side and realize lightweight data collection and transmission.
[0006] In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides a data transmission method applied to a vehicle side, the method comprising:
[0007] Receive the index array sent by the cloud;
[0008] De-duplicate the elements in the received index array;
[0009] Compare the index array after element deduplication with the vehicle-side array to filter out the newly added indexes;
[0010] Collect signal data of newly added indexes and update the vehicle-side array;
[0011] The signal data corresponding to the updated vehicle-side array is transmitted back to the cloud.
[0012] As a preferred solution, the element deduplication of the received index array is specifically as follows:
[0013] Summarize the received index array;
[0014] The following formula is used to remove duplicate elements in the summarized index array:
[0015]
[0016] Among them, freceive[] is the index array after deduplication, ftransform[] is the index array after aggregation, and i≥0.
[0017] As a preferred solution, the signal data corresponding to the updated vehicle-side array is transmitted back to the cloud, specifically:
[0018] Set the signal upload enable corresponding to the updated vehicle-side array to 1;
[0019] Flexible packetization of signal data of elements whose signal upload enable is 1;
[0020] The flexibly packaged signal data is transmitted back to the cloud.
[0021] In order to solve the above technical problems, in a second aspect, an embodiment of the present invention provides a data transmission method applied to the cloud, the method comprising:
[0022] Create at least one signal acquisition task;
[0023] De-duplicate elements in the index array of the created signal acquisition task;
[0024] Use ArrayContainer and Bitmap to store the deduplicated index array;
[0025] The deduplicated index array is sent to the vehicle side.
[0026] As a preferred solution, the ArrayContainer and Bitmap are used to store the deduplicated index array, specifically:
[0027] The deduplicated index array is divided into high 16 bits and low 16 bits. The high 16 bits of the element are used as the key corresponding to the element, and the low 16 bits of the element are stored in the corresponding Bitmap Container; each key corresponds to a Bitmap Container.
[0028] In order to solve the above technical problems, in a third aspect, an embodiment of the present invention provides a data transmission device applied to a vehicle, the device comprising:
[0029] The receiving module is used to receive the index array sent by the cloud;
[0030] The first deduplication module is used to deduplicate elements in the received index array;
[0031] The comparison module is used to compare the index array after element deduplication with the vehicle-side array to filter out the newly added indexes;
[0032] The update module is used to collect signal data of the newly added index and update the vehicle-side array;
[0033] The return module is used to return the signal data of the newly added index to the cloud.
[0034] As a preferred solution, the first deduplication module specifically includes:
[0035] The summary unit is used to summarize the received index array;
[0036] The first deduplication unit is used to remove duplicate elements in the aggregated index array using the following formula:
[0037]
[0038] Among them, freceive[] is the index array after deduplication, ftranform[] is the index array after aggregation, and i≥0.
[0039] As a preferred solution, the return module specifically includes:
[0040] An enable setting unit, used to set the signal upload enable corresponding to the newly added index to 1;
[0041] A flexible packaging unit, used for flexibly packaging signal data of elements whose signal upload enable is 1;
[0042] The flexibly packaged signal data is transmitted back to the cloud.
[0043] In order to solve the above technical problems, in a fourth aspect, an embodiment of the present invention provides a data transmission device applied to the cloud, the device comprising:
[0044] A creation module, used to create at least one signal acquisition task;
[0045] The second deduplication module is used to deduplicate the elements in the index array of the created signal acquisition task;
[0046] The storage module is used to store the deduplicated index array using ArrayContainer and Bitmap;
[0047] The sending module is used to send the deduplicated index array to the vehicle end.
[0048] In order to solve the above technical problems, in a fifth aspect, an embodiment of the present invention provides a method for data transmission between a vehicle and a cloud, the method comprising:
[0049] The cloud creates at least one signal acquisition task;
[0050] The cloud deduplicates elements in the index array of the created signal acquisition task;
[0051] The cloud uses ArrayContainer and Bitmap to store the deduplicated index array;
[0052] The cloud sends the deduplicated index array to the vehicle end;
[0053] The vehicle receives the index array sent from the cloud;
[0054] The vehicle end deduplicates the elements of the received index array;
[0055] The vehicle side compares the index array after element deduplication with the vehicle side array to filter out the newly added index;
[0056] The vehicle side collects signal data of the newly added index and updates the vehicle side array;
[0057] The vehicle side transmits the signal data corresponding to the updated vehicle side array back to the cloud.
[0058] Compared with the existing technology, the data transmission method and device provided by the embodiment of the present invention have the following beneficial effects: after the vehicle side receives the index array sent from the cloud, it first deduplicates the elements and then filters out the new index, then only collects the control parameters corresponding to the new index and updates the original array on the vehicle side, and finally transmits the updated signal data back to the cloud, which can improve the efficiency of updating the index value on the vehicle side, and when there are multiple index arrays, there is no need to perform multiple index collection and transmission, and the data transmission volume is also greatly reduced, thereby achieving the purpose of lightweight collection and transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical features of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 This is a flow chart of a preferred embodiment of a data transmission method applied to a vehicle provided by the present invention;
[0061] Figure 2 This is a flow chart of a preferred embodiment of a data transmission method applied to the cloud provided by the present invention;
[0062] Figure 3This is a schematic diagram of an example of using ArrayContainer and Bitmap to store a deduplicated index array in the present invention;
[0063] Figure 4 This is a structural diagram of a preferred embodiment of a data transmission device applied to a vehicle provided by the present invention;
[0064] Figure 5 This is a schematic structural diagram of a preferred embodiment of a data transmission device for cloud computing provided by the present invention;
[0065] Figure 6 It is a flow chart of a preferred embodiment of a data transmission method provided by the present invention, which is applied to the data transmission process between the vehicle side and the cloud. DETAILED DESCRIPTION
[0066] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific embodiments of the present invention are described in further detail below in conjunction with the accompanying drawings and Examples. The following examples are only used to illustrate the present invention, but are not intended to limit the scope of protection of the present invention. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without paying creative work should all fall within the scope of protection of the present invention.
[0067] In the description of the present invention, it should be understood that the numbers themselves in this document, such as "first", "second", etc., are only used to distinguish the objects described, and have no sequential or technical meaning, and cannot be understood as stipulating or implying the importance of the objects described.
[0068] Figure 1 The figure shows a flow chart of a preferred embodiment of a data transmission method applied to a vehicle side provided by the present invention.
[0069] like Figure 1 As shown, the method includes the following steps:
[0070] S1: Receives the index array sent by the cloud;
[0071] S2: De-duplicate the elements of the received index array;
[0072] S3: Compare the index array after element deduplication with the vehicle-side array to filter out the newly added indexes;
[0073] S4: Collect signal data of the newly added index and update the vehicle-side array;
[0074] S5: Transmit the updated signal data corresponding to the vehicle-side array back to the cloud.
[0075] It's important to note that for software debugging and troubleshooting, the cloud sends the required index array to the vehicle, which then transmits the corresponding data back. Existing technologies for data transmission collect and transmit the data corresponding to the index array sent from the cloud, which doesn't meet the requirements for lightweight collection and transmission.
[0076] In view of this, the present invention first deduplicates the elements of the received index array before returning the data, and then compares the deduplicated index array with the original array on the vehicle side (the original array on the vehicle side corresponds to the current acquisition task), filters out the new index, and only collects the control parameters corresponding to the new index, and then returns the new index and the control parameters corresponding to the original array on the vehicle side to the cloud, thereby improving the speed of vehicle-side signal acquisition and the efficiency of updating index values, thereby achieving the purpose of lightweight acquisition and transmission.
[0077] During specific implementation, the vehicle side maintains a communication connection with the cloud side, and stable data transmission can be carried out between the two. Among them, the vehicle side can maintain a communication connection with one or more clouds. When the cloud side sends a specific index array, the vehicle side first deduplicates the elements of the index array. For example, in the two received index arrays, there are repeated elements, and the data values of the repeated elements are the same. If deduplication is not performed, the vehicle side needs to perform two index updates, which is inefficient. After deduplication of the index array, the deduplication index array is compared with the original array on the vehicle side, and the newly added index is screened out. Data is collected for the newly added index and the original array on the vehicle side is updated, and then the updated signal data is transmitted back to the cloud side.
[0078] The present invention provides a data transmission method applied to the vehicle side. After receiving the index array sent from the cloud, the vehicle side first deduplicates the elements and then filters out the newly added indexes. Then, only the control parameters corresponding to the newly added indexes are collected and the original array on the vehicle side is updated. Finally, the updated signal data is transmitted back to the cloud. This can improve the efficiency of updating the index value on the vehicle side. Moreover, when there are multiple index arrays, there is no need to perform multiple index collection and transmission. The data transmission volume is also greatly reduced, thereby achieving the purpose of lightweight collection and transmission.
[0079] In a preferred embodiment, the deduplication of elements in the received index array is specifically performed as follows:
[0080] S21: Summarize the received index array;
[0081] S22: Use the following formula to remove duplicate elements in the summarized index array:
[0082]
[0083] Among them, freceive[] is the index array after deduplication, ftransform[] is the index array after aggregation, and i≥0.
[0084] For example, there are two index arrays sent from the cloud. Developer A sends the following index array from one cloud: ftransform[] = [1 3 5 7 9], with subscripts 0, 1, 2, 3, 4. Developer B sends the following index array from the other cloud: ftransform[] = [1 3 5 7 9 11 13 15], with subscripts 0, 1, 2, 3, 4, 5, 6, 7. The vehicle aggregates and merges the two index arrays to obtain ftransform[] = [1 3 5 7 9 1 3 5 7 9 11 13 15], with subscripts 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. Substituting this into the deduplication formula yields the following calculation process:
[0085] (1) When i=0, ftransform[0]=1 (ftransform[0]≠0), freceive[ftransform[0]]=ftransform[0]=1;
[0086] freceive[1]=1;
[0087] (2) When i=1, transform[1]=3 (ftransform[1]≠0), freceive[ftransform[1]]=ftransform[1]=3;
[0088] freceive[3]=3;
[0089] …
[0090] (3) When i=5, ftransform[5]=1 (ftransform[5]≠0), freceive[ftransform[5]]=ftransform[5]=1;
[0091] freceive[1]=1;
[0092] Similarly:
[0093] (4) When i=6, ftransform[6]=3 (ftransform[6]≠0), freceive[ftransform[6]]=ftransform[6]=3;
[0094] freceive[3]=3;
[0095] …
[0096] (5) When i=10, ftransform
[10] =11 (ftransform
[10] ≠0), freceive[ftransform
[10] ]=ftransform
[10] =11;
[0097] freceive
[11] =11;
[0098] (6) When i=11, ftransform
[11] =13 (ftransform
[11] ≠0), freceive[ftransform
[11] ]=ftransform
[11] =13;
[0099] freceive
[13] =13;
[0100] (7) When i=12, ftransform
[12] =15 (ftransform
[12] ≠0), freceive[ftransform
[12] ]=ftransform
[12] =15;
[0101] freceive
[15] =15.
[0102] So far, the deduplicated index array is obtained: freceive[] = [1 3 5 7 9 11 13 15].
[0103] Furthermore, in step S3, the vehicle-side array is: Index[] = [1 3 5 7 9], with subscripts: 0, 1, 2, 3, 4; the index array after deduplication is: freceive[] = [1 3 5 7 9 11 13 15], with subscripts: 0, 1, 2, 3, 4, 5, 6, 7. The formula used for comparison is as follows:
[0104]
[0105] Among them, Index_new[] is an array composed of newly added indexes.
[0106] By comparison, we can see that Index[5], Index[6] and Index[7] do not exist, and they are newly added indexes, so we get Index_new[0]=freceive[5]=11, Index_new[1]=freceive[6]=13, Index_new[2]=freceive[7]=15, that is, we get Index_new[]=[11 13 15].
[0107] After obtaining the newly added index, the vehicle side can collect the control parameters corresponding to the newly added index, and then update the original vehicle side array, that is, the updated vehicle side array becomes: Index[] = [1 3 5 7 9 11 13 15]. The updated vehicle side array includes the signal data of the original vehicle side array and the signal data of the newly added index, and serves as the vehicle side array for the next screening. Finally, the signal data corresponding to the updated array is transmitted back to the cloud. Among them, the signal data corresponding to the updated vehicle side array is transmitted back to the cloud, specifically:
[0108] Set the signal upload enable corresponding to the newly added index element to 1;
[0109] Flexible packetization of signal data of elements whose signal upload enable is 1;
[0110] The flexibly packaged signal data is transmitted back to the cloud.
[0111] The signal upload enable is specifically set using the following formula:
[0112]
[0113] It should be noted that before the vehicle-side array is updated, the signal upload enable corresponding to the elements therein are all 1. Then, by setting the signal upload enable of the element corresponding to the newly added index to 1, it can be ensured that the signal upload enable corresponding to all elements of the updated vehicle-side array are all 1.
[0114] Optionally, when performing the signal upload enable setting, the signal upload enable corresponding to the element of the updated vehicle-side array may be set to 1, that is, the signal upload enable setting is performed for both the original vehicle-side array and the newly added index.
[0115] Signal data for elements with Para[counter] set to 1 is then flexibly packaged. First, the data is packaged in order according to the updated element values in the array Index[]. The structure consisting of each signal and its signal ID is then used as an element of a dynamic vector array. New elements are inserted at the end of the dynamic vector array, and data packets are cached according to the original signal period. The data packet format can be designed as shown in Table 1. Taking signal1 as an example, the low-order bits 1011000111 represent the signal ID itself, and the high-order bits 100 represent the value of signal1. Finally, the packaged signal data is transmitted back to the cloud for use as test input for new software features or for online historical data playback. When receiving data, the cloud only obtains the data it needs based on the identifier. For example, in the above example, developer A obtains the data corresponding to ftransform[] = [1 3 5 7 9], and developer B obtains the data corresponding to ftransform[] = [1 3 5 7 9 11 13 15].
[0116] Table 1
[0117]
[0118]
[0119] It should be understood that the present invention can implement all or part of the processes in the above-mentioned vehicle-side data transmission method by instructing related hardware. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the above-mentioned vehicle-side data transmission method. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. Computer-readable media can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased based on the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.
[0120] Accordingly, the present invention provides a data transmission method applied to the cloud. Figure 2The figure shows a flow chart of a preferred embodiment of a data transmission method applied to the cloud provided by the present invention.
[0121] like Figure 2 As shown, the method includes the following steps:
[0122] X1: Create at least one signal acquisition task;
[0123] X2: Remove duplicate elements from the index array of the created signal acquisition task;
[0124] X3: Use Array Container and Bitmap to store the deduplicated index array;
[0125] X4: Send the deduplicated index array to the vehicle.
[0126] Among them, developers can issue instructions to create signal collection tasks on the cloud. After receiving the instructions, the cloud will create signal collection tasks according to the instructions.
[0127] After the cloud receives the data sent back by the vehicle for this signal collection task, it can update the stored index array, that is, store the data in the cloud, which can be used as test input for new software or for online historical data playback.
[0128] The present invention provides a data transmission method for cloud computing. After creating a signal acquisition task, the signal acquisition task is aggregated and deduplicated, and then an array container and a bitmap are used to store the deduplicated index array, thereby saving cloud storage and data transmission volume.
[0129] In step X2, the deduplication formula used is the same as that used on the vehicle side, and will not be repeated here.
[0130] In a preferred embodiment, the use of Array Container and Bitmap to store the deduplicated index array is as follows:
[0131] The deduplicated index array is divided into high 16 bits and low 16 bits. The high 16 bits of the element are used as the key corresponding to the element, and the low 16 bits of the element are stored in the corresponding Bitmap Container; each key corresponds to a Bitmap Container.
[0132] The storage methods of the Array Container and Bitmap of this embodiment are specifically designed as follows: 1) ArrayContainer design: Divide a 32-bit index into high 16 bits and low 16 bits, use the high 16 bits to find the key corresponding to the data, each key has its own container, and then put the remaining low 16 bits into the container; 2) Bitmap design: Define a large bit array, and each index corresponds to one bit in the bit array.
[0133] As an example, Figure 3 As shown, the index is 44FA1D10, with the upper 16 bits being 44FA and the lower 16 bits being 1D10. First, the upper 16 bits (44FA) are used as the key. This key corresponds to a Bitmap Container (if the corresponding Bitmap Container doesn't exist, a new one is created). The lower 16 bits (1D10) are then stored in the corresponding Bitmap Container. Containers corresponding to multiple keys can form a Container Array.
[0134] It should be understood that the present invention can implement all or part of the processes in the above-mentioned cloud-based data transmission method by instructing related hardware. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the above-mentioned cloud-based data transmission method. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. Computer-readable media can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased based on the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.
[0135] Accordingly, the present invention provides a data transmission device applied to a vehicle side. Figure 4 Shown is a structural schematic diagram of a preferred embodiment of a data transmission device applied to a vehicle end provided by the present invention.
[0136] like Figure 4 As shown, the device includes:
[0137] Receiving module 41, used to receive the index array sent by the cloud;
[0138] A first deduplication module 42 is configured to perform element deduplication on the received index array;
[0139] Comparison module 43, used to compare the index array after element deduplication with the vehicle-side array to filter out the newly added index;
[0140] The return module 44 is used to return the signal data of the newly added index to the cloud.
[0141] In a preferred embodiment, the first deduplication module 42 specifically includes:
[0142] The summary unit is used to summarize the received index array;
[0143] The first deduplication unit is used to remove duplicate elements in the aggregated index array using the following formula:
[0144]
[0145] Among them, freceive[] is the index array after deduplication, ftransform[] is the index array after aggregation, and i≥0.
[0146] In a preferred embodiment, the return module 44 specifically includes:
[0147] An enable setting unit, used to set the signal upload enable corresponding to the newly added index to 1;
[0148] A flexible packaging unit, used for flexibly packaging signal data of elements whose signal upload enable is 1;
[0149] The flexibly packaged signal data is transmitted back to the cloud.
[0150] Accordingly, the present invention provides a data transmission device for use in the cloud. Figure 5 Shown is a structural schematic diagram of a preferred embodiment of a data transmission device applied to the cloud provided by the present invention.
[0151] like Figure 5 As shown, the device includes:
[0152] A creation module 51 is used to create at least one signal acquisition task;
[0153] A second deduplication module 52 is used to dedupe elements in the index array of the created signal acquisition task;
[0154] The storage module 53 is used to store the deduplicated index array using an Array Container and a Bitmap;
[0155] The sending module 54 is used to send the deduplicated index array to the vehicle end.
[0156] In a preferred embodiment, the storage module 53 is specifically used to:
[0157] The deduplicated index array is divided into high 16 bits and low 16 bits. The high 16 bits of the element are used as the key corresponding to the element, and the low 16 bits of the element are stored in the corresponding Bitmap Container; each key corresponds to a Bitmap Container.
[0158] Accordingly, the present invention provides a data transmission method for data transmission between a vehicle and a cloud. Figure 6 The figure shows a flow chart of a preferred embodiment of a data transmission method provided by the present invention, which is applied to the data transmission process between the vehicle side and the cloud.
[0159] like Figure 6 As shown, the method includes:
[0160] X1: The cloud creates at least one signal acquisition task;
[0161] X2: The cloud deduplicates the elements in the index array of the created signal acquisition task;
[0162] X3: The cloud uses ArrayContainer and Bitmap to store the deduplicated index array;
[0163] X4: The cloud sends the deduplicated index array to the vehicle.
[0164] S1: The vehicle receives an index array sent from the cloud;
[0165] S2: The vehicle side removes duplicate elements from the received index array;
[0166] S3: The vehicle-side compares the index array after element deduplication with the vehicle-side array to filter out the newly added index;
[0167] S4: The vehicle side collects signal data of the newly added index and updates the vehicle side array;
[0168] S5: The vehicle-side transmits the signal data corresponding to the updated vehicle-side array back to the cloud;
[0169] X5: The cloud receives the data sent back by the vehicle and updates the stored index array.
[0170] Specifically, the cloud first creates signal acquisition tasks, typically multiple tasks, based on the developer's instructions. To reduce data storage and transmission, the cloud aggregates the index arrays from the multiple signal acquisition tasks and deduplicates the elements. After deduplication, the cloud can then send them to the vehicle. Furthermore, to facilitate testing of new software features or replaying historical online data, the cloud also uses Array Containers and Bitmaps to store the deduplicated index arrays. After receiving the index arrays, the vehicle first deduplicates the elements in the received index array to avoid multiple indexing and reduce the amount of index collection. Since the vehicle already has the vehicle-side array stored, the corresponding element values do not need to be reindexed. Therefore, the vehicle only needs to filter out the newly added indexes and collect data for them. After collection, the vehicle-side array is updated. Finally, the vehicle flexibly packages the signal data corresponding to the updated vehicle-side arrays and transmits them back to the cloud. Upon receiving the returned data, the cloud updates the index arrays already stored using Array Containers and Bitmaps.
[0171] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. It should be pointed out that for those skilled in the art, several equivalent obvious variations and / or equivalent replacements can be made without departing from the technical principles of the present invention. These obvious variations and / or equivalent replacements should also be regarded as the scope of protection of the present invention.
Claims
1. A data transmission method, characterized in that: Applied to vehicle side, including: Receive the index array sent by the cloud; De-duplicate the elements in the received index array; Compare the index array after element deduplication with the vehicle-side array to filter out the newly added indexes; Collect signal data of newly added indexes and update the vehicle-side array; Transmit the updated signal data corresponding to the vehicle-side array back to the cloud; The element deduplication of the received index array is specifically as follows: Summarize the received index array; The following formula is used to remove duplicate elements in the summarized index array: Among them, freceive[] is the index array after deduplication, and ftransform[] is the index array after aggregation. i≥0。 2. The data transmission method according to claim 1, wherein: The signal data corresponding to the updated vehicle-side array is transmitted back to the cloud, specifically: Set the signal upload enable corresponding to the newly added index element to 1; Flexible packetization of signal data of elements whose signal upload enable is 1; The flexibly packaged signal data is transmitted back to the cloud.
3. A data transmission method, characterized in that: Applied to the cloud, including: Create at least one signal acquisition task; De-duplicate the elements of the index array of the created signal acquisition task, specifically: Summarize the index arrays of the created signal acquisition tasks; The following formula is used to remove duplicate elements in the summarized index array: Among them, freceive[] is the index array after deduplication, and ftransform[] is the index array after aggregation. i≥0; Use ArrayContainer and Bitmap to store the deduplicated index array; Send the deduplicated index array to the vehicle end; The use of ArrayContainer and Bitmap to store the deduplicated index array is as follows: Divide the deduplicated index array into high 16 bits and low 16 bits, take the high 16 bits of the element as the key corresponding to the element, and store the low 16 bits of the element in the corresponding Bitmap Container; each key corresponds to a Bitmap Container.
4. A data transmission device, characterized in that: Applied to vehicle side, including: The receiving module is used to receive the index array sent by the cloud; The first deduplication module is used to deduplicate elements in the received index array; The comparison module is used to compare the index array after element deduplication with the vehicle-side array to filter out the newly added indexes; The update module is used to collect signal data of the newly added index and update the vehicle-side array; The return module is used to return the newly indexed signal data to the cloud; The first deduplication module specifically includes: The summary unit is used to summarize the received index array; The first deduplication unit is used to remove duplicate elements in the aggregated index array using the following formula: Among them, freceive[] is the index array after deduplication, ftranform[] is the index array after aggregation, i≥0。 5. The data transmission device according to claim 4, characterized in that The return module specifically includes: An enable setting unit, used to set the signal upload enable corresponding to the newly added index to 1; The flexible packaging unit is used to flexibly package the signal data of the elements whose signal upload enable is 1; and transmit the flexibly packaged signal data back to the cloud.
6. A data transmission device, characterized in that: Applied to the cloud, including: A creation module, used to create at least one signal acquisition task; The second deduplication module is used to deduplicate the elements in the index array of the created signal acquisition task; The second deduplication module specifically includes: The summary unit is used to summarize the index array of the created signal acquisition task; The second deduplication unit is used to remove duplicates from the elements in the aggregated index array using the following formula: Among them, freceive[] is the index array after deduplication, ftranform[] is the index array after aggregation, i≥0; The storage module is used to store the deduplicated index array using ArrayContainer and Bitmap; The sending module is used to send the deduplicated index array to the vehicle end.
7. A data transmission method, characterized in that: The data transmission process between the vehicle and the cloud includes: The cloud creates at least one signal acquisition task; The cloud deduplicates the elements of the index array of the created signal acquisition task, specifically: Summarize the index arrays of the created signal acquisition tasks; The following formula is used to remove duplicate elements in the summarized index array: Among them, freceive[] is the index array after deduplication, and ftransform[] is the index array after aggregation. i≥0; The cloud uses ArrayContainer and Bitmap to store the deduplicated index array; The cloud sends the deduplicated index array to the vehicle end; The vehicle receives the index array sent from the cloud; The vehicle end deduplicates the elements of the received index array; The element deduplication of the received index array is specifically as follows: Summarize the received index array; The following formula is used to remove duplicate elements in the summarized index array: Among them, freceive[] is the index array after deduplication, and ftransform[] is the index array after aggregation. i≥0; The vehicle side compares the index array after element deduplication with the vehicle side array to filter out the newly added index; The vehicle side collects signal data of the newly added index and updates the vehicle side array; The vehicle-side transmits the updated signal data corresponding to the vehicle-side array back to the cloud.
Citation Information
Patent Citations
Managed vehicle data delivery
US20200090420A1