A data transmission method and device based on a physical link and a storage medium

CN117615040BActive Publication Date: 2026-09-15CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311591028.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2026-09-15
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

这些传感器的数量增加和性能提升,使自动驾驶更加安全,但随之引发的是对网络带宽需求爆发性增长,单一的以太网通信并不适用所有需求,且会导致以太网的通信负载较大

Benefits of technology

[0015] According to one aspect of the embodiments of this application, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data transmission method described above.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615040B_ABST
    Figure CN117615040B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, and discloses a data transmission method and device based on a physical link and a storage medium. The method is applied to a target chip, and the method comprises the following steps: detecting whether a transmission instruction for transmitting target data is received, and detecting whether the use frequency of transmission data specified by the transmission instruction is less than a preset frequency; wherein the target data is data provided by a target service in the target chip; if both are yes, the target data is transmitted to a first physical link interface through a target preset virtual sending interface, so that the target data is transmitted to a second physical link interface in another chip through the first physical link interface; and the first physical link interface and the second physical link interface are connected through a physical link. The application provides a data transmission mode of a physical link for the target data between chips through the physical link connection, and data transmission is not only performed through wireless network communication, so that data transmission is shunted, and the network communication burden is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, specifically to a data transmission method, apparatus, and storage medium based on a physical link. Background Technology

[0002] In autonomous driving systems, as the level of automation increases, vehicles require sensors with higher performance and accuracy, as well as a greater variety and number of sensors. These include ultrasonic radars and cameras with up to a dozen channels, multi-channel millimeter-wave radars and lidar, V2X (vehicle-to-X) modules, and integrated inertial navigation systems. While the increased number and improved performance of these sensors make autonomous driving safer, they also lead to an explosive growth in network bandwidth demands. Simple Ethernet communication is not suitable for all needs and can result in a heavy communication load on Ethernet networks. Summary of the Invention

[0003] In view of the above problems, this application provides a data transmission method, apparatus and storage medium based on physical links for data transmission splitting to reduce the communication burden of Ethernet.

[0004] According to one aspect of the embodiments of this application, a data transmission method based on a physical link is provided, applied to a target chip. The data transmission method includes: detecting whether a transmission instruction for transmitting target data is received, and detecting whether the usage frequency of the transmission data specified by the transmission instruction is less than a preset frequency; wherein the target data is data provided by a target service in the target chip; if both are true, then transmitting the target data to a first physical link interface through a target preset virtual transmission interface, so that the target data is transmitted to a second physical link interface in another chip through the first physical link interface; wherein the first physical link interface and the second physical link interface are connected by a physical link.

[0005] In one optional embodiment, the data transmission method further includes: if it is detected that the frequency of use of the transmission data specified by the transmission instruction is greater than or equal to the preset frequency, then the target data is transmitted to a first Ethernet link interface through a target preset virtual transmission interface, so that the target data is transmitted to a second Ethernet link interface in another chip through the first Ethernet link interface; wherein the first Ethernet link interface and the second Ethernet link interface are connected through an Ethernet link.

[0006] In an optional embodiment, before detecting whether a transmission instruction for transmitting target data has been received, the data transmission method further includes: generating a preset virtual interface based on the parameters of the target chip and the parameters of the first physical link interface; wherein the preset virtual interface includes a preset virtual sending interface and a preset virtual receiving interface.

[0007] In one alternative approach, before transmitting the target data to the first physical link interface via the target preset virtual sending interface, the data transmission method further includes: if it is detected that the communication mode specified by the transmission instruction is a publish-subscribe mode, then using the preset publish virtual sending interface as the target preset virtual sending interface; if it is detected that the communication mode specified by the transmission instruction is a request-response mode, then using the preset response virtual sending interface as the target preset virtual sending interface.

[0008] In one optional approach, transmitting the target data to a first physical link interface via a preset virtual interface, so that the target data can be transmitted to a second physical link interface in another chip via the first physical link interface, further includes: transmitting the target data to a sending port in the first physical link interface via the preset virtual interface, so that the target data can be transmitted to a receiving port in the second physical link in another chip via the sending port; wherein the sending port in the first physical link interface and the receiving port in the second physical link interface are connected via the same physical link.

