Kernel data transmission method and device, equipment and storage medium

By prioritizing the analysis and storage of data packets received in intelligent connected vehicles and transmitting them based on priority, the problem of low data processing efficiency of intelligent driving centers is solved, and more efficient data transmission is achieved.

CN119316369APending Publication Date: 2025-01-14DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411383058.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In intelligent connected vehicles, the amount of data processed by the intelligent driving center is huge, resulting in low processing efficiency. The existing technology cannot effectively improve the efficiency of kernel data processing.

Method used

By analyzing the received target data packet, storing it in the corresponding storage space according to the data priority, and transmitting it in sequence based on the priority of the storage space, the priority processing of different data packets is realized.

Benefits of technology

It improves the network transmission efficiency of data and realizes more efficient data processing and transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316369A_ABST
    Figure CN119316369A_ABST
Patent Text Reader

Abstract

The invention discloses a kernel data transmission method and device, equipment and a storage medium, relates to the technical field of data processing, and discloses the following steps: acquiring a data receiving signal, and obtaining a target data packet based on the data receiving signal; analyzing the target data packet to obtain a data priority; storing the target data packet to a target storage space according to the data priority; transmitting the target data packet in the target storage space based on the data processing priority of the target storage space; according to the method, a target data packet received by a kernel is analyzed to obtain the priority of the target data packet, the data packet is stored in a storage space corresponding to the priority based on the priority of the data packet, and the data packets in the storage space are sequentially transmitted based on the priority of each storage space. Different data packets are sequentially processed according to the priorities of the data, the network transmission efficiency of the data is improved based on the priorities of the kernel processing data, and network transmission of the data is more efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the rapid development of new technologies and applications such as artificial intelligence and smart cockpits, the intelligence level of automobiles continues to improve. Advanced driver assistance functions such as adaptive cruise control and automatic emergency braking are increasingly used in smart connected vehicles, facilitating people's daily travel. It also demonstrates the huge potential of future fully autonomous driving in reducing safety accidents, improving traffic efficiency and enhancing driving experience.

[0003] However, with the widespread deployment of intelligent driving technology in automobiles, intelligent driving has more and more functions, and more and more data is transmitted between various functional management systems. This also leads to a huge amount of data to be processed by the intelligent driving center and lower processing efficiency.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a kernel data transmission method, device, equipment and storage medium, aiming to solve the technical problem of inefficient kernel data processing in vehicle Linux network communication.

[0006] To achieve the above object, the present application proposes a kernel data transmission method, the kernel data transmission method comprising:

[0007] Acquire a data reception signal, and obtain a target data packet based on the data reception signal;

[0008] Parsing the target data packet to obtain data priority;

[0009] storing the target data packet into a target storage space according to the data priority, wherein the target storage is controlled to be any one of a plurality of preset storage spaces;

[0010] The target data packet in the target storage space is transmitted based on the data processing priority of the target storage space.

[0011] In one embodiment, the method further includes storing the target data packet in the target storage space according to the data priority and controlling the target storage to be any one of a plurality of preset storage spaces before:

[0012] Get the preset priority number;

[0013] Obtaining a storage space size according to the preset priority number;

[0014] The preset storage space is divided according to the size of the storage space to obtain a plurality of preset storage spaces.

[0015] In one embodiment, storing the target data packet in a target storage space according to the data priority, wherein the target storage space is controlled to be any one of a plurality of preset storage spaces, includes:

[0016] Matching the data priority with the priorities of a plurality of preset storage spaces to obtain a target storage space;

[0017] The target data packet is stored in the target storage space.

[0018] In one embodiment, before matching the data priority with the priorities of a plurality of preset storage spaces to obtain the target storage space, the method further includes:

[0019] Obtaining the source address of the target data packet;

[0020] When the source address belongs to a preset registration list, performing a step of matching the data priority with priorities of a plurality of preset storage spaces to obtain a target storage space;

[0021] When the source address does not belong to the preset report list, the target data packet is discarded.

[0022] In one embodiment, before obtaining the source address of the target data packet, the method further includes:

[0023] Get the device network address and device priority of the device allowed to communicate;

[0024] Storing the one-to-one corresponding device network address and device priority in a preset storage file;

[0025] The preset storage file is used as a preset white list.

[0026] In one embodiment, the transmitting the target data packet in the target storage space according to the data processing priority of the target storage space includes:

[0027] Identifying a state of data to be processed in a reference storage space, wherein the reference storage space is a preset storage space having a higher data processing priority than the target storage space;

