Vehicle data processing method and device, computer equipment and storage medium

By receiving and processing messages of vehicle data in the data forwarding module, determining and applying corresponding processing rules, the increased information security risks of T-BOX are solved, and the secure and efficient transmission of vehicle data is achieved.

CN119921985APending Publication Date: 2025-05-02CHONGQING RUICHI AUTOMOBILE IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411940795.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

During the vehicle troubleshooting process, T-BOX, as an independent data processing terminal, increases the risk of illegal access or attack in the vehicle driving system, and information security is not guaranteed.

Method used

By receiving messages containing vehicle data in the data forwarding module with isolation function, determining processing rules corresponding to their types, and processing and forwarding messages based on these rules, the secure transmission of vehicle data is realized.

Benefits of technology

It effectively ensures the security of in-vehicle information, realizes efficient and low-latency transmission of vehicle data, and meets the needs of vehicle diagnosis and other needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119921985A_ABST
    Figure CN119921985A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle data processing method and device, computer equipment and a storage medium, which are used for improving the information security of a vehicle. The method is applied to a data forwarding module with an isolation function. The method comprises the following steps: receiving a first message containing vehicle data; determining a first processing rule corresponding to the type of the first message; and processing the first message based on the first processing rule to obtain a second message in a target form, and forwarding the second message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] When troubleshooting vehicle failures, it is generally necessary to combine the data of the entire vehicle in order to analyze the status of various components and devices in the vehicle when the failure occurred. Relying on the powerful data collection and transmission capabilities of T-BOX (Telematics BOX, remote information processing terminal), when collecting vehicle data, T-BOX is usually directly connected to each network segment in the vehicle to collect and upload the data of each network segment as vehicle data. However, because T-BOX itself is an independent data processing terminal from the entire vehicle and can directly interact with external terminals, this increases the risk of illegal access or attack to the in-vehicle driving system; information security cannot be guaranteed. Summary of the invention

[0003] Based on this, in order to improve the information security of vehicle data, a vehicle data processing method, device, computer equipment and storage medium are provided.

[0004] In a first aspect, an embodiment of the present application provides a method for processing vehicle data, which is applied to a data forwarding module with an isolation function, and the method includes:

[0005] receiving a first message containing vehicle data;

[0006] Determining a first processing rule corresponding to the type of the first message;

[0007] The first message is processed based on the first processing rule to obtain a second message in a target format, and the second message is forwarded.

[0008] In one embodiment, the data forwarding module with isolation function is a gateway; or,

[0009] The data forwarding module with isolation function is a switch.

[0010] In one embodiment, determining a first processing rule corresponding to the type of the first message includes:

[0011] Obtaining a preset routing table; wherein the preset routing table includes a target type of the target message and a second processing rule corresponding to the target type;

[0012] By matching the type of the first message with the target type, a target message is selected from the first message; then the second processing rule corresponding to the type of the target message is the first processing rule.

[0013] In one embodiment, forwarding the second message includes:

[0014] Based on the preset routing table, the second message is sent to the T-BOX, so that the target data in the second message is uploaded to the cloud through the T-BOX.

[0015] In one embodiment, forwarding the second message includes:

[0016] In response to receiving the request message, determining whether to perform access authentication on the collection device; wherein the request message includes request information of the collection device;

[0017] If yes, perform OBD interface access authentication on the acquisition device;

[0018] In response to the acquisition device being authenticated through the OBD interface access, the second message is mirrored to the acquisition device.

[0019] In one embodiment, the determining a first processing rule corresponding to the type of the first message includes:

[0020] In response to the type of the first message being a periodic message, determining that the first processing rule is a first sub-rule;

[0021] Then the step of processing the first message based on the first processing rule to obtain a second message in a target format includes:

[0022] Determine a maximum length of the second message based on the first sub-rule;

[0023] Determine a quantity threshold of the first message based on the length of the second message;

[0024] Based on the quantity threshold, the first messages are concatenated in order of time of the first messages to obtain the second messages; wherein the number of the first messages in the second messages is less than or equal to the quantity threshold.

