Multi-packet message data processing method and device, electronic equipment and storage medium

By initializing and setting multiple calibration quantities in the CAN data bus and configuring the sending mode according to the request message, the problem of software upgrade is solved for multi-packet message transmission, and flexible multi-packet message transmission is realized, reducing development costs.

CN118972323APending Publication Date: 2024-11-15WEICHAI POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410959252.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The prior art requires software upgrades to adjust the length, number of packets and PGN content when sending multi-packet messages in the CAN data bus, increasing development costs.

Method used

By initializing and setting multiple calibration quantities on the vehicle's ECU, and comparing the received request packet with these calibration quantities, the multi-packet sending mode is flexibly configured, and multi-packet sending in different formats is supported, including TPCM.BAM_Pack broadcasting Format and TPCM.RTS_CTS point-to-point format.

Benefits of technology

Flexible sending of multi-packet packets can be achieved without software upgrades, reducing the development cost of CAN data bus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972323A_ABST
    Figure CN118972323A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-packet message data processing method and device, electronic equipment and a storage medium, and the method and device are applied to the electronic equipment of a vehicle, specifically, initialization processing is carried out based on an ECU of the vehicle, and setting of a plurality of calibration quantities is achieved; judging whether the request message of the operation state calibration quantity received by the electronic equipment is equal to the variable of one calibration quantity in the multi-packet calibration quantity or not; if yes, the other calibration quantity is judged; and configuring a multi-packet sending mode according to a judgment result. According to the scheme provided by the invention, the request message in the CAN data bus is flexibly identified through a calibration means to send the corresponding multi-packet message, and software upgrading is not needed, so that the development cost of the CAN data bus is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle data bus, and more specifically, to a data processing method, device, electronic device and storage medium for multi-packet messages. Background Art

[0002] The CAN data bus is an important data bus on the vehicle, used to collect, distribute and upload data in the vehicle, so as to realize the data exchange of various devices, instruments and meters in the vehicle. It is an important data transmission channel for controlling the vehicle. At present, when developing the CAN data bus, the sending of multi-packet messages is limited to a fixed multi-packet sending format. If multi-packet messages of different formats are to be sent, software upgrades are required. By upgrading the software, the length, number of packets and PGN content of the message are reconfigured, which increases the development cost. Summary of the invention

[0003] In view of this, the present application provides a data processing method, device, electronic device and storage medium for multi-packet messages, which are used to save the development cost of the CAN data bus.

[0004] In order to achieve the above objectives, the proposed solution is as follows:

[0005] A data processing method for multi-packet messages is applied to an electronic device of a vehicle, the electronic device is used to control a data bus of the vehicle, and the data processing method comprises the steps of:

[0006] Performing initialization processing based on the ECU of the vehicle to achieve setting of multiple calibration quantities;

[0007] Determining whether the request message received by the electronic device is equal to a variable of a calibration quantity in the multi-packet calibration quantity;

[0008] If they are equal, then judging the other calibration quantity;

[0009] Configure the multi-packet sending mode based on the judgment result.

[0010] Optionally, the multiple calibration quantities include a single packet sending message ID calibration quantity, a trusted platform control module (TPCM) operating state calibration quantity in C mode, and an input parameter length calibration quantity.

[0011] Optionally, the judging whether the request message received by the electronic device is equal to a variable of a calibration quantity in the multi-packet calibration quantity comprises the steps of:

[0012] It is judged whether a variable of the ID calibration quantity of the request message is equal to that of the single-packet sending message.

[0013] Optionally, if the two are equal, judging the other calibration quantity comprises the steps of:

[0014] It is determined whether the value of the running status calibration quantity is equal to 0, 1 or 2, and the determination result includes that the running status calibration quantity is equal to 0, 1 or 2.

[0015] Optionally, configuring the mode of sending multiple packages according to the judgment result includes the steps of:

[0016] If the running status calibration value is 0, both the TPCM.BAM_Pack broadcast format and the TPCM.RTS_CTS point-to-point format are supported to send custom multi-packet messages;

[0017] If the running status calibration value is 1, only the TPCM.RTS_CTS point-to-point format is supported to send custom multi-packet messages;

[0018] If the running status calibration value is 2, only the TPCM.BAM_Pack broadcast format is supported to send custom multi-package messages.

[0019] A data processing device for multi-packet messages is applied to an electronic device of a vehicle, the electronic device is used to control a data bus of the vehicle, and the data processing device comprises:

