Data uploading method and device, equipment and medium

By adjusting the acquisition frequency and field digits of CAN messages and optimizing the CAN data upload process, the problem of excessive CAN data volume in the whole vehicle is solved, and the data volume is reduced and the transmission efficiency is improved. It is suitable for the Internet of Vehicles environment.

CN120474865APending Publication Date: 2025-08-12CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510776799.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

With the development of vehicle networking technology, the amount of CAN data in the whole vehicle has increased, resulting in excessive load on data acquisition, transmission and storage. The existing technology cannot effectively reduce the amount of data, affecting the data processing efficiency in actual vehicle use scenarios.

Method used

By adjusting the acquisition frequency and field digits of CAN messages, combining event triggers, speed down modules and format simplification modules, the CAN data upload process is optimized, including signal value comparison, time stamp addition, speed down and field reduction, and redundant data is reduced.

Benefits of technology

It realizes that without damaging data effectiveness, reduces data overhead by 1/3, reduces data transmission bandwidth, optimizes storage and transmission efficiency, and reduces system load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120474865A_ABST
    Figure CN120474865A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data uploading method and device, equipment and a medium. The method comprises the following steps: acquiring an original controller area network message based on an original acquisition frequency; the original controller area network message comprises a field, the field at least comprises a data segment, and the field has a corresponding digit; under the condition that the signal value of the data segment changes, adjusting the acquisition frequency of the original controller area network message to obtain a target acquisition frequency; selecting candidate controller local area network messages from the original controller local area network messages according to the target acquisition frequency; adjusting the digits of the fields of the candidate controller local area network messages to obtain a target controller local area network message; and uploading the target controller local area network message to a rear end of the Internet of Vehicles. Through the embodiment of the invention, the data format is simplified from the source end, the data sales volume is reduced, and the data transmission bandwidth can be reduced without damaging the effective content of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data uploading method, device, equipment and medium. Background Art

[0002] With the development and application of Internet of Vehicles technology in recent years, the demand, scenarios and frequency of data uploading based on the whole vehicle are getting higher and higher. In addition, as the electronic and electrical architecture of the whole vehicle becomes more and more complex, the functional design becomes more and more complex, resulting in the data type and data volume of the whole vehicle CAN (Controller Area Network) becoming larger and larger. This situation has caused great load pressure on the data acquisition end, transmission end, processing end, and back-end data storage end. At present, the industry has adopted CAN to Ethernet conversion and other methods to increase data transmission bandwidth, or delete the same data to solve such problems. However, it cannot reduce the amount of data, cannot fundamentally solve the problem of back-end data storage space, and does not fully consider the changes in CAN data under the actual vehicle usage scenario. Summary of the Invention

[0003] In view of the above problems, the present invention aims to provide a data uploading method, device, equipment and medium to solve the problem of excessive CAN data uploading load.

[0004] According to a first aspect of the present invention, a data uploading method is provided, which is applied to a vehicle-mounted remote communication terminal. The method comprises: Acquire an original controller area network message based on the original acquisition frequency; the original controller area network message includes a field, the field includes at least a data segment, and the field has a corresponding number of bits; When the signal value of the data segment changes, adjusting the acquisition frequency of the original controller area network message to obtain a target acquisition frequency; selecting candidate CAN messages from the original CAN messages according to the target acquisition frequency; Adjusting the number of bits of the fields of the candidate Controller Area Network message to obtain a target Controller Area Network message; The target controller LAN message is uploaded to the Internet of Vehicles backend.

[0005] Optionally, when the signal value of the data segment changes, adjusting the acquisition frequency of the original controller area network message to obtain a target acquisition frequency includes: Parsing the data segment to obtain a signal value corresponding to the data segment; For each of the original CAN messages, obtaining a historical signal value of the data segment; comparing the signal value of the data segment with the historical signal value; In the case where the signal value is the same as the historical signal value, it is determined that the signal value of the data segment has not changed; If the signal value is different from the historical signal value, it is determined that the signal value of the data segment has changed; If the signal value of the data segment does not change, discard the original controller area network message; adding a timestamp to the original CAN message when a signal value of the data segment changes; The acquisition frequency of the original controller area network message is adjusted to obtain a target acquisition frequency.

[0006] Optionally, adjusting the acquisition frequency of the original controller area network message to obtain a target acquisition frequency includes: Obtaining preset primary speed reduction rules and allocation ratio parameters; the allocation ratio parameters are dynamically adjusted according to network conditions and system load; reducing the acquisition frequency of the original controller local area network message according to the primary speed reduction rule to obtain a primary acquisition frequency; The primary acquisition frequency of the original controller area network message is reduced according to the allocation ratio parameter to obtain a target acquisition frequency.