[0009] In one optional approach, the data transmission method further includes: detecting whether the first physical link interface receives other data transmitted by the other chip, and detecting whether the usage frequency of the other data is less than the preset frequency; if both are true, then transmitting the other data to the target interface corresponding to the target service through the target preset virtual receiving interface, so that the target service receives the other data.

[0010] In one optional embodiment, before transmitting the other data to the target interface corresponding to the target service via the target preset virtual receiving interface, the data transmission method further includes: determining the target preset virtual receiving interface according to the communication mode corresponding to the other data; if the communication mode corresponding to the other data is a publish-subscribe mode, then using a preset subscription virtual receiving interface as the target preset virtual receiving interface; if the communication mode corresponding to the other data is a request-response mode, then using a preset request virtual receiving interface as the target preset virtual receiving interface.

[0011] In an optional embodiment, detecting whether the first physical link interface receives other data transmitted by the other chip further includes: detecting whether the receiving port in the first physical link interface receives other data transmitted by the sending port in the second physical link interface; wherein the receiving port in the first physical link interface and the sending port in the second physical link interface are connected through the same physical link.

[0012] According to another aspect of the embodiments of this application, a data transmission device based on a physical link is provided, applied to a target chip. The data transmission device includes: a detection module, configured to detect whether a transmission instruction for transmitting target data has been received, and to detect whether the usage frequency of the transmission data specified by the transmission instruction is less than a preset frequency; wherein the target data is data provided by a target service in the target chip; and a transmission module, configured to, if both are true, transmit the target data to a first physical link interface through a target preset virtual transmission interface, so that the target data is transmitted to a second physical link interface in another chip through the first physical link interface; wherein the first physical link interface and the second physical link interface are connected by a physical link.

[0013] According to one aspect of the embodiments of this application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, which, when executed by the controller, perform the data transmission method described above.

[0014] According to one aspect of the embodiments of this application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the above-described data transmission method.

[0015] According to one aspect of the embodiments of this application, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data transmission method described above.

[0016] This application embodiment transmits target data from the target chip to a first physical link interface via a preset virtual transmission interface, and then transmits the target data to a second physical link interface in other chips via physical links connected to them. The chips are connected via physical links, establishing a connection between the corresponding physical link interface and the preset virtual interface. This allows for the transmission of target data between the virtual and physical interfaces without the need for network communication. Furthermore, the wired or wireless transmission method of the target data is determined based on the relationship between the usage frequency of the target data and a preset frequency, rather than solely relying on wireless network communication for data transmission. This diversion of data transmission reduces the burden on network communication.

[0017] The above description is merely an overview of the technical solutions of the embodiments of this application. In order to better understand the technical means of the embodiments of this application and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of this application more obvious and understandable, specific implementation methods of this application are described below. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0019] Figure 1 This is a schematic diagram of the existing data transmission methods between chips.

[0020] Figure 2 This is a schematic flowchart illustrating a data transmission method based on a physical link, as shown in an exemplary embodiment of this application.

[0021] Figure 3 This is a schematic diagram illustrating the connection structure between the target chip and other chips, as shown in an exemplary embodiment of this application.

[0022] Figure 4 Based on Figure 2 The exemplary embodiment shown illustrates a flowchart of another data transmission method based on a physical link.

[0023] Figure 5 This is a schematic diagram of a PCIe-based SOA integrated logical architecture illustrated in an exemplary embodiment of this application.

[0024] Figure 6 This is a schematic diagram illustrating the structure of a data transmission device based on a physical link, as shown in an exemplary embodiment of this application.

[0025] Figure 7 This is a schematic diagram of the structure of a computer system for an electronic device, as illustrated in an exemplary embodiment of this application. Detailed Implementation

[0026] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0028] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0029] In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0030] With the development of the vehicle industry, "software-defined vehicles" has become an irreversible trend. Software accounts for an increasingly larger proportion of vehicle development, is becoming more complex, covers a wider range of interaction requirements, and has a shorter iteration cycle. Software has become an independent core component product, and the traditional signal-oriented software architecture is facing obvious pain points.