[0028] When the state of the data to be processed is that there is no data to be processed, the target data packet in the target storage space is transmitted.

[0029] In one embodiment, when the state of the data to be processed is that there is no data to be processed, transmitting the target data packet in the target storage space includes:

[0030] When the state of the data to be processed is that there is no data to be processed, obtaining the target address of the target data packet;

[0031] When the target address belongs to a preset white list, the target data packet is transmitted.

[0032] In addition, to achieve the above purpose, the present application also proposes a kernel data transmission device, the kernel data transmission device comprising:

[0033] A data acquisition module, used to acquire a data reception signal, and obtain a target data packet based on the data reception signal;

[0034] A data analysis module, used for analyzing the target data packet to obtain data priority;

[0035] A data storage module, used for storing the target data packet into a target storage space according to the data priority, wherein the target storage is controlled to be any one of a plurality of preset storage spaces;

[0036] A data transmission module is used to transmit the target data packet in the target storage space based on the data processing priority of the target storage space.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a kernel data transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the kernel data transmission method as described above.

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the kernel data transmission method described above are implemented.

[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the kernel data transmission method described above are implemented.

[0040] One or more technical solutions proposed in this application have at least the following technical effects:

[0041] By parsing the target data packet received by the kernel, the priority of the target data packet is obtained, and the data packet is stored in the storage space corresponding to the priority based on the priority of the data packet. The data packets in the storage space are transmitted in sequence based on the priority of each storage space, so that different data packets are processed in sequence according to the priority of the data. The network transmission efficiency of the data is improved based on the priority of the kernel processing data, and the data is transmitted on the network more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] Figure 1 A flowchart diagram of the first embodiment of the kernel data transmission method of the present application;

[0045] Figure 2 A schematic diagram of the complete path through which a message is sent from a client to a server provided in Embodiment 1 of the kernel data transmission method of the present application;

[0046] Figure 3 A schematic diagram of a kernel data receiving process provided in Embodiment 1 of the kernel data transmission method of the present application;

[0047] Figure 4 A schematic diagram of the steps for receiving a target data packet provided in Embodiment 1 of the kernel data transmission method of the present application;

[0048] Figure 5 A schematic diagram of data packet priority provided in Embodiment 1 of the kernel data transmission method of the present application;

[0049] Figure 6 A schematic diagram of the target data packet sending process provided in Embodiment 1 of the kernel data transmission method of the present application;

[0050] Figure 7 A flowchart diagram of the second embodiment of the kernel data transmission method of the present application;

[0051] Figure 8 This is a schematic diagram of the module structure of the kernel data transmission device according to an embodiment of the present application;

[0052] Fig. 9A schematic diagram of the device structure of the hardware operating environment involved in the kernel data transmission method in the embodiment of the present application. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] The main solution of the embodiment of the present application is: obtain a data reception signal, and obtain a target data packet based on the data reception signal; parse the target data packet to obtain a data priority; store the target data packet in a target storage space according to the data priority; and transmit the target data packet in the target storage space based on the data processing priority of the target storage space.

[0056] In this embodiment, for the convenience of description, the following description is made by taking the identification of the kernel data transmission device as the execution subject.

[0057] As existing technologies develop rapidly with new technologies and applications such as artificial intelligence and smart cockpits, the intelligence of automobiles continues to improve. Advanced driver assistance functions such as adaptive cruise control and automatic emergency braking are increasingly used in smart connected cars, which facilitates people's daily travel and also demonstrates the great potential of fully autonomous driving in the future in reducing safety accidents, improving traffic efficiency and enhancing driving experience. However, with the widespread deployment of intelligent driving technology in automobiles, intelligent driving carries more and more functions, and more and more data is transmitted between various functional management systems, which also leads to a huge amount of data to be processed by the intelligent driving center and lower processing efficiency.

[0058] The present application provides a solution, which parses the target data packet received by the kernel to obtain the priority of the target data packet, stores the data packet in a storage space corresponding to the priority based on the priority of the data packet, transmits the data packets in the storage space in sequence based on the priority of each storage space, and processes different data packets in sequence according to the priority of the data, improves the network transmission efficiency of the data based on the priority of the kernel processing the data, and transmits the data over the network more efficiently.

