CN111615150B - 5G data transmission method, device, equipment and storage medium based on PCIe interface - Google Patents

5G data transmission method, device, equipment and storage medium based on PCIe interface Download PDF

Info

Publication number
CN111615150B
CN111615150B CN202010403004.XA CN202010403004A CN111615150B CN 111615150 B CN111615150 B CN 111615150B CN 202010403004 A CN202010403004 A CN 202010403004A CN 111615150 B CN111615150 B CN 111615150B
Authority
CN
China
Prior art keywords
data
service data
port
service
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010403004.XA
Other languages
Chinese (zh)
Other versions
CN111615150A (en
Inventor
陈璟
王辉
李石峰
曹刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202010403004.XA priority Critical patent/CN111615150B/en
Publication of CN111615150A publication Critical patent/CN111615150A/en
Application granted granted Critical
Publication of CN111615150B publication Critical patent/CN111615150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a 5G data transmission method, device, equipment and storage medium based on a PCIe interface. Wherein the method comprises the following steps: if first service data sent by an application program of a terminal is received, marking the first service data according to the type of the first service data; transmitting the first service data to a data transmission port corresponding to the type of the first service data; adding a preset data packet header into the first service data; and the first business data sent to the data transmission port is sent to the buffer queue of the PCIe interface through the special data channel of the data transmission port, so that the PCIe interface sends the first business data sent to the data transmission port to the 5G communication module, the terminal can transmit data to the 5G communication module through the PCIe interface, and the data transmission speed between the terminal and the 5G communication module is greatly increased.

Description

5G data transmission method, device, equipment and storage medium based on PCIe interface
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a 5G data transmission method, apparatus, device, and storage medium based on a PCIe interface.
Background
With the advent of the 5G era, the data transmission speed between the 5G communication module and the external base station is greatly increased. Meanwhile, in order to satisfy the high transmission speed of the 5G communication module, it is required that the data transmission speed between the terminal and the 5G communication module is matched with the data transmission speed of the 5G communication module and the external base station. However, most terminals currently perform data transmission with the communication module through the USB interface, and the high transmission speed requirement of the 5G communication module cannot be met due to the slower transmission speed of the USB interface.
Disclosure of Invention
The embodiment of the application provides a 5G data transmission method, device, equipment and storage medium based on a PCIe interface, aiming at solving the problem of low data transmission speed between a terminal and a 5G communication module in the prior art.
In a first aspect, an embodiment of the present application provides a PCIe interface-based 5G data transmission method, where the PCIe interface-based 5G data transmission method is applied to a terminal, and the terminal is connected to a 5G communication module through a PCIe interface, and the PCIe interface-based 5G data transmission method includes:
if first service data sent by an application program of a terminal is received, marking the first service data according to the type of the first service data, wherein the marking is used for enabling a 5G communication module to identify the type of the first service data;
transmitting the first service data to a data transmission port corresponding to the type of the first service data;
adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface;
and sending the first service data sent to the data transmission port to a buffer queue of the PCIe interface through a special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to a 5G communication module.
In a second aspect, an embodiment of the present application further provides a 5G data transmission device based on a PCIe interface, including:
the marking unit is used for marking the first service data according to the type of the first service data if the first service data sent by the application program of the terminal is received, and the marking unit is used for enabling the 5G communication module to identify the type of the first service data;
a first sending unit, configured to send the first service data to a data transmission port corresponding to a type of the first service data;
the first adding unit is used for adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface;
and the second sending unit is used for sending the first service data sent to the data transmission port to the buffer queue of the PCIe interface through the special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to the 5G communication module. In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the application provides a 5G data transmission method, device, equipment and storage medium based on a PCIe interface. Wherein the method comprises the following steps: if first service data sent by an application program of a terminal is received, marking the first service data according to the type of the first service data, wherein the marking is used for enabling a 5G communication module to identify the type of the first service data; transmitting the first service data to a data transmission port corresponding to the type of the first service data; adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface; and the first business data sent to the data transmission port is sent to the buffer queue of the PCIe interface through the special data channel of the data transmission port, so that the PCIe interface sends the first business data sent to the data transmission port to the 5G communication module, the terminal can transmit data to the 5G communication module through the PCIe interface, and the data transmission speed between the terminal and the 5G communication module is greatly increased.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic application scenario diagram of a PCIe interface-based 5G data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a 5G data transmission method based on a PCIe interface according to an embodiment of the present application;
fig. 3 is a schematic sub-flowchart of a 5G data transmission method based on a PCIe interface according to an embodiment of the present application;
fig. 4 is a flowchart of a 5G data transmission method based on a PCIe interface according to another embodiment of the present application;
FIG. 5 is a schematic block diagram of a 5G data transmission device based on a PCIe interface according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of a tag unit of a 5G data transmission device based on a PCIe interface according to an embodiment of the present application;
fig. 7 is a schematic block diagram of a second sending unit of a 5G data transmission device based on a PCIe interface according to an embodiment of the present application;
FIG. 8 is a schematic block diagram of a 5G data transmission device based on a PCIe interface according to another embodiment of the present application;
FIG. 9 is a schematic block diagram of a seventh sending unit of a 5G data transmission device based on a PCIe interface according to another embodiment of the present application;
fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1 and fig. 2, fig. 1 is a schematic application scenario diagram of a PCIe interface-based 5G data transmission method according to an embodiment of the present application. Fig. 2 is a schematic flowchart of a PCIe interface-based 5G data transmission method according to an embodiment of the present application. It should be noted that, the PCIe interface-based 5G data transmission method is applied to the terminal 1, where the terminal 1 is connected to the 5G communication module 3 through a PCIe (peripheral component interconnect express, high-speed serial computer expansion bus standard) interface 2.
Fig. 2 is a flowchart of a PCIe interface-based 5G data transmission method according to an embodiment of the present application. As shown, the method includes the following steps S1-S4.
S1, if first service data sent by an application program of a terminal are received, marking the first service data according to the type of the first service data, wherein the marking is used for enabling a 5G communication module to identify the type of the first service data.
In a specific implementation, if first service data sent by an application program of a terminal is received, the first service data is first marked according to the type of the first service data. The purpose of marking the type of the first traffic data is to enable the 5G communication module to identify the type of the first traffic data.
In the present application, the first service data refers to service data sent by the terminal to the 5G communication module.
Referring to fig. 3, in one embodiment, the above step S1 specifically includes the following steps S11-S12.
S11, determining a mark corresponding to the type of the first service data according to a preset type-mark corresponding relation.
In specific implementation, a type-mark correspondence is stored in a terminal in advance, and when first service data is received, a mark corresponding to the type of the first service data is determined according to the type-mark correspondence.
The marking may specifically employ marking characters, such as marking characters "//".
And S12, adding the mark corresponding to the type of the first service data into the first service data.
In specific implementation, a mark corresponding to the type of the first service data is added to the first service data.
It should be noted that the mark may be a mark character, and the mark character corresponding to each type is different.
S2, the first service data is sent to a data transmission port corresponding to the type of the first service data.
In specific implementation, a data transmission port (port) is set for each type of first service data in advance, and when the first service data is received, the first service data is sent to the data transmission port corresponding to the type of the first service data.
The data transmission port is a virtual port, which is a port inside a computer or a switch router and is invisible.
S3, adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface.
In a specific implementation, a preset data packet header is added to the first service data, where the data packet header can be identified by a PCIe interface. The data packet header is added to enable the PCIe interface to identify the first traffic data.
S4, sending the first service data sent to the data transmission port to a buffer queue of the PCIe interface through a special data channel of the data transmission port, so that the PCIe interface sends the first service data sent to the data transmission port to a 5G communication module.
In a specific implementation, each data transmission port is provided with a dedicated data channel. And sending the first service data sent to the data transmission port to a buffer queue of the PCIe interface through a special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to a 5G communication module. The data interaction between the PCIe interface and the 5G communication module is performed according to a standard PCIe interface protocol.
In an embodiment, the types of the first service data include download data, log data, interaction data, AT (Attention) command data, and GNSS (Global Navigation Satellite System ) data. The data transmission ports include a download data port, a log data port, an interactive data port, an AT command data port, and a GNSS data port.
The step S4 specifically includes: if the first service data is the download data, the first service data is sent to the download data port; if the first service data is log data, the first service data is sent to the log data port; if the first service data are interactive data, the first service data are sent to the interactive data port; and if the first service data is GNSS data, transmitting the first service data to the GNSS data port.
By applying the technical scheme of the embodiment of the application, if the first service data sent by the application program of the terminal is received, the first service data is marked according to the type of the first service data; transmitting the first service data to a data transmission port corresponding to the type of the first service data; adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface; and the first business data sent to the data transmission port is sent to the buffer queue of the PCIe interface through the special data channel of the data transmission port, so that the PCIe interface sends the first business data sent to the data transmission port to the 5G communication module, the terminal can transmit data to the 5G communication module through the PCIe interface, and the data transmission speed between the terminal and the 5G communication module is greatly increased.
Fig. 4 is a flowchart of a 5G data transmission method based on a PCIe interface according to another embodiment of the present application. As shown in fig. 4, the PCIe interface-based 5G data transmission method of the present embodiment includes steps S41 to S45. Steps S41 to S44 are similar to steps S1 to S4 in the above embodiment, and will not be described here again. Step S45 added in the present embodiment is described in detail below.
And S45, if the second service data sent by the 5G communication module is received, sending the second service data to a special data channel of a data transmission port corresponding to the type of the second service data, and transmitting the second service data to a terminal through the special data channel of the data transmission port corresponding to the type of the second service data.
In a specific implementation, if the second service data sent by the 5G communication module is received, the second service data is sent to a dedicated data channel of a data transmission port corresponding to the type of the second service data, so that the dedicated data channel of the data transmission port corresponding to the type of the second service data transmits the second service data to the terminal.
It should be noted that, the second service data refers to service data sent to the terminal by the 5G communication module.
In an embodiment, the type of the second service data includes download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port includes a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port.
The step S45 specifically includes: if the second service data is the download data, the second service data is sent to a special data channel of the download data port; if the second service data is log data, the second service data is sent to a special data channel of the log data port; if the second service data is interactive data, the second service data is sent to a special data channel of the interactive data port; and if the second service data is GNSS data, sending the second service data to a special data channel of the GNSS data port.
Fig. 5 is a schematic block diagram of a 5G data transmission device 40 based on a PCIe interface according to an embodiment of the present application. As shown in fig. 5, corresponding to the above 5G data transmission method based on the PCIe interface, the present application further provides a 5G data transmission device 40 based on the PCIe interface. The PCIe interface-based 5G data transmission device 40 includes a unit for performing the PCIe interface-based 5G data transmission method described above, and may be configured in a desktop computer, a tablet computer, a laptop computer, or the like. Specifically, referring to fig. 5, the PCIe interface-based 5G data transmission device 40 includes a marking unit 41, a first transmitting unit 42, a first adding unit 43, and a second transmitting unit 44.
And the marking unit 41 is configured to, if first service data sent by an application program of the terminal is received, mark the first service data according to a type of the first service data, where the marking is used to enable the 5G communication module to identify the type of the first service data.
A first sending unit 42, configured to send the first service data to a data transmission port corresponding to the type of the first service data.
The first adding unit 43 is configured to add a preset packet header to the first service data, where the packet header is identifiable by a PCIe interface.
The second sending unit 44 is configured to send, through a dedicated data channel of the data transmission port, the first service data sent to the data transmission port to a buffer queue of the PCIe interface, so that the PCIe interface sends, to the 5G communication module, the first service data sent to the data transmission port.
As shown in fig. 6, in an embodiment, the marking unit 41 includes a determining unit 411 and a second adding unit 412.
A determining unit 411, configured to determine a flag corresponding to the type of the first service data according to a preset type-flag correspondence.
A second adding unit 412, configured to add a flag corresponding to the type of the first service data to the first service data.
In one embodiment, as shown in fig. 7, the types of the first service data include download data, log data, interaction data, AT command data, and GNSS data, and the data transmission ports include a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; the second transmitting unit 44 includes a third transmitting unit 441, a fourth transmitting unit 442, a fifth transmitting unit 443, and a sixth transmitting unit 444.
And a third sending unit 441, configured to send the first service data to the download data port if the first service data is download data.
A fourth sending unit 442, configured to send the first service data to the log data port if the first service data is log data.
And a fifth sending unit 443, configured to send the first service data to the interaction data port if the first service data is interaction data.
And a sixth sending unit 444, configured to send the first service data to the GNSS data port if the first service data is GNSS data.
Fig. 8 is a schematic block diagram of a 5G data transmission device 40 based on a PCIe interface according to another embodiment of the present application. As shown in fig. 8, the PCIe interface-based 5G data transmission device 40 of the present embodiment is a device with a seventh transmitting unit 45 added to the above embodiment.
A seventh sending unit 45, configured to send, if second service data sent by the 5G communication module is received, the second service data to a dedicated data channel of a data transmission port corresponding to a type of the second service data, so that the second service data is transmitted to the terminal by the dedicated data channel of the data transmission port corresponding to the type of the second service data.
Referring to fig. 9, in an embodiment, the second service data includes download data, log data, interaction data, AT command data, and GNSS data, and the data transmission ports include a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port. The seventh transmission unit 45 includes an eighth transmission unit 451, a ninth transmission unit 452, a tenth transmission unit 453, and an eleventh transmission unit 454.
An eighth sending unit 451 is configured to send the second service data to a dedicated data channel of the download data port if the second service data is download data.
And a ninth sending unit 452, configured to send the second service data to a dedicated data channel of the log data port if the second service data is log data.
And a tenth sending unit 453, configured to send the second service data to a dedicated data channel of the interaction data port if the second service data is interaction data.
The eleventh sending unit 454 is configured to send the second service data to the dedicated data channel of the GNSS data port if the second service data is GNSS data.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the 5G data transmission device 40 and the units based on the PCIe interface may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The PCIe interface based 5G data transmission apparatus 40 described above may be implemented in the form of a computer program that can run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
With reference to FIG. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a 5G data transmission method based on a PCIe interface.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a PCIe interface based 5G data transfer method.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in FIG. 10 is merely a block diagram of some of the structures associated with the present inventive arrangements and does not constitute a limitation of the computer device 500 to which the present inventive arrangements may be applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
if first service data sent by an application program of a terminal is received, marking the first service data according to the type of the first service data, wherein the marking is used for enabling a 5G communication module to identify the type of the first service data;
transmitting the first service data to a data transmission port corresponding to the type of the first service data;
adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface;
and sending the first service data sent to the data transmission port to a buffer queue of the PCIe interface through a special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to a 5G communication module.
In an embodiment, when the step of marking the first service data according to the type of the first service data is implemented by the processor 502, the following steps are specifically implemented:
determining a mark corresponding to the type of the first service data according to a preset type-mark corresponding relation;
and adding a mark corresponding to the type of the first service data into the first service data.
In an embodiment, the type of the first service data includes download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port includes a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; when implementing the step of sending the first service data to the data transmission port corresponding to the type of the first service data, the processor 502 specifically implements the following steps:
if the first service data is the download data, the first service data is sent to the download data port;
if the first service data is log data, the first service data is sent to the log data port;
if the first service data are interactive data, the first service data are sent to the interactive data port;
and if the first service data is GNSS data, transmitting the first service data to the GNSS data port.
In one embodiment, the processor 502 further implements the steps of:
and if the second service data sent by the 5G communication module is received, sending the second service data to a special data channel of a data transmission port corresponding to the type of the second service data, and transmitting the second service data to a terminal through the special data channel of the data transmission port corresponding to the type of the second service data.
In an embodiment, the type of the second service data includes download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port includes a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; when implementing the step of sending the second service data to the dedicated data channel of the data transmission port corresponding to the type of the second service data, the processor 502 specifically implements the following steps:
if the second service data is the download data, the second service data is sent to a special data channel of the download data port;
if the second service data is log data, the second service data is sent to a special data channel of the log data port;
if the second service data is interactive data, the second service data is sent to a special data channel of the interactive data port;
and if the second service data is GNSS data, sending the second service data to a special data channel of the GNSS data port.
It should be appreciated that in an embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of:
if first service data sent by an application program of a terminal is received, marking the first service data according to the type of the first service data, wherein the marking is used for enabling a 5G communication module to identify the type of the first service data;
transmitting the first service data to a data transmission port corresponding to the type of the first service data;
adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface;
and sending the first service data sent to the data transmission port to a buffer queue of the PCIe interface through a special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to a 5G communication module.
In an embodiment, when the processor executes the computer program to implement the marking step for the first service data according to the type of the first service data, the following steps are specifically implemented:
determining a mark corresponding to the type of the first service data according to a preset type-mark corresponding relation;
and adding a mark corresponding to the type of the first service data into the first service data.
In an embodiment, the type of the first service data includes download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port includes a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; the processor, when executing the computer program to implement the step of sending the first service data to a data transmission port corresponding to the type of the first service data, specifically implements the following steps:
if the first service data is the download data, the first service data is sent to the download data port;
if the first service data is log data, the first service data is sent to the log data port;
if the first service data are interactive data, the first service data are sent to the interactive data port;
and if the first service data is GNSS data, transmitting the first service data to the GNSS data port.
In an embodiment, the processor, when executing the computer program, further performs the steps of:
and if the second service data sent by the 5G communication module is received, sending the second service data to a special data channel of a data transmission port corresponding to the type of the second service data, and transmitting the second service data to a terminal through the special data channel of the data transmission port corresponding to the type of the second service data.
In an embodiment, the type of the second service data includes download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port includes a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; when the processor executes the computer program to realize the step of sending the second service data to the special data channel of the data transmission port corresponding to the type of the second service data, the processor specifically realizes the following steps:
if the second service data is the download data, the second service data is sent to a special data channel of the download data port;
if the second service data is log data, the second service data is sent to a special data channel of the log data port;
if the second service data is interactive data, the second service data is sent to a special data channel of the interactive data port;
and if the second service data is GNSS data, sending the second service data to a special data channel of the GNSS data port.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (8)

1. The PCIe interface-based 5G data transmission method is characterized in that the PCIe interface-based 5G data transmission method is applied to a terminal, the terminal is connected with a 5G communication module through a PCIe interface, and the PCIe interface-based 5G data transmission method comprises the following steps:
if first service data sent by an application program of a terminal is received, marking the first service data according to the type of the first service data, wherein the marking is used for enabling a 5G communication module to identify the type of the first service data, and the marking the first service data according to the type of the first service data comprises the following steps: determining a mark corresponding to the type of the first service data according to a preset type-mark corresponding relation, adding the mark corresponding to the type of the first service data into the first service data, wherein the mark is a mark character, and the mark characters corresponding to the types of the first service data are different;
a data transmission port is preset for each type of first service data, each data transmission port is provided with a special data channel, and the first service data is sent to the data transmission port corresponding to the type of the first service data;
adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface;
and sending the first service data sent to the data transmission port to a buffer queue of the PCIe interface through a special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to a 5G communication module.
2. The PCIe interface based 5G data transmission method of claim 1, wherein the type of the first traffic data comprises download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port comprises a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; the sending the first service data to a data transmission port corresponding to the type of the first service data includes:
if the first service data is the download data, the first service data is sent to the download data port;
if the first service data is log data, the first service data is sent to the log data port;
if the first service data are interactive data, the first service data are sent to the interactive data port;
and if the first service data is GNSS data, transmitting the first service data to the GNSS data port.
3. The PCIe interface-based 5G data transmission method of claim 1, wherein the method further comprises:
and if the second service data sent by the 5G communication module is received, sending the second service data to a special data channel of a data transmission port corresponding to the type of the second service data, and transmitting the second service data to a terminal through the special data channel of the data transmission port corresponding to the type of the second service data.
4. The PCIe interface based 5G data transmission method of claim 3 wherein the second traffic data types include download data, log data, interaction data, AT command data, and GNSS data, and the data transmission ports include a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; the sending the second service data to the dedicated data channel of the data transmission port corresponding to the type of the second service data includes:
if the second service data is the download data, the second service data is sent to a special data channel of the download data port;
if the second service data is log data, the second service data is sent to a special data channel of the log data port;
if the second service data is interactive data, the second service data is sent to a special data channel of the interactive data port;
and if the second service data is GNSS data, sending the second service data to a special data channel of the GNSS data port.
5. A PCIe interface based 5G data transmission device, comprising:
the marking unit is configured to, if first service data sent by an application program of a terminal is received, mark the first service data according to a type of the first service data, where the marking is configured to enable a 5G communication module to identify the type of the first service data, and mark the first service data according to the type of the first service data, where the marking includes: determining a mark corresponding to the type of the first service data according to a preset type-mark corresponding relation, adding the mark corresponding to the type of the first service data into the first service data, wherein the mark is a mark character, and the mark characters corresponding to the types of the first service data are different;
a first sending unit, configured to set data transmission ports for each type of first service data in advance, where each data transmission port is provided with a dedicated data channel, and send the first service data to a data transmission port corresponding to the type of the first service data;
the first adding unit is used for adding a preset data packet header in the first service data, wherein the data packet header can be identified by a PCIe interface;
and the second sending unit is used for sending the first service data sent to the data transmission port to the buffer queue of the PCIe interface through the special data channel of the data transmission port so that the PCIe interface can send the first service data sent to the data transmission port to the 5G communication module.
6. The PCIe interface based 5G data transmission device of claim 5, wherein the type of first traffic data comprises download data, log data, interaction data, AT command data, and GNSS data, and the data transmission port comprises a download data port, a log data port, an interaction data port, an AT command data port, and a GNSS data port; the second transmitting unit includes:
a third sending unit, configured to send the first service data to the download data port if the first service data is download data;
a fourth sending unit, configured to send the first service data to the log data port if the first service data is log data;
a fifth sending unit, configured to send the first service data to the interaction data port if the first service data is interaction data;
and the sixth sending unit is used for sending the first service data to the GNSS data port if the first service data is GNSS data.
7. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-4.
8. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-4.
CN202010403004.XA 2020-05-13 2020-05-13 5G data transmission method, device, equipment and storage medium based on PCIe interface Active CN111615150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010403004.XA CN111615150B (en) 2020-05-13 2020-05-13 5G data transmission method, device, equipment and storage medium based on PCIe interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010403004.XA CN111615150B (en) 2020-05-13 2020-05-13 5G data transmission method, device, equipment and storage medium based on PCIe interface

Publications (2)

Publication Number Publication Date
CN111615150A CN111615150A (en) 2020-09-01
CN111615150B true CN111615150B (en) 2023-09-08

Family

ID=72203287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010403004.XA Active CN111615150B (en) 2020-05-13 2020-05-13 5G data transmission method, device, equipment and storage medium based on PCIe interface

Country Status (1)

Country Link
CN (1) CN111615150B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107924380A (en) * 2015-09-26 2018-04-17 英特尔公司 Use the methods, devices and systems of class of service distribution cache
CN109246022A (en) * 2018-10-29 2019-01-18 京信通信系统(中国)有限公司 Physical layer accelerates control method, device and its physical layer accelerator card, server
WO2020000489A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Pcie sending and receiving method, apparatus, device and system
CN111083170A (en) * 2019-12-31 2020-04-28 深圳市朗强科技有限公司 Method and equipment for sending and receiving multimedia data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037224B2 (en) * 2002-10-08 2011-10-11 Netlogic Microsystems, Inc. Delegating network processor operations to star topology serial bus interfaces
US10963035B2 (en) * 2017-10-11 2021-03-30 Qualcomm Incorporated Low power PCIe

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107924380A (en) * 2015-09-26 2018-04-17 英特尔公司 Use the methods, devices and systems of class of service distribution cache
WO2020000489A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Pcie sending and receiving method, apparatus, device and system
CN109246022A (en) * 2018-10-29 2019-01-18 京信通信系统(中国)有限公司 Physical layer accelerates control method, device and its physical layer accelerator card, server
CN111083170A (en) * 2019-12-31 2020-04-28 深圳市朗强科技有限公司 Method and equipment for sending and receiving multimedia data

Also Published As

Publication number Publication date
CN111615150A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN111930676B (en) Method, device, system and storage medium for communication among multiple processors
US9002970B2 (en) Remote direct memory access socket aggregation
CN114265800B (en) Interrupt message processing method and device, electronic equipment and readable storage medium
US8996760B2 (en) Method to emulate message signaled interrupts with interrupt data
US20190324930A1 (en) Method, device and computer program product for enabling sr-iov functions in endpoint device
CN112698909A (en) System, apparatus and method for communicating telemetry information via virtual bus encoding
JP6788691B2 (en) Improved throughput in OpenFabrics
US9384154B2 (en) Method to emulate message signaled interrupts with multiple interrupt vectors
KR20120072134A (en) Apparatus and method for accelerating virtual desktop
US20090010157A1 (en) Flow control in a variable latency system
CN112422485A (en) Communication method and device of transmission control protocol
CN111615150B (en) 5G data transmission method, device, equipment and storage medium based on PCIe interface
US8544024B2 (en) System, processor, apparatus and method for inter-processor communication
CN111427806A (en) Method for sharing serial port by dual-core AMP system, storage medium and intelligent terminal
US20200341653A1 (en) Method, network adapter and computer program product for processing data
CN109936586B (en) Communication processing method and device
CN107689996B (en) Data transmission method and device and terminal equipment
CN112073505A (en) Method for unloading on cloud server, control device and storage medium
CN111488307A (en) Multiprocessor serial communication method, device, electronic terminal and storage medium
CN116932454B (en) Data transmission method, device, electronic equipment and computer readable storage medium
CN116711282A (en) Communication apparatus and communication method
CN114584508B (en) Rabbit MQ duplex communication-based method and application
CN117520243A (en) Method, device, equipment and medium for embedded UART serial double-line communication
CN116233806A (en) Bluetooth pairing request processing method and device
CN116208573A (en) Data processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant