Data transmission method, electronic equipment and storage medium

By enumerating the wireless network card as a point-to-point group main network card and wireless terminal network card in the first system module, and configuring the IP addresses of the network card and system module, a port mapping data distribution mechanism is established, and the problems of complex connection operations and interference in the existing data transmission are solved, and efficient and stable data transmission is achieved.

CN120075230AActive Publication Date: 2025-05-30GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1

Patent Information

Application Number
CN202311643724.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

The connection operation is complicated during the existing data transmission process, and the continuity of data transmitted during the data transmission process is greatly disturbed.

Method used

The first physical wireless network card is enumerated as a point-to-point group main network card and a wireless terminal network card through the first system module, and the first connected network card and the second system module are configured in the same network segment, and the point-to-point group main network card and the first connected network card are in different network segments, establishing a data distribution mechanism based on port mapping to realize fast data transmission between the wireless terminal device and any system module.

Benefits of technology

It simplifies the operation of repeated device connections during data transmission, reduces hardware costs, and improves the continuity of data and the stability of connections during data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075230A_ABST
    Figure CN120075230A_ABST
Patent Text Reader

Abstract

Disclosed in an embodiment of the present invention are a data transmission method, device and storage medium, the data transmission method can be applied to a first system module, the first system module enumerates a first physical wireless network card as a point-to-point group master network card and a wireless terminal network card, and configures a first connection network card and a second system module in the same network segment. And configuring the point-to-point group main network card and the first connection network card in different network segments, and establishing a data distribution mechanism based on port mapping between the point-to-point group main network card and the first connection network card. According to the scheme, only one wireless network card needs to be arranged in the electronic equipment, so that the wireless terminal equipment can switch local area network transmission between the wireless terminal equipment and any system module at any time, and meanwhile, the requirement that the wireless terminal equipment accesses the Internet through the electronic equipment is met; according to the invention, the connection operation of repeatedly performing equipment connection in the case that the second system module is not detected in the data transmission process is simplified, the hardware cost is low, the operation is simple and convenient, the data continuity in the data transmission process is improved, and the connection stability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communication technologies, and in particular, to a data transmission method, an electronic device, and a storage medium. Background Art

[0002] With the continuous development of electronic technologies, various forms of electronic devices have emerged and are applied in various fields of social production activities. For example, in scenarios for multi-person communication such as an electronic classroom, an all-in-one machine with a relatively large size is usually set up to present focus information for multi-person communication. Multiple system modules are usually configured in the all-in-one machine, and multiple system modules using the same or different operating systems operate highly independently and in cooperation, so that users can implement various functions such as file display, handwriting input, and on-site data collection required in multi-person communication on the all-in-one machine. Participants in multi-person communication can largely realize the digital presentation, digital recording, and digital transmission of various information during the multi-person communication process, effectively improving the efficiency of multi-person communication.

[0003] When the inventor used an existing all-in-one machine to perform data transmission by connecting a wireless terminal device and the all-in-one machine during a multi-person communication activity, it was found that, in the external form of the all-in-one machine as a whole device, there are multiple independent system modules inside. The wireless terminal device needs to establish a connection with the actually working system module to complete data transmission. The actually working system module of the all-in-one machine often switches. In order to enable multiple system modules to perform data transmission with the wireless terminal device, a relatively high hardware cost is required, and switching operations need to be performed multiple times. The connection operation during the data transmission process is complex, and the continuity of the transmitted data during the data transmission process is greatly interfered. Summary of the Invention

[0004] The present invention provides a data transmission method, an electronic device, and a storage medium to solve the technical problems of complex connection operations during the existing data transmission process and great interference with the continuity of the transmitted data during the data transmission process.

[0005] In a first aspect, an embodiment of the present invention provides a data transmission method. The data transmission method is applied to a first system module. The first system module includes a first physical wireless network card and a first connection network card. The first system module is used to connect to a second system module through the first connection network card. The data transmission method includes:

[0006] Enumerate the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card;

[0007] When the second system module is detected to be connected, configure the IP addresses of the point-to-point group owner network card, the first connection network card, and the second system module, so that the IP address of the first connection network card and the IP address of the second system module are in the same network segment, and the IP address of the first connection network card and the IP address of the point-to-point group owner network card are in different network segments;

[0008] When a network data packet with a destination address of the IP address of the point-to-point group owner network card and a port number of the first port number is received from the wireless terminal device through the wireless connection between the point-to-point group owner network card and the wireless terminal device, distribute the network data packet to the first screen mirroring application installed in the first system module for processing;

[0009] When a network data packet with a destination address of the IP address of the point-to-point group owner network card and a port number of the second port number is received from the wireless terminal device through the wireless connection, modify the destination address of the network data packet to the IP address of the second system module, and forward the network data packet to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and is processed by the second screen mirroring application installed in the second system module.

[0010] As described above, the first system module enumerates the first physical wireless network card as the point-to-point group owner network card and the wireless terminal network card, configures the first connection network card and the second system module in the same network segment, configures the point-to-point group owner network card and the first connection network card in different network segments, and establishes a data distribution mechanism based on port mapping between the point-to-point group owner network card and the first connection network card. When a network data packet with a destination address of the IP address of the point-to-point group owner network card and a port number of the first port number is received from the wireless terminal device through the point-to-point group owner network card, distribute the network data packet to the first screen mirroring application installed in the first system module for processing. When a network data packet with a destination address of the IP address of the point-to-point group owner network card and a port number of the second port number is received from the wireless terminal device through the point-to-point group owner network card, modify the destination address of the network data packet to the IP address of the second system module, and forward the network data packet to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and is processed by the second screen mirroring application installed in the second system module. After the wireless terminal device establishes a wireless connection with the first system module, it can quickly send network data packets to any system for processing. This solution only needs to set one wireless network card in the electronic device to meet the requirement of the wireless terminal device to switch the local area network transmission with any system module at any time, and at the same time meet the requirement of the wireless terminal device to access the Internet through the electronic device. It simplifies the connection operation of repeatedly connecting devices during the data transmission process, has low hardware cost, is simple and convenient to operate, and improves the continuity of data and the connection stability during the data transmission process.