[0025] In one embodiment, the step of splicing the first messages based on the quantity threshold and in order of time of the first messages to obtain the second messages includes:

[0026] Reading an identifier corresponding to the type of the first message at a preset position of the first message;

[0027] For the cached first messages, the first messages with the same identifier are concatenated to obtain the second message.

[0028] In one embodiment, the determining a first processing rule corresponding to the type of the first message includes:

[0029] In response to the type of the first message being a network management message, determining the first processing rule to process the first message based on a preset second sub-rule;

[0030] Then the step of processing the first message based on the first processing rule to obtain a second message in a target format includes:

[0031] Based on the second sub-rule, the first identifier of the first message is modified to obtain a second identifier, and a second message containing the second identifier is determined; wherein the first identifier corresponds to the network activity indicated by the network management message.

[0032] In a second aspect, an embodiment of the present application provides a vehicle data processing device, which is applied to a data forwarding module with an isolation function, and the device includes:

[0033] A receiving unit, configured to receive a first message containing vehicle data;

[0034] A rule unit, configured to determine a first processing rule corresponding to the type of the first message;

[0035] A forwarding unit is used to process the first message based on the first processing rule to obtain a second message in a target format.

[0036] In one embodiment, the data forwarding module with isolation function is a gateway; or, the data forwarding module with isolation function is a switch.

[0037] In one embodiment, the rule unit is specifically used to obtain a preset routing table; wherein the preset routing table includes a target type of a target message and a second processing rule corresponding to the target type; by matching the type of the first message with the target type, a target message is selected from the first message; then the second processing rule corresponding to the type of the target message is the first processing rule.

[0038] In one of the embodiments, the forwarding unit is specifically configured to send the second message to the T-BOX based on the preset routing table, so as to upload the target data in the second message to the cloud through the T-BOX.

[0039] In one of the embodiments, the forwarding unit is also used to determine whether to perform access authentication on the acquisition device in response to receiving a request message; wherein the request message includes request information of the acquisition device; if so, perform OBD interface access authentication on the acquisition device; in response to the acquisition device passing the OBD interface access authentication, mirror the second message to the acquisition device.

[0040] In one of the embodiments, the rule unit is specifically configured to determine that the first processing rule is a first sub-rule in response to the type of the first message being a periodic message;

[0041] The forwarding unit is specifically used to determine the maximum length of the second message based on the first sub-rule; determine the quantity threshold of the first message based on the length of the second message; based on the quantity threshold, splice the first messages in the time sequence of the first messages to obtain the second message; wherein the number of the first messages in the second message is less than or equal to the quantity threshold.

[0042] In one of the embodiments, the forwarding unit is specifically used to read an identifier corresponding to the type of the first message at a preset position of the first message; for the cached first messages, the first messages with the same identifier are spliced ​​to obtain the second message.

[0043] In one embodiment, the rule unit is specifically used to determine that the first processing rule is a second sub-rule in response to the type of the first message being a network management message; the forwarding unit is specifically used to modify the first identifier of the first message based on the second sub-rule, obtain the second identifier, and determine the second message containing the second identifier; wherein the first identifier corresponds to the network activity indicated by the network management message.

[0044] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect and any possible implementation manner when executing the computer program.

[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect and any possible implementation manner are implemented.

[0046] The above-mentioned vehicle data processing method, device, computer equipment and storage medium receive messages transmitted by CAN, LIN, and CANFD buses through a data forwarding module with an isolation function, and after receiving a first message containing vehicle data, convert it into a second message in a target form and forward it, thereby forwarding vehicle data to the outside to meet vehicle diagnosis and other needs while effectively ensuring the security of in-vehicle information. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 A schematic diagram of a flow chart of a method for forwarding vehicle data in one embodiment;

[0049] Figure 2 A schematic diagram of a method for forwarding vehicle data to a collection device in one embodiment;

[0050] Figure 3 A schematic diagram of an OBD interface access authentication performed by a collection device in one embodiment;

[0051] Figure 4 A schematic diagram of the connection between a data forwarding module with an isolation function and an in-vehicle bus in one embodiment;

[0052] Figure 5 is a structural block diagram of a vehicle data forwarding device in one embodiment;

[0053] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0055] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.

