CN113490292B - Communication processing method and electronic equipment - Google Patents

Communication processing method and electronic equipment Download PDF

Info

Publication number
CN113490292B
CN113490292B CN202110805734.7A CN202110805734A CN113490292B CN 113490292 B CN113490292 B CN 113490292B CN 202110805734 A CN202110805734 A CN 202110805734A CN 113490292 B CN113490292 B CN 113490292B
Authority
CN
China
Prior art keywords
data
communication
virtual device
application
dual
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
CN202110805734.7A
Other languages
Chinese (zh)
Other versions
CN113490292A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110805734.7A priority Critical patent/CN113490292B/en
Publication of CN113490292A publication Critical patent/CN113490292A/en
Application granted granted Critical
Publication of CN113490292B publication Critical patent/CN113490292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • H04W72/21Control channels or signalling for resource management in the uplink direction of a wireless link, i.e. towards the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • H04W72/23Control channels or signalling for resource management in the downlink direction of a wireless link, i.e. towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/02Hybrid access

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a virtual device driving layer which can run between an application layer and a physical device driving layer for dual-mode communication application, a first virtual device used for carrying out data access communication with a first communication application, a second virtual device used for carrying out data access communication with a second communication application are built in the virtual device driving layer, and a data processing module at least used for carrying out different types of communication data separation on dual-mode mixed data of uplink transmission is built. By means of the first virtual device and the second virtual device in the virtual device driving layer, independent character devices are respectively provided for the first communication application and the second communication application, the problem of disordered use when multiple parties of applications use the same character device simultaneously is avoided, data stripping work of the dual-mode communication application is completed in the virtual device driving layer instead of the application layer, and strong coupling requirements on upper-layer applications are avoided.

Description