[0031] In the field of autonomous driving, the requirements for communication bandwidth and performance are becoming increasingly demanding. Simply using Ethernet to carry all data interactions can easily reach performance bottlenecks, and development costs will also increase dramatically. Please refer to [link / reference]. Figure 1 , Figure 1 This is a schematic diagram of existing data transmission methods between chips. In this diagram, service 'a' in chip A and service 'b' in chip B transmit data via Ethernet. To reduce network communication burden, one aspect of this application provides a data transmission method based on a physical link. Please refer to [link to details]. Figure 2 , Figure 2 This is a schematic flowchart illustrating a data transmission method based on a physical link, as shown in an exemplary embodiment of this application. The data transmission method is applied to a target chip and includes at least steps S210 to S220, detailed below: S210: Detect whether a transmission instruction for transmitting target data has been received, and detect whether the usage frequency of the transmission data specified in the transmission instruction is less than a preset frequency; wherein, the target data is the data provided by the target service in the target chip.

[0032] The transmission instructions include information such as the specified target service, the specific content of the target data, and the transmission time.

[0033] The target service can proactively provide target data, for example, by periodically sending target data to other chips as a publisher; the target service can also passively provide target data, for example, by sending target data to other chips as a responder.

[0034] The preset frequency is a pre-defined parameter that defines the frequency of data usage. If the usage frequency of the corresponding data is greater than or equal to the preset frequency, the data is determined to be high-frequency data; if the usage frequency of the corresponding data is less than the preset frequency, the data is determined to be low-frequency data. Low-frequency data is transmitted via wired data exchange through a physical link interface, while high-frequency data is transmitted wirelessly via an Ethernet link interface.

[0035] Low-frequency data includes, but is not limited to, LiDAR dot matrix data and data read from or stored on solid-state drives on chips. High-frequency data includes, but is not limited to, camera data and UDS (Unified Diagnostic Services) diagnostic messages.

[0036] S220: If all are yes, then the target data is transmitted to the first physical link interface through the target preset virtual transmission interface, so that the target data is transmitted to the second physical link interface in other chips through the first physical link interface; wherein, the first physical link interface and the second physical link interface are connected through a physical link.

[0037] The target preset virtual sending interface belongs to the preset virtual sending interface; among which, the preset virtual sending interface includes the preset publish virtual sending interface and the preset response virtual sending interface.

[0038] The first physical link interface is an external interface belonging to the target chip, and the second physical link interface is an external interface belonging to other chips. Related data is transmitted in both directions via the physical link between these interfaces, eliminating the need for network communication and thus reducing network communication overhead.

[0039] In some embodiments, in Figure 2 Based on S210 to S220 of the data transmission method shown, this data transmission method also includes S230, which is described in detail below: S230: If it is detected that the frequency of use of the transmission data specified by the transmission command is less than the preset frequency, the target data is transmitted to the first Ethernet link interface through the target preset virtual transmission interface, so that the target data is transmitted to the second Ethernet link interface in other chips through the first Ethernet link interface; wherein, the first Ethernet link interface and the second Ethernet link interface are connected through an Ethernet link.

[0040] Upon detecting a transmission command, and if the target data specified in the transmission command is high-frequency data, the target data will be transmitted via the Ethernet link to split the high- and low-frequency data for transmission, thereby improving data transmission efficiency.

[0041] This embodiment sends target data from the target chip to the first physical link interface via a preset virtual transmission interface, and then transmits the target data to the second physical link interface of other chips via physical links connected to them. The chips are connected via physical links, establishing a connection between the corresponding physical link interface and the preset virtual interface. This allows for the transmission of target data between the virtual and physical interfaces without the need for network communication. Furthermore, the wired or wireless transmission method of the target data is determined based on the relationship between the usage frequency of the target data and a preset frequency, rather than solely relying on wireless network communication for data transmission. This diversion of data transmission reduces the burden on network communication.

[0042] In another exemplary embodiment of this application, a detailed description is provided of how to generate a preset virtual interface, that is, in Figure 2 Based on S210 to S220 of the data transmission method shown, this data transmission method further includes S21, which is described in detail below: S21: Generate a preset virtual interface based on the parameters of the target chip and the parameters of the first physical link interface; wherein the preset virtual interface includes a preset virtual transmitting interface and a preset virtual receiving interface.