[0056] To facilitate understanding of the technical solution provided by the embodiments of the present application, the following first introduces the design concept of the embodiments of the present application:

[0057] For information security, an OBD (On-Board Diagnostics) interface is usually set up in the vehicle to provide emission-related diagnostic data to the outside. When it is necessary to collect vehicle data, such as vehicle speed, the common method is to puncture the cable of the corresponding bus for collection.

[0058] To this end, an embodiment of the present application provides a vehicle data processing method, which receives a first message containing vehicle data through a data forwarding module with an isolation function connected to an in-vehicle bus, and determines a first processing rule corresponding to the type of the first message; the first message is processed accordingly and then forwarded, thereby achieving information security through the data forwarding module with an isolation function, and achieving efficient and low-latency transmission of data.

[0059] The above vehicle data may include OBD interface emission data.

[0060] The above vehicle data may also include vehicle data other than OBD interface emission data, including but not limited to vehicle speed, vehicle gear position, instrument data displayed on the dashboard inside the vehicle, etc.

[0061] It should be noted that the method provided in the embodiment of the present application is particularly suitable for vehicle data other than OBD interface emission data. While providing vehicle data to the off-vehicle terminal, information security is ensured through a data forwarding module with isolation function.

[0062] Please refer to Figure 1 The present application provides a vehicle data processing method for improving vehicle data security. The method is used for a data forwarding module with an isolation function. The method comprises the following steps:

[0063] Step 101: Receive a first message containing vehicle data

[0064] Specifically, the data forwarding module with isolation function may be a gateway or a switch.

[0065] When the data forwarding module with isolation function is a gateway, the gateway can be connected to a bus in the vehicle, which can be a CAN (Controller Area Network) and / or a LIN (Local Interconnect Network).

[0066] The gateway may receive the first message based on the CAN and / or LIN bus. The gateway may specifically support the CANFD (Controller Area Network with Flexible Data-rate) protocol.

[0067] Alternatively, the data forwarding module with isolation function is a switch, which can receive or send data transmitted by the above bus through Ethernet. Then the switch can receive the first message based on Ethernet.

[0068] It is worth noting that the data forwarding module with isolation function described in the embodiment of the present application is not directly connected to the outside, but interacts with the outside of the vehicle through a network interconnection device (for example, T-BOX).

[0069] Furthermore, the above-mentioned vehicle data may include at least one of UDS (Unified Diagnostic Services) data, sensor data and EDR (Event Data Recorder) data.

[0070] The above vehicle data may also include chassis system data, body control data, DTC (Diagnostic Trouble Code) data, and communication data between the power system and the in-vehicle control unit.

[0071] The chassis system data may be, for example, vehicle speed, wheel speed, and ABS (Anti-lock Braking System) status data.

[0072] The vehicle body control data may be, for example, adjustment data of vehicle lights, windows, seats, etc.

[0073] The communication data between the control units in the vehicle may be the communication data between the controllers such as the power system, chassis control, and body electronics.

[0074] Step 102: Determine a first processing rule corresponding to the type of the first message.

[0075] The type of the first message includes at least one of a periodic message, an event message, and a network management message.

[0076] Corresponding to the type of the first message, the first processing rule corresponds to the first message of each type.

[0077] The first processing rule includes a first sub-rule corresponding to the periodic message, a second sub-rule corresponding to the network management message, and a third sub-rule corresponding to the event message.

[0078] Step 103: Process the first message based on the first processing rule to obtain a second message in a target format, and forward the second message.

[0079] Specifically, the vehicle data in the first message is the same as the vehicle data in the second message, and the difference mainly lies in the format of the message, for example, the identifier in a preset position in the ID (Identity document) in the message header.