[0007] Optionally, selecting a candidate CAN message from the original CAN message according to the target acquisition frequency includes: Selecting initial CAN messages from the original CAN messages; the number of the initial CAN messages is determined by a primary collection frequency; Select candidate CAN messages from the initial CAN messages; the number of the candidate CAN messages is determined by a target collection frequency.

[0008] Optionally, the fields of the original CAN message further include a frame start, an arbitration segment, an extension field, a control segment, a cyclic check segment, an acknowledgment segment, and a frame end; The step of adjusting the number of bits of a field of the candidate Controller Area Network message to obtain a target Controller Area Network message includes: Get the preset reduction rules; The number of bits of multiple fields of the candidate CAN message is adjusted according to the reduction rule.

[0009] Optionally, the extension field includes a basic identifier and an extension identifier; The adjusting the number of bits of multiple fields of the candidate controller area network message according to the reduction rule includes: retaining the number of bits of the frame start, the data segment, the cyclic check segment, the confirmation segment, and the basic identifier; The arbitration segment, the control segment, the end of frame, and the number of bits of the extension identifier are cancelled.

[0010] Optionally, uploading the target controller local area network message to the Internet of Vehicles backend includes: Adding a delay parameter to the target controller local area network message; the delay parameter is used to control the rate at which the target controller local area network message is compressed and packaged; compressing and packaging the target controller local area network message according to the delay parameter; Upload the compressed and packaged target controller LAN message to the Internet of Vehicles backend.

[0011] According to a second aspect of the present invention, there is further provided a data uploading device, the device comprising: A data receiving module, configured to obtain an original controller area network message based on an original acquisition frequency; the original controller area network message includes a field, the field includes at least a data segment, and the field has a corresponding number of bits; an adjustment module, configured to adjust the acquisition frequency of the original controller area network message to obtain a target acquisition frequency when the signal value of the data segment changes; a selection module, configured to select candidate CAN messages from the original CAN messages according to the target collection frequency; a target Controller Area Network message acquisition module, configured to adjust the number of bits of the fields of the candidate Controller Area Network message to obtain a target Controller Area Network message; The data upload module is used to upload the target controller LAN message to the Internet of Vehicles backend.

[0012] According to a third aspect of the present invention, an electronic device is also provided, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the data uploading method described above when executed by the processor.

[0013] According to a fourth aspect of the present invention, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the data uploading method described above is implemented.

[0014] The data upload method provided by the embodiment of the present invention obtains the original Controller Area Network (CAN) message based on the original acquisition frequency; the original CAN message includes fields, each field including at least a data segment, and each field has a corresponding number of bits; when the signal value of the data segment changes, the acquisition frequency of the original CAN message is adjusted to obtain a target acquisition frequency; a candidate CAN message is selected from the original CAN message based on the target acquisition frequency; the number of bits of the fields of the candidate CAN message is adjusted to obtain a target CAN message; and the target CAN message is uploaded to the back end of the Internet of Vehicles. The embodiment of the present invention simplifies the data format at the source end and fully utilizes the characteristics of the CAN data structure. A large amount of fixed-format content contained in the actual structure that is irrelevant to the information content itself can be simplified and discarded, which is expected to reduce data overhead by 1 / 3. In addition, by reducing the CAN message frequency strategy, the data transmission bandwidth can be reduced without damaging the data validity content.

[0015] In addition, by utilizing the existing hardware and background configuration parameters of the vehicle's TBOX, there is no need to add a separate protocol conversion chip, which does not increase separate costs and has high feasibility.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings: Figure 1 This is a flowchart of a data uploading method provided by one embodiment of the present invention; Figure 2 This is a data processing flow chart provided by one embodiment of the present invention; Figure 3 It is a structural diagram of a data uploading device provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, each embodiment of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present invention, many technical details are provided to enable the reader to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present invention can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with each other and referenced to each other under the premise that there is no contradiction.

[0019] A vehicle-mounted TBOX (Telematics Box), or in-vehicle remote communication terminal, is a communication device used to connect the vehicle to external networks (such as cloud platforms and mobile networks). It uses built-in communication modules (such as 4G / 5G (The 4th Generation mobile communication technology, The 5th Generation mobile communication technology, The 5th Generation mobile communication technology, The 5th Generation mobile communication technology, The 5th Generation mobile communication technology), GPS (Global Positioning System, Global Positioning System), Bluetooth, etc.) to collect, transmit, and remotely control vehicle data.