[0043] The preset virtual interface is an interface that directly interfaces with the physical interface. For example, in this embodiment, the preset virtual sending interface interfaces with the first physical link interface to build a data transmission channel at different levels of software and hardware.

[0044] For example, the first physical link is a PCIe (PCI Express, a hardware-based direct connection technology) physical link, which can select x1 to x32 channels according to bandwidth requirements. At the system layer, the first physical link is encapsulated as a BSP (Board Support Package) interface. Specifically, after configuring the first physical link interface for the target chip, the system layer uses an adaptation tool to generate an adapted preset virtual interface based on the parameters of the target chip and the parameters of the first physical link. Among them, the preset virtual sending interface is the virtual interface that sends out the target data of the target chip, and the preset virtual receiving interface is the virtual interface that receives the received data transmitted from the physical link.

[0045] This embodiment provides a method for generating a preset virtual interface. Based on the parameters of the target chip and the parameters of the first physical link interface, an adapted preset virtual interface is generated, so that the preset virtual interface and the first physical link interface are connected to construct a data transmission channel at different software and hardware levels.

[0046] In another exemplary embodiment of this application, it is described in detail how to determine the target preset virtual transmission interface, that is, in Figure 2 Before S220 of the data transmission method shown, the data transmission method further includes S22 to S23, which are described in detail below: S22: If the communication mode specified by the transmission command is detected to be publish-subscribe mode, then the preset publish virtual sending interface will be used as the target preset virtual sending interface.

[0047] S23: If the communication mode specified by the transmission command is detected to be request-response mode, then the preset response virtual sending interface will be used as the target preset virtual sending interface.

[0048] The communication modes include PUB-SUB (publish-subscribe) communication mode and REQ-RSP (request-response) communication mode.

[0049] If it is a publish-subscribe mode, it means that the target chip, as the publisher, can periodically and proactively send the target data out, that is, send the target data to the first physical link interface through a preset publish virtual sending interface, so that the target data can be transmitted to the second physical link interface in other chips through the first physical link interface.

[0050] If it is a request-response mode, it means that the target chip acts as the responder and responds to the request by sending the target data outward. That is, the target data is sent to the first physical link interface through the preset response virtual sending interface, so that the target data can be transmitted to the second physical link interface in other chips through the first physical link interface.

[0051] This embodiment further illustrates that different communication modes are adapted to use different preset virtual sending interfaces, and provides preset virtual sending interfaces corresponding to publish-subscribe mode and request-response mode, so that target data can be securely sent to the first physical link interface through the corresponding preset virtual sending interface in different communication modes.

[0052] In another exemplary embodiment of this application, it is described in detail how to transmit target data to a first physical link interface through a preset virtual interface, so that the target data can be transmitted to a second physical link interface in other chips through the first physical link interface, that is, in Figure 2 The S220 shown further includes: transmitting the target data to the transmitting port in the first physical link interface through a preset virtual interface, so that the target data is transmitted to the receiving port in the second physical link in other chips through the transmitting port; wherein the transmitting port in the first physical link interface and the receiving port in the second physical link interface are connected through the same physical link.

[0053] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating the connection structure between a target chip and other chips according to an exemplary embodiment of this application. SOC-A is the target chip, and SOC-B is one of the other chips. Both the first and second physical link interfaces are PCIe interfaces, each with a transmit port and a receive port. Both chips also have corresponding Ethernet interfaces, which are connected via an Ethernet link.

[0054] In SOC-A, service A transmits target data to the runtime through the corresponding SOA (Service-Oriented Architecture) service interface. If the usage frequency of the target data is less than the preset frequency, it is transmitted to the send port in the PCIe interface through a preset virtual interface, so that the target data is transmitted to the receive port in the PCIe interface of SOC-B through the PCIe physical link. It is evident that the send and receive ports are connected through a unified physical link, allowing data to be transmitted via the physical link without consuming network communication resources.