[0020] An initial processing module is configured to perform initialization processing based on the ECU of the vehicle to achieve setting of multiple calibration quantities;

[0021] A first judgment module is configured to judge whether the request message received by the electronic device is equal to a variable of a calibration quantity in the multi-packet calibration quantity;

[0022] A second judgment module is configured to judge the other calibration quantity if they are equal;

[0023] The sending configuration module is configured to configure a multi-packet sending mode according to the judgment result.

[0024] Optionally, the multiple calibration quantities include a single packet sending message ID calibration quantity, a trusted platform control module TPCM operating state calibration quantity in C mode, and an input parameter length calibration quantity.

[0025] Optionally, the first judgment module is configured to judge whether a variable of the request message and the single-packet sending message ID calibration quantity is equal.

[0026] Optionally, the second judgment module is configured to judge whether the value of the running status calibration quantity is equal to 0, 1 or 2, and the judgment result includes that the running status calibration quantity is equal to 0, 1 or 2.

[0027] Optionally, the sending configuration module includes:

[0028] The first configuration unit is configured to support both the TPCM.BAM_Pack broadcast format and the TPCM.RTS_CTS point-to-point format for sending a custom multi-packet message if the running status calibration value is 0;

[0029] The second configuration unit is configured to support only sending a custom multi-packet message in a TPCM.RTS_CTS point-to-point format if the running state calibration value is 1;

[0030] The third configuration unit is configured to, if the running status calibration value is 2, only support the sending of custom multi-package messages in the TPCM.BAM_Pack broadcast format.

[0031] An electronic device is applied to a vehicle, the electronic device comprising at least one processor and a memory connected to the processor, wherein:

[0032] The memory is used to store computer programs or instructions;

[0033] The processor is used to execute the computer program or instruction so that the electronic device implements the data processing method of the multi-packet message as described above.

[0034] A computer-readable storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device can implement the data processing method of multi-packet messages as described above.

[0035] It can be seen from the above technical scheme that the present application discloses a data processing method, device, electronic device and storage medium for multi-packet messages. The method and device are applied to electronic devices of vehicles, specifically to perform initialization processing based on the vehicle's ECU to achieve the setting of multiple calibration quantities; to judge whether the request message of the operating status calibration quantity received by the electronic device is equal to the variable of one calibration quantity in the multi-packet calibration quantity; if they are equal, to judge the other calibration quantity; and to configure the multi-packet sending mode according to the judgment result. The scheme of the present application flexibly identifies the request message in the CAN data bus through calibration means to send the corresponding multi-packet message without the need for software upgrades, thereby saving the development cost of the CAN data bus. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A flowchart of a method for processing data of multiple packets according to an embodiment of the present application;

[0038] Figure 2 A flowchart of a method for processing data of multiple packets according to an embodiment of the present application;

[0039] Figure 3 A data structure diagram of a multi-packet message in an embodiment of the present application;

[0040] Figure 4 A block diagram of a data processing device for multiple packets according to an embodiment of the present application;

[0041] Figure 5 A block diagram of another multi-packet message data processing device according to an embodiment of the present application;

[0042] Figure 6 A block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] The present application provides a data processing solution for multi-packet messages, which includes methods and devices, and is applied to electronic devices of vehicles, including but not limited to passenger cars, engineering vehicles, motorcycles and other vehicles. The electronic device can be a server, PC, PAD, mobile phone, ECU (Electronic Control Unit), VCU (Vehicle Control Unit), MCU (MicroController Unit), HCU (Hybrid Control Unit), etc. with data processing and information processing capabilities. Based on this, the following specific embodiments are provided. The multi-packet message refers to message data transmitted based on a data bus, consisting of an ID and data, wherein the data length is greater than 8 bytes.

[0045] Figure 1 This is a flowchart of a method for processing data of multiple packets according to an embodiment of the present application.

[0046] like Figure 1 As shown, the data processing method of the multi-packet message provided in this embodiment includes the following steps:

[0047] S1. Initialization processing is performed based on the vehicle's ECU.

[0048] Through the initialization processing based on the vehicle ECU, the setting of multiple calibration quantities is realized. The multiple calibration quantities here include multiple calibration quantities including the single packet transmission message ID calibration quantity Single_ID, the trusted platform control module TPCM operating state calibration quantity TPCM_Mode_C in C mode and the input parameter length calibration quantity DLC_C, and also include the setting of data Data. The single packet transmission message ID calibration quantity Single_ID here consists of four bytes: 0x18, xx, yy, and mm.