Communication processing method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a communication processing method and electronic equipment.
Background
To meet the operator 4G/5G (the 4th/5th Generation mobile communication technology, fourth/fifth generation mobile communication technology) dual mode requirements, the underlying hardware needs to provide 4g+5g data. The upper layer application is divided into application modules with different 4G and 5G, and the application modules perform corresponding 4G or 5G data access through character equipment provided by a bottom layer hardware driver, so that the problems that multiple parties of applications use the same character equipment at the same time and are disordered to use exist; in addition, in the 4G/5G dual-mode communication application, the existing scheme is that the 5G application reads 4g+5g mixed data, performs data stripping, retains the 5G data, and provides the 4G data to the 4G application module in the form of a shared memory, thereby causing the upper layer application to be strongly coupled.
Disclosure of Invention
Therefore, the application discloses the following technical scheme:
a communication processing method, comprising:
in uplink communication of dual-mode communication application, a data processing module included in a virtual device driving layer acquires first dual-mode mixed data in a physical device driving layer, and separates first communication data and second communication data in the first dual-mode mixed data;
the data processing module sends the separated first communication data to a first virtual device included in the virtual device driving layer, and sends the separated second communication data to a second virtual device included in the virtual device driving layer;
the first virtual device sends the first communication data to a first communication application;
the second virtual device sends the second communication data to a second communication application;
wherein the first dual-mode mixed data in the physical device driver layer is data acquired from the physical device.
Optionally, the separating the first communication data and the second communication data in the first dual-mode mixed data includes:
identifying the data type of each data in the first dual-mode mixed data according to the frame header information and/or the data frame attribute information of the data; the data type is a first communication data type or a second communication data type;
and separating the first communication data from the second communication data in the first dual-mode mixed data according to the identified data type.
Optionally, the method further comprises:
in the downlink communication of the dual-mode communication application, the first virtual device receives first communication data sent by the first communication application;
the second virtual device receives second communication data sent by the second communication application;
the data processing module performs combination processing on the downlink first communication data and the downlink second communication data to obtain second double-mode mixed data;
the data processing module sends the second dual-mode mixed data to the physical device driving layer to transmit the second dual-mode mixed data to the physical device through the physical device driving layer.
Optionally, before performing the communication processing for the dual-mode communication application, the method further includes:
loading and running a virtual device driver;
creating the first virtual device and the second virtual device by running the virtual device driver;
wherein:
the first virtual device includes: at least one first data channel for a first communication data transmission between the first communication application and the data processing module;
the second virtual device includes: at least one second data channel for a second communication data transmission between the second communication application and the data processing module.
Optionally, the virtual device driver layer further includes at least one buffer area;
the first virtual device and the first communication application perform data interaction through the corresponding cache region and by using a first data channel;
and the second virtual equipment and the second communication application perform data interaction through the corresponding cache area and the second data channel.
Optionally, the at least one buffer area includes: a first upstream buffer area and a first downstream buffer area corresponding to the at least one first data channel; a second upstream buffer and a second downstream buffer corresponding to the at least one second data channel;
the first virtual device sending the first communication data to a first communication application, comprising:
the first virtual device sends first communication data cached in the first uplink cache area to the first communication application through a corresponding first data channel;
the second virtual device sending the second communication data to a second communication application, comprising:
and the second virtual device sends the second communication data cached in the second uplink cache region to the second communication application through a corresponding second data channel.
Optionally:
the first virtual device receiving first communication data sent by the first communication application, including:
the first virtual device receives first communication data sent by the first communication application through a corresponding first data channel, and caches the received first communication data to the first downlink cache region;
the second virtual device receives second communication data sent by the second communication application, including:
and the second virtual device receives second communication data sent by the second communication application through a corresponding second data channel, and caches the received second communication data to the second downlink cache region.
Optionally:
the data processing module obtains first dual-mode mixed data in a physical device driving layer, and the data processing module comprises:
the data processing module polls and reads first dual-mode mixed data transmitted from the physical device to the physical device driving layer through a reading thread;
the data processing module sends the second dual-mode mixed data to the physical device driver layer, including:
the data processing module is used for driving and writing the second double-mode mixed data to the physical equipment through a write thread in a polling mode.
Optionally, the method further comprises:
in a single-mode communication application, the first communication application or the second communication application directly performs data interaction with the physical device through the physical device driver.
An electronic device, comprising:
the communication application at least comprises a first communication application and a second communication application;
physical devices and physical device drivers;
the virtual device driver comprises a first virtual device, a second virtual device and a data processing module;
wherein the virtual device driver is operable, when running, to perform the method of any of the above.
As can be seen from the above solutions, the communication processing method and electronic device provided in the present application provide, for dual-mode communication applications, a virtual device driver layer that can be run between an application layer and a physical device driver layer, and construct, in the virtual device driver layer, a first virtual device for performing data access communication with a first communication application, a second virtual device for performing data access communication with a second communication application, and a data processing module that is at least configured to perform different types of communication data separation for dual-mode hybrid data for uplink transmission. By means of the first virtual device and the second virtual device in the virtual device driving layer, independent character devices are respectively provided for the first communication application and the second communication application, the problem of disordered use when multiple parties of applications use the same character device simultaneously is avoided, data stripping work of the dual-mode communication application is completed in the virtual device driving layer instead of the application layer, and strong coupling requirements on upper-layer applications are avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a dual-mode uplink communication flow chart of a communication processing method provided in the present application;
fig. 2 is a communication frame diagram to which the communication processing method provided in the present application is applicable;
fig. 3 is a schematic diagram of a composition structure and a working principle of a virtual device driving layer provided in the present application;
fig. 4 is a dual-mode downlink communication flow chart of the communication processing method provided in the present application;
fig. 5 is another dual-mode uplink communication flow chart of the communication processing method provided in the present application;
FIG. 6 is a diagram of a communication framework supporting virtual drive bypass mode provided herein;
fig. 7 is a schematic structural diagram of an electronic device provided in 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 only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The application discloses a communication processing method and electronic equipment, which solve the problem that character equipment is disordered in use due to the fact that the same character equipment is used simultaneously in multiple parties in the prior art by providing a virtual equipment driving layer which can run between an application layer and a physical equipment driving layer, respectively realizing independent character equipment for different communication applications in the virtual equipment driving layer and taking charge of data stripping work of dual-mode communication applications in the virtual equipment driving layer, and solve the problem that the strong coupling is caused among different communication applications due to data stripping in the application layer in the prior art.
Referring to fig. 1, a flow chart of a communication processing method in an embodiment of the present application is provided, which specifically includes:
in step 101, in uplink communication of dual-mode communication application, a data processing module included in a virtual device driver layer acquires first dual-mode mixed data in a physical device driver layer, and separates first communication data and second communication data in the first dual-mode mixed data.
Dual mode communication means that the device system is simultaneously operating in two communication networks, i.e. the system can transmit and receive data based on two different communication networks, e.g. for a 5G/4G dual mode, the system can simultaneously transmit/receive 5G and 4G data.
Fig. 2 shows a communication framework to which the communication processing method of the present application is applied, including an application layer, a driver layer, and an underlying hardware layer. Wherein the application layer includes at least a first communication application and a second communication application to support a dual mode communication application in the system, and the first communication application and the second communication application may be a 5G application and a 4G application, respectively; in the traditional technology, the driving layer is a physical device driving layer and is responsible for providing character devices for an upper layer application to realize data access to bottom layer hardware;
the underlying hardware may be, but is not limited to, an XDMA-based PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) device or a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) device, such as an FPGA (Field Programmable Gate Array ) device, etc., but may also be a QDMA-based PCIE device or a PCI device. Where XDMA is the ip core of Xilinx, QDMA refers to queue DMA (Direct Memory Access ).
In the following, a PCIE device "FPGA device" based on XDMA is mainly taken as an example of bottom hardware, and a communication processing method and an electronic device of the present application will be described.
In this application, referring to fig. 2, at an upper layer of the physical device driver layer, there is further provided a virtual device driver layer operable between the application layer and the physical device driver layer, that is, the driver layer in this application includes, in addition to the physical device driver layer, a virtual device driver layer located at an upper layer thereof.
The virtual device driver layer includes two parts:
1) The virtual device comprises a first virtual device corresponding to a first communication application and a second virtual device corresponding to a second communication application, wherein the first virtual device is used for providing independent character devices for the first communication application, and the second virtual device is used for providing independent character devices for the second communication application.
2) The data processing module is responsible for carrying out dual-mode data stripping or assembling/combining processing in dual-mode communication application; the data processing module runs on the lower layer of the virtual device and can be regarded as a public processing module applied to the driving layer of the virtual device by dual-mode communication.
Dual mode communication applications include uplink and downlink communications.
Based on the communication architecture, in uplink communication of dual-mode communication application, physical equipment of a bottom hardware layer, such as an FPGA, transmits dual-mode mixed data to a data processing module of a virtual equipment driving layer through physical equipment driving, and the data processing module correspondingly acquires the dual-mode mixed data from the physical equipment driving layer and strips different communication data in the uplink dual-mode mixed data to separate first communication data and second communication data. The embodiment refers to uplink dual-mode mixed data as first dual-mode mixed data.
As shown in fig. 3, the data processing module may poll the first dual mode mixed data in the physical device driver layer via a read thread and buffer the first dual mode mixed data in a FIFO (First Input First Output, first in first out) queue for storing the upstream mixed data.
Communication data of different communication applications (e.g., 5G, 4G communication applications) have different frame header information, and data frames of communication data of different communication applications typically have different attributes, e.g., the data frame lengths of 5G data and 4G data are different.
Optionally, for the first dual-mode mixed data buffered in the FIFO queue, identifying, according to frame header information of the data, whether a data type of each data in the first dual-mode mixed data is a first communication data type or a second communication data type; alternatively, in an embodiment, the data type of each data in the first dual-mode mixed data may be identified as the first communication data type or the second communication data type according to the data frame attribute, such as the length of the data frame; or, the data type identification can be performed by combining the frame header information of the data and the data frame attribute.
For example, whether the data is 5G data or 4G data is identified based on frame header information and/or data frame attributes of the data.
The data processing module further separates the different types of data based on identifying the data type.
For 5G/4G dual-mode communication, based on the processing, the stripping of 5G data and 4G data in the 5G/4G dual-mode mixed data can be completed in the virtual device driving layer provided by the application.
Step 102, the data processing module sends the separated first communication data to a first virtual device included in the virtual device driving layer, and sends the separated second communication data to a second virtual device included in the virtual device driving layer.
After the data processing module finishes processing the uplink first dual-mode mixed data, separating the first communication data and the second communication data from the first communication data and the second communication data, respectively sending the separated different communication data to the character devices corresponding to different communication applications, namely sending the first communication data to the first virtual device in the virtual device driving layer, sending the second communication data to the second virtual device in the virtual device driving layer, and sending the different communication data to the upper-layer application to which the different communication applications belong by means of the character device functions provided by the first virtual device and the second virtual device in the respective communication applications.
Taking the example that the first communication application and the second communication application are a 5G application and a 4G application, respectively, the first communication data and the second communication data separated from the first dual-mode mixed data are respectively 5G data and 4G data, the first virtual device is correspondingly a 5G virtual device and is used for providing independent character devices for the 5G application of the upper layer, and the second virtual device is a 4G virtual device and is used for providing independent character devices for the 4G application of the upper layer.
Accordingly, for 5G/4G dual mode communication, the data processing module may send 5G data separated from the 5G/4G dual mode hybrid data to the 5G virtual device and send the separated 4G data to the 4G virtual device.
Step 103, the first virtual device sends the first communication data to the first communication application.
Step 104, the second virtual device sends the second communication data to the second communication application.
Based on the independent virtual devices (character devices), the communication applications of different types receive uplink communication data from the underlying physical devices such as the FPGA, the received data is communication data of a communication type corresponding to the communication application, and data stripping of dual-mode data is completed in a virtual device driving layer without executing data stripping and data forwarding work to other communication applications by means of a certain communication application in an application layer.
As can be seen from the above solutions, in the communication processing method provided in the embodiments of the present application, for dual-mode communication applications, a virtual device driver layer that can be run between an application layer and a physical device driver layer is provided, and a first virtual device for performing data access communication with a first communication application, a second virtual device for performing data access communication with a second communication application are built in the virtual device driver layer, and a data processing module for separating at least different types of communication data for dual-mode mixed data for uplink transmission is built. By means of the first virtual device and the second virtual device in the virtual device driving layer, independent character devices are respectively provided for the first communication application and the second communication application, the problem of disordered use when multiple parties of applications use the same character device simultaneously is avoided, data stripping work of the dual-mode communication application is completed in the virtual device driving layer instead of the application layer, and strong coupling requirements on upper-layer applications are avoided.
Dual mode communication applications include uplink and downlink communications.
Accordingly, for dual-mode communication applications (such as 5G/4G dual-mode communication), the communication processing method disclosed in the present application may further include a processing procedure of downlink communication, where the processing procedure of downlink communication is shown in fig. 4, and specifically includes:
in step 401, in downlink communication of the dual-mode communication application, the first virtual device receives first communication data sent by the first communication application.
The downlink communication process of the dual-mode communication application is inverse to the uplink communication process, and is used for sending dual-mode communication data provided by different communication applications (such as 5G and 4G) at the upper layer to physical equipment of the bottom hardware layer, such as FPGA.
Specifically, for a first communication application in dual-mode communication, after generating first communication data to be transmitted to an underlying hardware layer in a downlink manner, the generated first communication data is sent to a first virtual device in a virtual device driving layer (for example, a 5G application sends 5G data to a 5G virtual device in the virtual device driving layer), and data access interaction is performed with an underlying component by means of an independent character device function of the first virtual device.
Step 402, the second virtual device receives second communication data sent by the second communication application.
And the second communication application correspondingly sends the generated second communication data to a second virtual device in the virtual device driving layer, for example, the 4G application sends the 4G data to the 4G virtual device in the virtual device driving layer.
The second virtual device and the first virtual device are independent of each other and do not interfere with each other.
And 403, the data processing module performs combination processing on the downlink first communication data and the downlink second communication data to obtain second dual-mode mixed data.
Referring to fig. 3 in combination, the data processing module combines different communication data transmitted from an upper layer into dual-mode mixed data, and caches the combined dual-mode mixed data in a FIFO queue for storing downstream mixed data. The present embodiment refers to the dual mode mixed data obtained by combining here as second dual mode mixed data.
Step 404, the data processing module sends the second dual-mode mixed data to the physical device driver layer, so as to transmit the second dual-mode mixed data to the physical device through the physical device driver layer.
And then, the data processing module writes the combined second double-mode mixed data into the physical equipment by utilizing a write thread, and transmits the second double-mode mixed data to the physical equipment of the bottom hardware layer, such as an FPGA, through the physical equipment drive so as to complete the downlink double-mode communication transmission.
According to the embodiment of the application, the virtual device driving layer which can run between the application layer and the physical device driving layer is provided, and the virtual device is respectively built for different communication applications in the virtual device driving layer to respectively provide independent character devices for different applications, so that in dual-mode communication applications, no matter in uplink communication or downlink communication, different upper-layer applications independently use the corresponding character devices in the virtual device driving layer to realize data access interaction with the bottom-layer physical device, the problem of confusion in use when multiple-party applications use the same character device at the same time is avoided, and the work such as data stripping or combination of dual-mode communication applications is also completed in the virtual device driving layer, so that the strong coupling requirements on different upper-layer applications are avoided.
In an embodiment, referring to a flow chart of the communication processing method provided in fig. 5, before executing the communication processing for the dual-mode communication application, the method further includes:
step 501, loading and running a virtual device driver, and creating a first virtual device and a second virtual device by running the virtual device driver;
in practical application, a drive code of a virtual device drive layer is pre-written, and the drive code comprises: the function code of the data processing module is used for providing the related function code of the first virtual device of the independent character device for the first communication application (such as a 5G application) of the upper layer, providing the related function code of the second virtual device of the independent character device for the second communication application (such as a 4G application) of the upper layer, and providing the function code of the data processing module.
Before communication processing of the dual-mode communication application is executed, for example, when the system is started or the system enters the dual-mode communication application, driving codes of a virtual device driving layer are loaded and operated, creation of the first virtual device and the second virtual device is completed by operating related codes in the virtual device driving layer, and accordingly independent character devices are respectively provided for the first communication application and the second communication application at the upper layer at the virtual device driving layer through the created first virtual device and second virtual device.
Wherein the created first virtual device comprises: at least one first data channel for a first communication data transmission between a first communication application and a data processing module; the second virtual device includes: at least one second data channel for a second communication data transmission between a second communication application and the data processing module.
Illustratively, a first virtual device is created for a 5G application that includes the following 4 5G data channels:
xdma0_5g_ch0、xdma0_5g_ch1、xdma0_5g_ch2、dma0_5g_ch3。
creating a second virtual device for the 4G application comprising the following 4G data channels:
xdma0_4g_ch0、xdma0_4g_ch1、xdma0_4g_ch2、xdma0_4g_ch3。
and the upper layer application independently uses the corresponding virtual devices to complete data interaction with the lower layer physical devices, for example, the 5G application uses the xdma05g_chx, the 4G application uses the xdma04 g_chx, wherein chx represents any one or more of ch0-ch3, and the use of the same character device by different upper layer applications is avoided.
In an embodiment, the virtual device driver layer further includes at least one buffer.
The first virtual device and the first communication application perform data interaction through the corresponding cache region and the first data channel; and the second virtual equipment and the second communication application perform data interaction through the corresponding buffer area and the second data channel.
Optionally, referring to fig. 3, the at least one buffer area further includes:
1) A first upstream buffer and a first downstream buffer corresponding to at least one first data channel.
For the case where the first communication application and the second communication application are 5G and 4G applications, respectively, the first UpLink buffer is denoted as 5G UL (UpLink) and the first DownLink buffer is denoted as 5G DL (DownLink) in fig. 3.
2) A second upstream buffer area and a second downstream buffer area corresponding to at least one second data channel; the second upstream buffer is denoted as 4G UL and the second downstream buffer is denoted as 4G DL in fig. 3.
Correspondingly, in the uplink communication of the dual-mode communication application, after the data processing module strips the first communication data and the second communication data in the first dual-mode mixed data, the first communication data is further cached in the first uplink cache region, and the second communication data is cached in the second uplink cache region. And then, the first communication data cached in the first uplink cache area is sent to the first communication application through a corresponding first data channel in the first virtual device.
If the stripped uplink 5G data is buffered to 5G UL, the stripped uplink 4G data is buffered to 4G UL, the 5G data is sent to the 5G application by xdma0_5g_ch, and the 5G data is sent to the 4G application by xdma 0_4g_ch.
In downlink communication of dual-mode communication application, a corresponding first data channel of a first virtual device receives first communication data sent by the first communication application, and caches the received first communication data to a first downlink cache region, a corresponding second data channel of a second virtual device receives second communication data sent by a second communication application, and caches the received second communication data to a second downlink cache region, and then a data processing module respectively reads data from the first downlink cache region and the second downlink cache region to obtain the first communication data and the second communication data, and performs combination processing on the first communication data and the second communication data.
For example, 5G data sent by the 5G application is received and buffered to 5G DL through xdma05g_ch, 4G data sent by the 4G application is received and buffered to 4G DL through xdma04g_ch, and the data processing module reads the 5G data and the 4G data from the 5G DL and the 4G DL respectively and combines them to process them into second dual-mode mixed data.
In this embodiment, different buffer areas are created for uplink and downlink communications of different communication applications, so as to avoid data buffer confusion between different communication applications and between uplink and downlink communications of the same communication application, and accordingly avoid data read-write errors caused by data buffer confusion.
Additionally, in an embodiment, with reference to fig. 6 in combination, the communication processing method of the present application also provides a virtual driven bypass (bypass) mode for single mode communication applications.
When the method and the device are applied, the optional function of the bypass mode can be further provided, and a user is supported to configure whether the single-mode communication application adopts the bypass mode or not according to actual conditions.
If the single-mode communication application is configured to not adopt the bypass mode, the upper-layer communication application can utilize the corresponding virtual equipment in the virtual equipment driving layer to be in butt joint with the physical equipment driving layer; if the single-mode communication application is configured to adopt the bypass mode, when the first communication application and the second communication application are used independently, the first communication application or the second communication application can bypass the virtual device driving layer based on the bypass mode and directly interface with the physical device driving layer, namely, the application layer directly performs data interaction with the physical device through the physical device driving to reduce the consumption of resources.
Corresponding to the above-mentioned communication processing method, the embodiment of the application also discloses an electronic device, which may be, but is not limited to, a terminal device or a server supporting a dual-mode communication application.
The electronic device includes, as shown in fig. 7, a constituent structure including:
a communication application 10, the communication application 10 comprising at least a first communication application 11 and a second communication application 12;
a physical device 20 and a physical device driver 30;
the virtual device driver 40 includes a first virtual device 41, a second virtual device 42, and a data processing module 43.
By way of example, the first communication application and the second communication application may be a 5G application and a 4G application, respectively, and the physical device may be, but is not limited to, an FPGA.
The virtual device driver and the physical device driver form a driving layer between an upper layer communication application (a first communication application and a second communication application) and the physical device, and the virtual device driver operates on an upper layer of the physical device driver, and when the virtual device driver operates, the virtual device driver can be used for executing the communication processing method disclosed in any embodiment above.
The functions of each component of the electronic device and the communication processing procedure implemented by the cooperative work of each component can be specifically referred to the description of the communication processing method of the present application in each embodiment, which is not repeated herein.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
For convenience of description, the above system or apparatus is described as being functionally divided into various modules or units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that relational terms such as first, second, third, fourth, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A communication processing method, comprising:
in uplink communication of dual-mode communication application, a data processing module included in a virtual device driving layer acquires first dual-mode mixed data in a physical device driving layer, and separates first communication data and second communication data in the first dual-mode mixed data;
the data processing module sends the separated first communication data to a first virtual device included in the virtual device driving layer, and sends the separated second communication data to a second virtual device included in the virtual device driving layer;
the first virtual device sends the first communication data to a first communication application;
the second virtual device sends the second communication data to a second communication application;
wherein the first dual-mode mixed data in the physical device driver layer is data acquired from the physical device.
2. The method of claim 1, the separating the first communication data and the second communication data in the first dual-mode hybrid data, comprising:
identifying the data type of each data in the first dual-mode mixed data according to the frame header information and/or the data frame attribute information of the data; the data type is a first communication data type or a second communication data type;
and separating the first communication data from the second communication data in the first dual-mode mixed data according to the identified data type.
3. The method of claim 1, further comprising:
in the downlink communication of the dual-mode communication application, the first virtual device receives first communication data sent by the first communication application;
the second virtual device receives second communication data sent by the second communication application;
the data processing module performs combination processing on the downlink first communication data and the downlink second communication data to obtain second double-mode mixed data;
the data processing module sends the second dual-mode mixed data to the physical device driving layer to transmit the second dual-mode mixed data to the physical device through the physical device driving layer.
4. The method of claim 3, further comprising, prior to performing communication processing for the dual mode communication application:
loading and running a virtual device driver;
creating the first virtual device and the second virtual device by running the virtual device driver;
wherein:
the first virtual device includes: at least one first data channel for a first communication data transmission between the first communication application and the data processing module;
the second virtual device includes: at least one second data channel for a second communication data transmission between the second communication application and the data processing module.
5. The method of claim 4, wherein the virtual device driver layer further comprises at least one buffer;
the first virtual device and the first communication application perform data interaction through the corresponding cache region and by using a first data channel;
and the second virtual equipment and the second communication application perform data interaction through the corresponding cache area and the second data channel.
6. The method of claim 5, wherein the at least one buffer comprises: a first upstream buffer area and a first downstream buffer area corresponding to the at least one first data channel; a second upstream buffer and a second downstream buffer corresponding to the at least one second data channel;
the first virtual device sending the first communication data to a first communication application, comprising:
the first virtual device sends first communication data cached in the first uplink cache area to the first communication application through a corresponding first data channel;
the second virtual device sending the second communication data to a second communication application, comprising:
and the second virtual device sends the second communication data cached in the second uplink cache region to the second communication application through a corresponding second data channel.
7. The method according to claim 6, wherein:
the first virtual device receiving first communication data sent by the first communication application, including:
the first virtual device receives first communication data sent by the first communication application through a corresponding first data channel, and caches the received first communication data to the first downlink cache region;
the second virtual device receives second communication data sent by the second communication application, including:
and the second virtual device receives second communication data sent by the second communication application through a corresponding second data channel, and caches the received second communication data to the second downlink cache region.
8. A method according to claim 3, wherein:
the data processing module obtains first dual-mode mixed data in a physical device driving layer, and the data processing module comprises:
the data processing module polls and reads first dual-mode mixed data transmitted from the physical device to the physical device driving layer through a reading thread;
the data processing module sends the second dual-mode mixed data to the physical device driver layer, including:
the data processing module is used for driving and writing the second double-mode mixed data to the physical equipment through a write thread in a polling mode.
9. The method of any of claims 1-8, further comprising:
in a single-mode communication application, the first communication application or the second communication application directly performs data interaction with the physical device through the physical device driver.
10. An electronic device, comprising:
the communication application at least comprises a first communication application and a second communication application;
physical devices and physical device drivers;
the virtual device driver comprises a first virtual device, a second virtual device and a data processing module;
wherein the virtual device driver is operable, when running, to perform the communication processing method of any of claims 1-9.
CN202110805734.7A 2021-07-16 2021-07-16 Communication processing method and electronic equipment Active CN113490292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110805734.7A CN113490292B (en) 2021-07-16 2021-07-16 Communication processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110805734.7A CN113490292B (en) 2021-07-16 2021-07-16 Communication processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113490292A CN113490292A (en) 2021-10-08
CN113490292B true CN113490292B (en) 2023-04-28