[0011] After enumerating the first physical wireless network card as the peer-to-peer group master network card and the wireless terminal network card, it further includes:

[0012] When detecting the access of the second system module, establish a first NAT connection between the peer-to-peer group master network card and the first connection network card.

[0013] Through the first NAT connection, the overall external Internet communication of the electronic device with the first system module and the second system module can be realized.

[0014] After establishing the first NAT connection between the peer-to-peer group master network card and the first connection network card, it further includes:

[0015] When receiving a network data packet whose destination address is not the IP address of the peer-to-peer group master network card from the wireless terminal device through a wireless connection, send the network data packet to the first connection network card through the first NAT connection, so that the wireless terminal device can access the Internet through the second system module.

[0016] In addition to being able to send screen mirroring data to the first device, the wireless terminal device can also realize external Internet communication through the electronic device based on the first NAT connection.

[0017] After configuring the IP addresses of the peer-to-peer group master network card, the first connection network card, and the second system module when detecting the access of the second system module, so that the IP address of the first connection network card and the IP address of the second system module are in the same network segment, and the IP address of the first connection network card and the IP address of the peer-to-peer group master network card are in different network segments, it further includes:

[0018] When receiving a network data packet whose destination address is the IP address of the peer-to-peer group master network card and the port number is not the first port number or the second port number through a wireless connection from the wireless terminal device, send the network data packet to a preset default screen mirroring application for processing, and the default screen mirroring application is one of the first screen mirroring application and the second screen mirroring application.

[0019] For the network data packet generated by the quick screen mirroring operation where the user does not select a screen mirroring target, it can be directly processed by the preset default screen mirroring application to achieve quick screen mirroring.

[0020] After enumerating the first physical wireless network card as the peer-to-peer group master network card and the wireless terminal network card, it further includes:

[0021] When the access of the second system module is not detected, establish a second NAT connection between the peer-to-peer group master network card and the wireless terminal network card.

[0022] In the case where the access of the second system module is not detected, through the second NAT connection between the peer-to-peer group master network card and the wireless terminal network card, the external Internet communication of the electronic device can be realized.

[0023] Among them, the data transmission method further includes:

[0024] When a network data packet whose destination address is not the IP address of the peer-to-peer group master network card is received from a wireless terminal device through a wireless connection, the network data packet is sent to the wireless terminal network card through a second NAT connection, so that the wireless terminal device can access the Internet through the first system module.

[0025] The wireless terminal device can realize external Internet communication based on the second NAT connection through the wireless connection with the electronic device.

[0026] Among them, the first system module is an Android system module, and the second system module is a Windows system module.

[0027] The combined use of different system modules can combine the application advantages of different systems to meet the needs of users in various scenarios.

[0028] In a second aspect, an embodiment of the present invention provides a data transmission method. The data transmission method is applied to a wireless terminal device. The wireless terminal device is wirelessly connected to an electronic device. The electronic device includes a first system module and a second system module. The first system module realizes the wireless connection between the electronic device and the wireless terminal device. The data transmission method is characterized in that it includes:

[0029] Receiving a target selection operation on a screen mirroring target selection window, where the screen mirroring target selection window displays a first selection control corresponding to the first system module and a second selection control corresponding to the second system module;

[0030] According to the target selection operation, obtaining the current display screen as the screen mirroring screen, and generating a network data packet with the IP address of the first system module as the destination address and the first port number corresponding to the first system module or the second port number corresponding to the second system module as the port number;

[0031] Sending the network data packet to the first system module, so that the first system module distributes the network data packet to the first screen mirroring application installed in the first system module for processing according to the first port number, or forwards the network data packet to the second system module according to the second port number, and the second screen mirroring application installed in the second system module processes it.

[0032] As described above, the first system module enumerates the first physical wireless network card as a peer-to-peer group master network card and a wireless terminal network card, configures the first connection network card and the second system module in the same network segment, configures the peer-to-peer group master network card and the first connection network card in different network segments, and establishes a data distribution mechanism based on port mapping between the peer-to-peer group master network card and the first connection network card. When a network data packet with the IP address of the peer-to-peer group master network card as the destination address and the first port number as the port number is received from a wireless terminal device through the peer-to-peer group master network card, the network data packet is distributed to the first screen mirroring application installed in the first system module for processing. When a network data packet with the IP address of the peer-to-peer group master network card as the destination address and the second port number as the port number is received from a wireless terminal device through the peer-to-peer group master network card, the destination address of the network data packet is modified to the IP address of the second system module, and the network data packet is forwarded to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and processed by the second screen mirroring application installed in the second system module. After the wireless terminal device establishes a wireless connection with the first system module, only by selecting the screen mirroring target, network data packets can be quickly sent to any system for processing. This solution only needs to set a wireless network card in the electronic device to meet the requirement of the wireless terminal device to switch the local area network transmission with any system module at any time, and at the same time meet the requirement of the wireless terminal device to access the Internet through the electronic device, simplifies the connection operation of repeatedly connecting devices during data transmission, has low hardware cost, is simple and convenient to operate, and improves the continuity of data and the high connection stability during data transmission.

[0033] Among them, the data transmission method further includes:

[0034] When a quick screen mirroring operation is received, obtain the current display screen as the screen mirroring screen, and generate a network data packet with the IP address of the first system module as the destination address and no port configured;

[0035] Send the network data packet to the first system module, so that the first system module sends the network data packet to a preset default screen mirroring application for processing, and the default screen mirroring application is one of the first screen mirroring application and the second screen mirroring application.

[0036] For the network data packet generated in response to the quick screen mirroring operation where the user does not select a screen mirroring target, it can be directly processed by the preset default screen mirroring application to achieve quick screen mirroring.

[0037] In a third aspect, an embodiment of the present invention provides an electronic device, and the electronic device includes:

[0038] One or more processors;

[0039] A memory for storing one or more computer programs;