[0049] S2. Determine whether the request message is equal to the variable.

[0050] The request message here refers to the request instruction received by an electronic device such as an ECU through a data bus. It is an instruction represented digitally. After receiving the request message, it is judged whether it is equal to the zz in the ID calibration quantity Single_ID of the above-mentioned single-packet sending message. If they are not equal, the process is terminated. If they are equal, subsequent operations are executed.

[0051] S3. Make a judgment on another calibration quantity.

[0052] Here, another calibration quantity refers to the running state calibration quantity TPCM_Mode_C, and judging refers to judging whether it is equal to 0, 1 or 2, and different judgment results are obtained through judging. Here, the judgment results include being equal to 0, being equal to 1 or being equal to 2.

[0053] S4. Configure a multi-packet sending mode according to the judgment result.

[0054] That is, the above judgment result is obtained, for example, equal to 0, equal to 1 or equal to 2, and the corresponding multi-packet sending mode is configured, such as Figure 2 As shown, the specific steps include the following steps.

[0055] S41. If the running status calibration quantity is equal to 0, both the TPCM.BAM_Pack broadcast format and the TPCM.RTS_CTS point-to-point format are supported to send custom multi-package messages.

[0056] like Figure 3As shown, if the TPCM.BAM_Pack broadcast format is supported, the value of Byte1 in the BAM_CAN Data sent by multiple packets is equal to 0x20;

[0057] The values ​​of Byte2 and Byte3 are equal to DLC_C;

[0058] Byte4 value is equal to DLC_C divided by 7 and rounded up;

[0059] Byte5 value is equal to 0xFF;

[0060] If xx is less than 240, the value of Byte6 is 0x00; if xx is greater than 240, Byte6 is yy;

[0061] Byte7 value is equal to xx;

[0062] Byte8 value is equal to 0x00;

[0063] The data in the multi-packet sending Pack_CAN Data is obtained by retaining the valid byte length based on the input parameter Data according to the input parameter DLC_C.

[0064] S42. If the running status calibration value is 1, only the TPCM.RTS_CTS point-to-point format is supported to send custom multi-packet messages.

[0065] like Figure 3 As shown, if the TPCM.RTS_CTS point-to-point format is supported, the value of Byte1 in the RTS_CAN Data sent by multiple packets is equal to 0x20;

[0066] The values ​​of Byte2 and Byte3 are equal to DLC_C;

[0067] Byte4 value is equal to DLC_C divided by 7 and rounded up;

[0068] Byte5 value is equal to 0xFF;

[0069] If xx is less than 240, the value of Byte6 is 0x00; if xx is greater than 240, Byte6 is yy;

[0070] Byte7 value is equal to xx;

[0071] Byte8 value is equal to 0x00;

[0072] The data in the multi-packet sending Pack_CAN Data is obtained by retaining the valid byte length based on the input parameter Data according to the input parameter DLC_C.

[0073] S43. If the running status calibration value is 2, only the TPCM.BAM_Pack broadcast format is supported to send custom multi-package messages.

[0074] It can be seen from the above technical scheme that this embodiment provides a data processing method for multi-packet messages, which is applied to electronic devices of vehicles, specifically, initialization processing based on the vehicle's ECU to achieve the setting of multiple calibration quantities; whether the request message of the operating status calibration quantity received by the electronic device is equal to the variable of one calibration quantity in the multi-packet calibration quantity is judged; if they are equal, the other calibration quantity is judged; and the multi-packet sending mode is configured according to the judgment result. The scheme of the present application flexibly identifies the request message in the CAN data bus through calibration means to send the corresponding multi-packet message without software upgrade, thereby saving the development cost of the CAN data bus.

[0075] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0076] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0077] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0078] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0079] Figure 4 A block diagram of a data processing device for multiple packets according to an embodiment of the present application.

[0080] like Figure 4 As shown, the data processing device for multiple packets provided in this embodiment includes an initial processing module 10 , a first judgment module 20 , a second judgment module 30 and a sending configuration module 40 .

[0081] The initial processing module is used to perform initialization processing based on the vehicle's ECU.

