Data processing method, system, computer device and storage medium
By extracting and reorganizing the necessary signals in the CAN message in the vehicle system and sending only the required signals to the SOC, the problem of CAN message transmission occupying system resources is solved, saving resources and improving the efficiency of the SOC.
Patent Information
- Application Number
- CN202410590365.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-05-13
AI Technical Summary
In vehicle systems, a large number of CAN message transmissions occupy system resources, resulting in a waste of data transmission resources.
The target MCU receives the CAN message from the CAN bus, extracts the signal set required by the target SOC, and generates a reassembled message. It sends only the signals required by the SOC to the SOC, deletes invalid signals, and optimizes the message format to reduce the amount of transmitted data.
It significantly reduces the number of signals sent to the SOC, saves the transmission resources of the vehicle system, and improves the data processing efficiency of the SOC.
Smart Images

Figure CN118432971B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, system, computer device and storage medium. Background Art
[0002] Data transmission via the Controller Area Network (CAN) bus is widely used in vehicle systems. In related technologies, the SOC (System On Chip, SOC) on a vehicle, such as the SOC of an onboard device, receives CAN messages sent by a corresponding device and parses each signal from the received CAN message. A large number of CAN messages will be sent to the SOC, and each frame of the CAN message carries a large number of signals. Sending a large number of CAN messages takes up a large amount of the vehicle's system resources for transmitting data. How to save the vehicle's system resources for transmitting data has become a problem that needs to be solved. Summary of the invention
[0003] In view of this, embodiments of the present disclosure provide a data processing method, system, computer device, and storage medium.
[0004] In a first aspect, an embodiment of the present disclosure provides a data processing method, which includes:
[0005] The target micro control unit MCU on the target vehicle receives the target CAN message from the target controller area network CAN bus on the target vehicle;
[0006] The target MCU extracts a first signal set corresponding to the target CAN message from the target CAN message, wherein the first signal corresponding to the target CAN message is a signal required by a target system-on-chip SOC on a target vehicle, and the number of first signals in the first signal set is less than the number of signals in the target CAN message;
[0007] The target MCU generates an identification bit indicating that the first signal is valid for each first signal in the first signal set, and generates a reassembled message corresponding to the target CAN message, wherein the reassembled message corresponding to the target CAN message includes: each first signal in the first signal set, the name of each first signal in the first signal set, and an identification bit indicating that the first signal is valid for each first signal in the first signal set;
[0008] When there is at least one second signal in the first signal set, the target MCU provides at least one second signal in the first signal set to the target SOC through the reorganized message corresponding to the target CAN message, wherein the second signal is different from the signal type to which the second signal belongs in the reorganized message corresponding to the message type to which the target CAN message last sent by the target MCU to the target SOC and received by the target SOC.
[0009] In an optional embodiment, the first signal set includes: a second signal, a target first signal, wherein the target first signal is the same as a signal of a signal type to which the target first signal belongs in a reassembled message corresponding to a message type to which the target CAN message last sent by the target MCU to the target SOC and received by the target SOC; and the target MCU provides at least one second signal in the first signal set to the target SOC through the reassembled message corresponding to the target CAN message, including: the target MCU deletes the target first signal and an identification bit of the target first signal indicating that the target first signal is valid from the reassembled message corresponding to the target CAN message, and obtains an updated reassembled message corresponding to the target CAN message; the target MCU sends the updated reassembled message corresponding to the target CAN message to the target SOC.
[0010] In an optional implementation, it also includes:
[0011] When the duration between the moment when the reassembled message corresponding to the target CAN message is generated and the moment when the target MCU last sent the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is greater than the first duration threshold and there is no at least one second signal in the first signal set, the target MCU sends the reassembled message corresponding to the target CAN message to the target SOC.
[0012] In an optional implementation, it also includes:
[0013] In response to the target MCU last receiving a message of the message type to which the target CAN message belongs, and the target MCU not receiving the next frame of the message of the message type to which the target CAN message belongs, which is sent by the sender of the target CAN message last received by the target MCU for more than a second time threshold, the target MCU generates a temporarily invalid flag bit of the signal type to which each first signal belongs, wherein the temporarily invalid flag bit of the signal type to which the first signal belongs indicates that the signal of the signal type to which the first signal belongs is temporarily invalid;
[0014] The target MCU sends the temporarily invalid flag of the signal type to which each first signal belongs to the target SOC.
[0015] In an optional implementation, before the target MCU receives the target CAN message from the target CAN bus on the target vehicle, the method further includes:
[0016] The target MCU sends a file indicating the format of the reassembled message corresponding to the target CAN message to the target SOC, so that the target SOC determines the position of each first signal in the reassembled message corresponding to the target CAN message according to the format of the reassembled message corresponding to the target CAN message.
[0017] In an optional implementation, the target CAN message is sent by a target electronic control unit ECU corresponding to the target CAN message on the target vehicle to the target CAN bus, and each target ECU on the target vehicle sends different types of CAN messages.
[0018] In a second aspect, an embodiment of the present disclosure provides a data processing system, the data processing system comprising: the data processing system comprising: a target MCU on a target vehicle, a target CAN bus on a target vehicle, and a target system-on-chip SOC on a target vehicle;
[0019] The target MCU is used to: receive a target CAN message from a target controller area network CAN bus on a target vehicle; extract a first signal set corresponding to the target CAN message from the target CAN message, wherein the first signal corresponding to the target CAN message is a signal required by a target system-on-chip SOC on the target vehicle, and the number of first signals in the first signal set is less than the number of signals in the target CAN message; generate an identification bit indicating that the first signal is valid for each first signal in the first signal set, and generate a reassembled message corresponding to the target CAN message, wherein the reassembled message corresponding to the target CAN message includes: each first signal in the first signal set, the name of each first signal in the first signal set, and an identification bit indicating that the first signal is valid for each first signal in the first signal set; when there is at least one second signal in the first signal set, provide the at least one second signal in the first signal set to a target SOC through the reassembled message corresponding to the target CAN message, wherein the second signal is different from a signal of a signal type to which the second signal belongs in the reassembled message corresponding to a message of the message type to which the target CAN message belongs that was last sent by the target MCU to the target SOC and received by the target SOC.
[0020] In an optional implementation, the first signal set includes: a second signal and a target first signal, wherein the target first signal is the same as a signal of a signal type to which the target first signal belongs in a reassembled message corresponding to a message of a message type to which a target CAN message last sent by the target MCU to the target SOC and received by the target SOC; and
[0021] The target MCU is further used to delete the target first signal and the identification bit of the target first signal indicating that the target first signal is valid from the reorganized message corresponding to the target CAN message, and obtain an updated reorganized message corresponding to the target CAN message; and send the updated reorganized message corresponding to the target CAN message to the target SOC.
[0022] In an optional embodiment, the target MCU is further used to send the reassembled message corresponding to the target CAN message to the target SOC when the duration between the moment when the reassembled message corresponding to the target CAN message is generated and the moment when the target MCU last sent the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is greater than a first duration threshold and there is no at least one second signal in the first signal set.
[0023] In an optional embodiment, the target MCU is further used to respond to the moment when the target MCU last received a message of the message type to which the target CAN message belongs sent by the sender of the target CAN message, and the target MCU has not received the next frame of the message type sent by the sender of the target CAN message that was last received by the target MCU for more than a second time threshold. The target MCU generates a temporarily invalid flag bit for the signal type to which each first signal belongs, wherein the temporarily invalid flag bit for the signal type to which the first signal belongs indicates that the signal of the signal type to which the first signal belongs is temporarily invalid; the target MCU sends the temporarily invalid flag bit for the signal type to which each first signal belongs to the target SOC.
[0024] In an optional embodiment, the target MCU is further used to send a file indicating the format of the reassembled message corresponding to the target CAN message to the target SOC before the target MCU receives the target CAN message from the target CAN bus on the target vehicle, so that the target SOC determines the position of each first signal in the reassembled message corresponding to the target CAN message according to the format of the reassembled message corresponding to the target CAN message.
[0025] In an optional implementation, the target CAN message is sent by a target electronic control unit ECU corresponding to the target CAN message on the target vehicle to the target CAN bus, and each target ECU on the target vehicle sends different types of CAN messages.
[0026] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0027] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding implementation manner thereof.
[0028] The data processing method provided by the embodiment of the present disclosure comprises the following steps: a target MCU on a target vehicle receives a target CAN message from a target CAN bus on the target vehicle; the target MCU extracts a first signal set corresponding to the target CAN message from the target CAN message, wherein the first signal corresponding to the target CAN message is a signal required by a target system-on-chip (SOC) on the target vehicle, and the number of first signals in the first signal set is less than the number of signals in the target CAN message; an identification bit indicating that the first signal is valid is generated for each first signal in the first signal set, and a reassembled message corresponding to the target CAN message is generated, wherein the reassembled message corresponding to the target CAN message includes: a name of each first signal in the first signal set, and an identification bit indicating that the first signal is valid for each first signal in the first signal set; when there is at least one second signal in the first signal set, the target MCU provides at least one second signal in the first signal set to the target SOC through the reassembled message corresponding to the target CAN message, wherein the second signal is different from a signal of a signal type to which the second signal belongs in the reassembled message corresponding to a message of a message type to which the target CAN message last sent by the target MCU to the target SOC and received by the target SOC. The target MCU on the target vehicle only sends the signal required by the target SOC, namely the first signal, to the target SOC, without sending a large number of signals in the CAN message to the target SOC. Thus, the number of signals sent to the target SOC can be greatly reduced, saving the resources of the vehicle system for transmitting data. In addition, the target SOC only needs to parse out a small number of signals, namely the first signal set, without parsing out a large number of signals, which reduces the overhead of the target SOC in parsing signals and improves the data processing efficiency of the target SOC. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure;
[0031] Figure 2 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0033] In order to save the resources of the vehicle system for transmitting data, the present disclosure provides a data processing method. The target MCU on the target vehicle only sends the signal required by the target SOC, that is, the first signal, to the target SOC, without sending a large number of signals in the CAN message to the target SOC.
[0034] The reason why the target MCU on the target vehicle only sends the signal required by the target SOC to the target SOC is that the SOC on a vehicle, such as the SOC of the vehicle-mounted device, usually only needs a small number of signals in the CAN message. The number of signals in the CAN message is usually much larger than the number of signals required by the SOC. Therefore, the target MCU on the target vehicle only sends the signal required by the target SOC, that is, the first signal, to the target SOC, which can significantly reduce the number of signals sent to the target SOC and save the vehicle's system resources for transmitting data.
[0035] refer to Figure 1 , which shows a flow chart of a data processing method provided by an embodiment of the present disclosure. The method can be executed by an electronic device.
[0036] In step S101 , a target MCU on a target vehicle receives a target CAN message from a target CAN bus on the target vehicle.
[0037] The target microcontroller unit (MCU) can be any MCU on the target vehicle. The target CAN message includes: multiple signals.
[0038] In the embodiment of the present disclosure, the signal in the target CAN message may refer to a CAN signal.
[0039] In the embodiment of the present disclosure, the CAN bus on the target vehicle is referred to as the target CAN bus on the target vehicle.
[0040] The target CAN message can be any frame of a CAN message sent to the target CAN bus on the target vehicle.
[0041] The target CAN message is sent to the CAN bus on the target vehicle by the sender of the target CAN message.
[0042] In the disclosed embodiment, an on-board device on the target vehicle that can send CAN messages sends a type of CAN message.
[0043] In an optional implementation, the target CAN message is sent by a target electronic control unit (ECU) on the target vehicle to the target CAN bus, and each ECU in at least some of the ECUs on the target vehicle sends CAN messages of different types.
[0044] Each ECU on the target vehicle that can send CAN messages sends different types of CAN messages to the target CAN bus on the target vehicle.
[0045] In step S102, the target MCU extracts a first signal set corresponding to the target CAN message from the target CAN message.
[0046] Among them, the first signal corresponding to the target CAN message is a signal required by the target SOC on the target vehicle.
[0047] The number of first signals in the first signal set is less than the number of signals in the target CAN message. The data volume of the first signal set is less than the data volume of all signals in the target CAN message.
[0048] As an example, a structure is used to store the target CAN message. The structure pointer is accessed through the CAN ID of the target CAN message to extract each first signal required to the target SOC.
[0049] In step S103, the target MCU generates an identification bit for each first signal in the first signal set indicating that the first signal is valid, and generates a reassembled message corresponding to the target CAN message.
[0050] The reassembled message corresponding to the target CAN message includes: each first signal in the first signal set, the name of each first signal in the first signal set, and an identification bit of each first signal in the first signal set indicating that the first signal is valid.
[0051] In the disclosed embodiment, the target MCU generates an identification bit indicating that the first signal is valid for each first signal in the first signal set. Thus, the target SOC on the target vehicle determines that each first signal in the first signal set is valid based on the identification bit indicating that the first signal is valid for each first signal in the first signal set.
[0052] As an example, the identification bit of the first signal indicating that the first signal is valid is 1.
[0053] In the embodiment of the present disclosure, the format of the first signal and the identification bit of the first signal indicating that the first signal is valid may be predefined.
[0054] As an example, the format of the first signal and the flag of the first signal indicating that the first signal is valid is: signal name of the first signal_ValidFlag. ValidFlag represents the flag of the first signal indicating that the first signal is valid.
[0055] In the disclosed embodiment, the format of the reassembled message corresponding to the CAN message is preset by relevant personnel. The target SOC can parse the reassembled message corresponding to the target CAN message according to the format of the reassembled message corresponding to the CAN message to obtain each first signal required by the target SOC.
[0056] In an optional implementation, before the target MCU receives the target CAN message from the CAN bus, the method further includes: the target MCU sends a file indicating the format of the reassembled message corresponding to the target CAN message to the target SOC, so that the target SOC determines the position of each first signal in the reassembled message corresponding to the target CAN message according to the format of the reassembled message corresponding to the target CAN message. Thus, the target SOC can locate each first signal in the reassembled message corresponding to the target CAN message and parse out each first signal in the reassembled message corresponding to the target CAN message.
[0057] In step S104, when there is at least one second signal in the first signal set, the target MCU provides the at least one second signal in the first signal set to the target SOC through a reassembled message corresponding to the target CAN message.
[0058] The second signal is different from a signal of a signal type to which the second signal belongs in a reassembled message corresponding to a message of a message type to which the target CAN message last sent by the target MCU to the target SOC and received by the target SOC.
[0059] When there is at least one second signal in the first signal set, the target MCU provides the at least one second signal in the first signal set to the target SOC through the reassembled message corresponding to the target CAN message, and the target MCU can send the reassembled message corresponding to the target CAN message to the target SOC.
[0060] It should be noted that the last time refers to the moment when the target MCU provides at least one second signal in the first signal set to the target SOC through the reassembled message corresponding to the target CAN message.
[0061] The time when the target MCU last sent a reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is before the time when the target MCU provides at least one second signal in the first signal set to the target SOC through the reassembled message corresponding to the target CAN message.
[0062] As an example, the target MCU sends the reassembled message corresponding to the target CAN message to the target SOC, which is the tth time that the target MCU sends the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC. The last time the target MCU sent the message of the message type to which the target CAN message belongs to the target SOC refers to the reassembled message corresponding to the message of the message type to which the target CAN message belongs sent by the target MCU to the target SOC for the t-1th time.
[0063] In addition, the target MCU can package the reassembled message corresponding to the target CAN message and the reassembled message corresponding to other messages of the message type to which the target CAN message belongs to obtain a reassembled message data packet, and the target MCU sends the reassembled message data packet to the target SOC. Thus, at least one second signal in the first signal set is provided to the target SOC.
[0064] In an optional embodiment, the first signal set includes: a second signal and a target first signal, wherein the target first signal is the same as a signal of a signal type to which the target first signal belongs in a reassembled message corresponding to a message type to which the target CAN message last sent by the target MCU to the target SOC and received by the target SOC; and the target MCU provides at least one second signal in the first signal set to the target SOC via the reassembled message corresponding to the target CAN message, including: the target MCU deletes the target first signal and an identification bit of the target first signal indicating that the target first signal is valid from the reassembled message corresponding to the target CAN message, and obtains an updated reassembled message corresponding to the target CAN message; the target MCU sends the updated reassembled message corresponding to the target CAN message to the target SOC.
[0065] The target MCU deletes the target first signal from the reassembled message corresponding to the target CAN message, so that the updated reassembled message corresponding to the target CAN message only includes the second signal. The target MCU deletes the target first signal and the identification bit of the target first signal indicating that the target first signal is valid from the reassembled message corresponding to the target CAN message, and obtains the updated reassembled message corresponding to the target CAN message. The target MCU can only send the signal of the type of signal change, that is, the second signal, to the target SOC, thereby further saving the vehicle system resources for transmitting data.
[0066] In an optional embodiment, it also includes: when the duration between the moment when the reassembled message corresponding to the target CAN message is generated and the moment when the target MCU last sent the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is greater than a first duration threshold and there is no at least one second signal in the first signal set, the target MCU sends the reassembled message corresponding to the target CAN message to the target SOC.
[0067] In the embodiment of the present disclosure, it is considered that some types of signals have not changed, and the target SOC has not sent these types of signals to the target SOC, which may cause some upper-layer logic problems. Therefore, when the time between the moment of generating the reassembled message corresponding to the target CAN message and the moment when the target MCU last sent the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is greater than the first time threshold and there is no at least one second signal in the first signal set, the target MCU sends the reassembled message corresponding to the target CAN message to the target SOC.
[0068] As an example, the first duration threshold is more than 1 second.
[0069] In an optional embodiment, it also includes: in response to the moment when the target MCU last received a message of the message type to which the target CAN message belongs, sent by the sender of the target CAN message, the target MCU generates a temporarily invalid flag bit of the signal type to which each first signal belongs, in response to the moment when the target MCU last received a message of the message type sent by the sender of the target CAN message last received by the target MCU, and the next frame of the CAN message of the message type to which the target CAN message belongs, sent by the sender of the target CAN message last received by the target MCU exceeds a second time threshold, wherein the temporarily invalid flag bit of the signal type to which the first signal belongs indicates that the signal of the signal type to which the first signal belongs is temporarily invalid; the target MCU sends the temporarily invalid flag bit of the signal type to which each first signal belongs to the target SOC.
[0070] As an example, the second duration threshold is 10 times of the normal transmission cycle. The normal transmission cycle is the time difference between two adjacent transmission moments of the message type to which the target CAN message belongs under normal circumstances. Through the temporarily invalid flag of the signal type to which the first signal belongs, the target SOC can determine the message type to which the target CAN message belongs, and does not process the signal type to which the first signal belongs that has been received and has not yet been processed.
[0071] The disclosed embodiments provide a data processing system. The system is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "unit" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0072] The data processing system includes: a target MCU on the target vehicle, a target CAN bus on the target vehicle, and a target system-on-chip SOC on the target vehicle;
[0073] The target MCU is used to: receive a target CAN message from a target controller area network CAN bus on a target vehicle; extract a first signal set corresponding to the target CAN message from the target CAN message, wherein the first signal corresponding to the target CAN message is a signal required by a target system-on-chip SOC on the target vehicle, and the number of first signals in the first signal set is less than the number of signals in the target CAN message; generate an identification bit indicating that the first signal is valid for each first signal in the first signal set, and generate a reassembled message corresponding to the target CAN message, wherein the reassembled message corresponding to the target CAN message includes: each first signal in the first signal set, the name of each first signal in the first signal set, and an identification bit indicating that the first signal is valid for each first signal in the first signal set; when there is at least one second signal in the first signal set, provide the at least one second signal in the first signal set to a target SOC through the reassembled message corresponding to the target CAN message, wherein the second signal is different from a signal of a signal type to which the second signal belongs in the reassembled message corresponding to a message of the message type to which the target CAN message belongs that was last sent by the target MCU to the target SOC and received by the target SOC.
[0074] In an optional implementation, the first signal set includes: a second signal and a target first signal, wherein the target first signal is the same as a signal of a signal type to which the target first signal belongs in a reassembled message corresponding to a message of a message type to which a target CAN message last sent by the target MCU to the target SOC and received by the target SOC; and
[0075] The target MCU is further used to delete the target first signal and the identification bit of the target first signal indicating that the target first signal is valid from the reorganized message corresponding to the target CAN message, and obtain an updated reorganized message corresponding to the target CAN message; and send the updated reorganized message corresponding to the target CAN message to the target SOC.
[0076] In an optional embodiment, the target MCU is further used to send the reassembled message corresponding to the target CAN message to the target SOC when the duration between the moment when the reassembled message corresponding to the target CAN message is generated and the moment when the target MCU last sent the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is greater than a first duration threshold and there is no at least one second signal in the first signal set.
[0077] In an optional embodiment, the target MCU is further used to respond to the moment when the target MCU last received a message of the message type to which the target CAN message belongs sent by the sender of the target CAN message, and the target MCU has not received the next frame of the message type sent by the sender of the target CAN message that was last received by the target MCU for more than a second time threshold. The target MCU generates a temporarily invalid flag bit for the signal type to which each first signal belongs, wherein the temporarily invalid flag bit for the signal type to which the first signal belongs indicates that the signal of the signal type to which the first signal belongs is temporarily invalid; the target MCU sends the temporarily invalid flag bit for the signal type to which each first signal belongs to the target SOC.
[0078] In an optional embodiment, the target MCU is further used to send a file indicating the format of the reassembled message corresponding to the target CAN message to the target SOC before the target MCU receives the target CAN message from the target CAN bus on the target vehicle, so that the target SOC determines the position of each first signal in the reassembled message corresponding to the target CAN message according to the format of the reassembled message corresponding to the target CAN message.
[0079] In an optional implementation, the target CAN message is sent by a target electronic control unit ECU corresponding to the target CAN message on the target vehicle to the target CAN bus, and each target ECU on the target vehicle sends different types of CAN messages.
[0080] refer to Figure 2, which shows a schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0081] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0082] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0083] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0084] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0085] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means.
[0086] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0087] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0088] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0089] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data processing method, characterized in that: The method comprises: The target micro control unit MCU on the target vehicle receives the target CAN message from the target controller area network CAN bus on the target vehicle; The target MCU extracts a first signal set corresponding to the target CAN message from the target CAN message, wherein the first signal corresponding to the target CAN message is a signal required by a target system-on-chip SOC on a target vehicle, and the number of first signals in the first signal set is less than the number of signals in the target CAN message; The target MCU generates an identification bit indicating that the first signal is valid for each first signal in the first signal set, and generates a reassembled message corresponding to the target CAN message, wherein the reassembled message corresponding to the target CAN message includes: each first signal in the first signal set, the name of each first signal in the first signal set, and an identification bit indicating that the first signal is valid for each first signal in the first signal set; When there is at least one second signal in the first signal set, the target MCU provides at least one second signal in the first signal set to the target SOC through the reorganized message corresponding to the target CAN message, wherein the second signal is different from a signal of a signal type to which the second signal belongs in the reorganized message corresponding to a message of the message type to which the target CAN message last sent by the target MCU to the target SOC and received by the target SOC.
2. The method according to claim 1, characterized in that The first signal set includes: a second signal and a target first signal, wherein the target first signal is the same as a signal of a signal type to which the target first signal belongs in a reassembled message corresponding to a message of a message type to which a target CAN message last sent by the target MCU to the target SOC and received by the target SOC; and The target MCU provides at least one second signal in the first signal set to the target SOC through the reorganized message corresponding to the target CAN message, including: The target MCU deletes the target first signal and the identification bit of the target first signal indicating that the target first signal is valid from the reassembled message corresponding to the target CAN message, and obtains an updated reassembled message corresponding to the target CAN message; The target MCU sends the updated reorganized message corresponding to the target CAN message to the target SOC.
3. The method according to claim 1, characterized in that The method further comprises: When the duration between the moment when the reassembled message corresponding to the target CAN message is generated and the moment when the target MCU last sent the reassembled message corresponding to the message type to which the target CAN message belongs to the target SOC is greater than the first duration threshold and there is no at least one second signal in the first signal set, the target MCU sends the reassembled message corresponding to the target CAN message to the target SOC.
4. The method according to claim 1, characterized in that: The method further comprises: In response to the target MCU last receiving a message of the message type to which the target CAN message belongs, and the target MCU not receiving the next frame of the message of the message type to which the target CAN message belongs, which is sent by the sender of the target CAN message last received by the target MCU for more than a second time threshold, the target MCU generates a temporarily invalid flag bit of the signal type to which each first signal belongs, wherein the temporarily invalid flag bit of the signal type to which the first signal belongs indicates that the signal of the signal type to which the first signal belongs is temporarily invalid; The target MCU sends the temporarily invalid flag of the signal type to which each first signal belongs to the target SOC.
5. The method according to claim 1, characterized in that Before the target MCU receives the target CAN message from the target CAN bus on the target vehicle, the method further includes: The target MCU sends a file indicating the format of the reassembled message corresponding to the target CAN message to the target SOC, so that the target SOC determines the position of each first signal in the reassembled message corresponding to the target CAN message according to the format of the reassembled message corresponding to the target CAN message.
6. The method according to any one of claims 1 to 5, characterized in that The target CAN message is sent to the target CAN bus by a target electronic control unit ECU corresponding to the target CAN message on the target vehicle, and each target ECU on the target vehicle sends different types of CAN messages respectively.
7. A data processing system, characterized in that: The system comprises: a target MCU on a target vehicle, a target CAN bus on a target vehicle, and a target system-on-chip SOC on a target vehicle; The target MCU is used to: receive a target CAN message from a target controller area network CAN bus on a target vehicle; extract a first signal set corresponding to the target CAN message from the target CAN message, wherein the first signal corresponding to the target CAN message is a signal required by a target system-on-chip SOC on the target vehicle, and the number of first signals in the first signal set is less than the number of signals in the target CAN message; generate an identification bit indicating that the first signal is valid for each first signal in the first signal set, and generate a reassembled message corresponding to the target CAN message, wherein the reassembled message corresponding to the target CAN message includes: each first signal in the first signal set, the name of each first signal in the first signal set, and an identification bit indicating that the first signal is valid for each first signal in the first signal set; when there is at least one second signal in the first signal set, provide the at least one second signal in the first signal set to a target SOC through the reassembled message corresponding to the target CAN message, wherein the second signal is different from a signal of a signal type to which the second signal belongs in the reassembled message corresponding to a message of the message type to which the target CAN message belongs that was last sent by the target MCU to the target SOC and received by the target SOC.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Automobile data acquisition method and device, vehicle-mounted terminal and automobile
CN115206000A
Data processing method and device
CN117978883A