[0040] When one or more computer programs are executed by one or more processors, an electronic device implements the data transmission method as described in the first aspect or the second aspect.

[0041] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data transmission method as described in the first aspect or the second aspect is implemented.

[0042] The electronic device in the third aspect can be used to execute the screen mirroring connection method provided in any of the above embodiments. The computer program stored in the computer-readable storage medium in the fourth aspect can execute the screen mirroring connection method provided in any of the above embodiments when executed by a processor, and has corresponding functions and beneficial effects. Description of the Drawings

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0044] Figure 1 It is a flowchart of a data transmission method provided by an embodiment of the present application;

[0045] Figure 2 It is a schematic diagram of the overall effect of an all-in-one machine provided by an embodiment of the present application;

[0046] Figure 3 It is a schematic diagram of the network architecture when an all-in-one machine and a wireless terminal device are connected in the related art;

[0047] Figure 4 It is a schematic diagram of the network architecture when an all-in-one machine and a wireless terminal device are connected in the data transmission method provided by an embodiment of the present application;

[0048] Figure 5 It is a flowchart of another data transmission method provided by an embodiment of the present application;

[0049] Figure 6 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed Embodiments

[0050] To make the objectives, technical solutions, and advantages of this application more clear, the following will further describe the embodiments of this application in detail with reference to the accompanying drawings. It can be understood that the specific embodiments described herein are used to explain the present invention rather than limit the present invention. Additionally, it should be noted that for ease of description, only the parts related to the present invention rather than all the structures are shown in the drawings.

[0051] It should be noted that due to space limitations, the specification of this application does not enumerate all optional implementation manners. After reading the specification of this application, those skilled in the art should be able to think that as long as the technical features do not conflict with each other, any combination of technical features can constitute an optional implementation manner.

[0052] The following will explain each embodiment in detail.

[0053] In an electronically implemented multi-person communication scenario, usually, an all-in-one machine 10 with a relatively large size as shown Figure 2 is set to present focus information for multi-person communication. The all-in-one machine 10 is equipped with multiple devices such as microphones, speakers, cameras, etc. to assist in information collection and output. Usually, multiple system modules are also configured in the all-in-one machine 10. Multiple system modules using the same or different operating systems operate highly independently and in cooperation, so that users can implement various functions required in multi-person communication on the all-in-one machine, effectively improving the multi-person communication efficiency. It should be understood that the all-in-one machine 10 is just a naming definition for such a device, which is used to carry the system modules provided in the embodiments of this application. Such a device can also be named an interactive flat panel, a conference flat panel, an interactive intelligent flat panel, a conference large board, an electronic device, etc.

[0054] In the process of multi-person communication activities of existing all-in-one machines, a common data transmission method is to connect a wireless terminal device to the all-in-one machine for data transmission; however, in the external form of the all-in-one machine as a whole device, multiple internally arranged independent system modules actually need to establish a connection with the corresponding system module to complete data transmission. When the data transmission target changes, it is necessary to operate on the wireless terminal device to switch the connected system module. The data transmission between a wireless terminal device (such as a mobile phone, a laptop computer, a tablet computer, etc.) and the system modules in the all-in-one machine is mostly based on local area network transmission, that is, it is necessary to first connect the WiFi of the wireless terminal device and the all-in-one machine to the same WiFi hotspot, or the all-in-one machine itself serves as a WiFi hotspot for the wireless terminal device to connect. In this way, when the wireless terminal device is in two scenarios of accessing the Internet and performing local area network data transmission, it is necessary to switch the working mode of the WiFi, and the two functions of Internet access and local area network data transmission cannot be achieved simultaneously.

[0055] Another solution is that the wireless terminal device can directly connect point-to-point with the all-in-one machine through the WiFi Direct method without disconnecting the original connected WiFi hotspot, so as to simultaneously access the Internet and transfer data with the all-in-one machine. However, the WiFi Direct point-to-point connection method can only be connected to the wireless network card corresponding to one system module. Multiple system modules need to set multiple wireless network cards to achieve the WiFi Direct point-to-point connection between each device and the wireless terminal device.

[0056] The connection process of the WiFi Direct point-to-point connection can refer to Figure 3 , in the all-in-one machine 10, a first system module 11 and a second system module 12 are provided, and they use different operating systems. The first system module 11 is exemplarily an Android module, and the second system module 12 is exemplarily a Windows module. Among them, the second system module 12 is an OPS (Open Pluggable Specification) system module and is a pluggable module. In the all-in-one machine 10, a first network card 111 and a first WiFi module 112 are correspondingly configured for the first system module 11, and a second network card 121 and a second WiFi module 122 are correspondingly configured for the second system module 12. Among them, the first network card 111 and the second network card 121 are used to establish a communication link dedicated to between the first system module 11 and the second system module 12, to achieve the overall coordinated control of the two system modules inside the all-in-one machine 10, and present an overall interaction effect of a set of operating system outward. The communication link between the first system module 11 and the second system module 12 and the communication link formed between the all-in-one machine and the wireless terminal device 20 belong to different network segments, such as the 192.168.153.xx network segment and the 192.168.154.xx network segment shown in FIG. 3. The first WiFi module 112 is used for the first system module 11 to communicate with devices outside the all-in-one machine 10 through the Internet; the second WiFi module 122 and other physical network cards (such as Figure 3 the Internet access network card shown in) are used for the second system module 12 to communicate with devices outside the all-in-one machine 10 through the Internet. The wireless terminal device 20 (such as various smart phones) can establish a communication connection with the all-in-one machine 10 through various wireless methods. However, the all-in-one machine 10 is a whole device form. Actually, the system module controls the connection process and the data processing process based on the connection. The wireless terminal device 20 can directly connect to the WiFi hotspot provided by the system module.