[0020] In this application, software modules are integrated into the vehicle-mounted TBOX, which can be divided into event triggers, speed reduction modules, format simplification modules, and file processing modules according to their functions.

[0021] Reference Figure 1 , shows a flowchart of a data uploading method provided by an embodiment of the present invention, which may specifically include the following steps: Step 101: Acquire an original Controller Area Network message based on an original acquisition frequency; the original Controller Area Network message includes fields, the fields at least include a data segment, and the fields have a corresponding number of bits.

[0022] Raw Controller Area Network (CAN) messages, or raw CAN messages (CAN data), are collected via the CAN bus at a preset acquisition frequency. These messages contain several key information fields, each with a fixed number of bits. For example, the data segment (data field) contains the actual transmitted data and is 0 to 8 bytes long, or 64 bits.

[0023] The collected raw CAN messages are first processed by the event trigger in the vehicle's TBOX. The event trigger receives the vehicle's CAN data, parses the messages using the DBC (Database CAN) file, and decides whether to pass the data to subsequent modules based on changes in the data segment.

[0024] A DBC file, or message parsing file, is a file format used to describe the CAN bus communication protocol. It defines the CAN message frame structure, signal definitions, signal parsing rules, and the relationship between messages and signals, and is used to parse and generate CAN messages.

[0025] Step 102 : When the signal value of the data segment changes, the acquisition frequency of the original CAN message is adjusted to obtain a target acquisition frequency.

[0026] After receiving raw CAN messages, the on-board TBOX's event trigger uses the DBC file to perform a preliminary screening of the raw CAN messages. Specifically, the DBC file parses the data segments in the raw CAN messages and converts them into readable signal values (such as vehicle speed, temperature, and voltage). The DBC file then caches each raw CAN message's signal value, records the previous signal value, and compares the current value with the previous signal value to determine whether the data segment has changed. Raw CAN messages with unchanged data segments are discarded.

[0027] The data after the event trigger is deleted, that is, the original CAN message with a changed data segment is given to the deceleration module of the on-board TBOX. The deceleration module decelerates the deleted original CAN message according to the set deceleration rules, that is, adjusts the acquisition frequency according to the preset deceleration rules. The reduced acquisition rate does not apply to CAN bus message acquisition, and the CAN bus's acquisition frequency remains unchanged. The deceleration module decelerates the selected messages, retaining only a portion of the selected messages and discarding the remaining messages. For example, if the selected messages were originally 100 per second, the deceleration will only retain 50 per second and discard 50.

[0028] The speed reduction module can reduce the amount of data and optimize system performance and network transmission efficiency, adapting to changes in network or system load.

[0029] Step 103 : Select candidate CAN messages from the original CAN messages according to the target collection frequency.

[0030] After adjusting the acquisition frequency of the original controller area network message, the original CAN message after the event trigger is filtered out is further filtered out according to the adjusted target acquisition frequency, that is, only a part of the message is retained and the redundant messages are discarded to obtain the candidate CAN message.

[0031] For example, assuming that the CAN bus collects raw CAN messages at a frequency of 100 CAN messages per second, and filters out messages with changed data segments, assuming that there are still 100 messages per second after deletion, the deleted messages are decelerated to 50 CAN messages per second, that is, only 50 CAN messages are retained per second and 50 are discarded. Then, the candidate CAN messages after deceleration (50 per second) can be passed to subsequent modules for processing.

[0032] Step 104: Adjust the number of bits of the fields of the candidate LAN message to obtain a target LAN message.

[0033] After further screening by the speed reduction module, candidate CAN messages can be obtained. The candidate CAN messages are given to the format simplification module, which simplifies the number of bits of multiple fields of the candidate CAN messages according to the set reduction rules (format simplification rules). For example, redundant fields (such as arbitration segment, control segment, EOF (End of Frame)) are eliminated, and key fields (such as data segment, CRC (Cyclic Redundancy Check Field, cyclic check) segment, ACK (Acknowledge Field, confirmation segment) segment) are retained to obtain the target CAN message.

[0034] The format simplification module can significantly reduce message length and optimize storage and transmission efficiency.

[0035] Step 105: Upload the target controller local area network message to the Internet of Vehicles backend.