Family

ID=77939842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110805734.7A Active CN113490292B (en) 2021-07-16 2021-07-16 Communication processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113490292B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660554A (en) * 2013-11-19 2015-05-27 北京天地超云科技有限公司 Method for implementing communication data security of virtual machines

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558723B2 (en) * 2003-12-12 2009-07-07 Microsoft Corporation Systems and methods for bimodal device virtualization of actual and idealized hardware-based devices
CN105095121B (en) * 2011-06-30 2017-12-26 北京奇虎科技有限公司 Implementation method and its system of the virtual input device in driving layer
CN109189559A (en) * 2018-09-12 2019-01-11 郑州云海信息技术有限公司 A kind of secure virtual machine communication means, device, equipment and storage medium
US10608680B1 (en) * 2019-08-02 2020-03-31 Ming-Tsung Chen Dual mode communication device and dual mode communication module

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660554A (en) * 2013-11-19 2015-05-27 北京天地超云科技有限公司 Method for implementing communication data security of virtual machines

Also Published As

Publication number Publication date
CN113490292A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN102981990B (en) Data transmission method and device of terminal equipment with Androild platform
CN109117386A (en) A kind of system and method for network remote read-write secondary storage
CN112839231A (en) Video compression transmission method and system
CN113490292B (en) Communication processing method and electronic equipment
WO2014134947A1 (en) Device for transmitting and receiving control information and method thereof
CN102377688A (en) File transmission method and equipment
US8862783B2 (en) Methods and system to offload data processing tasks
TWI235921B (en) System and method for effectively performing physical direct memory access operations
US8719467B2 (en) Method, apparatus and system for mounting file system
WO2018099241A1 (en) Disk array controller, and data processing method and device thereof
CN105159638A (en) Data transmission method, data transmission system and portable display apparatus
CN114615355A (en) Message processing method and message analysis module
KR20120038196A (en) Routing apparatus and network apparatus
CN113766216A (en) Verification method and verification system for video module
CN106844273A (en) Access the method and device of DP accessory channels
CN112689223A (en) Voice playing system and method for automobile combination instrument
CN112003800B (en) Method and device for exchanging and transmitting messages of ports with different bandwidths
WO2023197897A1 (en) Method and apparatus for processing live-streaming audio and video stream, and device and medium
CN116303228A (en) Chip function expansion method and system
US8054857B2 (en) Task queuing methods and systems for transmitting frame information over an I/O interface
JP2001197067A (en) Method and system for data connection transfer and recording medium recording data connection transfer program
CN102752575B (en) A kind of method for monitoring special effect processing system treatment effect in real time by editing system
CN115277842B (en) Multi-partition network management sinking communication method
CN106547715A (en) A kind of data managing method of the monitoring device based on network transmission
CN105162832A (en) File transmission method and apparatus

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