[0055] If the usage frequency of the target data is greater than or equal to a preset frequency, the target data is transmitted to the first Ethernet link interface through the target preset virtual transmission interface, so that the target data can be transmitted to the second Ethernet link interface in other chips through the first Ethernet link interface; wherein, the first Ethernet link interface and the second Ethernet link interface are connected via an Ethernet link, without occupying a physical link channel. Similarly, data used by other chips at a frequency greater than or equal to the preset frequency can also be transmitted to the first Ethernet link interface through the second Ethernet link interface, so that the target chip can receive other data through the Ethernet link.

[0056] This embodiment further describes how the target data is transmitted from the sending port in the first physical link interface to the receiving port in the second physical link interface to realize the data transmission method of the physical link, which does not occupy network communication resources and reduces the network communication burden.

[0057] In another exemplary embodiment of this application, how to receive other data transmitted by other chips is described in detail; please refer to [link to relevant documentation]. Figure 4 , Figure 4 Based on Figure 2 The exemplary embodiment shown illustrates a flowchart of another data transmission method based on a physical link. This data transmission method, in the example described... Figure 2 Based on S210 to S220 shown, S410 to S420 are also included, which are described in detail below: S410: Detects whether the first physical link interface receives other data transmitted by other chips, and detects whether the usage frequency of other data is less than the preset frequency.

[0058] Other data refers to data provided by related services in other chips, which are used less frequently than a preset frequency. The first physical link interface can not only send data but also receive data.

[0059] S420: If all are true, then transmit the other data to the target interface corresponding to the target service through the target preset virtual receiving interface, so that the target service can receive the other data.

[0060] The target preset virtual receiving interface is a preset virtual receiving interface determined according to the communication mode.

[0061] If the first physical link interface detects that external data has been received, the external data is received through the corresponding preset virtual receiving interface and transmitted to the target interface corresponding to the target service in the target chip so that the target service can receive other data.

[0062] This embodiment provides a method for receiving external data through a physical link interface. By using a target preset virtual receiving interface, the external data received by the first physical link interface is transmitted to the target interface corresponding to the target service, so that the target service can receive other data.

[0063] In another exemplary embodiment of this application, it is described in detail how to determine the target preset virtual receiving interface, that is, in Figure 4 Before S420 of the data transmission method shown, the data transmission method further includes S41 to S43, which are described in detail below: S41: Determine the target preset virtual receiving interface based on the communication mode corresponding to other data.

[0064] The preset virtual interfaces corresponding to the PUB-SUB communication mode include: a preset publish virtual sending interface and a preset subscribe virtual receiving interface.

[0065] The preset virtual interfaces corresponding to the REQ-RSP communication mode include: a preset response virtual sending interface and a preset request virtual receiving interface.

[0066] The preset virtual receiving interfaces in this embodiment include: a preset subscription virtual receiving interface and a preset request virtual receiving interface.

[0067] S42: If the communication mode corresponding to other data is publish-subscribe mode, then the preset subscription virtual receiving interface will be used as the target preset virtual receiving interface.

[0068] S43: If the communication mode corresponding to other data is request-response mode, then the preset request virtual receiving interface will be used as the target preset virtual receiving interface.

[0069] If the communication mode is PUB-SUB communication mode, then the target preset virtual receiving interface is the preset subscription virtual receiving interface.

[0070] If the communication mode is REQ-RSP communication mode, then the target preset virtual receiving interface is the preset request virtual receiving interface.

[0071] This embodiment further illustrates that different communication modes are adapted to use different preset virtual receiving interfaces, and provides preset virtual receiving interfaces corresponding to publish-subscribe mode and request-response mode, so as to receive other external data through the corresponding preset virtual receiving interface in different communication modes and transmit it securely to the target service.

[0072] In another exemplary embodiment of this application, a detailed description is provided of how to detect whether the first physical link interface has received other data transmitted by other chips, that is, in Figure 4 The data transmission method shown in step S410 further includes: detecting whether the receiving port in the first physical link interface receives other data transmitted by the sending port in the second physical link interface; wherein the receiving port in the first physical link interface and the sending port in the second physical link interface are connected through the same physical link.