[0036] The target CAN message processed by the event trigger, speed reduction module and format simplification module is given to the file processing module for compression and packaging, and then the compressed and packaged target CAN message is sent to the Internet of Vehicles backend. The Internet of Vehicles backend decompresses and packages the target CAN message processed by the received on-board TBOX to achieve efficient and reliable CAN data collection, processing and upload.

[0037] In an embodiment of the present invention, an original CAN message is obtained based on an original acquisition frequency; the original CAN message includes fields, each field including at least a data segment, each field having a corresponding number of bits; when the signal value of the data segment changes, the acquisition frequency of the original CAN message is adjusted to obtain a target acquisition frequency; a candidate CAN message is selected from the original CAN message based on the target acquisition frequency; the number of bits of the fields of the candidate CAN message is adjusted to obtain a target CAN message; and the target CAN message is uploaded to the backend of the Internet of Vehicles. The embodiment of the present invention streamlines the data format at the source end and fully utilizes the characteristics of the CAN data structure. A large amount of fixed-format content contained in the actual structure that is irrelevant to the information content itself can be simplified and discarded, which is expected to reduce data overhead by 1 / 3. In addition, by reducing the CAN message frequency, the data transmission bandwidth can be reduced without compromising the validity of the data content. Furthermore, the embodiment utilizes the existing vehicle TBOX hardware and backend configuration parameters, does not require the addition of a separate protocol conversion chip, and does not increase separate costs, making it highly feasible.

[0038] In an optional embodiment of the present invention, step 102 further includes the following steps: S1021: parse the data segment to obtain a signal value corresponding to the data segment.

[0039] Use the DBC file to parse the data segment of the original CAN message to obtain readable signal values.

[0040] The DBC file contains the following key information: Message definition: message ID (Identification), length, sending node, etc. Signal definition: signal name, start bit, length, data type (such as unsigned integer, signed integer, floating point number, etc.), scaling factor, offset, unit, etc.; The mapping relationship between signals and messages: the specific location and parsing rules of each signal in the data segment.

[0041] Parsing process: Receive a raw CAN message from the CAN bus, including information such as the ID, data segment, and timestamp. Based on the message ID, search the DBC file for the corresponding message definition and extract the data field from the CAN message. The data field is 0 to 8 bytes (64 bits) long. Based on the signal definition in the DBC file, the specific signal value is extracted from the data field. The start bit and length determine the signal's position within the data field. The data type determines the signal parsing method (e.g., unsigned integer, signed integer, floating point, etc.). The scaling factor and offset convert the raw value to an actual physical value. The unit adds a unit (e.g., km / h, °C, etc.) to the signal value.

[0042] For example, assume that a CAN message is defined in the DBC file: ID: 0x100 Data segment length: 8 bytes Signal definition: Signal 1: Vehicle speed (Speed), start bit 0, length 16, data type: unsigned integer, scaling factor: 0.1, offset: 0, unit: km / h; Signal 2: Engine speed (RPM), start bit 16, length 16, data type: unsigned integer, scaling factor: 1, offset: 0, unit: rpm.

[0043] A raw CAN message is received as follows: ID: 0x100 Data segment: 0x12 0x34 0x56 0x78 0x9A 0xBC 0xDE 0xF0 First, extract the data segment 0x12 0x34 0x56 0x78 0x9A 0xBC 0xDE 0xF0, and then parse the vehicle speed signal: Start bit: 0, length: 16; Extracted data: 0x12 0x34 (16 bits); Original value: 0x1234 (decimal: 4660); Actual value: 4660 * 0.1 = 466.0 km / h.

[0044] Analyzing the engine speed signal: Start bit: 16, length: 16; Extracted data: 0x56 0x78 (16 bits); Original value: 0x5678 (decimal: 22136); Actual value: 22136 * 1 = 22136 rpm.

[0045] S1022, for each of the original CAN messages, obtaining a historical signal value of the data segment; S1023, comparing the signal value of the data segment with the historical signal value; S1024, when the signal value is the same as the historical signal value, determining that the signal value of the data segment has not changed; S1024, when the signal value is different from the historical signal value, determining that the signal value of the data segment has changed; S1025: If the signal value of the data segment does not change, discard the original CAN message; S1026, adding a timestamp to the original CAN message when the signal value of the data segment changes; S1026: Adjust the acquisition frequency of the original controller area network message to obtain a target acquisition frequency.

[0046] The signal value of each original CAN message is cached, and then the last recorded signal value is obtained. The current value is compared with the last signal value. If the two are the same, it means that the data segment has not changed, and this part of the original CAN message is discarded; if the two are different, it means that the data segment has changed. The changed original CAN message is timestamped and sent to the deceleration module of the on-board TBOX for deceleration. That is, only a part of the selected messages is retained and the redundant original CAN messages are discarded.