[0057] For example Figure 3Exemplarily, a first WiFi module 112 in the first system module 11 provides a WiFi hotspot. The wireless terminal device 20 can establish a connection with the first system module 11 through the third WiFi module 21 to form a communication link as shown in ①, so as to access the Internet through the communication link ①. The wireless terminal device 20 can establish a WiFi Direct peer-to-peer connection with the first system module 11 and the second system module 12 respectively through WiFi-Direct 22, forming communication links as shown in Figures ② and ③, and can perform local area network data transmission with the all-in-one machine 10 respectively through the WiFi Direct peer-to-peer connection. Therefore, this method can meet the requirements of the wireless terminal device 20 for simultaneous Internet access and local area network data transmission. However, the above communication links ② and ③ cannot be maintained simultaneously. When the main working system module of the all-in-one machine 10 switches between the first system module 11 and the second system module 12, the wireless terminal device 20 needs to disconnect the WiFi Direct peer-to-peer connection with the system module before the switch, and then re-establish the WiFi Direct peer-to-peer connection with the system module after the switch. Figure 3 In the solution of, when there are multiple system modules, corresponding wireless network cards need to be set for each system module, which not only has high hardware costs, but also requires development for each wireless network card, resulting in a huge development workload. Moreover, it is difficult to fully synchronize the information between two wireless network cards, which may lead to connection stability problems.

[0058] There is another solution. The all-in-one machine 10 is provided with a wireless network card, and this wireless network card switches between working system modules as needed. For example, it switches between Figure 3 the first system module 11 and the second system module 12 in. For example, when the first system module 11 switches to the second system module 12, the wireless network card also switches to the second system module 12 accordingly. Although this method can save hardware costs, after the wireless network card switches, there is a waiting time. After re-initialization, it connects to the system module after the switch. During this period, because the wireless network card needs to be restarted and ready, it will affect the user's connection experience. In addition, the external devices that have already been connected to the all-in-one machine will also be disconnected due to the plugging and unplugging of the wireless network card in the form of switching and cannot be used continuously. As a result, when the all-in-one machine 10 switches system modules, the user also needs to reconnect the external devices to the system module after the switch. The all-in-one machine 10 as a whole shows repeated connection of external devices, with complex operations and low efficiency.

[0059] Generally speaking, in the process of connecting a wireless terminal device to an all-in-one machine for data transmission, when the data transmission target changes, it is necessary to operate the wireless terminal device to switch the connected system module. The connection operation during the data transmission process is complex, and the continuity of the transmitted data is greatly interfered.

[0060] Based on the technical problems existing in the prior art, the solution of the embodiment of the present invention is proposed. The first system module enumerates the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card, configures the first connection network card and the second system module in the same network segment, configures the point-to-point group master network card and the first connection network card in different network segments, and establishes a data distribution mechanism based on port mapping between the point-to-point group master network card and the first connection network card. When a network data packet with the destination address being the IP address of the point-to-point group master network card and the port number being the first port number is received from the wireless terminal device through the point-to-point group master network card, the network data packet is distributed to the first screen mirroring application installed in the first system module for processing. When a network data packet with the destination address being the IP address of the point-to-point group master network card and the port number being the second port number is received from the wireless terminal device through the point-to-point group master network card, the destination address of the network data packet is modified to the IP address of the second system module, and the network data packet is forwarded to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and processed by the second screen mirroring application installed in the second system module. After the wireless terminal device establishes a wireless connection with the first system module, it can quickly send network data packets to any system for processing. This solution only needs to set one wireless network card in the electronic device, which can meet the requirement that the wireless terminal device can switch the local area network transmission with any system module at any time, and at the same time meet the requirement that the wireless terminal device accesses the Internet through the electronic device, simplifies the connection operation of repeatedly connecting devices during the data transmission process, has low hardware cost, is simple and convenient to operate, and improves the continuity of data and the connection stability during the data transmission process.

[0061] Figure 1 It is a flowchart of a data transmission method provided by an embodiment of the present application, as Figure 1 shown. When describing the data transmission method from the perspective of the first system module, for clearer description, the corresponding implementation processes of the second system module and the wireless terminal device will be described.

[0062] Step S110: Enumerate the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card.

[0063] The first system module includes a first physical wireless network card and a first connection network card. The first system module is used to connect to the second system module through the first connection network card. The first physical wireless network card in the first system module is enumerated as a point-to-point group owner network card and a wireless terminal network card. That is, one physical wireless network card realizes the wireless transmission requirements in two modes. When the first physical wireless network card realizes the wireless transmission requirements in two modes, the network node identities are virtually the point-to-point group owner network card and the wireless terminal network card at the data level. Among them, the point-to-point group owner network card is used to establish a wireless connection with other wireless terminal devices, and the wireless terminal network card operates in the STA working mode and is used to connect the first system module to an external WiFi hotspot. It should be understood that the point-to-point group owner network card and the wireless terminal network card are defined according to the working mode and working state configuration of the physical wireless network card in the related technology, and are used to implement P2P communication and STA communication respectively. When the specific corresponding working mode and working state are the same, for example, other definition methods such as the point-to-point group owner port and the wireless terminal port have the same meaning.

[0064] Point-to-point direct connection means that based on the Wi-Fi Direct standard, devices in the WiFi wireless network can be connected to each other in a point-to-point form without passing through a wireless router. In the point-to-point direct connection based on the Wi-Fi Direct standard, the two devices are not completely equal node roles, but one is a P2P Group Owner, that is, a point-to-point group owner (also known as GO). In the embodiments of the present application, the wireless network card in the device acting as the point-to-point group owner is defined as the point-to-point group owner network card, and can also be defined as the P2P-GO network card, which operates in the P2P working mode; the other is a P2P Group Client, that is, a point-to-point client (also known as GC) relative to the point-to-point group owner network card. In the related technology, the scheme for implementing point-to-point direct connection may be that multiple devices negotiate and confirm the point-to-point group owner. In the embodiments of the present application, for the management of the local area network based on the bridging network card, the development and design of wireless terminal devices are simplified, and the first physical wireless network card in the first system module is directly enumerated as the point-to-point group owner network card.