[0080] The target format is a message format that supports the transmission protocol between the data forwarding module with isolation function and the vehicle external interface (for example, OBD interface and / or T-BOX). The target format may be a CANFD format.

[0081] In some embodiments, the target format includes a CAN FD format.

[0082] In the above-mentioned vehicle data processing method, the first message containing vehicle data is received and processed by the gateway, and the processed second message is forwarded, thereby achieving vehicle information security; and compared with signal routing, the message routing in the embodiment of the present application can be achieved through the physical layer, data link layer and application layer without passing through the interaction layer, thereby reducing computing power and reducing the delay in forwarding vehicle data.

[0083] In one embodiment, the first sub-rule corresponding to the first message can be determined by determining the type of the first message and the preset correspondence between the type and the processing rule. Specifically, in response to the type of the first message being a periodic message, the first processing rule is determined to be the first sub-rule.

[0084] Alternatively, since the network management message affects the network activity of the target node by virtue of its unique identification and data content, the target node is a node that supports the network activity of the network management node. The network activity here may be, for example, wake-up and / or sleep.

[0085] Therefore, in order to prevent the network management message from affecting the network activities of nodes on the target network segment after being forwarded via a data forwarding module with an isolation function, in one embodiment, in response to the type of the first message being a network management message, the first processing rule is determined to be the second sub-rule; the second sub-rule indicates to modify the identifier of the message to make the data content therein invalid.

[0086] The first identifier corresponds to the network activity indicated by the network management message.

[0087] The target network segment may be a network segment between the gateway and the T-BOX (ie, the network segment where the T-BOX is located), and / or a network segment between the gateway and the OBD interface (ie, the diagnostic network segment).

[0088] Alternatively, in response to the type of the first message being an event message, the first processing rule is determined to be a third sub-rule. The third sub-rule indicates immediate forwarding, that is, no processing is performed on the first message.

[0089] Then the first processing rule includes a first sub-rule, a second sub-rule, and a third sub-rule.

[0090] In one embodiment, when the first processing rule is the first sub-rule, the length of the second message can be first determined based on the first sub-rule. Then, based on the maximum length of the second message, the quantity threshold of the first message is determined. Then, according to the quantity threshold, the cached first messages are spliced ​​in order of the time of the first messages to obtain the second message.

[0091] The number of the first message in the second message is less than or equal to the above-mentioned number threshold. The following is an example of a CAN message transmitted by a CAN bus, a data forwarding module with an isolation function as a gateway, and a second message sent by the gateway as a CANFD message:

[0092] The above CAN message cycle is 10ms, and the data length of each CAN message is 8 bytes. The CANFD message cycle is 10ms, and the data length of each CANFD message is 64 bytes.

[0093] Then the quantity threshold of the first message is 8. In this way, 8 CAN messages with a period of 10 ms can be packaged into one CAN FD message.

[0094] For example, the first CAN message in the CAN FD message has a starting byte of 0 BYTE and an ending byte of 7 BYTE. The second CAN message in the CAN FD message has a starting byte of 8 BYTE and an ending byte of 15 BYTE. Similarly, the eighth CAN message in the CAN FD message has a starting byte of 56 BYTE and an ending byte of 63 BYTE.

[0095] Furthermore, since the importance and update frequency of messages with the same purpose and / or output end are similar, the type of the first message can be classified by the purpose and / or output end of the first message, so as to group periodic messages of the same type and realize real-time forwarding of messages, thereby reducing the delay of forwarding vehicle data to T-BOX or acquisition equipment, avoiding data redundancy, and reducing bandwidth waste. Specifically, the identifier corresponding to the type of the first message can be read at the preset position of the first message. The type of the first message can be determined by the purpose and / or output end of the first message. For example, the type of the first message may include engine system data, chassis control data, battery management data, and vehicle status data. Then, in each of the above-mentioned types of first messages, one or a group of identifiers correspond to the aforementioned preset positions.