[0047] In an optional embodiment of the present invention, S1026 further includes the following sub-steps: S1026-1, obtaining a preset primary speed reduction rule and a modulation ratio parameter; the modulation ratio parameter is dynamically adjusted according to network conditions and system load; S1026-2, reducing the acquisition frequency of the original controller area network message according to the primary speed reduction rule to obtain a primary acquisition frequency; S1026-2: Reduce the primary acquisition frequency of the original controller area network message according to the allocation ratio parameter to obtain a target acquisition frequency.

[0048] The scaling parameters can be configured in the cloud and can be adjusted dynamically based on network conditions and system load. For example, if the system load is high and you need to reduce the acquisition frequency to reduce processing pressure, you can lower the scaling parameters.

[0049] The primary speed reduction rules are shown in Table 1:

[0050] Table 1 Where HZ is the unit of frequency, indicating the number of cycles or events per second. 100 HZ means 100 CAN messages are collected per second. The original rate is the original collection frequency, and the primary rate is the reduced primary collection frequency.

[0051] Continuing to reduce the primary acquisition frequency according to the allocation ratio parameter can be recorded as the second-level reduction. The target acquisition frequency after the second-level reduction can be recorded as the second-level rate, where the second-level rate = primary rate * allocation ratio parameter. Taking the allocation ratio parameter as 1 as an example, the second-level rate is shown in Table 2:

[0052] Table 2 In an optional embodiment of the present invention, step 103 further includes the following sub-steps: S1031, selecting initial Controller Area Network messages from the original Controller Area Network messages; the number of the initial Controller Area Network messages is determined by a primary collection frequency; S1032: Select candidate CAN messages from the initial CAN messages; the number of the candidate CAN messages is determined by a target collection frequency.

[0053] If the original rate of the CAN bus collecting original CAN messages is 100HZ, that is, 100 CAN messages per second, after the messages with changed data segments are deleted through the event trigger, assuming that there are still 100 messages per second after deletion, the deleted messages will be decelerated according to the deceleration rule, and the primary rate will be 50HZ, that is, 50 CAN messages per second. At this time, only 50 CAN messages are retained per second, and 50 are discarded. Then the primary rate is further decelerated. At this time, the allocation ratio parameter is 1, and the secondary rate (target acquisition frequency) after deceleration is still 50HZ. Since there is no change, the message is not discarded at this time. Finally, after two decelerations, the candidate CAN message (50 per second) can be obtained.

[0054] In an optional embodiment of the present invention, step 104 further includes the following sub-steps: S1041, obtaining a preset reduction rule; S1042: Adjust the number of bits of multiple fields of the candidate CAN message according to the reduction rule.

[0055] CAN messages usually include the following key fields: Start of Frame (SOF): 1 dominant bit, marking the beginning of the CAN message; Arbitration Field: 11 bits, including the identifier (ID) and remote transmission request bit (RTR), used to determine the priority of the message; Control Field: 6 bits, including the Data Length Code (DLC), which indicates the number of bytes in the data segment; Data Field: Contains the actual transmitted data, with a length of 0 to 8 bytes; CRC segment (Cyclic Redundancy Check Field): includes a 15-bit cyclic check sequence and a 1-bit delimiter, used to verify data integrity. ACK segment (Acknowledge Field): includes an acknowledgement bit (1 bit) and a delimiter (1 bit), used to confirm whether the message was successfully received; End of Frame (EOF): 7 invisible bits, marking the end of the CAN message.

[0056] Extension field: A key part used to support the Extended Frame Format, including the Base Identifier and the Extended Identifier.

[0057] The main function of the extension field is to extend the identifier (ID) length of the CAN message, enabling it to support more message IDs and meet the needs of complex networks. CAN messages have two different formats: standard frame and extended frame. The ID length of the standard frame is 11 bits, while the extended frame uses the extension field to extend the ID length to 29 bits (11-bit basic ID + 18-bit extended ID), thereby supporting more message IDs.

[0058] The preset reduction rules are shown in Table 3:

[0059] Table 3 After obtaining the preset reduction rules, the number of bits in various fields of the candidate CAN message is retained or removed accordingly, significantly reducing the message length and optimizing storage and transmission efficiency. The simplified message is more suitable for use in resource-constrained in-vehicle environments while preserving data integrity and reliability.