[0082] Through the initialization processing based on the vehicle ECU, the setting of multiple calibration quantities is realized. The multiple calibration quantities here include multiple calibration quantities including the single packet transmission message ID calibration quantity Single_ID, the trusted platform control module TPCM operating state calibration quantity TPCM Mode C in C mode and the input parameter length calibration quantity DLC_C, and also include the setting of data Data. The single packet transmission message ID calibration quantity Single_ID here consists of four bytes: 0x18, xx, yy, and mm.

[0083] The first judgment module is used to judge whether the request message is equal to the variable.

[0084] The request message here refers to the request instruction received by an electronic device such as an ECU through a data bus. It is an instruction represented digitally. After receiving the request message, it is judged whether it is equal to the zz in the ID calibration quantity Single_ID of the above-mentioned single-packet sending message. If they are not equal, the process is terminated. If they are equal, subsequent operations are executed.

[0085] The second judgment module is used to judge another calibration amount.

[0086] Here, another calibration quantity refers to the running state calibration quantity TPCM_Mode_C, and judging refers to judging whether it is equal to 0, 1 or 2, and different judgment results are obtained through judging. Here, the judgment results include being equal to 0, being equal to 1 or being equal to 2.

[0087] The sending configuration module is used to configure the multi-packet sending mode according to the judgment result.

[0088] That is, the above judgment result is obtained, for example, equal to 0, equal to 1 or equal to 2, and the corresponding multi-packet sending mode is configured, such as Figure 5 As shown, the module includes a first configuration unit 41 , a second configuration unit 42 and a third configuration unit 43 .

[0089] The first configuration unit is used to support both the TPCM.BAM_Pack broadcast format and the TPCM.RTS_CTS point-to-point format to send a custom multi-package message if the running status calibration quantity is equal to 0.

[0090] like Figure 3 As shown, if the TPCM.BAM_Pack broadcast format is supported, the value of Byte1 in the BAM_CAN Data sent by multiple packets is equal to 0x20;

[0091] The values ​​of Byte2 and Byte3 are equal to DLC_C;

[0092] Byte4 value is equal to DLC_C divided by 7 and rounded up;

[0093] Byte5 value is equal to 0xFF;

[0094] If xx is less than 240, the value of Byte6 is 0x00; if xx is greater than 240, Byte6 is yy;

[0095] Byte7 value is equal to xx;

[0096] Byte8 value is equal to 0x00;

[0097] The data in the multi-packet sending Pack_CAN Data is obtained by retaining the valid byte length based on the input parameter Data according to the input parameter DLC_C.

[0098] The second configuration unit is used to support sending custom multi-package messages in the TPCM.RTS_CTS point-to-point format only if the running status calibration quantity is 1.

[0099] like Figure 3 As shown, if the TPCM.RTS_CTS point-to-point format is supported, the value of Byte1 in the RTS_CAN Data sent by multiple packets is equal to 0x20;

[0100] The values ​​of Byte2 and Byte3 are equal to DLC_C;

[0101] Byte4 value is equal to DLC_C divided by 7 and rounded up;

[0102] Byte5 value is equal to 0xFF;

[0103] If xx is less than 240, the value of Byte6 is 0x00; if xx is greater than 240, Byte6 is yy;

[0104] Byte7 value is equal to xx;

[0105] Byte8 value is equal to 0x00;

[0106] The data in the multi-packet sending Pack_CAN Data is obtained by retaining the valid byte length based on the input parameter Data according to the input parameter DLC_C.

[0107] If the running state calibration value of the third configuration unit is 2, only the TPCM.BAM_Pack broadcast format is supported to send custom multi-package messages.

[0108] It can be seen from the above technical scheme that this embodiment provides a data processing device for multi-packet messages, which is applied to electronic devices of vehicles, specifically, initialization processing based on the vehicle's ECU is performed to realize the setting of multiple calibration quantities; whether the request message of the operating status calibration quantity received by the electronic device is equal to the variable of one calibration quantity in the multi-packet calibration quantity is judged; if they are equal, the other calibration quantity is judged; and the multi-packet sending mode is configured according to the judgment result. The scheme of the present application flexibly identifies the request message in the CAN data bus through calibration means to send the corresponding multi-packet message without software upgrade, thereby saving the development cost of the CAN data bus.

[0109] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0110] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0111] Figure 6A block diagram of an electronic device according to an embodiment of the present application.

[0112] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0113] The electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 602 or a program loaded from an input device 606 into a random access memory RAM 603. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0114] Typically, the following devices may be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

[0115] The present application also provides a computer-readable storage medium embodiment.