[0096] The above engine system data may include, for example, at least one of the engine speed, torque and intake pressure. The chassis control data may include, for example, at least one of the wheel speed, brake pressure, lateral acceleration and steering wheel angle. The battery management data may include, for example, at least one of the battery voltage, battery current, battery temperature, battery SOC (State of Charge) and battery SOH (State of Health). The vehicle status data may include, for example, at least one of the door status, window position, light status and wiper status.

[0097] Then, for the cached first messages, first messages with the same identifier are concatenated to obtain a second message.

[0098] In this embodiment, the sending order of the second messages may be determined according to the time of the first first message in the second messages.

[0099] In one embodiment, when the first processing rule is a second sub-rule, the first identifier of the first message may be modified based on the second sub-rule to obtain a second identifier, and the message containing the second identifier may be determined to be the second message.

[0100] For example, the first identifier "0x410" is modified to the second identifier "0x510" to obtain the second message.

[0101] In one embodiment, when the first processing rule is the third sub-rule, the third sub-rule indicates immediate forwarding, that is, the first message is not processed.

[0102] Because it is triggered irregularly and in small quantities, the first message can be directly routed to the routing address as the second message, so as to complete the reporting of related events in a timely manner.

[0103] Furthermore, before obtaining the second message, the message format needs to be converted into a message corresponding to the target network segment transmission protocol. The target network segment indicates the network segment from the data forwarding module with isolation function to the T-BOX, and the network segment from the data forwarding module with isolation function to the OBD interface.

[0104] Furthermore, the forwarding of the second message can be realized locally through the collection device. When using the collection device to collect vehicle data, it is necessary to determine whether it is through the OBD interface and whether the OBD interface access authentication has been performed. Take the data forwarding module with isolation function as an example of the gateway, please refer to Figure 2 When determining whether the OBD interface access authentication has been performed, the working mode of the gateway can be determined first. If the gateway is in engineering mode, it is determined that no authentication is required, so the second message can be directly mirrored to the acquisition device when the request message is received.

[0105] If the gateway is in client mode, it is determined to be sent through the OBD interface. It can be further determined whether the data indicated by the request message belongs to the data in the OBD interface emission list. The diagnostic data types in the OBD emission list are all listed in the OBD emission regulations.

[0106] If not, it is determined that OBD access authentication is required, and only after the authentication is passed can the data be mirrored to the acquisition device through the OBD interface. Otherwise, the gateway sends a negative response to the acquisition device.

[0107] If so, the OBD interface emission data in the second message can be directly forwarded to the collection device through the OBD interface.

[0108] It should be noted that the second message in the embodiment of the present application refers to the message sent / transmitted by the aforementioned data forwarding module with isolation function.

[0109] Furthermore, the following still takes the gateway as an example to explain the OBD interface access authentication. Please refer to Figure 3 :

[0110] First, the collection device sends an authentication request message containing a first random number to the gateway. After receiving the authentication request message, the gateway replies with a response containing a second random number to the collection device.

[0111] Then, the acquisition device concatenates the first random number and the second random number in a preset order, performs encryption processing using PKC (Private Key Component) according to CMAC (Cipher Block Chaining-Message Authentication Code, a message authentication code based on a symmetric encryption algorithm), and generates a first authentication code.

[0112] Next, the first authentication code is sent to the gateway. The gateway uses the aforementioned PKC to perform encryption processing based on the received first random number and the second random number generated by it to generate a second authentication code.

[0113] The gateway determines that the first authentication code is the same as the second authentication code, and sends the second authentication code to the collection device.

[0114] Next, after receiving the second authentication code, the acquisition device compares the second authentication code with the first authentication code. If the acquisition device also successfully compares the first authentication code with the second authentication code, it is determined that the acquisition device passes the OBD interface authentication.

[0115] Then start a timer of a preset time length. The preset time length may be 5 seconds. During this period, the collection device may collect corresponding data through the OBD interface.