[0060] In an optional embodiment of the present invention, S1042 further includes the following sub-steps: S1042-1, retain the number of bits of the frame start, the data segment, the cyclic check segment, the confirmation segment, and the basic identifier; S1042-2, cancel the arbitration segment, the control segment, the frame end, and the number of bits of the extended identifier.

[0061] The fields of the candidate CAN message are simplified according to the preset reduction rules. After simplification, only the following fields are retained in the candidate CAN message: Start of frame (SOF): 1 dominant bit; Basic ID: 11 digits (extension ID discarded); Data segment: 64 bits (8 bytes); CRC segment: 16 bits; ACK segment: 2 recessive bits.

[0062] The total length of the simplified message is: 1 (SOF) + 11 (ID) + 64 (data segment) + 16 (CRC) + 2 (ACK) = 94 bits (approximately 11.75 bytes). By eliminating redundant fields (such as the arbitration segment, control segment, and EOF), the message length is significantly reduced. The simplified message is smaller, suitable for storage and network transmission, saving resources. The data segment, CRC segment, and ACK segment are retained, ensuring data integrity and reliability.

[0063] In an optional embodiment of the present invention, step 105 further includes the following sub-steps: S1051, adding a delay parameter to the target controller area network message; the delay parameter is used to control the rate at which the target controller area network message is compressed and packaged; S1052, compressing and packaging the target controller local area network message according to the delay parameter; S1053: Upload the compressed and packaged target controller LAN message to the Internet of Vehicles backend.

[0064] After receiving the simplified target CAN message, the file processing module of the on-board TBOX first adds a delay parameter (the delay parameter is between 2ms and 10ms, depending on the computing power of the CAN message processing).

[0065] The role of the delay parameter in the file processing module is to control the rhythm of data processing. The main purpose is to introduce a certain delay in the data processing process to ensure that the module can run stably under high load or resource constraints, while balancing data processing efficiency and system resource usage.

[0066] The delay parameter is based on the processing time of the CAN message from the original CAN message to the target CAN message. Assuming that it takes 2ms from the acquisition of the original CAN message to its deselection, deceleration, and simplification, a delay parameter of 2ms is added to the target CAN message.

[0067] Then, a suitable compression algorithm can be selected to compress the target CAN message, and the compressed target CAN message is packaged into a file and sent to the IoV backend. The IoV backend performs the corresponding decompression and packaging after receiving the file processed by the vehicle-side TBOX.

[0068] Through the above-mentioned embodiments of the invention, TBOX can realize efficient and reliable CAN data collection, packaging and uploading without adding a separate protocol conversion chip and increasing separate costs, and has high feasibility; and it streamlines the data format from the source end, making full use of the characteristics of the CAN data structure. A large amount of fixed-format content contained in the actual structure that is irrelevant to the information content itself can be simplified and discarded. In addition, by reducing the frequency of CAN messages, the data transmission bandwidth can be reduced without damaging the data validity content.

[0069] Reference Figure 2 , shows a data processing flow chart provided by an embodiment of the present invention, which is as follows: The vehicle-side on-board TBOX obtains the CAN data of the entire vehicle network segment from the vehicle's CAN bus, that is, the original data (original CAN message), and first gives the original data to the event trigger. The event trigger uses the DBC file to parse the original data and extract the specific signal value to perform preliminary screening of the original data and detect whether the data segment has changed. If the data segment has changed, the data is timestamped.

[0070] The data, filtered by event triggers, is then passed to the speed reduction module and format simplification module. These modules perform speed reduction processing on the parsed data, reducing the frequency of data collection and simplifying the format of the slowed data, eliminating redundant fields and reducing the data volume. The speed reduction strategy includes primary and secondary speed reduction, and the specific speed reduction rules are dynamically adjusted based on the cloud configuration.

[0071] The slowed-down and simplified data is then fed to the file processing module, which adds a delay parameter (2ms to 10ms) to the data to control the data processing rhythm. The simplified data is then compressed and packaged, and the packaged data is uploaded to the cloud (the backend of the Internet of Vehicles). The cloud decompresses and unpacks the received data, restoring it to its original format, and stores the decompressed data on the cloud server for subsequent analysis and use.

