Smart car data processing method, device, equipment and storage medium
By obtaining the publishing data and its identifier of the publishing node, using the node relationship information to determine the subscription node identifier, and sending the publishing data to the subscription node, the problem of high development and maintenance costs of automotive application software is solved, the independent deployment of the program and the reuse of data are realized, and the software development and maintenance costs are reduced.
Patent Information
- Application Number
- CN202210124016.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-08
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-02-08
AI Technical Summary
The development and maintenance costs of automotive application software are high, and there is an urgent need to improve the portability and scalability of the software to reduce costs.
By obtaining the publishing data and its identifier of the publishing node, using the node relationship information to determine the subscription node identifier, and sending the publishing data to the subscription node, the transmission and processing of smart car data is realized. Communication nodes are used for data transmission between different programs, and the node relationship information is stored as a hash table or dictionary tree.
It realizes independent deployment of programs and reuse of data, reducing the development and maintenance costs of automotive application software.
Smart Images

Figure CN114564209B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a method, device, equipment and storage medium for processing smart automobile data. Background Art
[0002] With the rapid development of intelligent, connected, electrified, and shared vehicles, the demand for various automotive application software continues to increase. The total amount of software code is also rapidly increasing, and the cost of software development and maintenance is also rising. To reduce software development and maintenance costs, a software system that can improve software portability and scalability is urgently needed to transmit and process smart car data. Summary of the Invention
[0003] The present invention provides a method, device, equipment and storage medium for processing smart car data, which solves the problem of high development and maintenance costs of automobile application software.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] In a first aspect of an embodiment of the present application, a method for processing smart car data is provided, which is applied to an electronic device system. The electronic device system includes multiple electronic devices, each of which is installed with at least one application, the application includes an application program, and the application program includes at least one node. The method includes: obtaining publishing data of a publishing node, the publishing data includes a publishing node identifier; obtaining node relationship information, the node relationship information is used to indicate a subscription relationship between each node; determining a subscription node identifier corresponding to the publishing node identifier based on the publishing node identifier and the node relationship information; and sending the publishing data to the subscription node based on the subscription node identifier.
[0006] In one embodiment, before obtaining the publishing data of the publishing node, the method further includes:
[0007] The application is split into at least one application sub-program according to a preset condition, and each application sub-program is encapsulated to obtain at least one node.
[0008] In one embodiment, the node further includes a communication node, and before obtaining the publishing data of the publishing node, the method further includes:
[0009] Obtain a preset communication protocol and generate a communication node according to the communication protocol. The communication node is used to transmit and publish data.
[0010] In one embodiment, sending the published data to the subscription node according to the subscription node identifier includes:
[0011] If the publishing node and the subscribing node belong to the same application, the published data is sent to the subscribing node according to the subscribing node identifier;
[0012] If the publishing node and the subscribing node belong to different applications, the publishing data is sent to the subscribing node according to the subscribing node identifier and the communication node.
[0013] In one embodiment, sending the published data to the subscription node according to the subscription node identifier includes:
[0014] According to the subscription node identifier, the registration receiving function of the subscription node is called, the published data is added to the registration receiving function, and the registration receiving function with the added published data is sent to the subscription node.
[0015] In one embodiment, a basic program is installed on the electronic device, and the method further includes:
[0016] The basic program is encapsulated using the same program interface to obtain the processed basic program;
[0017] Use the processed basic program to communicate data with the application.
[0018] In one embodiment, before obtaining the publishing data of the publishing node, the method further includes:
[0019] Generate node relationship information based on the subscription relationship between nodes;
[0020] The node relationship information is stored in a preset electronic device.
[0021] In one embodiment, storing the node relationship information in a preset electronic device includes:
[0022] The node relationship information is stored in the electronic device in the form of a hash table or a dictionary tree.
[0023] In a second aspect of an embodiment of the present application, a device for processing smart car data is provided. The device is located in an electronic device system, wherein the electronic device system includes multiple electronic devices, each of which has at least one application installed thereon, the application including an application program, and the application program including at least one node. The device includes:
[0024] A first acquisition module is used to acquire the publishing data of the publishing node, where the publishing data includes the publishing node identifier and vehicle body data;
[0025] A second acquisition module is used to acquire node relationship information, where the node relationship information is used to indicate the subscription relationship between nodes;
[0026] A determination module, configured to determine a subscription node identifier corresponding to the publishing node identifier based on the publishing node identifier and node relationship information;
[0027] The sending module is used to send the published data to the subscription node according to the subscription node identifier.
[0028] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the method for processing smart car data according to any one of the first aspects of the embodiment of the present application.
[0029] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for processing smart car data according to the first aspect of an embodiment of the present application is implemented.
[0030] The method for processing smart car data provided by an embodiment of the present invention is applied to an electronic device system, which includes multiple electronic devices, each of which is installed with an application, each of which includes an application program, and each of which includes a node. By obtaining the publishing data of the publishing node and the publishing node identifier in the publishing data, and then obtaining the node relationship information, the node relationship information can indicate the subscription relationship between the nodes. Finally, based on the publishing node identifier and the node relationship information, the subscription node identifier corresponding to the publishing node identifier is determined, and the publishing data is sent to the subscription node based on the subscription node identifier to realize the transmission and processing of smart car data. In this way, by transmitting data to the nodes of the application program, the independent deployment of the program can be realized, and the publishing data in each node can be reused between different programs. Therefore, the problem of high development and maintenance costs of automobile application software can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of the internal structure of an electronic device provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of a software framework provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of a software framework deployment provided in an embodiment of the present application;
[0034] Figure 4 A flowchart of a software framework deployment method provided in an embodiment of the present application;
[0035] Figure 5 A flowchart of a method for processing smart car data provided in an embodiment of the present application;
[0036] Figure 6 A schematic diagram of the transmission of smart car data provided in the embodiment of the present application Figure 1 ;
[0037] Figure 7 A schematic diagram of the transmission of smart car data provided in the embodiment of the present application Figure 2 ;
[0038] Figure 8 A schematic diagram of a method for processing smart car data provided in an embodiment of the present application;
[0039] Figure 9 This is a structural diagram of a smart car data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0041] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0042] Additionally, the use of “based on” or “according to” is intended to be open and inclusive, in that a process, step, calculation, or other action “based on” or “according to” one or more conditions or values may, in practice, be based on additional conditions or beyond values.
[0043] In order to solve the problem of high development and maintenance costs of automobile application software, an embodiment of the present invention provides a method for processing intelligent automobile data, which is applied to an electronic device system. The electronic device system includes multiple electronic devices, each of which is installed with an application, each application includes an application program, and each application program includes a node. By obtaining the publishing data of the publishing node and the publishing node identifier in the publishing data, and then obtaining node relationship information, the node relationship information can indicate the subscription relationship between the nodes. Finally, based on the publishing node identifier and the node relationship information, the subscription node identifier corresponding to the publishing node identifier is determined, and the publishing data is sent to the subscription node based on the subscription node identifier to realize the transmission and processing of intelligent automobile data. In this way, by transmitting data to the nodes of the application program, the independent deployment of the program can be realized, and the publishing data in each node can be reused between different programs, which can reduce the problem of high development and maintenance costs of automobile application software.
[0044] The method for processing smart car data provided in an embodiment of the present application is applied to an electronic device system, which includes at least one electronic device, which can be a computer device, a terminal device, or a server. Alternatively, the electronic device can also be a computer device, a terminal device, or a chip in a server. Each electronic device is installed with at least one application, which can include vehicle-related applications, such as navigation maps, audio and video playback, car life applications, or sensor-based vehicle information detection applications.
[0045] The execution subject of the smart car data processing method provided in the embodiment of the present application can be an electronic device, which can be a computer device, a terminal device, or a server. The terminal device can be a vehicle-mounted terminal, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, etc., and this application does not make specific limitations.
[0046] Figure 1 This is a schematic diagram of the internal structure of an electronic device provided in an embodiment of the present application. Figure 1 As shown, the electronic device includes a processor and memory connected via a system bus. The processor is used to provide computing and control capabilities. The memory may include a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement the steps of the smart car data processing method provided in each of the above embodiments. The internal memory provides a cached operating environment for the operating system and computer program stored in the non-volatile storage medium.
[0047] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0048] Figure 2 A schematic diagram of the software framework provided in the embodiment of this application is shown in FIG. Figure 2 As shown, the software architecture provided by the embodiment of the present application includes: basic software, middleware software and application software, wherein the application software may include vehicle-related applications, such as navigation maps, audio and video playback, car life applications or sensor-based vehicle information detection applications, the basic software includes driver software and operating system, and the software architecture supports various common operating systems, such as Figure 3As shown, the software architecture and the middleware in the software architecture can support deployment on automotive smart devices, and can also support deployment on PC clients, servers and the cloud, achieving all-round deployment and unified configuration of application software.
[0049] like Figure 2 The software architecture shown, based on the layered design concept, proposes a standardized design of operating systems and driver interfaces to achieve software and hardware decoupling and enable middleware adaptation to multiple platforms and operating systems. At the same time, based on the componentized design concept, the application software modules are designed in a node componentized manner, providing four types of nodes: business nodes, basic service nodes, communication nodes, and sensor nodes, for achieving module-independent deployment. In addition, based on the middleware concept, the node management and data service modules are designed to manage component nodes and data communication. Based on the service-oriented and publisher-subscriber design concept, service-oriented communication between nodes is proposed to make the middleware node modules loosely coupled.
[0050] like Figure 4 The figure shows a flowchart of the specific deployment method of the software architecture. During the actual deployment process, the module parameters and node parameters are visually configured through the middleware tool chain, and the data routing relationship is set to automatically produce code.
[0051] Based on the above execution subject, the embodiment of the present application provides a method for processing smart car data. It is applied to an electronic device system, which includes multiple electronic devices, each of which has at least one application installed, and the application includes an application program, and the application program includes at least one node, such as Figure 5 As shown, the method includes:
[0052] Step 501: Obtain the publishing data of the publishing node.
[0053] The publishing node is a node that publishes data, and the published data includes a publishing node identifier.
[0054] Optionally, the published data can be: radar, high-precision maps, visual image data and GPS positioning data, log records, time synchronization, diagnostic monitoring, algorithms or application services, etc.
[0055] The published data may be data that each application needs to transmit or call, and the data may be vehicle information data or vehicle information data detected by a vehicle sensor.
[0056] Step 502: Obtain node relationship information.
[0057] The node relationship information is used to indicate the subscription relationship between nodes.
[0058] It should be noted that before obtaining the publishing data of the publishing node, it is necessary to pre-generate node relationship information based on the subscription relationship between nodes of the application programs on each electronic device, and store the generated node relationship information in a preset electronic device.
[0059] Step 503: Determine the subscription node identifier corresponding to the publishing node identifier according to the publishing node identifier and the node relationship information.
[0060] After obtaining the publishing node identifier and the node relationship information, the corresponding subscribing node identifier is searched for in the node relationship information according to the publishing node identifier.
[0061] Step 504: Send the published data to the subscription node according to the subscription node identifier.
[0062] An embodiment of the present invention provides a method for processing smart car data, which is applied to an electronic device system. The electronic device system includes multiple electronic devices, each of which is installed with an application, each of which includes an application program, and each of which includes a node. By obtaining the publishing data of the publishing node and the publishing node identifier in the publishing data, and then obtaining node relationship information, the node relationship information can indicate the subscription relationship between the nodes. Finally, based on the publishing node identifier and the node relationship information, the subscription node identifier corresponding to the publishing node identifier is determined, and the publishing data is sent to the subscription node based on the subscription node identifier to realize the transmission and processing of smart car data. In this way, by transmitting data to the nodes of the application program, the independent deployment of the program can be realized, and the publishing data in each node can be reused between different programs, which can reduce the high cost of automobile application software development and maintenance.
[0063] In one embodiment, before obtaining the publishing data of the publishing node, the method further includes: splitting the application into at least one application sub-program according to a preset condition, and encapsulating each application sub-program to obtain at least one node.
[0064] The nodes also include communication nodes, which can be deployed in different applications.
[0065] Optionally, after obtaining the preset communication protocol, a communication node may be generated according to the communication protocol, and the communication node is used to transmit and publish data.
[0066] In one embodiment, the publishing data is sent to the subscription node according to the subscription node identifier, including: if the publishing node and the subscription node belong to the same application, the publishing data is sent to the subscription node according to the subscription node identifier; if the publishing node and the subscription node belong to different applications, the publishing data is sent to the subscription node according to the subscription node identifier and the communication node.
[0067] It should be noted that when configuring node relationship information, a communication node can be configured in advance between nodes belonging to two different programs. If the publishing node and the subscribing node belong to different applications, when transmitting published data, the published data is transmitted through the communication node between the publishing node and the subscribing node.
[0068] like Figure 6 As shown in the figure, node programs within the same process can directly transmit data through the middleware; when nodes between different processes, or different cores or different operating systems transmit data, they need to use communication nodes to route data and then achieve data communication. Figure 7 As shown, an embodiment of the present application provides a schematic diagram of a middleware remote procedure call to achieve data transmission between different devices.
[0069] Optionally, sending the published data to the subscription node according to the subscription node identifier includes: calling the registration receiving function of the subscription node according to the subscription node identifier, adding the published data to the registration receiving function, and sending the registration receiving function with the added published data to the subscription node.
[0070] In one embodiment, basic software is installed on the electronic device, and the method further includes: encapsulating the basic program using the same program interface to obtain a processed basic program; and using the processed basic program to communicate data with the application.
[0071] In one embodiment, before obtaining the publishing data of the publishing node, the method further includes: generating node relationship information according to the subscription relationship between the nodes; and storing the node relationship information in a preset electronic device.
[0072] Optionally, when performing the node relationship information storage process, the node relationship information may be stored in the electronic device in the form of a hash table or a dictionary tree.
[0073] To facilitate understanding by those skilled in the art, an embodiment of the present application further provides a method for processing smart car data, which is applied to an electronic device system. The electronic device system includes multiple electronic devices, each of which has at least one application installed thereon, the application including an application program, and the application program including at least one node. Specifically, the method includes:
[0074] (1) Split the application into at least one application subprogram according to preset conditions, and encapsulate each application subprogram to obtain at least one node.
[0075] (2) Encapsulating the basic program using the same program interface to obtain the processed basic program;
[0076] (3) Use the processed basic program to communicate data with the application.
[0077] (4) Generate node relationship information based on the subscription relationship between each node;
[0078] (5) The node relationship information is stored in the electronic device in the form of a hash table or a dictionary tree.
[0079] (6) Obtain a preset communication protocol and generate a communication node according to the communication protocol. The communication node is used to transmit and publish data.
[0080] (7) Obtaining the publishing data of the publishing node, the publishing data including the publishing node identifier;
[0081] (8) Obtaining node relationship information, which is used to indicate the subscription relationship between nodes;
[0082] (9) Determine the subscription node identifier corresponding to the publishing node identifier based on the publishing node identifier and the node relationship information;
[0083] (10) If the publishing node and the subscribing node belong to the same application, the publishing data is sent to the subscribing node according to the subscribing node identifier;
[0084] (11) If the publishing node and the subscribing node belong to different applications, the publishing data is sent to the subscribing node according to the subscribing node identifier and the communication node.
[0085] (12) According to the subscription node identifier, the registration receiving function of the subscription node is called, the published data is added to the registration receiving function, and the registration receiving function with the added published data is sent to the subscription node.
[0086] Regarding the above-mentioned method for processing smart car data, this application also provides a specific embodiment of the method for processing smart car data, such as Figure 8 As shown, it includes multiple types of chips, each chip includes multiple program nodes, and uses Figure 2 As shown in the software architecture. Figure 8As shown, the chip includes the TDA4 R5F, TDA4 A72, J3 A53, and DvTool X86. For smart car data transmission, the TDA4 R5F deploys four nodes: front radar, corner radar, network communication node, and inter-core communication node. The corner radar node publishes corner radar target data from four directions; the front radar node publishes forward radar target data; the network communication node communicates with the MCU to publish vehicle body data; and the inter-core communication node routes corner radar, front radar, and vehicle body data and publishes it to the A72. The TDA4 A72 deploys five nodes: rearview perception, surround view perception, fusion, inter-core communication, and DDS communication nodes. The rearview perception node publishes rearview perception output data; the surround view perception node publishes surround view perception output data; the fusion node runs the 6V5R algorithm and publishes fused perception output data; the inter-core communication route publishes corner radar, front radar, and vehicle body data collected by the TDA4 R5F; and the DDS communication node routes fused perception output data. The J3 A53 deploys two nodes: the forward view perception and DDS communication nodes. The forward-view perception node publishes forward-view perception output data, and the DDS communication node routes forward-view perception output data. DvTool X86 deploys two nodes: the DDS communication node and the recording node. The DDS communication node publishes the fused perception output data sent by the TDA4A72; the data recording node subscribes to the fused perception output data and records and stores it.
[0087] An embodiment of the present invention provides a method for processing smart car data, which is applied to an electronic device system. The electronic device system includes multiple electronic devices, each of which is installed with an application, each of which includes an application program, and each of which includes a node. By obtaining the publishing data of the publishing node and the publishing node identifier in the publishing data, and then obtaining node relationship information, the node relationship information can indicate the subscription relationship between the nodes. Finally, based on the publishing node identifier and the node relationship information, the subscription node identifier corresponding to the publishing node identifier is determined, and the publishing data is sent to the subscription node based on the subscription node identifier to realize the transmission and processing of smart car data. In this way, by transmitting data to the nodes of the application program, the independent deployment of the program can be realized, and the publishing data in each node can be reused between different programs, which can reduce the high cost of automobile application software development and maintenance.
[0088] At the same time, the use of a unified interface for basic modules allows for software and hardware decoupling, improving software portability and reducing maintenance costs. The modular design of sensors, communications, and application functions enables independent module deployment and upgrades, increasing software reusability across projects and further reducing software development costs. The design of data-service-oriented communication nodes makes node components insensitive to communication methods, reducing module coupling and enabling independent module deployment and upgrades.
[0089] The execution process of (1) to (12) above can be specifically referred to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here. It should be understood that the steps in the step flow chart of the embodiment of the life assessment method of each vehicle power steering system are displayed in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0090] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0091] like Figure 9 As shown, an embodiment of the present application also provides a device for processing smart car data, which is located in an electronic device system. The electronic device system includes multiple electronic devices, each of which is installed with at least one application, the application includes an application program, and the application program includes at least one node. The device includes: a first acquisition module 11, a second acquisition module 12, a determination module 13 and a sending module 14.
[0092] The first acquisition module 11 is used to acquire the publishing data of the publishing node, and the publishing data includes the publishing node identifier and vehicle body data;
[0093] A second acquisition module 12 is used to acquire node relationship information, where the node relationship information is used to indicate the subscription relationship between nodes;
[0094] Determining module 13, used to determine the subscription node identifier corresponding to the publishing node identifier based on the publishing node identifier and the node relationship information;
[0095] The sending module 14 is configured to send the published data to the subscription node according to the subscription node identifier.
[0096] In one embodiment, the smart car data processing device further includes a processing module 15 configured to split the application into at least one application subprogram according to a preset condition, and encapsulate each application subprogram to obtain at least one node.
[0097] In one embodiment, the processing module 15 is further configured to: obtain a preset communication protocol, and generate a communication node according to the communication protocol, wherein the communication node is used to transmit the published data.
[0098] In one embodiment, the sending module 14 is specifically configured to: if the publishing node and the subscribing node belong to the same application, send the published data to the subscribing node according to the subscribing node identifier;
[0099] If the publishing node and the subscribing node belong to different applications, the publishing data is sent to the subscribing node according to the subscribing node identifier and the communication node.
[0100] In one embodiment, the sending module 14 is specifically configured to send the published data to the subscription node according to the subscription node identifier, including:
[0101] According to the subscription node identifier, the registration receiving function of the subscription node is called, the published data is added to the registration receiving function, and the registration receiving function with the added published data is sent to the subscription node.
[0102] In one embodiment, the processing module 15 is further configured to: encapsulate the basic program using the same program interface to obtain a processed basic program; and perform data communication with the application using the processed basic program.
[0103] In one embodiment, the processing module 15 is further configured to: generate node relationship information according to the subscription relationship between the nodes; and store the node relationship information in a preset electronic device.
[0104] In one embodiment, the processing module 15 is specifically configured to store the node relationship information in the electronic device in the form of a hash table or a dictionary tree.
[0105] The smart car data processing device provided in this embodiment can execute the above method embodiment. Its implementation principles and technical effects are similar and will not be repeated here.
[0106] The specific definition of the intelligent vehicle data processing device can be found in the definition of the intelligent vehicle data processing method described above and will not be repeated here. Each module in the intelligent vehicle data processing device described above can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the modules can be embedded in or independent of the server processor in hardware form, or stored in the server memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0107] In another embodiment of the present application, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the steps of the method for processing smart car data as in the embodiment of the present application are implemented.
[0108] In another embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for processing smart car data in the embodiment of the present application are implemented.
[0109] In another embodiment of the present application, a computer program product is also provided. The computer program product includes computer instructions. When the computer instructions are executed on a smart car data processing device, the smart car data processing device executes each step of the smart car data processing method in the method flow shown in the above method embodiment.
[0110] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer execution instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more media that can be integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0111] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] The above embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent. It should be noted that a person skilled in the art would be able to make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the patent for this invention shall be determined by the appended claims.
Claims
1. A method for processing smart car data, applied to an electronic equipment system, characterized in that: The electronic device system includes a plurality of electronic devices, each of the electronic devices having at least one application installed thereon, the application including an application program, the application program including at least one node, and the method including: Obtaining publishing data of a publishing node, wherein the publishing data includes a publishing node identifier; Obtaining node relationship information, where the node relationship information is used to indicate a subscription relationship between nodes; Determining a subscription node identifier corresponding to the publishing node identifier based on the publishing node identifier and the node relationship information; Sending the published data to the subscription node according to the subscription node identifier; The node further includes a communication node. Before obtaining the publishing data of the publishing node, the method further includes: Acquire a preset communication protocol, and generate a communication node according to the communication protocol, wherein the communication node is used to transmit the published data; The sending of the published data to the subscription node according to the subscription node identifier includes: If the publishing node and the subscribing node belong to the same application, sending the publishing data to the subscribing node according to the subscribing node identifier; If the publishing node and the subscribing node belong to different applications, sending the publishing data to the subscribing node according to the subscribing node identifier and the communication node; The sending of the published data to the subscription node according to the subscription node identifier includes: According to the subscription node identifier, calling the registration receiving function of the subscription node, adding the publishing data to the registration receiving function, and sending the registration receiving function with the added publishing data to the subscription node; The electronic device has a basic program installed thereon, and the method further includes: The basic program is encapsulated using the same program interface to obtain a processed basic program; The processed basic program is used to communicate data with the application.
2. The method according to claim 1, characterized in that Before obtaining the publishing data of the publishing node, the method further includes: The application is split into at least one application sub-program according to a preset condition, and each application sub-program is encapsulated to obtain at least one node.
3. The method according to claim 1, characterized in that Before obtaining the publishing data of the publishing node, the method further includes: Generate the node relationship information according to the subscription relationship between the nodes; The node relationship information is stored in a preset electronic device.
4. The method according to claim 3, characterized in that The storing of the node relationship information in a preset electronic device includes: The node relationship information is stored in the electronic device in the form of a hash table or a dictionary tree.
5. A smart car data processing device located in an electronic equipment system, characterized in that: The electronic device system includes a plurality of electronic devices, each of the electronic devices having at least one application installed thereon, the application including an application program, the application program including at least one node, and the apparatus including: A first acquisition module is used to acquire the publishing data of the publishing node, wherein the publishing data includes the publishing node identifier; A second acquisition module is used to acquire node relationship information, where the node relationship information is used to indicate a subscription relationship between nodes; a determination module, configured to determine a subscription node identifier corresponding to the publishing node identifier based on the publishing node identifier and the node relationship information; A sending module, configured to send the published data to a subscription node according to the subscription node identifier; The processing module is further used to: obtain a preset communication protocol and generate a communication node according to the communication protocol, the communication node being used to transmit and publish data; The sending module is specifically configured to: if the publishing node and the subscribing node belong to the same application, send the published data to the subscribing node according to the subscribing node identifier; if the publishing node and the subscribing node belong to different applications, send the published data to the subscribing node according to the subscribing node identifier and the communication node; The sending module is specifically used to: call the registration receiving function of the subscription node according to the subscription node identifier, add the publishing data to the registration receiving function, and send the registration receiving function with the added publishing data to the subscription node; The processing module is further used for: encapsulating the basic program using the same program interface to obtain a processed basic program; and performing data communication with the application using the processed basic program.
6. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for processing smart car data according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium, characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method for processing smart car data as claimed in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Node, node interaction method and system
CN109510748A