[0065] The communication between the first system module and the second system module can be specifically realized through wired communication or wireless communication. The wired communication can specifically be a physical wired network card interface or a virtual network card interface based on a bus. The virtual network card interface based on a bus is, for example, a virtual network card interface based on USB (Universal Serial Bus). The wireless communication interface is, for example, a second physical wireless network card interface. The second physical wireless network card interface corresponds to the second physical wireless network card. The second physical wireless network card can be the same as the first physical wireless network card, and the main difference between the two is in the connection object and the action link.

[0066] Step S120: When it is detected that the second system module is connected, configure the IP addresses of the point-to-point group master network card, the first connection network card, and the second system module, so that the IP address of the first connection network card and the IP address of the second system module are in the same network segment, and the IP address of the first connection network card and the IP address of the point-to-point group master network card are in different network segments.

[0067] In an all-in-one computer, there are usually two system modules. The system module can be an OPS mini computer, which is an open pluggable computer module and is connected to the whole machine system through a pluggable interface. The power supply can be an external power supply or the power supply provided by the whole machine system of the all-in-one computer. The operating systems corresponding to the system modules can be the same or different. In the specific implementation process, to provide more comprehensive and rich functions and integrate the advantages of various operating systems, system modules with different operating systems are more often selected. Figure 4 In the exemplary network architecture shown, different operating systems are adopted.

[0068] In Figure 4 In the exemplary network architecture shown, the first system module 11 is an Android system module, and the second system module 12 is a Windows system module. It should be understood that when two different system modules are adopted, either of the two system modules can be used as the first system module 11, and the other as the second system module 12. It should be understood that the all-in-one computer 10 and the hardware configurations of the first system module 11 and the second system module 12 together meet various hardware conditions for the normal operation of the first system module 11 and the second system module 12, especially the necessary wired and wireless network hardware. The hardware provided for the system modules in the all-in-one computer 10 also has corresponding interfaces. After the first system module 11 and the second system module 12 are inserted into the all-in-one computer 10, they can establish a connection through the interfaces and normally drive the corresponding hardware to implement the corresponding functions. The hardware layout and connection in various devices provided in accordance with the design concept of the system module can adopt the implementation methods in related technologies, and the details of specific hardware configurations, connection interfaces, etc. are not limited herein.

[0069] In the same electronic device (exemplarily illustrated by an all-in-one computer) where two system modules are installed simultaneously, the interfaces configured in the all-in-one computer can enable communication between the two system modules. In the embodiments of this application, the port in the first system module used to implement communication with the second system module is defined as the first connection network card. Only when the first system module detects the second system module is it necessary to configure the IP addresses of the point-to-point group master network card, the first connection network card, and the second system module. During specific configuration, the IP address of the first connection network card and the IP address of the second system module are in the same network segment, that is, in the same local area network; the IP address of the first connection network card and the IP address of the point-to-point group master network card are in different network segments, that is, the IP address of the second system module and the IP address of the point-to-point group master network card are also in different network segments, which means the point-to-point group master network card, the first connection network card, and the second system module are in different local area networks. The second system module is connected to the first system module through the second connection network card. Here, the statement that the IP address of the first connection network card and the IP address of the second system module are in the same network segment specifically means that the IP address of the first connection network card and the IP address of the second connection network card in the second system module are in the same network segment.

[0070] In the specific implementation process, it is also possible that only one system module is installed inside the all-in-one computer. In this case, it is impossible to detect the second system module through the first connection network card, and the subsequent processing process can be terminated accordingly, and the network initialization process of the system module in the all-in-one computer in the related technology can be followed for processing.

[0071] In the case where the second system module is not detected, it is also possible to maintain the enumeration of the first physical wireless network card in step S110 and configure the wireless terminal network card to the STA working mode; after enumerating the first physical wireless network card as the point-to-point group master network card and the wireless terminal network card, when the second system module is not detected to be connected, a second NAT connection can be established between the point-to-point group master network card and the wireless terminal network card. This is equivalent to realizing the network connection of the all-in-one computer through the first system module while continuing to maintain the initialization state in step S110. It avoids the rollback of the initialization process and improves the speed of establishing the network connection.

[0072] When configuring the IP addresses of the bridging network card, the second system module (and subsequent connected wireless terminal devices), there are also other basic network information configurations such as the gateway address. Specific configurations can be made with reference to relevant network configuration methods. When implementing the embodiments of this application, there are strict configuration principles for the configuration of the network information of network nodes. The network connection established based on the configuration principles is also the basis for subsequent sending of network data packets to achieve the intended design effect of this solution.

[0073] Step S130: When a network data packet with a destination address being the IP address of the point-to-point group master network card and a port number being the first port number is received from a wireless terminal device through a wireless connection between the point-to-point group master network card and the wireless terminal device, the network data packet is distributed to the first screen mirroring application installed in the first system module for processing.

[0074] Step S140: When a network data packet with a destination address being the IP address of the point-to-point group master network card and a port number being the second port number is received from a wireless terminal device through a wireless connection, the destination address of the network data packet is modified to the IP address of the second system module, and the network data packet is forwarded to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and processed by the second screen mirroring application installed in the second system module.

[0075] In the embodiment of the present application, the all-in-one machine mainly performs data transmission with the wireless terminal device. When establishing a wireless connection between the wireless terminal device and the all-in-one machine, role negotiation in the point-to-point direct connection process is not performed. Instead, the wireless terminal device is directly used as a point-to-point client to establish a connection. The configuration process in the specific connection is basically the same as the configuration principle in the relevant access local area network. Only under this configuration principle can the subsequent data transmission process be realized, and no specific elaboration is made here. Of course, the wireless terminal device can also use the point-to-point group master network card as a hotspot, and the wireless module in the wireless terminal device acts as an STA to achieve the connection.