[0073] Reference Figure 3 As shown, other data in SOC-B is transmitted from the send port of its PCIe interface (i.e., the send port of the second physical link interface in this embodiment) to the receive port of the PCIe interface of SOC-A (i.e., the receive port of the first physical link interface in this embodiment) via the PCIe physical link.

[0074] This embodiment further illustrates how to detect whether the first physical link interface receives other data transmitted by other chips. By targeting the receiving port in the first physical link interface to detect whether it receives other data, it can accurately determine whether there is external data transmitted through the physical link.

[0075] Please see Figure 5 , Figure 5 This is a schematic diagram of a PCIe-based SOA integrated logical architecture illustrated in an exemplary embodiment of this application. The following is a detailed description of each module shown in the diagram: PCIe physical link: Implement the PCIe bus link in hardware, and select from x1 to x32 channels to meet different bandwidth requirements.

[0076] System layer: The PCIe link is encapsulated as a BSP interface to implement interfaces for data sending and receiving.

[0077] Abstract Interface Layer: Because different chips may have hardware and system differences, the BSP interface will also be different. Adaptation tools are used to abstract it and generate a unified interface.

[0078] Runtime: Implements two communication modes, PUB-SUB and REQ-RSP, which conform to SOA distributed communication, as well as the basic functions supporting these two communication modes, including: service queue, service registration, [stop] providing services, [stop] requesting services, etc.

[0079] Service Implementation Layer: SOA requires the implementation of three service interfaces: Method, Event, and Field. Based on the Runtime, the business encapsulation of these three service interfaces is implemented, and service discovery functionality is provided.

[0080] Service Interface Layer: An abstraction of the three service interfaces: Method, Event, and Field, facilitating calls from functional service programs.

[0081] This embodiment uses a PCIe-based SOA integration method, abstracting interface standards to adapt to multi-chip PCIe interfaces. Specifically, it offloads Ethernet-based data transmission through PCIe physical links, reducing network load and thus enhancing system throughput and stability.

[0082] Another aspect of this application provides a data transmission device based on a physical link, such as... Figure 6 As shown, Figure 6 This is a schematic diagram illustrating the structure of a physical link-based data transmission device according to an exemplary embodiment of this application. The data transmission device 600 is applied to a target chip and includes: The detection module 610 is used to detect whether a transmission instruction for transmitting target data has been received, and to detect whether the usage frequency of the transmission data specified in the transmission instruction is less than a preset frequency; wherein, the target data is the data provided by the target service in the target chip.

[0083] The sending module 630 is used to transmit the target data to the first physical link interface through the target preset virtual sending interface if all conditions are met, so that the target data can be transmitted to the second physical link interface in other chips through the first physical link interface; wherein the first physical link interface and the second physical link interface are connected by a physical link.

[0084] In an alternative embodiment, the data transmission device 600 further includes: The wireless transmission module is used to transmit target data to a first Ethernet link interface through a target preset virtual transmission interface if it detects that the frequency of the data to be transmitted specified by the transmission command is less than a preset frequency, so that the target data can be transmitted to a second Ethernet link interface in other chips through the first Ethernet link interface; wherein the first Ethernet link interface and the second Ethernet link interface are connected through an Ethernet link.

[0085] In an alternative embodiment, the data transmission device 600 further includes: The preset virtual interface generation module is used to generate a preset virtual interface based on the parameters of the target chip and the parameters of the first physical link interface; wherein, the preset virtual interface includes a preset virtual transmitting interface and a preset virtual receiving interface.

[0086] In an alternative embodiment, the data transmission device 600 further includes: The first target preset virtual sending interface confirmation module is used to use the preset publishing virtual sending interface as the target preset virtual sending interface if the communication mode specified by the transmission command is detected to be publish-subscribe mode.

[0087] The second target preset virtual sending interface confirmation module is used to use the preset response virtual sending interface as the target preset virtual sending interface if the communication mode specified by the transmission command is detected to be the request-response mode.

[0088] In an alternative embodiment, the sending module 630 further includes: The transmitting unit is used to transmit target data to the transmitting port in the first physical link interface through a preset virtual interface, so that the target data can be transmitted to the receiving port in the second physical link in other chips through the transmitting port; wherein the transmitting port in the first physical link interface and the receiving port in the second physical link interface are connected through the same physical link.