[0059] It can be seen from the above embodiments that the present application discloses a kernel data transmission method, device, equipment and storage medium, which relates to the field of data processing technology, and discloses: obtaining a data reception signal, and obtaining a target data packet based on the data reception signal; parsing the target data packet to obtain a data priority; storing the target data packet in a target storage space according to the data priority; transmitting the target data packet in the target storage space based on the data processing priority of the target storage space; the method parses the target data packet received by the kernel to obtain the priority of the target data packet, stores the data packet in a storage space corresponding to the priority based on the priority of the data packet, and transmits the data packets in the storage space in sequence based on the priority of each storage space, so as to realize sequential processing of different data packets according to the data priority, improve the network transmission efficiency of the data based on the priority of the kernel processing data, and transmit the data over the network more efficiently.

[0060] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a kernel data transmission device, etc. The following takes the kernel data transmission device as an example to illustrate this embodiment and the following embodiments.

[0061] Based on this, the present application embodiment provides a kernel data transmission method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the kernel data transmission method of the present application.

[0062] In this embodiment, the kernel data transmission method includes steps S10 to S40:

[0063] Step S10, acquiring a data receiving signal, and obtaining a target data packet based on the data receiving signal.

[0064] It should be noted that the operating system widely used in the field of intelligent driving is Linux. The following is an introduction to the network data transmission process of the Linux operating system. Figure 2 As shown, Figure 2 The complete path of the message sent from the client to the server is that the client first creates a socket, transmits it through the network protocol, and then transmits the data to the kernel driver through skb. The kernel driver then sends the data to the device for processing, and then transmits it between network devices until it is applied to the client. This embodiment is based on Figure 2 The kernel driver is used to optimize network transmission efficiency.

[0065] It is understandable that the data receiving signal may be a data receiving message, and when the kernel receives the message, it is ready to receive a data packet to be transmitted through the kernel.

[0066] It can be understood that the target data packet is a data packet received by the kernel and to be stored in the storage space waiting to be sent.

[0067] In the specific implementation, the kernel data receiving process can refer to Figure 3 In the figure, the message triggers the kernel driver to receive the packet through an interrupt.

[0068] It should be noted that obtaining the target data packet based on the data reception signal may be firstly copying the data to be transmitted through the kernel from the network device to the CPU memory to obtain the target data packet.

[0069] Step S20, parsing the target data packet to obtain data priority.

[0070] It should be noted that the target data packet includes a target address, a source address and other information, and the priority of the data is obtained according to the source address obtained by parsing the target data packet.

[0071] In the specific implementation, the step of receiving the target data packet can refer to Figure 4 In the figure, skb represents a data packet. Figure 4 For example, the data packet includes the data header, the data itself, the data information, the data tail, etc.; the network message of the data itself includes the target MAC address (target address), the source MAC address (source address, that is, the address where the target data packet is sent to the kernel) and other information.

[0072] It should be noted that the data priority of the target data packet is related to the source address of the target data packet, that is, the priority of the source address in the preset address priority list can be understood as the priority of the target data packet.

[0073] It should be emphasized that the preset address priority list may include the priority of each source address.

[0074] In a specific implementation, the preset address priority list can be a description file host_weight added under / etc, and the description file host_weight includes the mac addresses of allowed communication devices and the priority of each allowed communication device (ie, the priority of each mac address).

[0075] Step S30, storing the target data packet into a target storage space according to the data priority, wherein the target storage is controlled to be any one of a plurality of preset storage spaces.

[0076] It should be emphasized that when setting and dividing the priority of transmission through the kernel, there are three priorities: the priority of the data packet, the priority of the device allowed to communicate, and the priority of each preset storage space.

[0077] It can be understood that the priority of the data packet is the same as the source address of the data in the data packet (that is, the priority of the allowed communication device), and the priority of the allowed communication device is the priority of the MAC address of the allowed communication device. The priority of the storage space can be set and divided according to the priority of the allowed communication MAC address.

[0078] In the specific implementation, in order to improve the efficiency of packet receiving, a piece of memory is applied for as skb storage memory (SKB_BUFF) when the network driver is initialized. The size is n*skb_max_len (skb maximum length), and it is divided according to the priority. The diagram of data packet priority can be referred to Figure 5 , divide the priority into 3, then the memory will occupy the first n / 3 skb_max_len according to the priority 1, and then be divided down in sequence, and finally get multiple preset storage spaces, and determine the data processing priority of each storage space.

[0079] In a feasible implementation manner, step S30 may include steps A301 to A303:

[0080] Step A301, obtaining the preset priority number.

[0081] It is understandable that the preset priority number can be the number of priorities, for example, the priority can be divided into 4 levels; the data processing priority can also be converted into the priority of the data source address.

[0082] Step A302, obtaining the storage space size according to the preset priority number.