[0116] If the time exceeds the preset time length of the timer, the authentication status will become invalid and the collection device will be shut down from collecting data from the OBD interface.

[0117] Alternatively, a heartbeat packet may be sent between the collection device and the gateway every 2 seconds or so to extend the collection device's authority to collect corresponding data. If the gateway does not receive the heartbeat packet before the timer reaches the aforementioned preset time length, or if, after verifying the CMAC authentication code carried by the heartbeat packet, it is determined that the value of the received heartbeat packet is incorrect, the collection device's authority to collect data from the OBD interface is closed.

[0118] The request message may correspond to local collection. That is, the aforementioned method of mirroring the second message or the OBD emission data in the second message to the collection device may be understood as local forwarding and storage of vehicle data.

[0119] In order to support services such as remote vehicle diagnosis, in one embodiment, in the aforementioned data forwarding module with isolation function, a target message can be selected from the first message through a preset routing table, and a processing rule can be determined for the selected target message through the preset routing table to improve the security of vehicle information. The following is a detailed description:

[0120] The preset routing table includes a target type of the target message and a second processing rule corresponding to the target type.

[0121] Specifically, the aforementioned routing table may be obtained first. Then, the target message is selected from the first message by matching the type of the first message with the target type in the preset routing table. That is, the first message that successfully matches the target type in the preset routing table is the target message, thereby selecting the type of the first message allowed to be forwarded by the preset routing table in the first message.

[0122] Then, the preset routing table may be further queried to obtain the first processing rule corresponding to the type of the target message.

[0123] Furthermore, after the first message is processed to obtain the second message, the second message can be forwarded to the T-BOX according to the address of the T-BOX indicated in the preset routing table, so as to upload the target data in the second message to the cloud through the T-BOX. The target data can be all the vehicle data in the second message or part of the vehicle data.

[0124] The following example takes the data forwarding module with isolation function as the gateway and the target network segment supports CANFD. Figure 4 The in-car connection architecture is shown for explanation:

[0125] like Figure 4 As shown, the gateway connects CAN node A, CAN node B, and CAN node C to form CAN segment 1. The gateway connects CAN node D, CAN node E, and CAN node F to form CAN segment 2. The gateway connects LIN node A and LIN node B to form LIN segment 1. CAN node F is connected to LIN node C and LIN node D to form LIN segment 2.

[0126] In the above architecture, the first message in CAN segment 1 and CAN segment 2 is transmitted to the gateway in the form of CAN message, and the first message in LIN segment 1 is transmitted to the gateway in the form of LIN message; the first message in LIN segment 2 enters CAN segment 2 and is converted into CAN message form, and then transmitted to the gateway in CAN segment 2.

[0127] In this way, before obtaining the second message, the message format needs to be converted into the format of the CANFD message.

[0128] The above CAN nodes and LIN nodes may correspond to terminals or components in the vehicle, for example, LIN node C and LIN node D may be interior ambient lights, seats, windows or doors, etc.

[0129] It should be understood that although Figure 1 , Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 , Figure 2At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0130] Based on the same inventive concept, the embodiment of the present application provides a vehicle data processing device, such as Figure 5 As shown, the device includes: a receiving unit 501, a rule unit 502, and a forwarding unit 503, wherein:

[0131] A receiving unit 501, configured to receive a first message containing vehicle data;

[0132] A rule unit 502, configured to determine a first processing rule corresponding to the type of the first message;

[0133] The forwarding unit 503 is configured to process the first message based on the first processing rule, obtain a second message in a target format, and forward the second message.

[0134] In one embodiment, the rule unit 502 is specifically used for:

[0135] Obtain a preset routing table; wherein the preset routing table includes a target type of a target message and a second processing rule corresponding to the target type; by matching the type of the first message with the target type, select a target message from the first message; then the second processing rule corresponding to the type of the target message is the first processing rule.

[0136] In one of the embodiments, the forwarding unit 503 is specifically configured to: send the second message to the T-BOX based on the preset routing table, so as to upload the target data in the second message to the cloud through the T-BOX.