[0072] Reference Figure 3 , shows a schematic structural diagram of a data uploading device provided by an embodiment of the present invention, the device comprising: The data receiving module 201 is configured to obtain an original CAN message based on an original acquisition frequency; the original CAN message includes fields, the fields include at least a data segment, and the fields have corresponding number of bits; An adjustment module 202 is configured to adjust the acquisition frequency of the original CAN message to obtain a target acquisition frequency when the signal value of the data segment changes; A selection module 203 is configured to select candidate CAN messages from the original CAN messages according to the target collection frequency; a target LAN message acquisition module 204, configured to adjust the number of bits of the candidate LAN message field to obtain a target LAN message; The data uploading module 205 is used to upload the target controller local area network message to the Internet of Vehicles backend.

[0073] In an optional embodiment of the present invention, the adjustment module 202 includes: An analysis module, configured to analyze the data segment to obtain a signal value corresponding to the data segment; a historical signal value acquisition module, configured to acquire a historical signal value of the data segment for each of the original controller area network messages; a comparison module, configured to compare the signal value of the data segment with the historical signal value; a first judgment module, configured to determine that the signal value of the data segment has not changed if the signal value is the same as the historical signal value; a second judgment module, configured to determine that the signal value of the data segment has changed if the signal value is different from the historical signal value; a discarding module, configured to discard the original controller area network message if the signal value of the data segment does not change; a timestamp adding module, configured to add a timestamp to the original CAN message when a signal value of the data segment changes; The acquisition frequency adjustment module is used to adjust the acquisition frequency of the original controller local area network message to obtain a target acquisition frequency.

[0074] In an optional embodiment of the present invention, the acquisition frequency adjustment module further includes: A speed reduction rule acquisition module is used to obtain preset primary speed reduction rules and allocation ratio parameters; the allocation ratio parameters are dynamically adjusted according to network conditions and system load; a first speed reduction module, configured to reduce the acquisition frequency of the original controller local area network message according to the primary speed reduction rule to obtain a primary acquisition frequency; The second speed reduction module is configured to reduce the primary acquisition frequency of the original controller local area network message according to the adjustment ratio parameter to obtain a target acquisition frequency.

[0075] In an optional embodiment of the present invention, the selection module 203 includes: A first selection module is configured to select initial Controller Area Network messages from the original Controller Area Network messages; the number of the initial Controller Area Network messages is determined by a primary collection frequency; The second selection module is configured to select candidate Controller Area Network messages from the initial Controller Area Network messages; the number of the candidate Controller Area Network messages is determined by a target collection frequency.

[0076] In an optional embodiment of the present invention, the fields of the original CAN message further include a start of frame, an arbitration segment, an extension field, a control segment, a cyclic check segment, an acknowledgment segment, and an end of frame; and the target CAN message acquisition module 204 includes: A reduction rule acquisition module is used to obtain preset reduction rules; The field adjustment module is used to adjust the number of bits of multiple fields of the candidate controller area network message according to the reduction rule.

[0077] In an optional embodiment of the present invention, the extended field includes a basic identifier and an extended identifier; the field adjustment module includes: A reservation module, configured to reserve the number of bits of the frame start, the data segment, the cyclic check segment, the confirmation segment, and the basic identifier; The cancellation module is used to cancel the arbitration segment, the control segment, the frame end, and the number of bits of the extension identifier.

[0078] In an optional embodiment of the present invention, the data uploading module 205 includes: A delay parameter acquisition module, configured to add a delay parameter to the target controller LAN message; the delay parameter is used to control the rate at which the target controller LAN message is compressed and packaged; A compression and packaging module, configured to compress and package the target controller LAN message according to the delay parameter; The upload module is used to upload the compressed and packaged target controller LAN message to the Internet of Vehicles backend.

[0079] In an embodiment of the present invention, an original CAN message is obtained based on an original acquisition frequency; the original CAN message includes fields, each field including at least a data segment, each field having a corresponding number of bits; when the signal value of the data segment changes, the acquisition frequency of the original CAN message is adjusted to obtain a target acquisition frequency; a candidate CAN message is selected from the original CAN message based on the target acquisition frequency; the number of bits of the fields of the candidate CAN message is adjusted to obtain a target CAN message; and the target CAN message is uploaded to the backend of the Internet of Vehicles. The embodiment of the present invention streamlines the data format at the source end and fully utilizes the characteristics of the CAN data structure. A large amount of fixed-format content contained in the actual structure that is irrelevant to the information content itself can be simplified and discarded, which is expected to reduce data overhead by 1 / 3. In addition, by reducing the CAN message frequency, the data transmission bandwidth can be reduced without compromising the validity of the data content. Furthermore, the embodiment utilizes the existing vehicle TBOX hardware and backend configuration parameters, does not require the addition of a separate protocol conversion chip, and does not increase separate costs, making it highly feasible.

