Vehicle-mounted Ethernet data transmission method, system and device and storage medium
By splitting and sorting vehicle Ethernet data packets, and using message queue and offset field and More segment field reordering technology, the problem of loss caused by UDP unreliability in data transmission in the AUTOSAR CP SOME/IP protocol is solved. Complete transmission of vehicle Ethernet data is achieved.
Patent Information
- Application Number
- CN202410910847.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-27
AI Technical Summary
When the AUTOSAR CP SOME/IP protocol transmits data between vehicle ECUs, data is lost due to the unreliability and disorder of the UDP protocol. Existing technology cannot effectively solve this problem.
By splitting the received vehicle Ethernet data into multiple SOME/IP-TP data packets, traversing and sorting these data packets, using the message queue and offset field and More segment field to reorder, and finally detecting the group packet When the lengths are consistent, the data packets are sent to the application layer to ensure data transmission integrity.
It effectively avoids the loss of out-of-order data in AUTOSAR CP SOME/IP and ensures the integrity and reliability of vehicle Ethernet data transmission.
Smart Images

Figure CN118714159A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a vehicle-mounted Ethernet data transmission method, system, device and storage medium. Background Art
[0002] As cars become more and more intelligent, their functions are becoming more and more complete. As a result, the amount of data exchange between various ECUs in the car is also increasing, and the transmission rate requirements are getting higher and higher. The SOME / IP protocol is also gradually being used in large quantities to transmit data between on-board ECUs. Since SOME / IP transmits data through UDP, the data transmission of the UDP protocol is unreliable and disordered. ECUs usually use the AUTOSAR CP system, and AUTOSAR CP SOMEIP does not support reordering, resulting in data loss. Therefore, how to reduce data loss has become a problem that needs to be solved urgently.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a vehicle-mounted Ethernet data transmission method, system, device and storage medium, aiming to solve the technical problem of how to reduce data loss.
[0005] To achieve the above object, the present invention provides a vehicle-mounted Ethernet data transmission method, the vehicle-mounted Ethernet data transmission method comprising:
[0006] The vehicle Ethernet data is received, and the vehicle Ethernet data is split to obtain a plurality of SOME / IP-TP data packets;
[0007] Traversing multiple SOME / IP-TP data packets, selecting a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determining a current offset value corresponding to the current SOME / IP-TP data packet;
[0008] When the current offset value is consistent with the expected offset value, the current SOME / IP-TP data packet is transmitted to the runtime layer for sorting and storage, and the More segment field corresponding to the current SOME / IP-TP data packet is detected;
[0009] When it is detected that the More segment field is 0, it is determined that the traversal is finished, and the sorted multiple SOME / IP-TP data packets are grouped through the runtime layer, and the grouping length is determined according to the offset value corresponding to each SOME / IP-TP data packet;
[0010] When the packet length is consistent with the total length corresponding to the vehicle Ethernet data, the packetized SOME / IP-TP data packet is sent to the application layer through the runtime layer, and it is determined that the vehicle Ethernet data transmission is successful.
[0011] Optionally, before the step of selecting the current SOME / IP-TP data packet from the plurality of SOME / IP-TP data packets, the step includes:
[0012] The SOME / IP-TP module is used to parse a plurality of SOME / IP-TP data packets respectively, and an offset value corresponding to each SOME / IP-TP data packet is obtained.
[0013] Optionally, after the step of determining a current offset value corresponding to the current SOME / IP-TP data packet, the method further comprises:
[0014] The length corresponding to the last SOME / IP-TP data packet is determined, and the expected value of the offset is calculated according to the length of the last SOME / IP-TP data packet.
[0015] Optionally, after the step of determining the current offset value corresponding to the current SOME / IP-TP data packet, the method further includes:
[0016] When the current offset value is inconsistent with the expected offset value, the current SOME / IP-TP data packet is stored in the message queue, and the process returns to the step of selecting the current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets.
[0017] Optionally, after the step of determining the packet length according to the offset value corresponding to each SOME / IP-TP data packet, the method further comprises:
[0018] When the packet length is inconsistent with the total length corresponding to the vehicle Ethernet data, return to the step of receiving the vehicle Ethernet data and splitting the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets.
[0019] In addition, to achieve the above-mentioned purpose, the present invention also proposes an in-vehicle Ethernet data transmission system, the in-vehicle Ethernet data transmission system comprising:
[0020] A SOME / IP-TP module, used for receiving vehicle Ethernet data and splitting the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets;
[0021] The SOME / IP-TP module is further used to traverse multiple SOME / IP-TP data packets, select a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determine a current offset value corresponding to the current SOME / IP-TP data packet;
[0022] The SOME / IP-TP module is further configured to, when the current offset value is consistent with the expected offset value, transmit the current SOME / IP-TP data packet to the runtime layer for sorting and storage, and detect a More segment field corresponding to the current SOME / IP-TP data packet;
[0023] The SOME / IP-TP module is further used to determine that the traversal is finished when detecting that the More segment field is 0;
[0024] The runtime layer is used to group the sorted multiple SOME / IP-TP data packets;
[0025] The SOME / IP-TP module is further used to determine the packet length according to the offset value corresponding to each SOME / IP-TP data packet;
[0026] The SOME / IP-TP module is also used to send the packaged SOME / IP-TP data packet to the application layer through the runtime layer when the package length is consistent with the total length corresponding to the in-vehicle Ethernet data, and determine that the in-vehicle Ethernet data transmission is successful.
[0027] In addition, to achieve the above-mentioned purpose, the present invention also proposes an in-vehicle Ethernet data transmission device, which includes: a memory, a processor, and an in-vehicle Ethernet data transmission program stored in the memory and executable on the processor, wherein the in-vehicle Ethernet data transmission program is configured to implement the steps of the in-vehicle Ethernet data transmission method described above.
[0028] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a vehicle Ethernet data transmission program is stored, and when the vehicle Ethernet data transmission program is executed by a processor, the steps of the vehicle Ethernet data transmission method described above are implemented.
[0029] The present invention first receives vehicle Ethernet data, splits the vehicle Ethernet data, obtains multiple SOME / IP-TP data packets, then traverses the multiple SOME / IP-TP data packets, selects a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determines a current offset value corresponding to the current SOME / IP-TP data packet. When the current offset value is consistent with an expected offset value, the current SOME / IP-TP data packet is transmitted to a runtime layer for sorting and storage, and a More segment field corresponding to the current SOME / IP-TP data packet is detected. Afterwards, when it is detected that the More segment field is 0, it is determined that the traversal is finished, the sorted multiple SOME / IP-TP data packets are grouped through the runtime layer, and the grouping length is determined according to the offset value corresponding to each SOME / IP-TP data packet. When the data packet length is consistent with the total length corresponding to the vehicle Ethernet data, the grouped SOME / IP-TP data packet is sent to an application layer through the runtime layer, and it is determined that the vehicle Ethernet data transmission is successful. Compared with the prior art, AUTOSAR CP SOMEIP does not support reordering, resulting in data loss. When transmitting large data through UDP in AUTOSAR CP SOME / IP, the present invention reorders the disordered data through a message queue, the value of the total offset field of each fragment packet and the value of the More segment field, and the total length of the received fragmented data, thereby avoiding the loss of disordered data by AUTOSAR CP SOME / IP. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a structural diagram of an in-vehicle Ethernet data transmission device in a hardware operating environment involved in an embodiment of the present invention;
[0031] Figure 2 This is a flow chart of a first embodiment of a vehicle-mounted Ethernet data transmission method according to the present invention;
[0032] Figure 3 FIG. 1 is a structural block diagram of a first embodiment of a vehicle-mounted Ethernet data transmission system according to the present invention.
[0033] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0034] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0035] Reference Figure 1 , Figure 1The present invention is a schematic diagram of the structure of an in-vehicle Ethernet data transmission device in the hardware operating environment involved in the embodiment of the present invention.
[0036] like Figure 1 As shown, the vehicle-mounted Ethernet data transmission device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.
[0037] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the in-vehicle Ethernet data transmission device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0038] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an in-vehicle Ethernet data transmission program.
[0039] exist Figure 1 In the vehicle-mounted Ethernet data transmission device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the vehicle-mounted Ethernet data transmission device of the present invention can be set in the vehicle-mounted Ethernet data transmission device, and the vehicle-mounted Ethernet data transmission device calls the vehicle-mounted Ethernet data transmission program stored in the memory 1005 through the processor 1001, and executes the vehicle-mounted Ethernet data transmission method provided in an embodiment of the present invention.
[0040] The embodiment of the present invention provides a vehicle-mounted Ethernet data transmission method, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a vehicle-mounted Ethernet data transmission method according to the present invention.
[0041] In this embodiment, the vehicle Ethernet data transmission method includes the following steps:
[0042] Step S10: receiving the vehicle Ethernet data, and splitting the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets.
[0043] It is easy to understand that the execution subject of this embodiment can be an in-vehicle Ethernet data transmission system with functions such as data processing, network communication and program running, or other computer equipment with similar functions, etc., and this embodiment is not limited.
[0044] In this embodiment, the SOME / IP-TP module can receive a large amount of vehicle ECU data (ie, vehicle Ethernet data) transmitted via AUTOSAR CP SOMEIP.
[0045] The SOME / IP-TP module can split or fragment the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets.
[0046] It should also be understood that each SOME / IP-TP data packet includes the value of the Offset field and the value of the More Segment field.
[0047] Step S20: traverse multiple SOME / IP-TP data packets, select a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determine a current offset value corresponding to the current SOME / IP-TP data packet.
[0048] Step S30: When the current offset value is consistent with the expected offset value, the current SOME / IP-TP data packet is transmitted to the runtime layer for sorting and storage, and the Moresegment field corresponding to the current SOME / IP-TP data packet is detected.
[0049] It should be noted that after splitting multiple SOME / IP-TP data packets, the multiple SOME / IP-TP data packets are parsed respectively through the SOME / IP-TP module to obtain the offset value corresponding to each SOME / IP-TP data packet, traverse the multiple SOME / IP-TP data packets, select the current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determine the current offset value corresponding to the current SOME / IP-TP data packet, determine the length corresponding to the previous SOME / IP-TP data packet, and calculate the expected offset value according to the length of the previous SOME / IP-TP data packet. When the current offset value is inconsistent with the expected offset value, the current SOME / IP-TP data packet is stored in the message queue, and the step of selecting the current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets is returned.
[0050] It should be understood that the offset value corresponding to each SOME / IP-TP data packet is different, but the offset values corresponding to each SOME / IP-TP data packet are in order, and after splicing, it should be complete in-vehicle Ethernet data.
[0051] In this embodiment, multiple SOME / IP-TP data packets are traversed, and a current SOME / IP-TP data packet is selected from the multiple SOME / IP-TP data packets, but the current SOME / IP-TP data packet is randomly selected. When the selected current SOME / IP-TP data packet (including the first data packet) is not 0, the first data packet is directly stored in the message queue until the offset value corresponding to the selected first data packet is 0. The first data packet is transmitted to the runtime layer for sorting and packet grouping. The SOME / IP-TP module determines the length corresponding to the first data packet, and determines the offset offset value according to the length corresponding to the first data packet and the offset value corresponding to the first data packet. The offset offset value is used as the expected offset value, and then the remaining SOME / IP-TP data packets are traversed to determine the offset value corresponding to the selected current SOME / IP-TP data packet and the offset value corresponding to the SOME / IP-TP data packet stored in the message queue. If the SOME / IP-TP data packet in the message queue is 0, the offset value is 0. If the offset value corresponding to the ME / IP-TP data packet is consistent with the offset value calculated above, the SOME / IP-TP data packet in the message queue is transmitted to the runtime layer and the first data packet is placed thereafter for sorting and packet grouping, and the current SOME / IP-TP data packet with inconsistent offset value is stored in the message queue; if the offset value corresponding to the selected current SOME / IP-TP data packet is consistent with the offset value calculated above, the selected current SOME / IP-TP data packet is transmitted to the runtime layer and the first data packet is placed thereafter for sorting and packet grouping, etc.
[0052] It should be noted that, in the process of comparing the offset values, the SOME / IP-TP module also needs to detect the More segment field of each SOME / IP-TP data packet at the same time.
[0053] Step S40: When it is detected that the More segment field is 0, it is determined that the traversal is completed, and the sorted multiple SOME / IP-TP data packets are grouped through the runtime layer, and the grouping length is determined according to the offset value corresponding to each SOME / IP-TP data packet.
[0054] It should also be noted that in the process of comparing the offset values, the SOME / IP-TP module also needs to simultaneously detect the More segment field of each SOME / IP-TP data packet. When it is detected that the More segment field is 0, the traversal is determined to be completed, and the sorted multiple SOME / IP-TP data packets are grouped through the runtime layer to obtain the grouped SOME / IP-TP data packet.
[0055] In a specific implementation, the SOME / IP-TP module needs to count the lengths of the various SOME / IP-TP data packets to obtain the assembled SOME / IP-TP data packets.
[0056] Step S50: When the packet length is consistent with the total length corresponding to the vehicle Ethernet data, the packetized SOME / IP-TP data packet is sent to the application layer through the runtime layer, and it is determined that the vehicle Ethernet data transmission is successful.
[0057] It should also be noted that when the packet length is consistent with the total length corresponding to the in-vehicle Ethernet data, the reception is stopped and the packaged SOME / IP-TP data packet is sent to the application layer through the runtime layer.
[0058] Furthermore, if the receiving time is exceeded during the receiving process, the receiving needs to be stopped, and the received data packets are packaged and sent to the application layer.
[0059] In this embodiment, the vehicle Ethernet data is first received and split to obtain a plurality of SOME / IP-TP data packets, and then the plurality of SOME / IP-TP data packets are traversed, a current SOME / IP-TP data packet is selected from the plurality of SOME / IP-TP data packets, and a current offset value corresponding to the current SOME / IP-TP data packet is determined. When the current offset value is consistent with the expected offset value, the current SOME / IP-TP data packet is transmitted to the runtime layer for sorting and storage, and the More segment field corresponding to the current SOME / IP-TP data packet is detected. Afterwards, when it is detected that the More segment field is 0, it is determined that the traversal is completed, the sorted plurality of SOME / IP-TP data packets are grouped through the runtime layer, and the grouping length is determined according to the offset value corresponding to each SOME / IP-TP data packet. When the data packet length is consistent with the total length corresponding to the vehicle Ethernet data, the grouped SOME / IP-TP data packet is sent to the application layer through the runtime layer, and it is determined that the vehicle Ethernet data transmission is successful. Compared with the prior art that AUTOSAR CP SOMEIP does not support reordering, resulting in data loss, this embodiment reorders the disordered data through the message queue and the value of the total offset field and the value of the More segment field of each fragment packet, as well as the total length of the received fragment data when transmitting large data through UDP in AUTOSAR CP SOME / IP, thereby avoiding the loss of disordered data by AUTOSAR CP SOME / IP.
[0060] Reference Figure 3 , Figure 3 FIG. 1 is a structural block diagram of a first embodiment of a vehicle-mounted Ethernet data transmission system according to the present invention.
[0061] like Figure 3 As shown, the vehicle-mounted Ethernet data transmission system proposed in the embodiment of the present invention includes:
[0062] The SOME / IP-TP module 3001 is used to receive the vehicle Ethernet data and split the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets;
[0063] The SOME / IP-TP module 3001 is further used to traverse multiple SOME / IP-TP data packets, select a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determine a current offset value corresponding to the current SOME / IP-TP data packet;
[0064] The SOME / IP-TP module is further configured to transmit the current SOME / IP-TP data packet to the runtime layer 3002 for sorting and storage when the current offset value is consistent with the expected offset value, and detect the More segment field corresponding to the current SOME / IP-TP data packet;
[0065] The SOME / IP-TP module 3001 is further configured to determine that the traversal is finished when it is detected that the More segment field is 0;
[0066] The runtime layer 3002 is used to group the sorted multiple SOME / IP-TP data packets;
[0067] The SOME / IP-TP module 3001 is further used to determine the packet length according to the offset value corresponding to each SOME / IP-TP data packet;
[0068] The SOME / IP-TP module 3001 is also used to send the packaged SOME / IP-TP data packet to the application layer 3003 through the runtime layer 3002 when the package length is consistent with the total length corresponding to the in-vehicle Ethernet data, and determine that the in-vehicle Ethernet data transmission is successful.
[0069] In this embodiment, the vehicle Ethernet data is first received and split to obtain a plurality of SOME / IP-TP data packets, and then the plurality of SOME / IP-TP data packets are traversed, a current SOME / IP-TP data packet is selected from the plurality of SOME / IP-TP data packets, and a current offset value corresponding to the current SOME / IP-TP data packet is determined. When the current offset value is consistent with the expected offset value, the current SOME / IP-TP data packet is transmitted to the runtime layer for sorting and storage, and the More segment field corresponding to the current SOME / IP-TP data packet is detected. Afterwards, when it is detected that the More segment field is 0, it is determined that the traversal is completed, the sorted plurality of SOME / IP-TP data packets are grouped through the runtime layer, and the grouping length is determined according to the offset value corresponding to each SOME / IP-TP data packet. When the data packet length is consistent with the total length corresponding to the vehicle Ethernet data, the grouped SOME / IP-TP data packet is sent to the application layer through the runtime layer, and it is determined that the vehicle Ethernet data transmission is successful. Compared with the prior art that AUTOSAR CP SOMEIP does not support reordering, resulting in data loss, this embodiment reorders the disordered data through the message queue and the value of the total offset field and the value of the More segment field of each fragment packet, as well as the total length of the received fragment data when transmitting large data through UDP in AUTOSAR CP SOME / IP, thereby avoiding the loss of disordered data by AUTOSAR CP SOME / IP.
[0070] Other embodiments or specific implementations of the vehicle-mounted Ethernet data transmission system of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.
[0071] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0072] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0074] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A vehicle-mounted Ethernet data transmission method, characterized in that: The vehicle-mounted Ethernet data transmission method comprises the following steps: The vehicle Ethernet data is received, and the vehicle Ethernet data is split to obtain a plurality of SOME / IP-TP data packets; Traversing multiple SOME / IP-TP data packets, selecting a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determining a current offset value corresponding to the current SOME / IP-TP data packet; When the current offset value is consistent with the expected offset value, the current SOME / IP-TP data packet is transmitted to the runtime layer for sorting and storage, and the More segment field corresponding to the current SOME / IP-TP data packet is detected; When it is detected that the More segment field is 0, it is determined that the traversal is finished, and the sorted multiple SOME / IP-TP data packets are grouped through the runtime layer, and the grouping length is determined according to the offset value corresponding to each SOME / IP-TP data packet; When the packet length is consistent with the total length corresponding to the vehicle Ethernet data, the packetized SOME / IP-TP data packet is sent to the application layer through the runtime layer, and it is determined that the vehicle Ethernet data transmission is successful.
2. The method according to claim 1, characterized in that Before the step of selecting the current SOME / IP-TP data packet from the plurality of SOME / IP-TP data packets, the method further comprises: The SOME / IP-TP module is used to parse a plurality of SOME / IP-TP data packets respectively, and an offset value corresponding to each SOME / IP-TP data packet is obtained.
3. The method according to claim 2, characterized in that After the step of determining the current offset value corresponding to the current SOME / IP-TP data packet, the method further comprises: The length corresponding to the last SOME / IP-TP data packet is determined, and the expected value of the offset is calculated according to the length of the last SOME / IP-TP data packet.
4. The method according to claim 2, characterized in that After the step of determining the current offset value corresponding to the current SOME / IP-TP data packet, the method further includes: When the current offset value is inconsistent with the expected offset value, the current SOME / IP-TP data packet is stored in the message queue, and the process returns to the step of selecting the current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets.
5. The method according to any one of claims 1 to 4, characterized in that: After the step of determining the packet length according to the offset value corresponding to each SOME / IP-TP data packet, the method further comprises: When the packet length is inconsistent with the total length corresponding to the vehicle Ethernet data, return to the step of receiving the vehicle Ethernet data and splitting the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets.
6. A vehicle-mounted Ethernet data transmission system, characterized in that: The vehicle-mounted Ethernet data transmission system comprises: A SOME / IP-TP module, used for receiving vehicle Ethernet data and splitting the vehicle Ethernet data to obtain multiple SOME / IP-TP data packets; The SOME / IP-TP module is further used to traverse multiple SOME / IP-TP data packets, select a current SOME / IP-TP data packet from the multiple SOME / IP-TP data packets, and determine a current offset value corresponding to the current SOME / IP-TP data packet; The SOME / IP-TP module is further configured to, when the current offset value is consistent with the expected offset value, transmit the current SOME / IP-TP data packet to the runtime layer for sorting and storage, and detect a More segment field corresponding to the current SOME / IP-TP data packet; The SOME / IP-TP module is further configured to determine that the traversal is finished when detecting that the More segment field is 0; The runtime layer is used to group the sorted multiple SOME / IP-TP data packets; The SOME / IP-TP module is further used to determine the packet length according to the offset value corresponding to each SOME / IP-TP data packet; The SOME / IP-TP module is also used to send the packaged SOME / IP-TP data packet to the application layer through the runtime layer when the package length is consistent with the total length corresponding to the in-vehicle Ethernet data, and determine that the in-vehicle Ethernet data transmission is successful.
7. An in-vehicle Ethernet data transmission device, characterized in that: The device comprises: a memory, a processor, and an in-vehicle Ethernet data transmission program stored in the memory and executable on the processor, wherein the in-vehicle Ethernet data transmission program is configured to implement the steps of the in-vehicle Ethernet data transmission method according to any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores an in-vehicle Ethernet data transmission program, and when the in-vehicle Ethernet data transmission program is executed by the processor, the steps of the in-vehicle Ethernet data transmission method according to any one of claims 1 to 5 are implemented.