[0083] It is understandable that the number of storage spaces can be determined based on the preset priority number, but because the data priorities are different and because the data in the high-priority storage space is processed first, the data in the low-priority storage space is processed the slowest, and data retention may occur.

[0084] It should be understood that the total storage space can be divided according to its size and the number of preset priorities, and then the priority of each storage space can be determined. The size of each storage space can be adjusted based on the priority to determine the size of each priority storage space.

[0085] Step A303: divide the preset storage space according to the size of the storage space to obtain a plurality of preset storage spaces.

[0086] It is understandable that the priority and storage space size of each storage space are first determined to divide the total space for storing data packets to obtain a plurality of preset storage spaces.

[0087] In this implementation, by associating the priority of the data source address, the priority of the storage space and the priority of the data packet, and allocating the data packet storage value to the storage space of the corresponding priority according to the source address priority of the data packet, the importance of the received data can be divided, which facilitates the subsequent transmission of the data in the storage space according to the priority of the storage space, effectively improving the data transmission efficiency.

[0088] The above are merely feasible implementations before step S30 provided in this embodiment, and this embodiment does not specifically limit the specific implementations before step S30.

[0089] Step S40: transmitting the target data packet in the target storage space based on the data processing priority of the target storage space.

[0090] It is understandable that the kernel may send data packets in each preset storage space to the target address when performing output transmission.

[0091] It should be noted that the kernel will give priority to sending data packets in the storage space with the highest priority. While processing the data in the target storage space, it monitors whether there are data packets to be sent in the storage space with a higher priority than the target storage space. If so, the data packets in the high-priority storage space will be processed first.

[0092] In a feasible implementation, step S40 may include steps A41 to A42:

[0093] Step A41, identifying the state of data to be processed in a reference storage space, wherein the reference storage space is a preset storage space having a higher data processing priority than the target storage space.

[0094] It is understandable that if the data in the target storage space is to be processed, it is necessary to first determine whether there are any unprocessed data packets in the reference storage space having a higher priority than the target storage space.

[0095] It should be understood that the state of data to be processed may include no data to be processed and data to be processed.

[0096] Step A42, when the state of the data to be processed is that there is no data to be processed, the target data packet in the target storage space is transmitted.

[0097] It is understandable that when the state of the data to be processed is no data to be processed, it may be that the reference databases with a higher priority than the target database are all in a blank state, and there is no data packet that needs to be processed.

[0098] It should be noted that, when the state of the data to be processed is no data to be processed, the target address of the target data packet is obtained; when the target address belongs to a preset whitelist, the target data packet is transmitted.

[0099] Among them, it should be noted that when sending the target data packet in the target storage space, it is also necessary to perform security verification on the address of the device to which the target data packet is to be delivered (target address). The security verification method can be to match the target address of the target data packet with the device address allowed to communicate in the preset whitelist, and determine whether the target address belongs to the address in the whitelist. If it is in the whitelist, data transmission can be performed on the target data packet.

[0100] In the specific implementation, the process of sending the target data packet in the target storage space can refer to Figure 6 In the figure, the driver_xmit of the driver processing flow is used to determine whether the packet needs to be discarded, that is, the whitelist verifies the mac address. The specific method is to parse the network message from the data contained in the skb, and then parse the destination mac address from the EthernetHeader, and then compare it with the mac address list in the host_weight file. If the mac address of the data packet to be sent does not exist, it will be discarded; otherwise, it will be sent to the network device for processing according to the normal process.

[0101] In the present embodiment, data in each storage space is transmitted according to the priority of each data storage space. Before the data in each storage space is transmitted, the target address of each target data packet to be transmitted is further verified. When the target address belongs to the address whitelist of allowed communication equipment, data is sent. This can ensure data transmission efficiency based on the data storage space priority while improving the security of data transmission.

[0102] The above are only feasible implementations of step S40 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S40.

[0103] The present embodiment provides a kernel data transmission method, which parses the target data packet received by the kernel to obtain the priority of the target data packet, stores the data packet in a storage space corresponding to the priority based on the priority of the data packet, and transmits the data packets in the storage space in sequence based on the priority of each storage space, so as to realize sequential processing of different data packets according to the priority of the data, improve the network transmission efficiency of the data based on the priority of the kernel processing the data, and transmit the data over the network more efficiently.

[0104] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 7 , step S30, the kernel data transmission method further includes steps S31-S32:

[0105] Step S31, matching the data priority with the priorities of a plurality of preset storage spaces to obtain a target storage space.