[0076] After establishing a network connection, network management of the local area network is implemented based on the network information configured above. Specifically, the first system module distributes the received network data packets, and the distribution criterion is the port information carried in the network data packets. The port information specifically refers to the port in the logical sense, and different ports usually correspond to different processing logics or applications for processing. In the embodiment of the present application, when the wireless terminal device performs screen mirroring, it can select a screen mirroring target from the first system module and the second system module. The network data packets corresponding to the two screen mirroring targets are both targeted at the point-to-point group master network card for sending. The difference between the screen mirroring targets is not distinguished by the hardware IP address in the network data packets, but by the port number. The screen mirroring application installed in the first system module is defined as the first screen mirroring application, and the screen mirroring application installed in the second system module is defined as the second screen mirroring application. In the case of clarifying the screen mirroring target through the target selection operation, the screen mirroring application installed in the wireless terminal device can add the first port number or the second port number to the network data packets generated based on screen mirroring according to the port numbers corresponding to different screen mirroring targets configured in advance. For the network data packets received by the point-to-point group master network card, they can be divided into two types according to the port number. The first type is the network data packets with the port number being the first port number, which need to be processed by the first screen mirroring application in the first system module. These can be directly distributed to the first screen mirroring application for parsing and processing, and this is also the network data packets when the user selects the first system module as the screen mirroring target. The second type is the network data packets with the port number being the second port number. At this time, the first system module modifies the target address of the network data packets to the IP address of the second system module, and forwards the network data packets to the first connection network card, so that the network data packets are sent to the second system module through the first connection network card and are processed by the second screen mirroring application installed in the second system module. Through the above processing strategy, the user only needs to select the all-in-one machine to be connected on the wireless terminal device, and then select the screen mirroring target when there is a need for screen mirroring transmission, and can send the network data packets for screen mirroring to the screen mirroring application in any specified system module for processing without switching the connection target. The first system module is equivalent to reconstructing a dedicated port mapping transmission path for screen mirroring data between the point-to-point group master network card and the first connection network card, thereby realizing flexible transmission of network data packets across the local area network based on point-to-point direct connection.

[0077] The network architecture established between the wireless terminal device 20 and the all-in-one machine 10 implemented based on the embodiment of the present application is as Figure 4As shown in the figure. The all-in-one computer 10 is equipped with two system modules that fully implement the embodiments of the present application and corresponding hardware configurations. Among them, the first system module 11 based on the Android operating system includes at least one physical wireless network card (not labeled in the figure, named the first physical wireless network card) and one physical wired network card (i.e., the first network card 111). The second system module 12 based on the Windows operating system includes at least one physical wired network card (i.e., the second network card 121). The first network card 111 and the second network card 121 are used to implement the internal network connection between the first system module 11 and the second system module 12. The first network card 111 is the first connection network card corresponding to the first system module 11. Of course, the first system module 11 and the second system module 12 can also be configured with other hardware to achieve various required communication connections. For example, the second system module 12 can also include a second physical wireless network card 122 and other physical wired network cards for accessing the external network.

[0078] Based on the above hardware configuration, when the all-in-one computer 10 is powered on, the first physical wireless network card is enumerated as the point-to-point group master network card P2P-GO and the wireless terminal network card wlan0. If it is further monitored that the first network card 111 is connected to the second network card 121, the IP address is configured as described above.

[0079] When statically defining a port mapping between the point-to-point group master network card P2P-GO and the first network card 111 for subsequent transmission of network data packets, a first NAT connection can also be established between the point-to-point group master network card and the first connection network card. Through the first NAT connection, the overall external Internet communication of the electronic device with the first system module and the second system module can be achieved. Specifically, when the first system module receives a network data packet with a destination address other than the IP address of the point-to-point group master network card from a wireless terminal device through a wireless connection, the network data packet is sent to the first connection network card through the first NAT connection, so that the wireless terminal device can access the Internet through the second system module. Based on the first NAT connection, in addition to being able to send screen mirroring data to the first device, the wireless terminal device can also achieve external Internet communication through the electronic device based on the first NAT connection. This type of network data packet is mainly a network data packet when directly accessing an external website or sending a shared file to the all-in-one computer 10.

[0080] The user can send network data packets through the wireless terminal device 20, and can also trigger the selection control to pop up a menu to select the sending target. For example, before the screen mirroring process, the screen mirroring target is selected as the first system module 11. The wireless terminal device 20 correspondingly adds the first port number corresponding to the first system module 11 when generating the network data packet. Thus, after the peer-to-peer group master network card P2P-GO receives the network data packet, it is distributed to the first screen mirroring application in the first system module 11 according to the first port number to realize the display of the screen mirroring picture. Each system module may have a more intuitive representation in the menu, such as "Android system" or "Windows system", etc.

[0081] In the specific implementation process, the user can also not select the screen mirroring target but directly confirm the screen mirroring. At this time, the port number in the generated network data packet is neither the first port number nor the second port number, and only indicates that the network data packet is used for screen mirroring. For the peer-to-peer group master network card, when receiving a network data packet with the target address being the IP address of the peer-to-peer group master network card and the port number not being the first port number or the second port number through wireless connection from the wireless terminal device, the network data packet is sent to the preset default screen mirroring application for processing, and the default screen mirroring application is one of the first screen mirroring application and the second screen mirroring application. For the network data packet generated by the quick screen mirroring operation where the user does not select the screen mirroring target, it can be directly processed by the preset default screen mirroring application to realize quick screen mirroring.

[0082] In the case where the second system module is not detected, after establishing the second NAT connection between the peer-to-peer group master network card and the wireless terminal network card, when receiving a network data packet with the target address not being the IP address of the peer-to-peer group master network card through wireless connection from the wireless terminal device, the network data packet is sent to the wireless terminal network card through the second NAT connection so that the wireless terminal device can access the Internet through the first system module. On the basis of establishing the second NAT connection between the peer-to-peer group master network card and the wireless terminal network card, the wireless terminal device can freely perform screen mirroring with the first system module and realize access to the external network. The wireless terminal device specifically based on the basic routing strategy of sending network data packets according to network information, and all network data packets are processed by the first system module, which will not be repeated here. Of course, at this time, it is still possible to directly perform screen mirroring to the first system module.