[0089] In an alternative embodiment, the data transmission device 600 further includes: Other data detection modules are used to detect whether the first physical link interface receives other data transmitted by other chips.

[0090] Other data receiving modules are used, if yes, to transmit other data to the target interface corresponding to the target service through the target preset virtual receiving interface, so that the target service can receive other data.

[0091] In an alternative embodiment, the data transmission device 600 further includes: The target preset virtual receiving interface module is used to determine the target preset virtual receiving interface based on the communication mode corresponding to other data.

[0092] The preset subscription virtual receiving interface module is used to select the preset subscription virtual receiving interface as the target preset virtual receiving interface if the communication mode corresponding to other data is publish-subscribe mode.

[0093] The preset request virtual receiving interface module is used to select the preset request virtual receiving interface as the target preset virtual receiving interface if the communication mode corresponding to other data is request-response mode.

[0094] In one alternative approach, the other data detection modules further include: Other data detection units are used to detect whether the receiving port in the first physical link interface receives other data transmitted by the sending port in the second physical link interface; wherein the receiving port in the first physical link interface and the sending port in the second physical link interface are connected through the same physical link.

[0095] The data transmission device of this application transmits target data from the target chip to the first physical link interface through a preset virtual transmission interface, and then transmits the target data to the second physical link interface of other chips through physical links connected to them. The chips are connected via physical links, establishing a connection between the corresponding physical link interface and the preset virtual interface. This allows for the transmission of target data between the virtual and physical interfaces without the need for network communication. Furthermore, based on the relationship between the usage frequency of the target data and a preset frequency, the device determines whether the target data is transmitted via wired or wireless means, rather than solely through wireless network communication. This diversion of data transmission reduces the burden on network communication.

[0096] It should be noted that the data transmission device provided in the above embodiments and the data transmission method provided in the foregoing embodiments belong to the same concept. The specific ways in which each module and unit performs operations have been described in detail in the method embodiments, and will not be repeated here.

[0097] Another aspect of this application provides an electronic device, including: a controller; and a memory for storing one or more programs, which, when executed by the controller, perform the data transmission method described above.

[0098] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer system for an electronic device, illustrating an exemplary embodiment of this application. It shows a schematic diagram of the structure of a computer system suitable for implementing the embodiments of this application.

[0099] It should be noted that, Figure 7 The computer system 700 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0100] like Figure 7 As shown, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 702 or programs loaded from storage portion 708 into Random Access Memory (RAM) 703. The RAM 703 also stores various programs and data required for system operation. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An Input / Output (I / O) interface 705 is also connected to the bus 704.

[0101] The following components are connected to I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 710 as needed so that computer programs read from it can be installed into storage section 708 as needed.

[0102] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs various functions defined in the system of this application.

[0103] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0105] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0106] Another aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned data transmission method. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not incorporated into the electronic device.

[0107] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data transmission methods provided in the various embodiments described above.

[0108] According to one aspect of the embodiments of this application, a computer system is also provided, including a Central Processing Unit (CPU), which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from storage into random access memory (RAM), such as performing the methods described above. Various programs and data required for system operation are also stored in the RAM. The CPU, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0109] The following components are connected to the I / O interface: input components including keyboards, mice, etc.; output components including cathode ray tubes (CRTs), liquid crystal displays (LCDs), and speakers; storage components including hard drives; and communication components including network interface cards such as LAN (Local Area Network) cards and modems. The communication components perform communication processing via networks such as the Internet. Drives are also connected to the I / O interface as needed. Removable media, such as disks, optical discs, magneto-optical discs, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage components as required.

[0110] The above description is merely a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.

Claims