[0137] In one of the embodiments, the forwarding unit 503 is also used to determine whether to perform access authentication on the acquisition device in response to receiving a request message; wherein the request message includes request information of the acquisition device; if so, perform OBD interface access authentication on the acquisition device; in response to the acquisition device passing the OBD interface access authentication, mirror the second message to the acquisition device.

[0138] In one embodiment, the rule unit 502 is specifically configured to determine that the first processing rule is a first sub-rule in response to the type of the first message being a periodic message;

[0139] The forwarding unit 503 is specifically used to determine the maximum length of the second message based on the first sub-rule; determine the quantity threshold of the first message based on the length of the second message; based on the quantity threshold, splice the first messages in the time sequence of the first messages to obtain the second message; wherein the number of the first messages in the second message is less than or equal to the quantity threshold.

[0140] In one of the embodiments, the forwarding unit 503 is specifically used to read an identifier corresponding to the type of the first message at a preset position of the first message; for the cached first messages, the first messages with the same identifier are spliced ​​to obtain the second message.

[0141] In one of the embodiments, the rule unit 502 is specifically configured to determine that the first processing rule is a second sub-rule in response to the type of the first message being a network management message;

[0142] The forwarding unit 503 is specifically used to modify the first identifier of the first message based on the second sub-rule, obtain the second identifier, and determine the second message containing the second identifier; wherein the first identifier corresponds to the network activity indicated by the network management message.

[0143] The specific definition of the vehicle data processing device can be found in the definition of the vehicle data processing method above, which will not be repeated here. Each module in the above vehicle data processing device can be implemented in whole or in part by software, hardware, and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0144] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to connect and communicate with an external terminal. When the computer program is executed by the processor, a method for forwarding vehicle data is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0145] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0146] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0147] receiving a first message containing vehicle data;

[0148] Determining a first processing rule corresponding to the type of the first message;

[0149] The first message is processed based on the first processing rule to obtain a second message in a target format, and the second message is forwarded.

[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0151] Obtain a preset routing table; wherein the preset routing table includes a target type of a target message and a second processing rule corresponding to the target type; by matching the type of the first message with the target type, select a target message from the first message; then the second processing rule corresponding to the type of the target message is the first processing rule.

[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0153] Based on the preset routing table, the second message is sent to the T-BOX, so that the target data in the second message is uploaded to the cloud through the T-BOX.

[0154] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0155] In response to receiving a request message, determine whether to perform access authentication on the acquisition device; wherein the request message includes request information of the acquisition device; if so, perform OBD interface access authentication on the acquisition device; in response to the acquisition device passing the OBD interface access authentication, mirror the second message to the acquisition device.

[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0157] In response to the type of the first message being a periodic message, determining the first processing rule as a first sub-rule; based on the first sub-rule, determining the maximum length of the second message; based on the length of the second message, determining the quantity threshold of the first message; based on the quantity threshold, splicing the first messages in order of the time of the first messages to obtain the second message; wherein the number of the first messages in the second message is less than or equal to the quantity threshold.

[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0159] At a preset position of the first message, an identifier corresponding to the type of the first message is read; and for the cached first messages, the first messages with the same identifier are spliced ​​to obtain the second message.

[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0161] In response to the type of the first message being a network management message, determine that the first processing rule is to process the first message based on a preset second sub-rule; based on the second sub-rule, modify the first identifier of the first message to obtain a second identifier, and determine a second message containing the second identifier; wherein the first identifier corresponds to the network activity indicated by the network management message.

[0162] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0163] Receive a first message containing vehicle data; determine a first processing rule corresponding to the type of the first message; process the first message based on the first processing rule to obtain a second message in a target form, and forward the second message.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] Obtain a preset routing table; wherein the preset routing table includes a target type of a target message and a second processing rule corresponding to the target type; by matching the type of the first message with the target type, select a target message from the first message; then the second processing rule corresponding to the type of the target message is the first processing rule.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0167] Based on the preset routing table, the second message is sent to the T-BOX, so that the target data in the second message is uploaded to the cloud through the T-BOX.