[0116] The above storage medium is applied to an electronic device and carries one or more computer programs. When the above one or more computer programs are executed by the electronic device, the electronic device performs initialization processing based on the vehicle's ECU to achieve the setting of multiple calibration quantities; judges whether the request message of the running status calibration quantity received by the electronic device is equal to the variable of one calibration quantity in the multi-packet calibration quantity; if they are equal, judges the other calibration quantity; and configures the multi-packet sending mode according to the judgment result. The solution of the present application flexibly identifies the request message in the CAN data bus through calibration means to send the corresponding multi-packet message without the need for software upgrades, thereby saving the development cost of the CAN data bus.

[0117] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0118] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0119] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0120] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0121] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0122] The technical solution provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data processing method for multi-packet messages, applied to an electronic device of a vehicle, the electronic device being used to control a data bus of the vehicle, characterized in that: The data processing method comprises the steps of: Performing initialization processing based on the ECU of the vehicle to achieve setting of multiple calibration quantities; Determining whether the request message received by the electronic device is equal to a variable of a calibration quantity in the multi-packet calibration quantity; If they are equal, then judging the other calibration quantity; Configure the multi-packet sending mode based on the judgment result.

2. The data processing method according to claim 1, characterized in that: The multiple calibration quantities include a single packet sending message ID calibration quantity, a trusted platform control module TPCM operating state calibration quantity in C mode, and an input parameter length calibration quantity.

3. The data processing method according to claim 2, characterized in that: The step of judging whether the request message received by the electronic device is equal to a variable of a calibration quantity in the multi-packet calibration quantity comprises the following steps: It is judged whether a variable of the ID calibration quantity of the request message is equal to that of the single-packet sending message.

4. The data processing method according to claim 2, characterized in that: If the two are equal, judging the other calibration quantity comprises the steps of: It is determined whether the value of the running status calibration quantity is equal to 0, 1 or 2, and the determination result includes that the running status calibration quantity is equal to 0, 1 or 2.

5. The data processing method according to claim 4, characterized in that: The configuration of the multi-packet sending mode according to the judgment result comprises the steps of: If the running status calibration value is 0, both the TPCM.BAM_Pack broadcast format and the TPCM.RTS_CTS point-to-point format are supported to send custom multi-packet messages; If the running status calibration value is 1, only the TPCM.RTS_CTS point-to-point format is supported to send custom multi-packet messages; If the running status calibration value is 2, only the TPCM.BAM_Pack broadcast format is supported to send custom multi-package messages.

6. A data processing device for multi-packet messages, applied to an electronic device of a vehicle, the electronic device being used to control a data bus of the vehicle, characterized in that: The data processing device comprises: An initial processing module is configured to perform initialization processing based on the ECU of the vehicle to achieve setting of multiple calibration quantities; A first judgment module is configured to judge whether the request message received by the electronic device is equal to a variable of a calibration quantity in the multi-packet calibration quantity; A second judgment module is configured to judge the other calibration quantity if they are equal; The sending configuration module is configured to configure a multi-packet sending mode according to the judgment result.

7. The data processing device according to claim 6, characterized in that The multiple calibration quantities include a single packet sending message ID calibration quantity, a trusted platform control module TPCM operating state calibration quantity in C mode, and an input parameter length calibration quantity.

8. The data processing device according to claim 7, characterized in that The first judgment module is configured to judge whether a variable of the request message and the single-packet sending message ID calibration quantity is equal.

9. The data processing device according to claim 7, characterized in that: The second judgment module is configured to judge whether the value of the running status calibration quantity is equal to 0, 1 or 2, and the judgment result includes that the running status calibration quantity is equal to 0, 1 or 2.

10. The data processing device according to claim 9, characterized in that The sending configuration module includes: The first configuration unit is configured to support both the TPCM.BAM_Pack broadcast format and the TPCM.RTS_CTS point-to-point format for sending a custom multi-packet message if the running status calibration value is 0; The second configuration unit is configured to support only sending a custom multi-packet message in a TPCM.RTS_CTS point-to-point format if the running state calibration value is 1; The third configuration unit is configured to, if the running status calibration value is 2, only support the sending of custom multi-package messages in the TPCM.BAM_Pack broadcast format.

11. An electronic device, applied to a vehicle, characterized in that: The electronic device comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is used to execute the computer program or instruction so that the electronic device implements the data processing method of multiple-packet messages as described in any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that: The storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device can implement the data processing method of multi-packet messages as described in any one of claims 1 to 5.