1. A data transmission method based on a physical link, characterized in that, Applied to the target chip, the data transmission method includes: The system detects whether a transmission instruction for transmitting target data has been received, and detects whether the usage frequency of the transmission data specified by the transmission instruction is less than a preset frequency; wherein, the target data is the data provided by the target service in the target chip, and the preset frequency is a preset parameter that defines the frequency of data usage. If both are true, the target data is transmitted to the first physical link interface through the target preset virtual transmission interface, so that the target data is transmitted to the second physical link interface in other chips through the first physical link interface; wherein, the first physical link interface and the second physical link interface are connected by a physical link; The data transmission method further includes: If the frequency of the data to be transmitted specified by the transmission command is detected to be greater than or equal to the preset frequency, the target data is transmitted to the first Ethernet link interface through the target preset virtual transmission interface, so that the target data is transmitted to the second Ethernet link interface in other chips through the first Ethernet link interface; wherein, the first Ethernet link interface and the second Ethernet link interface are connected through an Ethernet link.

2. The data transmission method according to claim 1, characterized in that, Before transmitting the target data to the first physical link interface through the target preset virtual transmission interface, the data transmission method further includes: If the communication mode specified by the transmission instruction is detected to be publish-subscribe mode, then the preset publish virtual sending interface is used as the target preset virtual sending interface; If the communication mode specified by the transmission command is detected to be a request-response mode, then the preset response virtual sending interface will be used as the target preset virtual sending interface.

3. The data transmission method according to claim 1, characterized in that, The step of transmitting the target data to the first physical link interface through a preset virtual interface, so that the target data can be transmitted to the second physical link interface in other chips through the first physical link interface, further includes: The target data is transmitted to the sending port in the first physical link interface through a preset virtual interface, so that the target data is transmitted to the receiving port in the second physical link in other chips through the sending port; wherein, the sending port in the first physical link interface and the receiving port in the second physical link interface are connected through the same physical link.

4. The data transmission method according to claim 1, characterized in that, The data transmission method further includes: Detect whether the first physical link interface receives other data transmitted by the other chips, and detect whether the usage frequency of the other data is less than the preset frequency; If all are true, then the other data will be transmitted to the target interface corresponding to the target service through the target preset virtual receiving interface, so that the target service can receive the other data.

5. The data transmission method according to claim 4, characterized in that, Before transmitting the other data to the target interface corresponding to the target service via the target preset virtual receiving interface, the data transmission method further includes: Based on the communication mode corresponding to the other data, the target preset virtual receiving interface is determined; If the communication mode corresponding to the other data is publish-subscribe mode, then the preset subscription virtual receiving interface will be used as the target preset virtual receiving interface. If the communication mode corresponding to the other data is a request-response mode, then the preset request virtual receiving interface will be used as the target preset virtual receiving interface.

6. The data transmission method according to claim 4, characterized in that, The step of detecting whether the first physical link interface receives other data transmitted by the other chips further includes: The system detects whether the receiving port in the first physical link interface receives other data transmitted by the sending port in the second physical link interface; wherein the receiving port in the first physical link interface and the sending port in the second physical link interface are connected through the same physical link.

7. A data transmission device based on a physical link, characterized in that, Applied to the target chip, the data transmission device includes: The detection module is used to detect whether a transmission instruction for transmitting target data has been received, and to detect whether the usage frequency of the transmission data specified by the transmission instruction is less than a preset frequency; wherein, the target data is the data provided by the target service in the target chip, and the preset frequency is a preset parameter that defines the frequency of data usage. The sending module is configured to, if all conditions are met, transmit the target data to the first physical link interface through the target preset virtual sending interface, so that the target data can be transmitted to the second physical link interface in other chips through the first physical link interface; wherein the first physical link interface and the second physical link interface are connected by a physical link. The sending module is further configured to, if it detects that the frequency of use of the transmission data specified by the transmission instruction is greater than or equal to the preset frequency, transmit the target data to the first Ethernet link interface through the target preset virtual transmission interface, so that the target data is transmitted to the second Ethernet link interface in other chips through the first Ethernet link interface; wherein the first Ethernet link interface and the second Ethernet link interface are connected through an Ethernet link.

8. An electronic device, characterized in that, include: Controller; A memory for storing one or more programs, which, when executed by a controller, cause the controller to implement the data transmission method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, It stores computer-readable instructions, which, when executed by the computer's processor, cause the computer to perform the data transmission method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wireless transmission system, wireless transmission device, wireless transmission method and computer-readable medium

    CN103621165A

  • Methods and apparatus for providing cloud services based on public cloud technology

    CN116805914A