Inter-core data transmission method and device, equipment and storage medium
By simplifying the data transmission process by using shared data pools and preset formats in intelligent connected cars, the problem of low data transmission efficiency in multi-core heterogeneous CPUs is solved and more efficient inter-core data transmission is achieved.
Patent Information
- Application Number
- CN202411032385.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-29
AI Technical Summary
The data transmission efficiency of multi-core heterogeneous CPUs with high computing power in intelligent connected cars is low, causing data transmission between cores to occupy a lot of memory and take a long time, affecting system performance.
A shared data pool is used to store data to be transmitted, and the data transmission process is simplified through preset format conversion and activation signal mechanisms, reducing memory usage and query times, and improving data transmission efficiency.
Simplifying data transmission through shared data pools and preset formats reduces the memory footprint and time of inter-core data transmission, and improves the efficiency and simplicity of data transmission.
Smart Images

Figure CN118869640A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to methods, devices, equipment and storage media for inter-core data transmission. Background Art
[0002] As the functions of intelligent connected vehicles become more and more complete, the installation rate of multi-core heterogeneous CPUs with high computing power and high real-time performance has also become the standard configuration of intelligent connected vehicles. The concentration of domain functions has also made the functions of CPUs more and more complex. With the development of SOA architecture, more CAN signal data needs to be transmitted between different cores of the same CPU. Therefore, how to ensure that a large amount of data can be transmitted reliably between cores with low latency and at the same time efficiently utilize memory resources has become a technical problem that the current intelligent gateway controller needs to solve urgently.
[0003] 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
[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for inter-core data transmission, aiming to solve the technical problem that the current data transmission between multiple data processing cores on board a vehicle occupies a large amount of memory and takes a long time, resulting in inefficient inter-core data transmission.
[0005] To achieve the above objectives, the present application proposes an inter-core data transmission method, the inter-core data transmission method comprising: Get the data to be transmitted from the sending core; Converting the data to be transmitted into a preset format to obtain reference data; storing the reference data in a target data pool, and obtaining an activation signal based on the target data pool and the reference data; The activation signal is sent to a receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
[0006] In one embodiment, before converting the data to be transmitted into a preset format to obtain reference data, the method further includes: Obtaining a preset fixed data frame header, a preset data source core number parameter and a preset source core bit number, a preset function bit parameter of a data type and a preset data type bit number, a preset flag bit and a preset length bit number of a data length, a preset timestamp bit number, and a preset data maximum byte; The preset format is obtained based on the preset order according to the preset fixed data frame header, the preset data source core label parameter, the preset source core bit number, the preset function bit parameter, the preset data type bit number, the preset flag bit, the preset length bit number, the preset timestamp bit number and the preset data maximum byte.
[0007] In one embodiment, converting the data to be transmitted into a preset format to obtain reference data includes: Converting the data to be transmitted into single-frame inter-core communication data according to a preset format; A plurality of single-frame inter-core communication data within a preset unit time is used as reference data.
[0008] In one embodiment, storing the reference data into a target data pool, and obtaining an activation signal based on the target data pool and the reference data, comprises: storing the reference data in a target data pool, wherein the target data pool is any one of a plurality of data pools obtained by equally dividing the real-time core space and the non-real-time core writable space; According to the target data pool and the reference data, the data pool first address, the total number of accumulated messages and the receiving end core are obtained; An activation signal is generated according to the data pool first address, the total number of accumulated messages and the receiving end core.
[0009] In one embodiment, obtaining the data pool first address, the total number of accumulated messages, and the receiving end core according to the target data pool and the reference data includes: Identify the data pool type of the target data pool, and obtain the location coordinates of the target data pool based on the data pool type; Obtaining the data pool first address according to the position coordinates; Acquire a reference message within a preset unit time, and identify a receiving end core of the reference message; The reference messages are divided according to the receiving end cores to obtain the total number of accumulated messages of each receiving end core.
[0010] In one embodiment, storing the reference data in a target data pool, before obtaining an activation signal based on the target data pool and the reference data, further comprises: Get the current status of each data pool; The data pool in the current unlocked state is used as the target data pool.
[0011] In one embodiment, after sending the activation signal to the receiving end core so that the receiving end core reads the reference data from the target data pool according to the activation signal, the method further includes: When the activation signal is sent successfully, a locking signal is generated, and the target data pool is locked based on the locking signal; A read completion signal fed back by the receiving end core is obtained, and the target data pool is unlocked according to the read completion signal.
[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted inter-core data transmission device, the vehicle-mounted inter-core data transmission device comprising: A data acquisition module, used to acquire the data to be transmitted from the core of the sending end; A format conversion module, used for converting the data to be transmitted into a preset format to obtain reference data; A data transmission module, used for storing the reference data into a target data pool, and obtaining an activation signal based on the target data pool and the reference data; The data transmission module is further configured to send the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted inter-core data transmission device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle-mounted inter-core data transmission method described above.
[0014] 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 the processor, the steps of the vehicle-mounted inter-core data transmission method as described above are implemented.
[0015] 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, it implements the steps of the vehicle-to-core data transmission method as described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: By using a shared data pool to store data to be transmitted, the memory usage between each core is reduced. The data transmission process is simplified according to the preset data format and shared data pool, making the data transmission process more concise and efficient. The receiving core is reminded to read based on the activation signal, reducing unnecessary queries and improving the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] 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.
[0019] Figure 1 A flowchart diagram of the first embodiment of the vehicle-mounted inter-core data transmission method of the present application; Figure 2 A flowchart diagram of the second embodiment of the vehicle-mounted inter-core data transmission method of the present application; Figure 3 This is a schematic diagram of the module structure of the vehicle-mounted inter-core data transmission device according to an embodiment of the present application; Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle-to-core data transmission method in the embodiment of the present application. DETAILED DESCRIPTION
[0020] 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.
[0021] 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.
[0022] The main solution of the embodiment of the present application is: obtaining the data to be transmitted of the sending end core; converting the data to be transmitted into a preset format to obtain reference data; storing the reference data in a target data pool, and obtaining an activation signal based on the target data pool and the reference data; sending the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
[0023] In this embodiment, for ease of description, the following description is made by taking the identification of the vehicle-mounted inter-core data transmission device as the execution subject.
[0024] As the functions of intelligent connected vehicles become more and more complete, the installation rate of multi-core heterogeneous CPUs with high computing power and high real-time performance has become the standard configuration of intelligent connected vehicles. The concentration of domain functions has also made the functions of CPUs more and more complex. With the development of SOA architecture, more CAN signal data needs to be transmitted between different cores of the same CPU. Therefore, how to ensure that a large amount of data can be transmitted reliably between cores with low latency and at the same time efficiently utilize memory resources has become a technical problem that the current intelligent gateway controller needs to solve urgently.
[0025] The present application provides a solution by using a shared data pool to store data to be transmitted, reducing the memory usage between each core, simplifying the data transmission process according to a preset data format and a shared data pool, making the data transmission process more concise and efficient, and reminding the receiving core to read based on an activation signal, thereby reducing the number of unnecessary queries and improving the efficiency of data transmission.
[0026] It can be seen from the above embodiments that the present application discloses a method, device, equipment and storage medium for inter-core data transmission, which relates to the field of data transmission technology, and discloses the following: obtaining the data to be transmitted of the sending end core; converting the data to be transmitted into a preset format to obtain reference data; storing the reference data in a target data pool, and obtaining an activation signal based on the target data pool and the reference data; sending the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal; by using a shared data pool to store the data to be transmitted, the memory usage between the cores is reduced, and the data transmission process is simplified according to the preset data format and the shared data pool, so that the data transmission process is more concise and efficient, and the receiving end core is reminded to read based on the activation signal, thereby reducing the number of unnecessary queries and improving the efficiency of data transmission.
[0027] 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, an in-vehicle inter-core data transmission device, etc. The following takes the in-vehicle inter-core data transmission device as an example to illustrate this embodiment and the following embodiments.
[0028] Based on this, the embodiment of the present application provides a method for transmitting data between vehicle cores, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle-mounted inter-core data transmission method of the present application.
[0029] In this embodiment, the vehicle-mounted inter-core data transmission method includes steps S10 to S40: Step S10, obtaining the data to be transmitted from the core of the sending end.
[0030] It should be noted that the core may refer to the core (CPU core) in the vehicle processor. The multi-core processor may contain multiple independent processing units (ie cores), which can process different tasks in parallel, thereby improving the overall computing power and efficiency of the system.
[0031] It is understandable that the transmitting end core can be any one or more of the multiple cores of the vehicle-mounted processor, that is, any core can be used as a transmitting end core or a receiving end core.
[0032] It should be noted that there can be one sending end core or multiple sending end cores can exist at the same time.
[0033] It should be understood that the data to be transmitted may be data that needs to be transmitted from one core to another core.
[0034] Step S20: convert the data to be transmitted into a preset format to obtain reference data.
[0035] It is understandable that the preset format may be a data format specially set to ensure the convenience of data reading between various cores.
[0036] It should be noted that each core converts the data to be transmitted into a preset format, and other cores also pre-store the relevant content of the preset format to clarify the meaning of each part of the preset format. When other cores want to read the data, they can quickly understand the content of the data and read it based on the preset format.
[0037] It is understandable that the reference data may be data to be transmitted in a preset format.
[0038] In a feasible implementation manner, step S20 may include steps A201 to A202: Step A201, obtain the preset fixed data frame header, the preset data source core label parameter and the preset source core bit number, the preset function bit parameter of the data type and the preset data type bit number, the preset flag bit and the preset length bit number of the data length, the preset timestamp bit number and the preset data maximum byte.
[0039] It should be noted that the 16-bit data frame header 0Xfffe can be fixed at the first position and defined as IPC Msg Tag; the second position indicates the number of the data source core, a hexadecimal value starting from 0, with a length of 8 bits, defined as core_id_flag; the third position indicates the function bit of the data type, with a length of 8 bits, bit (7) indicates the relationship between the data and the controller, that is, 0 indicates the data received by the controller, 1 indicates the data sent by the controller, bits (0~6) indicate the physical network channel number, 0x00 indicates private data transmitted by the private channel between cores, used for CPU internal data transmission, 0x01 indicates that the data message comes from CAN channel 1, and the data is defined in the communication matrix table, 0x02 indicates that the data message comes from CAN channel 2, and the data is defined in the communication matrix table, and so on; the fourth position indicates the length of the current frame data, the flag bit is 16 bits, that is, 4 bytes of timestamp data plus the length of the frame data; the sixth position indicates the timestamp data, the bit is 32 bits; the seventh position indicates the data to be transmitted in the inter-core communication, with a maximum of 64 bytes.
[0040] Step A202, based on the preset order, obtains the preset format according to the preset fixed data frame header, the preset data source core label parameter, the preset source core bit number, the preset function bit parameter, the preset data type bit number, the preset flag bit, the preset length bit number, the preset timestamp bit number and the preset data maximum byte.
[0041] It should be noted that the preset position can be the position that determines the arrangement of each of the preset fixed data frame headers, the preset data source core label parameter, the preset source core bit number, the preset function bit parameter, the preset data type bit number, the preset flag bit, the preset length bit number, the preset timestamp bit number and the preset data maximum byte in the preset format, which can be considered to be predetermined.
[0042] It should be noted that after the preset format is determined, the preset format can be input into each core, and each core can perform data format conversion on the data to be transmitted according to the content settings of each position of the preset format.
[0043] Furthermore, when reading the data to be transmitted, the specific content of the data to be transmitted can be obtained according to the meanings represented by different positions in the preset format.
[0044] In this embodiment, by presetting a fixed data format and converting all data to be transmitted into a preset format for storage and reading during the data transmission process, the problem of low data transmission efficiency caused by different data structures between cores can be avoided.
[0045] The above are merely feasible implementations before step S20 provided in this embodiment, and this embodiment does not specifically limit the specific implementations before step S20.
[0046] It should be noted that converting the data to be transmitted into a preset format to obtain reference data includes: converting the data to be transmitted into single-frame inter-core communication data according to the preset format; and using multiple single-frame inter-core communication data within a preset unit time as reference data.
[0047] Step S30: storing the reference data into a target data pool, and obtaining an activation signal based on the target data pool and the reference data.
[0048] It is understandable that the target data pool may be obtained by dividing the vehicle-mounted memory space into multiple data storage spaces, each of which may be a data pool, and the target data pool may be any one of the data pools.
[0049] It should be noted that the vehicle's on-board memory space can be further divided into a writable space for the real-time core and a writable space for the non-real-time core, and the two writable spaces can be equally divided. For example, the memory space can be divided into a writable space for the real-time core and a writable space for the non-real-time core, such as 6M real-time core writable memory space and 6M non-real-time core writable space.
[0050] In a feasible implementation manner, step S30 may include steps A301 to A302: Step A301, obtaining the current status of each data pool.
[0051] It can be understood that the current state of each data pool may include a locked state and an unlocked state.
[0052] It should be understood that the data pool may be in a locked state because the data stored in the data pool is being read by the receiving core, which ensures that the data pool is temporarily not used and does not store new data to be transmitted.
[0053] It should be noted that the receiving core of the data in each data pool and the core accessing the data pool will be matched and verified, and access is allowed if the match is successful.
[0054] Step A302: taking the data pool currently in the unlocked state as the target data pool.
[0055] It is understandable that the sending end core can read each data pool in sequence according to the arrangement order of each data pool, and will not continue to read the next data pool until a data pool in an unlocked state is read, and the data pool is used as the target data pool.
[0056] In this implementation, by locking the data pool storing the unread data to be transmitted, the data to be transmitted can be effectively prevented from being tampered with before being read by the receiving end, and the data pool is locked to ensure data security.
[0057] The above are merely feasible implementations after step S30 provided in this embodiment, and this embodiment does not specifically limit the specific implementations after step S30.
[0058] Step S40: sending the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
[0059] It is understandable that the activation signal may be automatically generated based on the data to be transmitted stored in the data pool and sent to the receiving end core.
[0060] It should be understood that, upon receiving the activation signal, the receiving end core may read the reference data in the target data pool according to the activation signal.
[0061] In a feasible implementation manner, step S40 may include steps A41 to A42: Step A401, when the activation signal is sent successfully, a locking signal is generated, and the target data pool is locked based on the locking signal.
[0062] It should be noted that the locking signal may be based on setting the inter-core shared spin lock to lock the target data pool.
[0063] In a specific implementation, the sending end Data Pool 1 (data pool 1) is sent by the core group to package the inter-core communication data, and at the same time sets the inter-core shared spin lock to lock the current Data Pool 1.
[0064] Step A402: Obtain a read completion signal fed back by the receiving end core, and unlock the target data pool according to the read completion signal.
[0065] It is understandable that the receiving end generates a read completion signal after parsing the current Data Pool 1 data, and immediately unlocks the inter-core shared spin lock according to the read completion signal.
[0066] In the specific implementation, the CPU's inter-core shared spin lock register group is used to complete the protection of the Data Pool; the sending end Data Pool1 is packaged with inter-core communication data by the sending core group, and the inter-core shared spin lock is set to lock the current Data Pool1; the receiving end receives the first address of Data Pool1 and the number of CAN message data, and parses the CAN message data according to the general definition of the memory data structure; the sending end needs to write data in the next 5 millisecond cycle, and first checks whether the spin lock of DataPool1 is locked. If it is locked, it will query Data Pool2 again. If it is not locked, DataPool1 will be used; after the receiving end parses the current Data Pool1 data, it immediately unlocks the inter-core shared spin lock.
[0067] In this implementation, the data pool being read by the receiving core is locked through an inter-core shared spin lock to ensure data security. At the same time, the data pool is unlocked after the receiving core finishes reading the data, so that the data pool can be used for data transmission again, thereby utilizing the CPU's computing resources in a time-sharing manner while avoiding waste in the use of memory space.
[0068] The above are merely feasible implementations after step S40 provided in this embodiment, and this embodiment does not specifically limit the specific implementations after step S40.
[0069] This embodiment provides a method for vehicle-mounted inter-core data transmission, which reduces the memory usage between each core by using a shared data pool to store the data to be transmitted, simplifies the data transmission process according to the preset data format and the shared data pool, makes the data transmission process more concise and efficient, and reminds the receiving core to read based on the activation signal, thereby reducing the number of unnecessary queries and improving the efficiency of data transmission.
[0070] 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 2 , step S30, the vehicle-mounted inter-core data transmission method further includes steps S31 to S33: Step S31 : storing the reference data in a target data pool, wherein the target data pool is any one of a plurality of data pools obtained by equally dividing the real-time core space and the non-real-time core writable space.
[0071] It should be noted that the memory space is divided into a writable space for the real-time core and a writable space for the non-real-time core, for example, 6M of writable memory space for the real-time core and 6M of writable space for the non-real-time core.
[0072] In the specific implementation, since the data used for inter-core transmission are all CAN data, the standard defines CAN / CANFD data as 8 bytes and 64 bytes respectively. The CAN data is combined into a frame of inter-core communication data according to the general definition of the memory data structure, that is, a 10-byte format header plus a maximum of 64 bytes of CANFD data, a total of 74 bytes, and the original real-time core space of 6M and the non-real-time core writable space of 6M are allocated to 3 data pools of the same size, that is, 2M Data Pool1+2M DataPool2+2M Data Pool3 for the real-time core, and 2M Data Pool4+2M Data Pool5+2M Data Pool6 for the non-real-time core, and they are arranged in order in each Data Pool according to 74 bytes.
[0073] Step S32, obtaining the data pool head address, the total number of accumulated messages and the receiving end core according to the target data pool and the reference data.
[0074] It is understandable that the data pool first address may be the location of the target data pool in the memory space, and the location of the target data pool may be quickly located based on the data pool first address.
[0075] It should be understood that the cumulative total number of messages may be the total number of messages included in the reference data.
[0076] It should be understood that the number of the receiving end cores may be one or more.
[0077] In a feasible implementation, step S32 may include steps A321 to A324: Step A321, identifying the data pool type of the target data pool, and obtaining the location coordinates of the target data pool based on the data pool type.
[0078] It can be understood that the data pool types include real-time nuclear data pool and non-real-time nuclear data pool.
[0079] It should be understood that when dividing the memory space into multiple equal data pools, the memory space can be first divided into two parts, one part storing real-time core data and the other part storing non-real-time core data, and then the storage space of the two parts can be further divided into multiple data pools.
[0080] Step A322, obtaining the data pool head address according to the location coordinates.
[0081] It is understandable that the first address of the data pool can be understood as the location of the data pool in the storage space.
[0082] Step A323, obtaining a reference message within a preset unit time, and identifying a receiving end core of the reference message.
[0083] It should be noted that the preset unit time can be 5 milliseconds or other time periods, and can be adjusted according to actual conditions.
[0084] It should be understood that when performing inter-core data transmission, the data transmission speed is very fast. It is necessary to ensure the timeliness of the data during data transmission and the effective utilization of each data pool. A data transmission cycle is set to transmit the data within a time period once.
[0085] It is understandable that the reference message may be a message sent by one sending end core or a message sent by multiple sending end cores.
[0086] Step A323, dividing the reference message according to the receiving end core to obtain the total number of accumulated messages of each receiving end core.
[0087] It is understandable that the receiving cores corresponding to different sending cores may be different or the same. The cumulative total number of messages of each receiving core is counted and sent to the receiving core. The receiving core can read and verify the data to be transmitted based on the cumulative total number of messages.
[0088] It should be understood that the data may be verified by methods such as whether the number of data is the same, or by other methods. This embodiment does not limit this and may be set according to actual conditions, which will not be elaborated again.
[0089] In this implementation, the data pool head address, the cumulative total number of messages and the receiving end core are obtained based on the target data pool and the reference data, so as to determine the receiving end core corresponding to the activation signal, ensure that the receiving end core can accurately read the reference data in the target data pool, and verify the reference data based on the cumulative total number of messages to ensure the security of data transmission.
[0090] The above are only feasible implementations of step S32 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S32.
[0091] Step S33, generating an activation signal according to the data pool head address, the accumulated total number of messages and the receiving end core.
[0092] It is understandable that, based on the activation signal, the receiving end core can determine the target data pool and the number of messages in the data pool.
[0093] In the specific implementation, a task with a 5-ms period is created. Every 5 milliseconds, all data received from the CAN channel will be accumulated, and the inter-core communication data will be organized according to the general definition of the memory data structure and stored in Data Pool 1. The next 5-ms task scheduling cycle will be stored in Data Pool 2, and the next one will be stored in Data Pool 3, and used in a cycle.
[0094] Furthermore, the periodic CAN message data accumulated by the 5-ms periodic task will be packaged into inter-core communication data and stored in the Data Pool. Through the CPU's inter-core communication mechanism, the sending core will send an inter-core communication request, and send the currently used Data Pool first address and the total number of accumulated CAN messages in the request data to the peer core, triggering the interrupt response of the receiving core, and parsing the Data Pool first address and the total number of CAN messages to complete the reception of CAN message data.
[0095] This embodiment provides a method for vehicle-mounted inter-core data transmission. Starting from the general data structure of the memory, the general format is standardized to ensure the effective use of memory data. At the same time, the data processing link is separated from the packet assembly, and the CPU computing resources are utilized in a time-sharing manner to improve data transmission efficiency. The inter-core shared spin lock register group is utilized on the inter-core flag bit, and the timely synchronization of the flag bit is guaranteed by the hardware register method, and the risk of the flag bit being tampered with is avoided.
[0096] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle-mounted inter-core data transmission method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0097] This application also provides a vehicle-mounted inter-core data transmission device, please refer to Figure 3 , the vehicle-mounted inter-core data transmission device comprises: The data acquisition module 10 is used to acquire the data to be transmitted from the core of the sending end; A format conversion module 20, used to convert the data to be transmitted into a preset format to obtain reference data; A data transmission module 30, used to store the reference data into a target data pool, and obtain an activation signal based on the target data pool and the reference data; The data transmission module 30 is further configured to send the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
[0098] The vehicle-mounted inter-core data transmission device provided by the present application adopts the vehicle-mounted inter-core data transmission method in the above embodiment, which can solve the technical problem that the data transmission between multiple vehicle-mounted data processing cores currently occupies a lot of memory and takes a long time, resulting in inefficient inter-core data transmission. Compared with the prior art, the beneficial effects of the vehicle-mounted inter-core data transmission device provided by the present application are the same as the beneficial effects of the vehicle-mounted inter-core data transmission method provided by the above embodiment, and the other technical features of the vehicle-mounted inter-core data transmission device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0099] The present application provides a vehicle-mounted inter-core data transmission device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed 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 vehicle-mounted inter-core data transmission method in the above-mentioned embodiment one.
[0100] Reference below Figure 4 , which shows a schematic diagram of the structure of a vehicle-mounted inter-core data transmission device suitable for implementing the embodiment of the present application. The vehicle-mounted inter-core data transmission device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, 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. Figure 4 The vehicle-mounted inter-core data transmission device shown is merely an example and should not bring any limitations to the functions and scope of use of the embodiments of the present application.
[0101] like Figure 4As shown, the vehicle-mounted inter-core data transmission device may include a processing device 1001 (such as 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 vehicle-mounted inter-core 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 touchpad, 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 vehicle-mounted inter-core data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle-mounted inter-core data transmission device with various systems, 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 provided instead.
[0102] 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.
[0103] The vehicle-mounted inter-core data transmission device provided by the present application adopts the vehicle-mounted inter-core data transmission method in the above embodiment, which can solve the technical problem that the data transmission between multiple vehicle-mounted data processing cores currently occupies a lot of memory and takes a long time, resulting in inefficient inter-core data transmission. Compared with the prior art, the beneficial effects of the vehicle-mounted inter-core data transmission device provided by the present application are the same as the beneficial effects of the vehicle-mounted inter-core data transmission method provided by the above embodiment, and the other technical features of the vehicle-mounted inter-core data transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0104] 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.
[0105] 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.
[0106] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle-mounted inter-core data transmission method in the above-mentioned embodiment.
[0107] 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: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), 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, which may 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: Radio Frequency), etc., or any suitable combination of the above.
[0108] The above-mentioned computer-readable storage medium may be included in the vehicle-mounted inter-core data transmission device; or it may exist independently without being assembled into the vehicle-mounted inter-core data transmission device.
[0109] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the on-board inter-core data transmission device, the on-board inter-core data transmission device enables the on-board inter-core data transmission device to: obtain the data to be transmitted from the sending end core; convert the data to be transmitted into a preset format to obtain reference data; store the reference data in a target data pool, and obtain an activation signal based on the target data pool and the reference data; and send the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
[0110] 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).
[0111] 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.
[0112] 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.
[0113] 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 vehicle-mounted inter-core data transmission method, and can solve the technical problem that the current data transmission between multiple vehicle-mounted data processing cores occupies a lot of memory and takes a long time, resulting in inefficient inter-core data transmission. 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 vehicle-mounted inter-core data transmission method provided by the above-mentioned embodiment, and will not be repeated here.
[0114] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned vehicle-mounted inter-core data transmission method.
[0115] The computer program product provided by the present application can solve the technical problem that the current data transmission between multiple vehicle-mounted data processing cores occupies a large amount of memory and takes a long time, resulting in inefficient inter-core data transmission. 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 vehicle-mounted inter-core data transmission method provided by the above embodiment, and will not be elaborated here.
[0116] 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 vehicle-mounted inter-core data transmission method, characterized in that: The vehicle-mounted inter-core data transmission method comprises: Get the data to be transmitted from the sending core; Converting the data to be transmitted into a preset format to obtain reference data; storing the reference data in a target data pool, and obtaining an activation signal based on the target data pool and the reference data; The activation signal is sent to a receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
2. The vehicle-mounted inter-core data transmission method according to claim 1, characterized in that: Before converting the data to be transmitted into a preset format to obtain reference data, the method further includes: Obtaining a preset fixed data frame header, a preset data source core number parameter and a preset source core bit number, a preset function bit parameter of a data type and a preset data type bit number, a preset flag bit and a preset length bit number of a data length, a preset timestamp bit number, and a preset data maximum byte; The preset format is obtained based on the preset order according to the preset fixed data frame header, the preset data source core label parameter, the preset source core bit number, the preset function bit parameter, the preset data type bit number, the preset flag bit, the preset length bit number, the preset timestamp bit number and the preset data maximum byte.
3. The vehicle-mounted inter-core data transmission method according to claim 1, characterized in that: The converting the data to be transmitted into a preset format to obtain reference data includes: Converting the data to be transmitted into single-frame inter-core communication data according to a preset format; A plurality of single-frame inter-core communication data within a preset unit time is used as reference data.
4. The vehicle-mounted inter-core data transmission method according to claim 1, characterized in that: The storing the reference data into a target data pool, and obtaining an activation signal based on the target data pool and the reference data, comprises: storing the reference data in a target data pool, wherein the target data pool is any one of a plurality of data pools obtained by equally dividing the real-time core space and the non-real-time core writable space; According to the target data pool and the reference data, the data pool first address, the total number of accumulated messages and the receiving end core are obtained; An activation signal is generated according to the data pool first address, the total number of accumulated messages and the receiving end core.
5. The vehicle-mounted inter-core data transmission method according to claim 4, characterized in that: The step of obtaining the data pool first address, the total number of accumulated messages and the receiving end core according to the target data pool and the reference data includes: Identify the data pool type of the target data pool, and obtain the location coordinates of the target data pool based on the data pool type; Obtaining the data pool first address according to the position coordinates; Acquire a reference message within a preset unit time, and identify a receiving end core of the reference message; The reference messages are divided according to the receiving end cores to obtain the total number of accumulated messages of each receiving end core.
6. The vehicle-mounted inter-core data transmission method according to claim 1, characterized in that: Before storing the reference data in a target data pool and obtaining an activation signal based on the target data pool and the reference data, the method further includes: Get the current status of each data pool; The data pool in the current unlocked state is used as the target data pool.
7. The vehicle-mounted inter-core data transmission method according to claim 6, characterized in that: After sending the activation signal to the receiving end core so that the receiving end core reads the reference data from the target data pool according to the activation signal, the method further includes: When the activation signal is sent successfully, a locking signal is generated, and the target data pool is locked based on the locking signal; A read completion signal fed back by the receiving end core is obtained, and the target data pool is unlocked according to the read completion signal.
8. A vehicle-mounted inter-core data transmission device, characterized in that: The vehicle-mounted inter-core data transmission device comprises: A data acquisition module, used to acquire the data to be transmitted from the core of the sending end; A format conversion module, used for converting the data to be transmitted into a preset format to obtain reference data; A data transmission module, used for storing the reference data into a target data pool, and obtaining an activation signal based on the target data pool and the reference data; The data transmission module is further configured to send the activation signal to the receiving end core, so that the receiving end core reads the reference data from the target data pool according to the activation signal.
9. A vehicle-mounted inter-core data transmission device, characterized in that: The device includes: a memory, a processor, and a vehicle-mounted inter-core data transmission program stored in the memory and executable on the processor, wherein the vehicle-mounted inter-core data transmission program is configured to implement the vehicle-mounted inter-core data transmission method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores an on-vehicle inter-core data transmission program, and when the on-vehicle inter-core data transmission program is executed by the processor, the on-vehicle inter-core data transmission method according to any one of claims 1 to 7 is implemented.