[0106] It is understandable that the data priority may be the priority of the source address in the data packet.

[0107] It should be understood that storage spaces with the same priority are divided based on the priority of each source address.

[0108] It should be noted that matching the data priority with the priorities of multiple preset storage spaces can be to see which preset storage space has the same priority as the data priority, and store the target data packet into the target storage space with the same priority.

[0109] In a feasible implementation manner, before step S31, steps A3101 to A33103 may be included:

[0110] Step A3101, obtain the source address of the target data packet.

[0111] It should be noted that before obtaining the source address of the target data packet, it also includes: obtaining the device network address and device priority of the allowed communication device; storing the one-to-one corresponding device network address and the device priority to a preset storage file; and using the preset storage file as a preset whitelist.

[0112] It can be understood that the source address of the target data packet can be understood as the device address that sends the target data packet to the kernel.

[0113] Step A3102, when the source address belongs to the preset registration list, execute the step of matching the data priority with the priorities of multiple preset storage spaces to obtain the target storage space.

[0114] It should be noted that before storing the target data packet into the storage space of the corresponding priority, it is also necessary to determine whether the source address of the target data belongs to the MAC address whitelist of allowed communication devices. If it belongs to the whitelist, the target data packet can be stored in the target storage space. If it does not belong to the whitelist, the target data packet will be discarded.

[0115] Step A3103, when the source address does not belong to the preset report list, discard the target data packet.

[0116] In the specific implementation, a whitelist is used to verify the MAC address. That is, in the driver_recv process, the data is first copied from the network device to the CPU memory, and then the MAC address of the source of the data packet is parsed and compared with the description file host_weight. If it exists, it is retained, otherwise it is discarded.

[0117] In this implementation, the security of the source address of the target data packet to be stored in the target storage space is verified through a preset white list, and the data is stored after the verification is passed, thereby better ensuring the security of data transmission.

[0118] The above are merely feasible implementations before step S31 provided in this embodiment, and this embodiment does not specifically limit the specific implementations before step S31.

[0119] Step S32, storing the target data packet into the target storage space.

[0120] In the specific implementation, the remaining data packets are further optimized, the priority level corresponding to the mac address in the description file host_weight is obtained, and then the data packet is stored in SKB_BUFF according to the priority level. For example, if the data packet corresponding to the current mac address has a priority of 1, it is directly placed in the skb memory with a priority of 1 for processing. This memory will be sent to the protocol stack for subsequent processing. The skb data in SKB_BUFF is processed in a loop, and the data is sent to the protocol stack for data packet transmission according to the principle of high priority first processing.

[0121] This embodiment provides a kernel data transmission method. When transmitting data on the kernel-driven network, it ensures that the network data can process devices in the whitelist based on the method of verifying the MAC address of the network device, further strengthens the necessity of network security, and ensures high efficiency during network transmission by giving priority to data transmitted from high-priority devices.

[0122] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the kernel data transmission method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0123] This application also provides a kernel data transmission device, please refer to Figure 8 , the kernel data transmission device comprises:

[0124] A data acquisition module 10 is used to acquire a data reception signal and obtain a target data packet based on the data reception signal;

[0125] A data analysis module 20, used for analyzing the target data packet to obtain a data priority;

[0126] A data storage module 30, used to store the target data packet into a target storage space according to the data priority, and the target storage is controlled to be any one of a plurality of preset storage spaces;

[0127] The data transmission module 40 is used to transmit the target data packet in the target storage space based on the data processing priority of the target storage space.

[0128] The kernel data transmission device provided by the present application adopts the kernel data transmission method in the above embodiment, which can solve the technical problem that kernel data processing is not efficient enough in vehicle Linux network communication. Compared with the prior art, the beneficial effects of the kernel data transmission device provided by the present application are the same as the beneficial effects of the kernel data transmission method provided by the above embodiment, and other technical features in the kernel data transmission device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0129] The present application provides a kernel data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the kernel data transmission method in the above-mentioned embodiment one.

[0130] Reference below Fig. 9 , which shows a schematic diagram of the structure of a kernel data transmission device suitable for implementing the embodiment of the present application. The kernel data transmission device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The kernel data transmission device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0131] like Fig. 9As shown, the kernel data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the kernel data transmission device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the core data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the core data transmission device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0132] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0133] The kernel data transmission device provided by the present application adopts the kernel data transmission method in the above embodiment, which can solve the technical problem that kernel data processing is not efficient enough in vehicle Linux network communication. Compared with the prior art, the beneficial effects of the kernel data transmission device provided by the present application are the same as the beneficial effects of the kernel data transmission method provided by the above embodiment, and the other technical features in the kernel data transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0134] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0136] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the kernel data transmission method in the above-mentioned embodiment.