[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0169] In response to receiving a request message, determine whether to perform access authentication on the acquisition device; wherein the request message includes request information of the acquisition device; if so, perform OBD interface access authentication on the acquisition device; in response to the acquisition device passing the OBD interface access authentication, mirror the second message to the acquisition device.

[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0171] In response to the type of the first message being a periodic message, determining the first processing rule as a first sub-rule; based on the first sub-rule, determining the maximum length of the second message; based on the length of the second message, determining the quantity threshold of the first message; based on the quantity threshold, splicing the first messages in order of the time of the first messages to obtain the second message; wherein the number of the first messages in the second message is less than or equal to the quantity threshold.

[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0173] At a preset position of the first message, an identifier corresponding to the type of the first message is read; and for the cached first messages, the first messages with the same identifier are spliced ​​to obtain the second message.

[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0175] In response to the type of the first message being a network management message, determine that the first processing rule is to process the first message based on a preset second sub-rule; based on the second sub-rule, modify the first identifier of the first message to obtain a second identifier, and determine a second message containing the second identifier; wherein the first identifier corresponds to the network activity indicated by the network management message.

[0176] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0177] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for processing vehicle data, characterized in that: Applied to a data forwarding module with an isolation function, the method comprises: receiving a first message containing vehicle data; Determining a first processing rule corresponding to the type of the first message; The first message is processed based on the first processing rule to obtain a second message in a target format, and the second message is forwarded.

2. The method according to claim 1, characterized in that The data forwarding module with isolation function is a gateway; or, the data forwarding module with isolation function is a switch.

3. The method according to claim 1, characterized in that The determining a first processing rule corresponding to the type of the first message includes: Obtaining a preset routing table; wherein the preset routing table includes a target type of the target message and a second processing rule corresponding to the target type; By matching the type of the first message with the target type, a target message is selected from the first message; then the second processing rule corresponding to the type of the target message is the first processing rule.

4. The method according to any one of claims 1 to 3, characterized in that: The forwarding the second message includes: Based on the preset routing table, the second message is sent to the T-BOX, so that the target data in the second message is uploaded to the cloud through the T-BOX.

5. The method according to any one of claims 1 to 3, characterized in that: The forwarding the second message includes: In response to receiving the request message, determining whether to perform access authentication on the collection device; wherein the request message includes request information of the collection device; If yes, perform OBD interface access authentication on the acquisition device; In response to the acquisition device being authenticated through the OBD interface access, the second message is mirrored to the acquisition device.

6. The method according to claim 1, characterized in that The determining a first processing rule corresponding to the type of the first message includes: In response to the type of the first message being a periodic message, determining the first processing rule to be a first sub-rule; Then the step of processing the first message based on the first processing rule to obtain a second message in a target format includes: Determine a maximum length of the second message based on the first sub-rule; Determining a quantity threshold of the first message based on a length of the second message; Based on the quantity threshold, the first messages are concatenated in order of time of the first messages to obtain the second messages; wherein the number of the first messages in the second messages is less than or equal to the quantity threshold.

7. The method according to claim 1, characterized in that The determining a first processing rule corresponding to the type of the first message includes: In response to the type of the first message being a network management message, determining the first processing rule to process the first message based on a preset second sub-rule; Then the step of processing the first message based on the first processing rule to obtain a second message in a target format includes: Based on the second sub-rule, the first identifier of the first message is modified to obtain a second identifier, and a second message containing the second identifier is determined; wherein the first identifier corresponds to the network activity indicated by the network management message.

8. A vehicle data processing device, characterized in that: The device is applied to a data forwarding module with an isolation function, and the device comprises: A receiving unit, configured to receive a first message containing vehicle data; A rule unit, configured to determine a first processing rule corresponding to the type of the first message; A processing unit is used to process the first message based on the first processing rule, obtain a second message in a target format, and forward the second message.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.