[0080] An embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the data uploading method described above when executed by the processor.

[0081] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0082] The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0083] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data uploading method described above is implemented.

[0084] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0085] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in accordance with the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid-state disk (SSD)).

[0086] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0087] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.

[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are included in the scope of protection of the present invention.

Claims

1. A data uploading method, applied to a vehicle-mounted remote communication terminal, characterized in that: The method comprises: Acquire an original controller area network message based on the original acquisition frequency; the original controller area network message includes a field, the field includes at least a data segment, and the field has a corresponding number of bits; When the signal value of the data segment changes, adjusting the acquisition frequency of the original controller area network message to obtain a target acquisition frequency; selecting candidate CAN messages from the original CAN messages according to the target collection frequency; Adjusting the number of bits of the fields of the candidate Controller Area Network message to obtain a target Controller Area Network message; The target controller LAN message is uploaded to the Internet of Vehicles backend.

2. The method according to claim 1, characterized in that When the signal value of the data segment changes, adjusting the acquisition frequency of the original controller area network message to obtain a target acquisition frequency includes: Parsing the data segment to obtain a signal value corresponding to the data segment; For each of the original CAN messages, obtaining a historical signal value of the data segment; comparing the signal value of the data segment with the historical signal value; In the case where the signal value is the same as the historical signal value, it is determined that the signal value of the data segment has not changed; If the signal value is different from the historical signal value, it is determined that the signal value of the data segment has changed; If the signal value of the data segment does not change, discard the original controller area network message; adding a timestamp to the original CAN message when a signal value of the data segment changes; The acquisition frequency of the original controller area network message is adjusted to obtain a target acquisition frequency.

3. The method according to claim 2, characterized in that The adjusting the acquisition frequency of the original controller local area network message to obtain a target acquisition frequency includes: Obtaining preset primary speed reduction rules and allocation ratio parameters; the allocation ratio parameters are dynamically adjusted according to network conditions and system load; reducing the acquisition frequency of the original controller local area network message according to the primary speed reduction rule to obtain a primary acquisition frequency; The primary acquisition frequency of the original controller area network message is reduced according to the allocation ratio parameter to obtain a target acquisition frequency.

4. The method according to claim 1 or 3, characterized in that The selecting a candidate CAN message from the original CAN message according to the target acquisition frequency includes: Selecting initial CAN messages from the original CAN messages; the number of the initial CAN messages is determined by a primary collection frequency; Select candidate CAN messages from the initial CAN messages; the number of the candidate CAN messages is determined by a target collection frequency.

5. The method according to claim 1, wherein The fields of the original CAN message also include a frame start, an arbitration segment, an extension field, a control segment, a cyclic check segment, an acknowledgment segment, and a frame end; The step of adjusting the number of bits of a field of the candidate Controller Area Network message to obtain a target Controller Area Network message includes: Get the preset reduction rules; The number of bits of multiple fields of the candidate CAN message is adjusted according to the reduction rule.

6. The method according to claim 5, characterized in that The extension field includes a basic identifier and an extension identifier; The adjusting the number of bits of multiple fields of the candidate controller area network message according to the reduction rule includes: retaining the number of bits of the frame start, the data segment, the cyclic check segment, the confirmation segment, and the basic identifier; The arbitration segment, the control segment, the end of frame, and the number of bits of the extension identifier are cancelled.

7. The method according to claim 1, characterized in that The uploading of the target controller local area network message to the Internet of Vehicles backend includes: Adding a delay parameter to the target controller local area network message; the delay parameter is used to control the rate at which the target controller local area network message is compressed and packaged; compressing and packaging the target controller local area network message according to the delay parameter; Upload the compressed and packaged target controller LAN message to the Internet of Vehicles backend.

8. A data uploading device, characterized in that: The device comprises: A data receiving module, configured to obtain an original controller area network message based on an original acquisition frequency; the original controller area network message includes a field, the field includes at least a data segment, and the field has a corresponding number of bits; an adjustment module, configured to adjust the acquisition frequency of the original controller area network message to obtain a target acquisition frequency when the signal value of the data segment changes; a selection module, configured to select candidate CAN messages from the original CAN messages according to the target collection frequency; a target Controller Area Network message acquisition module, configured to adjust the number of bits of the fields of the candidate Controller Area Network message to obtain a target Controller Area Network message; The data upload module is used to upload the target controller LAN message to the Internet of Vehicles backend.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for uploading data according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data uploading method according to any one of claims 1 to 7 is implemented.