[0083] The above data transmission method is applied to the first system module. The first system module includes a first physical wireless network card and a first connection network card. The first system module is used to connect to the second system module through the first connection network card. The data transmission method includes: enumerating the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card; when detecting the access of the second system module, configuring the IP addresses of the point-to-point group master network card, the first connection network card, and the second system module, so that the IP address of the first connection network card and the IP address of the second system module are in the same network segment, and the IP address of the first connection network card and the IP address of the point-to-point group master network card are in different network segments; when receiving, through the wireless connection between the point-to-point group master network card and the wireless terminal device, a network data packet with the destination address being the IP address of the point-to-point group master network card and the port number being the first port number, distributing the network data packet to the first screen mirroring application installed in the first system module for processing; when receiving, through the wireless connection, a network data packet with the destination address being the IP address of the point-to-point group master network card and the port number being the second port number, modifying the destination address of the network data packet to the IP address of the second system module, and forwarding the network data packet to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and is processed by the second screen mirroring application installed in the second system module. The first system module enumerates the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card, configures the first connection network card and the second system module in the same network segment, configures the point-to-point group master network card and the first connection network card in different network segments, and establishes a data distribution mechanism based on port mapping between the point-to-point group master network card and the first connection network card. When receiving, through the point-to-point group master network card, a network data packet with the destination address being the IP address of the point-to-point group master network card and the port number being the first port number, distributing the network data packet to the first screen mirroring application installed in the first system module for processing. When receiving, through the point-to-point group master network card, a network data packet with the destination address being the IP address of the point-to-point group master network card and the port number being the second port number, modifying the destination address of the network data packet to the IP address of the second system module, and forwarding the network data packet to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and is processed by the second screen mirroring application installed in the second system module. After the wireless terminal device establishes a wireless connection with the first system module, it can quickly send network data packets to any system for processing. This solution only needs to set one wireless network card in the electronic device to meet the requirement that the wireless terminal device can switch the local area network transmission with any system module at any time, and at the same time meet the requirement that the wireless terminal device accesses the Internet through the electronic device, simplifies the connection operation of repeatedly connecting devices in the data transmission process, has low hardware cost, is simple and convenient to operate, and improves the continuity of data and the connection stability in the data transmission process.

[0084] The embodiment of the present application further provides a data transmission method applied to a wireless terminal device. Specifically, the process of implementing the data transmission method is described from the perspective of the wireless terminal device. For the detailed description of data processing and data transfer between the wireless terminal device and the first system module, reference can be made to the data transmission method applied to the first system module in the foregoing text, which will not be elaborated here. Only the overall implementation process of the data transmission method applied to the wireless terminal device is described. The wireless terminal device is wirelessly connected to an electronic device, which includes a first system module and a second system module, wherein the first system module realizes the wireless connection between the electronic device and the wireless terminal device. As Figure 5 shown, the data transmission method applied to the wireless terminal device includes:

[0085] Step S210: Receive a target selection operation acting on the screen mirroring target selection window, where the screen mirroring target selection window displays a first selection control corresponding to the first system module and a second selection control corresponding to the second system module.

[0086] Step S220: According to the target selection operation, obtain the current display screen as the screen mirroring screen, and generate a network data packet with the IP address of the first system module as the target address and the first port number corresponding to the first system module or the second port number corresponding to the second system module as the port number.

[0087] Step S230: Send the network data packet to the first system module, so that the first system module distributes the network data packet to the first screen mirroring application installed on the first system module for processing according to the first port number, or forwards the network data packet to the second system module according to the second port number, and the second screen mirroring application installed on the second system module processes it.

[0088] Based on the above embodiment, the data transmission method further includes:

[0089] When receiving a quick screen mirroring operation, obtain the current display screen as the screen mirroring screen, and generate a network data packet with the IP address of the first system module as the target address and without configuring a port;

[0090] Send the network data packet to the first system module, so that the first system module sends the network data packet to a preset default screen mirroring application for processing, and the default screen mirroring application is one of the first screen mirroring application and the second screen mirroring application.

[0091] The first system module enumerates the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card, configures the first connection network card and the second system module in the same network segment, configures the point-to-point group master network card and the first connection network card in different network segments, and establishes a data distribution mechanism based on port mapping between the point-to-point group master network card and the first connection network card. When a network data packet with a destination address of the IP address of the point-to-point group master network card and a port number of the first port number is received from a wireless terminal device through the point-to-point group master network card, the network data packet is distributed to the first screen mirroring application installed in the first system module for processing. When a network data packet with a destination address of the IP address of the point-to-point group master network card and a port number of the second port number is received from a wireless terminal device through the point-to-point group master network card, the destination address of the network data packet is modified to the IP address of the second system module, and the network data packet is forwarded to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and processed by the second screen mirroring application installed in the second system module. After the wireless terminal device establishes a wireless connection with the first system module, it can quickly send network data packets to any system for processing. This solution only needs to set a wireless network card in the electronic device to meet the requirement of the wireless terminal device to switch the local area network transmission with any system module at any time, and at the same time meet the requirement of the wireless terminal device to access the Internet through the electronic device, simplifies the connection operation of repeatedly connecting devices during the data transmission process, has low hardware cost, is simple and convenient to operate, and improves the continuity of data and the connection stability during the data transmission process.

[0092] Figure 6 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 6 shown, the electronic device includes a processor 310 and a memory 320. The device can be a system module or a wireless terminal device. If it is a wireless terminal device, it may further include an input device 330, an output device 340, and a communication device 350; the number of processors 310 in the electronic device can be one or more, Figure 6 and one processor 310 is taken as an example here; the processor 310, memory 320, input device 330, output device 340, and communication device 350 in the electronic device can be connected through a bus or other means, Figure 6 and the connection through a bus is taken as an example here. In addition, if it is a system module, there may be external input device 330, output device 340, and communication device 350, and the overall product form forms, for example, an all-in-one machine, an interactive flat panel, etc.

[0093] The memory 320, being a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the force training data assistance processing method in the embodiments of the present application. The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 320, that is, implements the above data transmission method.

