DBC gateway transparent transmission method and device based on UDP communication
By receiving and processing DBC data in real time in the data processing center and combining it with UDP communication connections for monitoring and caching, the problems of insufficient security, performance and manageability of UDP communication gateway transparent transmission in industrial automation and intelligent manufacturing are solved, and the stability of data transmission and the improvement of resource utilization are achieved.
Patent Information
- Application Number
- CN202511185592.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2025-09-26
AI Technical Summary
Existing UDP communication gateway transparent transmission has problems such as insufficient security, poor performance and poor manageability in industrial automation and intelligent manufacturing. It is easily affected by network fluctuations and cannot effectively process data, resulting in control command delays, loss and high management complexity.
By receiving and processing DBC data in real time in the data processing center, using pre-stored data sets and logic for data processing, combining UDP communication connections for monitoring and caching, and dynamically adjusting transmission strategies, transparent data transmission and optimized processing are achieved.
It improves the overall efficiency of the system, reduces resource waste, ensures the stability and reliability of data transmission, reduces dependence on the network, and improves the system's resource utilization and ease of management.
Smart Images

Figure CN120711047A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a DBC gateway transparent transmission method and device based on UDP communication. Background Art
[0002] With the popularization of 5G and edge computing, and the continuous upgrading of hardware and network layer data, many shortcomings have also been exposed. For example, in industrial automation and intelligent manufacturing, network fluctuations often lead to control command delays and losses. However, the core disadvantage of gateway transparent transmission stems from its "no data processing" feature. In terms of security, since there is no security verification, encryption or filtering of data, there is a risk of data tampering, forgery or injection attacks; in terms of performance, data cannot be optimized and processing, and large amounts of data transmission can easily cause network congestion, affecting the timeliness of command delivery; in terms of manageability, it does not involve data storage, analysis or status monitoring, making it difficult to trace the root cause of the problem and configuration adjustments rely on subsequent data processing centers, increasing management complexity. Summary of the Invention
[0003] The purpose of the embodiments of the present application is to provide a DBC gateway transparent transmission method and device based on UDP communication, so as to solve the technical problems existing in the above-mentioned prior art in terms of security, performance, and manageability.
[0004] In a first aspect, a DBC gateway transparent transmission method based on UDP communication is provided, which is applied to a data processing center in a transparent transmission system, wherein the transparent transmission system also includes a host computer for monitoring a target electronic unit, a DBC gateway, and a DBC module connected to the target electronic unit; the data processing center establishes a UDP communication connection with the host computer, and the method may include: receiving in real time current DBC data output by the DBC module and transparently transmitted through the DBC gateway; the current DBC data includes sub-DBC data of different data types corresponding to the target electronic unit; based on a pre-stored DBC data volume set and corresponding data processing logic, processing the current DBC data to obtain monitoring data of the target electronic unit; the DBC data volume set and the corresponding data processing logic are transmitted in advance by the host computer through the UDP communication connection; and sending the monitoring data to the host computer through the UDP communication connection.
[0005] In a possible implementation, the sub-DBC data of different data types include the DBC data name, CANID, start bit, and end bit related to each component included in the target electronic unit.
[0006] In one possible implementation, the current DBC data is processed based on a pre-stored DBC data volume set and corresponding data processing logic to obtain monitoring data of the target electronic unit, including: based on the pre-stored DBC data volume set and the start bit and end bit of each sub-DBC data in the current DBC data, data volume allocation of sub-DBC data of different data types corresponding to each component in the current DBC data to obtain multiple allocated data volumes; using the data processing logic to process the multiple allocated data volumes according to data type to obtain monitoring data of the target electronic unit.
[0007] In one possible implementation, the stored monitoring data is sent to the host computer via the UDP communication connection, including: real-time monitoring of the UDP communication connection to obtain monitoring results; if the monitoring result is that the UDP communication connection is online, the monitoring data is sent to the host computer via the UDP communication connection.
[0008] In one possible implementation, after obtaining the monitoring data of the target electronic unit, the method further includes: storing the monitoring data of the target electronic unit in a configured cache queue; receiving a data acquisition request sent by the host computer through the UDP communication connection; and reading the monitoring data in the cache queue based on the data acquisition request.
[0009] In a possible implementation, after receiving in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway, the method further includes: caching the current DBC data if the current DBC data is greater than a data threshold.
[0010] In one possible implementation, the method further includes: receiving a new DBC data volume set and corresponding data processing logic sent by the host computer through the UDP communication connection; if the new DBC data volume set and / or the corresponding data processing logic are different from the pre-stored DBC data volume set and / or the corresponding data processing logic, respectively, deleting the pre-stored DBC data volume set and the corresponding data processing logic, and storing the new DBC data volume set and the corresponding data processing logic.
[0011] In a second aspect, a DBC gateway transparent transmission device based on UDP communication is provided, which is applied to a data processing center in a transparent transmission system. The transparent transmission system also includes a host computer for monitoring a target electronic unit, a DBC gateway, and a DBC module connected to the target electronic unit. The data processing center establishes a UDP communication connection with the host computer. The device may include: A receiving unit, configured to receive in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway; the current DBC data includes different DBC sub-data corresponding to the target electronic unit; a processing unit configured to process the current DBC data based on a pre-stored DBC data set and corresponding data processing logic to obtain monitoring data of the target electronic unit; the DBC data set and corresponding data processing logic are pre-transmitted by the host computer via the UDP communication connection; The sending unit is used to send the stored monitoring data to the host computer through the UDP communication connection.
[0012] In a third aspect, an electronic device is provided, the electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement any of the method steps described in the first aspect when executing a program stored in the memory.
[0013] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the method steps described in the first aspect is implemented.
[0014] This application provides a DBC gateway transparent transmission method and device based on UDP communication, which is applied to the data processing center of a transparent transmission system. The transparent transmission system also includes a host computer that monitors the target electronic unit, a DBC gateway, and a DBC module connected to the target electronic unit; the data processing center establishes a UDP communication connection with the host computer, including: real-time reception of current DBC data output by the DBC module and transparent transmission through the DBC gateway; the current DBC data includes sub-DBC data of different data types corresponding to the target electronic unit; based on a pre-stored DBC data volume set and corresponding data processing logic, the current DBC data is processed to obtain monitoring data of the target electronic unit; the DBC data volume set and corresponding data processing logic are pre-transmitted by the host computer via a UDP communication connection; and the monitoring data is sent to the host computer via the UDP communication connection. This method improves the overall efficiency of the system and reduces resource waste. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A schematic diagram of the structure of a transparent transmission system provided in an embodiment of the present application; Figure 2 A flowchart of a DBC gateway transparent transmission method based on UDP communication provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of a DBC gateway transparent transmission device based on UDP communication provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following will provide a clear and complete description of the technical solutions in the embodiments of the present application, in conjunction with the accompanying drawings. It should be understood that the described embodiments represent only a portion of the embodiments of the present application and are not intended to be exhaustive. Based on the embodiments of the present application, all other embodiments derived by persons of ordinary skill in the art without inventive effort are intended to fall within the scope of protection of the present application. Unless otherwise defined, technical or scientific terms used in this application should have the ordinary meanings understood by persons of ordinary skill in the art to which the present invention pertains. Words such as "include" or "comprising" mean that the elements or objects preceding the word include the elements or objects listed after the word, and their equivalents, without excluding other elements or objects. Words such as "connect," "couple," or "connected" are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0018] Gateway transparent transmission technology is primarily used to improve data reception efficiency and data stability, and is widely used in fields such as industrial automation and intelligent manufacturing. Its core goal is to enable lossless communication between devices in different network environments. This technology will be further applied in more scenarios with high real-time requirements. The UDP (User Datagram Protocol) in the other text refers to the UDP communication protocol. UDP is a connectionless transport layer network protocol, alongside TCP (Transmission Control Protocol). It is often used in scenarios with high real-time requirements and tolerance for small amounts of data loss. It features connectionless, lightweight, and datagram-oriented features. Gateway transparent transmission is a network communication technology whose core is to achieve "transparent transmission" of data through a gateway. That is, data is not parsed or modified when passing through the gateway, but is only forwarded.
[0019] DBC is a standard file format used in automotive electronics to describe the Controller Area Network (CAN) communication protocol.
[0020] Gateway: A device that connects different networks (such as a home router or industrial gateway), usually used for protocol conversion, routing, and forwarding.
[0021] Pass-Through: When data passes from the sender to the receiver via the gateway, the gateway does not process the data content (such as parsing or modifying it). It is only responsible for establishing the transmission channel and forwarding data, similar to the "pipeline" function. This is also the main function of conventional gateway pass-through, which maintains the forwarding capability and data integrity of the network layer. Complex protocol conversion requirements need to be combined with protocol parsing functions.
[0022] This application provides a DBC gateway transparent transmission method based on UDP communication that can be applied in Figure 1 In the transparent transmission system shown in Figure 1 As shown, the transparent transmission system may include: a data processing center, a host computer that monitors the target electronic unit, a DBC gateway, and a DBC module connected to the target electronic unit. The data processing center establishes a UDP communication connection with the host computer. The data processing center is configured to: receive in real time the current DBC data output by the DBC module and transparently transmitted via the DBC gateway; the current DBC data may include different DBC sub-data corresponding to the target electronic unit; process the current DBC data based on a pre-stored DBC data set and corresponding data processing logic to obtain monitoring data for the target electronic unit; the DBC data set and corresponding data processing logic are pre-transmitted by the host computer via a UDP communication connection; and transmit the stored monitoring data to the host computer via the UDP communication connection. The target electronic unit may be a battery pack (also known as a "power battery") containing multiple battery cells, or an electronic device containing multiple DBC data capable of transmitting and receiving DBC data.
[0023] Correspondingly, the data processing center can also send business data to the DBC module through the DBC gateway based on the instructions of the host computer.
[0024] In the DBC gateway transparent transmission method based on UDP communication provided in this application, when the host computer sends configuration data (including DBC data volume set and corresponding data processing logic) via UDP communication, the data processing center receives the configuration data, parses the data area required to be opened in the configuration data, initializes the data area (initializes the cache queue and calculation logic thread), and caches the data processing logic in the configuration data in the data processing center, allowing the data processing center to dynamically obtain the calculation logic. Through the dynamic logic calculation and data caching, the problem of long-term dependence on the stability of the underlying network in transparent transmission can be effectively solved. Even if the UDP communication is unstable, it can ensure that the data sent by the DBC module can still be sent to the data processing center normally and processed, reducing the dependence on the network. Because it can dynamically expand the calculation logic, it solves the traditional defect of transparent transmission without data processing. At the same time, in order to handle the situation where the DBC data is too large, a cache queue can be added, allowing the data processing center to automatically divert and reduce pressure when overloaded, reducing the pressure on the gateway and improving the resource utilization of the system.
[0025] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application can be combined with each other if there is no conflict.
[0026] Figure 2 The present invention provides a flow chart of a DBC gateway transparent transmission method based on UDP communication. Figure 2 As shown, the method may include: Step S210: receiving in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway.
[0027] The current DBC data may include sub-DBC data of different data types corresponding to the target electronic unit. The sub-DBC data of different data types include sub-DBC data of different data types related to each component included in the target electronic unit; any sub-DBC data may include the DBC data name, CANID, start bit, and end bit related to the corresponding component.
[0028] For example, the target electronic unit includes 3 components, and the current DBC data can be expressed as: [sub-DBC data of data type 1 of the 1st component, sub-DBC data of data type 2 of the 1st component, sub-DBC data of data type 1 of the 2nd component, sub-DBC data of data type 2 of the 2nd component, sub-DBC data of data type 1 of the 3rd component, sub-DBC data of data type 2 of the 3rd component].
[0029] Since the sub-DBC data includes the DBC data name, CANID, start bit and end bit involved in each component, the current DBC data may include the DBC data name, CANID set, start bit and end bit of each sub-DBC data.
[0030] In one example, when the target electronic unit is a battery pack and the battery pack includes three battery cells, the different sub-DBC data included in the current DBC data are sub-DBC data of different data types collected for the battery pack (such as sub-DBC data of temperature data type and sub-DBC data of voltage data type), wherein the sub-DBC data of different data types include sub-DBC data of different data types for each of the three battery cells.
[0031] In some embodiments, after receiving the current DBC data output by the DBC module and transparently transmitted through the DBC gateway in real time, if the current DBC data is greater than a data threshold, the current DBC data may be cached.
[0032] Step S220: Based on the pre-stored DBC data volume set and corresponding data processing logic, the current DBC data is processed to obtain monitoring data of the target electronic unit.
[0033] The pre-stored DBC data set and the corresponding data processing logic are pre-transmitted by the host computer via a UDP communication connection. The data processing logic can be a calculation logic for extreme values (such as maximum and minimum values) and average values.
[0034] In a specific implementation, based on the pre-stored DBC data volume set and the start bit and end bit of each sub-DBC data in the current DBC data, the sub-DBC data of different data types corresponding to each component in the current DBC data are allocated data volume to obtain multiple allocated data volumes; The data processing logic is used to process the multiple data amounts after allocation according to the data type to obtain the monitoring data of the target electronic unit.
[0035] Step S230: Send the monitoring data to the host computer via the UDP communication connection.
[0036] In specific implementation, the UDP communication connection can be monitored in real time to obtain monitoring results; If the monitoring result is that the UDP communication connection is online, the stored monitoring data will be sent to the host computer in real time through the UDP communication connection.
[0037] If the monitoring result is that the UDP communication connection is offline, the monitoring data of the target electronic unit is stored in the configured cache queue, and the execution step is returned to: real-time monitoring of the UDP communication connection is performed to obtain the monitoring result until the monitoring result is that the UDP communication connection is online, so as to send the monitoring data to the host computer.
[0038] In some embodiments, after obtaining the monitoring data of the target electronic unit in step S220, the monitoring data of the target electronic unit can also be stored in a configured cache queue; and a data acquisition request sent by the host computer through the UDP communication connection is received, and based on the data acquisition request, the monitoring data in the cache queue is read.
[0039] Furthermore, when the monitoring result shows that the UDP communication connection is online and after receiving a data acquisition request sent by the host computer through the UDP communication connection, the read monitoring data is sent to the host computer through the UDP communication connection.
[0040] In some embodiments, a new DBC data volume set and corresponding data processing logic are received from a host computer via a UDP communication connection; If the new DBC data volume set and / or the corresponding data processing logic are different from the pre-stored DBC data volume set and / or the corresponding data processing logic, the pre-stored DBC data volume set and the corresponding data processing logic are deleted, and the new DBC data volume set and the corresponding data processing logic are stored.
[0041] In some embodiments, the present application also provides a dynamic-priority DBC data fragmentation transmission mechanism. This mechanism addresses the issue of insufficient reliability for critical data transmission under the connectionless nature of UDP by dynamically adjusting the transmission strategy based on data importance and network status. Its innovation lies in the deep coupling of data priority and fragmentation strategy, overcoming the limitations of traditional fixed fragmentation models. Specifically, if there are multiple target electronic units, current DBC data from multiple target electronic units can be received in real time. In this case, a dynamic priority determination step is added: transmission priorities are assigned to the different current DBC data received based on the criticality of different target electronic units (e.g., brake system electronic unit data has a higher priority than entertainment system data). For high-priority data, the minimum fragmentation granularity (e.g., 16 bytes / fragment) is used and marked with an "immediate transmission" flag. For low-priority data, an adaptive fragmentation granularity is used (dynamically adjusted to 32-128 bytes / fragment based on network bandwidth). When sending over a UDP communication connection, high-priority fragments are transmitted first. If network congestion is detected, transmission of low-priority fragments is automatically suspended and buffered, and transmission resumes when the network recovers.
[0042] In some embodiments, the UDP communication connection of the present application includes a primary UDP communication connection and a backup UDP communication connection. The real-time monitoring of the UDP communication connection to obtain the monitoring result may include: firstly monitoring the primary UDP communication connection in real time, and if the monitoring result indicates that the primary UDP communication connection is online, transmitting the monitoring data to the host computer through the primary UDP communication connection; If the monitoring result shows that the primary UDP communication connection is offline, the backup UDP communication connection is monitored in real time. If the monitoring result shows that the backup UDP communication connection is online, the monitoring data is transmitted to the host computer through the backup UDP communication connection. If it is detected that the primary UDP communication connection is offline and the backup UDP communication connection is offline, the monitoring data is stored in the configured cache queue.
[0043] The automatic switching and data synchronization mechanism of the primary and backup UDP communication connections in the above implementation can effectively ensure the integrity and real-time performance of data transmission in the event of network instability or failure.
[0044] As can be seen, compared to traditional gateway transparent transmission, which relies heavily on the stability of the communication network, the DBC gateway transparent transmission method based on UDP communication provided in this application optimizes data processing logic, independently processes, calculates, and caches data. This allows for autonomous calculation of control parameters based on different command information, reducing reliance on communication endpoint information and thus maintaining stable system operation even in situations of poor communication quality. Furthermore, this application establishes a transit data processing center to integrate data and user logic, effectively alleviating the drawback of traditional transparent transmission due to its lack of data processing. It also incorporates a cache queue, reducing pressure on communication resources. The addition of user-customized logic allows for dynamic expansion and modification of the content to be transmitted. While traditional transparent transmission technology relies heavily on hardware support, currently, only a transit processing center is required within the traditional transparent transmission module, eliminating the need for hardware support and reducing costs to simply programming the calculation logic. Configuration also requires user configuration within the configuration parameter interface. Furthermore, with limited resources, multiple calculation logics can be distributed from the configuration endpoint. The transit processing center automatically creates calculation logic threads, allowing the data volume of a single packet to be processed simultaneously across multiple asynchronous threads.
[0045] Corresponding to the above method, the embodiment of the present application also provides a DBC gateway transparent transmission device based on UDP communication, such as Figure 3 As shown, the device includes: The receiving unit 310 is configured to receive in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway; the current DBC data includes different DBC sub-data corresponding to the target electronic unit; a processing unit 320 configured to process the current DBC data based on a pre-stored DBC data set and corresponding data processing logic to obtain monitoring data of the target electronic unit; the DBC data set and corresponding data processing logic are pre-transmitted by the host computer via the UDP communication connection; The sending unit 330 is used to send the stored monitoring data to the host computer through the UDP communication connection.
[0046] The functions of each functional unit of the DBC gateway transparent transmission device based on UDP communication provided in the above embodiment of the present application can be realized through the above method steps. Therefore, the specific working process and beneficial effects of each unit in the DBC gateway transparent transmission device based on UDP communication provided in the embodiment of the present application will not be repeated here.
[0047] The present application also provides an electronic device, such as Figure 4As shown, it includes a processor 410 , a communication interface 420 , a memory 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other via the communication bus 440 .
[0048] Memory 430, for storing computer programs; The processor 410 is configured to execute the program stored in the memory 430 by performing the following steps: receiving in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway; the current DBC data includes sub-DBC data of different data types corresponding to the target electronic unit; Based on a pre-stored DBC data volume set and corresponding data processing logic, the current DBC data is processed to obtain monitoring data of the target electronic unit; the DBC data volume set and the corresponding data processing logic are pre-transmitted by the host computer through the UDP communication connection; The monitoring data is sent to the host computer via the UDP communication connection.
[0049] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into address buses, data buses, and control buses. For ease of illustration, the figure uses only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0050] The communication interface is used for communication between the above electronic device and other devices.
[0051] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0052] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0053] The implementation methods and beneficial effects of the various components of the electronic device in the above embodiments to solve the problems can be found in Figure 2 The various steps in the embodiment shown are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present application are not repeated here.
[0054] In another embodiment provided in the present application, a computer-readable storage medium is also provided, which stores instructions. When the computer-readable storage medium is run on a computer, the computer executes the DBC gateway transparent transmission method based on UDP communication described in any of the above embodiments.
[0055] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the DBC gateway transparent transmission method based on UDP communication described in any one of the above embodiments.
[0056] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware. Furthermore, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0057] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0058] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0059] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0060] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0061] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims and their equivalents, the embodiments of the present application are also intended to include these modifications and variations.
Claims
1. A DBC gateway transparent transmission method based on UDP communication, characterized in that: A data processing center used in a transparent transmission system, wherein the transparent transmission system further comprises a host computer for monitoring a target electronic unit, a DBC gateway, and a DBC module connected to the target electronic unit; The data processing center establishes a UDP communication connection with the host computer, and the method includes: receiving in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway; the current DBC data includes sub-DBC data of different data types corresponding to the target electronic unit; Based on a pre-stored DBC data volume set and corresponding data processing logic, the current DBC data is processed to obtain monitoring data of the target electronic unit; the DBC data volume set and the corresponding data processing logic are pre-transmitted by the host computer through the UDP communication connection; The monitoring data is sent to the host computer via the UDP communication connection.
2. The method according to claim 1, wherein The sub-DBC data of different data types include DBC data names, CANIDs, start bits, and end bits related to various components included in the target electronic unit.
3. The method according to claim 2, wherein Based on a pre-stored DBC data volume set and corresponding data processing logic, the current DBC data is processed to obtain monitoring data of the target electronic unit, including: Based on a pre-stored DBC data volume set and the start bit and the end bit of each sub-DBC data in the current DBC data, allocating data volumes for the sub-DBC data of different data types corresponding to each component in the current DBC data to obtain multiple allocated data volumes; The data processing logic is used to process the allocated multiple data amounts according to the data types to obtain the monitoring data of the target electronic unit.
4. The method according to claim 1, wherein Sending the stored monitoring data to the host computer via the UDP communication connection includes: Performing real-time monitoring on the UDP communication connection to obtain monitoring results; If the monitoring result indicates that the UDP communication connection is online, the monitoring data is sent to the host computer via the UDP communication connection.
5. The method according to claim 1, wherein After obtaining the monitoring data of the target electronic unit, the method further includes: storing the monitoring data of the target electronic unit in a configured cache queue; Receiving a data acquisition request sent by the host computer through the UDP communication connection; Based on the data acquisition request, the monitoring data in the cache queue is read.
6. The method according to claim 1, wherein After receiving in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway, the method further includes: If the current DBC data is greater than the data threshold, the current DBC data is cached.
7. The method according to claim 1, wherein The method further comprises: Receive a new DBC data volume set and corresponding data processing logic sent by the host computer through the UDP communication connection; If the new DBC data volume set and / or the corresponding data processing logic are different from the pre-stored DBC data volume set and / or the corresponding data processing logic, the pre-stored DBC data volume set and the corresponding data processing logic are deleted, and the new DBC data volume set and the corresponding data processing logic are stored.
8. A DBC gateway transparent transmission device based on UDP communication, characterized in that: A data processing center used in a transparent transmission system, wherein the transparent transmission system further comprises a host computer for monitoring a target electronic unit, a DBC gateway, and a DBC module connected to the target electronic unit; The data processing center establishes a UDP communication connection with the host computer, and the device includes: A receiving unit, configured to receive in real time the current DBC data output by the DBC module and transparently transmitted through the DBC gateway; the current DBC data includes different DBC sub-data corresponding to the target electronic unit; a processing unit configured to process the current DBC data based on a pre-stored DBC data set and corresponding data processing logic to obtain monitoring data of the target electronic unit; the DBC data set and corresponding data processing logic are pre-transmitted by the host computer via the UDP communication connection; The sending unit is used to send the stored monitoring data to the host computer through the UDP communication connection.
9. An electronic device, characterized in that: The electronic device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.