[0137] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0138] The computer-readable storage medium may be included in the kernel data transmission device; or may exist independently without being assembled into the kernel data transmission device.

[0139] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the kernel data transmission device, the kernel data transmission device: obtains a data reception signal, obtains a target data packet based on the data reception signal; parses the target data packet to obtain a data priority; stores the target data packet in a target storage space according to the data priority; and transmits the target data packet in the target storage space based on the data processing priority of the target storage space.

[0140] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including 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 the case of 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 (e.g., via the Internet using an Internet service provider).

[0141] 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 application. 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 alternative implementations, 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.

[0142] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0143] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned kernel data transmission method, and can solve the technical problem that kernel data processing is not efficient enough in vehicle Linux network communication. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the kernel data transmission method provided by the above-mentioned embodiment, and will not be repeated here.

[0144] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned kernel data transmission method when executed by a processor.

[0145] The computer program product provided by the present application can solve the technical problem that kernel data processing is not efficient enough in vehicle Linux network communication. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the kernel data transmission method provided by the above embodiment, which will not be repeated here.

[0146] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A kernel data transmission method, characterized in that: The kernel data transmission method comprises: Acquire a data reception signal, and obtain a target data packet based on the data reception signal; Parsing the target data packet to obtain data priority; storing the target data packet into a target storage space according to the data priority, wherein the target storage is controlled to be any one of a plurality of preset storage spaces; The target data packet in the target storage space is transmitted based on the data processing priority of the target storage space.

2. The kernel data transmission method according to claim 1, characterized in that: Before storing the target data packet into the target storage space according to the data priority and controlling the target storage to be any one of a plurality of preset storage spaces, the method further includes: Get the preset priority number; Obtaining a storage space size according to the preset priority number; The preset storage space is divided according to the size of the storage space to obtain a plurality of preset storage spaces.

3. The kernel data transmission method according to claim 1, characterized in that: The storing the target data packet into a target storage space according to the data priority, wherein the target storage is controlled to be any one of a plurality of preset storage spaces, comprises: Matching the data priority with the priorities of a plurality of preset storage spaces to obtain a target storage space; The target data packet is stored in the target storage space.

4. The kernel data transmission method according to claim 3, characterized in that: Before matching the data priority with the priorities of a plurality of preset storage spaces to obtain the target storage space, the method further includes: Obtaining the source address of the target data packet; When the source address belongs to a preset registration list, performing a step of matching the data priority with priorities of a plurality of preset storage spaces to obtain a target storage space; When the source address does not belong to the preset report list, the target data packet is discarded.

5. The kernel data transmission method according to claim 4, characterized in that: Before obtaining the source address of the target data packet, the method further includes: Get the device network address and device priority of the device allowed to communicate; Storing the one-to-one corresponding device network address and device priority in a preset storage file; The preset storage file is used as a preset white list.

6. The kernel data transmission method according to claim 1, characterized in that: The transmitting the target data packet in the target storage space according to the data processing priority of the target storage space includes: Identifying a state of data to be processed in a reference storage space, wherein the reference storage space is a preset storage space having a higher data processing priority than the target storage space; When the state of the data to be processed is that there is no data to be processed, the target data packet in the target storage space is transmitted.

7. The kernel data transmission method according to claim 1, characterized in that: When the state of the data to be processed is that there is no data to be processed, transmitting the target data packet in the target storage space includes: When the state of the data to be processed is that there is no data to be processed, obtaining the target address of the target data packet; When the target address belongs to a preset white list, the target data packet is transmitted.

8. A kernel data transmission device, characterized in that: The kernel data transmission device comprises: A data acquisition module, used to acquire a data reception signal, and obtain a target data packet based on the data reception signal; A data analysis module, used for analyzing the target data packet to obtain data priority; A data storage module, used for storing the target data packet into a target storage space according to the data priority, wherein the target storage is controlled to be any one of a plurality of preset storage spaces; A data transmission module is used to transmit the target data packet in the target storage space based on the data processing priority of the target storage space.

9. A kernel data transmission device, characterized in that: The device comprises: a memory, a processor, and a kernel data transmission program stored in the memory and executable on the processor, wherein the kernel data transmission program is configured to implement the kernel data transmission method according to any one of claims 1 to 7.

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