[0094] The memory 320 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 320 may further include a memory remotely set relative to the processor 310, and these remote memories can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0095] The input device 330 can be used to receive network configuration information. The output device 340 may include a display device such as a display screen.

[0096] The above electronic device can be used to execute any data transmission method and has corresponding functions and beneficial effects.

[0097] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the relevant operations in the data transmission method provided in any embodiment of the present application and has corresponding functions and beneficial effects.

[0098] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product.

[0099] Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a means for implementing the functions specified in the flow Figure 1 one flow or multiple flows and / or blocks Figure 1 These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction means that implements the functions specified in the flow Figure 1 one flow or multiple flows and / or blocks Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in the flow Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0100] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory. The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.

[0101] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0102] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0103] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A data transmission method, which is applied to a first system module. The first system module includes a first physical wireless network card and a first connection network card. The first system module is used to connect to a second system module through the first connection network card. Characterized in that: It includes: Enumerate the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card; When detecting the access of the second system module, configure the IP addresses of the point-to-point group master network card, the first connection network card and the second system module, so that the IP address of the first connection network card and the IP address of the second system module are in the same network segment, and the IP address of the first connection network card and the IP address of the point-to-point group master network card are in different network segments; When receiving, through the wireless connection between the point-to-point group master network card and the wireless terminal device, a network data packet with the target address being the IP address of the point-to-point group master network card and the port number being the first port number, distribute the network data packet to the first screen mirroring application installed in the first system module for processing; When receiving, through the wireless connection, a network data packet with the target address being the IP address of the point-to-point group master network card and the port number being the second port number from the wireless terminal device, modify the target address of the network data packet to the IP address of the second system module, and forward the network data packet to the first connection network card, so that the network data packet is sent to the second system module through the first connection network card and is processed by the second screen mirroring application installed in the second system module.

2. The data transmission method according to claim 1, Characterized in that: After enumerating the first physical wireless network card as a point-to-point group master network card and a wireless terminal network card, it further includes: When detecting the access of the second system module, establish a first NAT connection between the point-to-point group master network card and the first connection network card.

3. The data transmission method according to claim 2, Characterized in that: After establishing the first NAT connection between the point-to-point group master network card and the first connection network card, it further includes: When receiving a network data packet with a target address not being the IP address of the point-to-point group master network card from the wireless terminal device through the wireless connection, send the network data packet to the first connection network card through the first NAT connection, so that the wireless terminal device can access the Internet through the second system module.

4. The data transmission method according to any one of claims 1-3, Characterized in that: After configuring the IP addresses of the point-to-point group master network card, the first connection network card and the second system module when detecting the access of the second system module, so that the IP address of the first connection network card and the IP address of the second system module are in the same network segment, and the IP address of the first connection network card and the IP address of the point-to-point group master network card are in different network segments, it further includes: When a network data packet with a destination address being the IP address of the point-to-point group master network card and a port number not being the first port number or the second port number is received from the wireless terminal device through the wireless connection, the network data packet is sent to a preset default screen mirroring application for processing, and the default screen mirroring application is one of the first screen mirroring application and the second screen mirroring application.

5. The data transmission method according to any one of claims 1-3, wherein, after enumerating the first physical wireless network card as the point-to-point group master network card and the wireless terminal network card, further includes: when the second system module is not detected to be accessed, establishing a second NAT connection between the point-to-point group master network card and the wireless terminal network card.

6. The data transmission method according to claim 5, wherein, further includes: when a network data packet with a destination address not being the IP address of the point-to-point group master network card is received from the wireless terminal device through the wireless connection, sending the network data packet to the wireless terminal network card through the second NAT connection, so that the wireless terminal device accesses the Internet through the first system module.

7. The data transmission method according to any one of claims 1-3, wherein, the first system module is an Android system module, and the second system module is a Windows system module.

8. The data transmission method according to any one of claims 1-3, wherein, the first connection network card is a physical wired network card, a bus-based virtual network card or a second physical wireless network card.

9. A data transmission method, applied to a wireless terminal device, the wireless terminal device is wirelessly connected to an electronic device, the electronic device includes a first system module and a second system module, and the first system module enables the electronic device to be wirelessly connected to the wireless terminal device, wherein, the data transmission method includes: receiving a target selection operation on a screen mirroring target selection window, the screen mirroring target selection window displays a first selection control corresponding to the first system module and a second selection control corresponding to the second system module; according to the target selection operation, obtaining the current displayed screen as the screen mirroring screen, and generating a network data packet with the IP address of the first system module as the destination address and the first port number corresponding to the first system module or the second port number corresponding to the second system module as the port number; sending the network data packet to the first system module, so that the first system module distributes the network data packet to the first screen mirroring application installed in the first system module for processing according to the first port number, or forwards the network data packet to the second system module according to the second port number, and the second screen mirroring application installed in the second system module processes it.

10. The data transmission method according to claim 9, wherein, further includes: when a quick screen mirroring operation is received, obtaining the current displayed screen as the screen mirroring screen, and generating a network data packet with the IP address of the first system module as the destination address and without configuring a port; Send the network data packet to the first system module, so that the first system module sends the network data packet to a preset default screen mirroring application for processing, and the default screen mirroring application is one of the first screen mirroring application and the second screen mirroring application.

11. An electronic device, Characterized in that, Comprising: One or more processors; A memory for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the system module implements the data transmission method according to any one of claims 1-10.

12. A computer-readable storage medium, on which a computer program is stored, Characterized in that, When the computer program is executed by a processor, it implements the data transmission method according to any one of claims 1-10.

Citation Information

Patent Citations

  • Shortcut key response method and device, equipment and storage medium

    CN110413192A

  • Screen projection method and mobile terminal

    CN110536008A

  • Screen projection switching method and device, equipment and storage medium

    CN112612436A

  • Signal switching system and signal switching method

    CN114157898A

  • Data transmission method and data transmission equipment

    CN115334060A

Cited By

  • Data transmission method, electronic equipment and communication network system

    CN121152061A