CN112153668A - Data transmission method and device and mobile terminal - Google Patents
Data transmission method and device and mobile terminal Download PDFInfo
- Publication number
- CN112153668A CN112153668A CN201910577465.6A CN201910577465A CN112153668A CN 112153668 A CN112153668 A CN 112153668A CN 201910577465 A CN201910577465 A CN 201910577465A CN 112153668 A CN112153668 A CN 112153668A
- Authority
- CN
- China
- Prior art keywords
- data
- network
- network connection
- quality
- server
- 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.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 62
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012360 testing method Methods 0.000 claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 3
- 238000009877 rendering Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000011156 evaluation Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000000644 propagated effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012372 quality testing Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0231—Traffic management, e.g. flow control or congestion control based on communication conditions
- H04W28/0236—Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a data transmission method, a data transmission device and a mobile terminal, wherein the method comprises the following steps: adopting a first network connection to transmit network data of the game application program; testing the network quality for the first network connection; if the network quality does not reach the target quality, the first network connection and the second network connection are adopted to jointly transmit network data; the first network connection and the second network connection have different network connection modes. The method can realize that the first network connection and the second network connection are adopted to transmit the network data together when the network quality of the first network connection is poor, so that the phenomenon that the game application program is jammed due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, an apparatus, and a mobile terminal.
Background
With the popularization of terminal devices and the high cost of 2G, 3G and 4G networks charged by flow, the requirement of users on wireless network coverage is higher and higher. Wireless local area networks, such as WiFi, are becoming an essential network environment for users in their daily lives. At present, a game Application program (APP) on a terminal device has a high requirement on the speed of a network, and in some scenes, when the quality of a WiFi network is poor, a game is blocked, which seriously affects the real-time combat experience and combat performance of a user.
Disclosure of Invention
The application provides a data transmission method, a data transmission device and a mobile terminal, so that when the network quality of a first network connection is poor, the first network connection and a second network connection are adopted to jointly transmit network data, therefore, the phenomenon that a game application program is blocked due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
An embodiment of a first aspect of the present application provides a data transmission method, including:
adopting a first network connection to transmit network data of the game application program;
testing network quality for the first network connection;
if the network quality does not reach the target quality, the first network connection and the second network connection are adopted to jointly transmit the network data; wherein the first network connection and the second network connection have different network connection modes.
An embodiment of a second aspect of the present application provides a data transmission apparatus, including:
the first transmission module is used for connecting and transmitting network data of the game application program by adopting a first network;
a test module for testing network quality for the first network connection;
the second transmission module is used for adopting the first network connection and the second network connection to jointly transmit the network data if the network quality does not reach the target quality; wherein the first network connection and the second network connection have different network connection modes.
The embodiment of the third aspect of the present application provides a mobile terminal, where a client of the mobile terminal is provided with a first sub-terminal unit, a second sub-terminal unit, and a control unit;
the first sub-terminal unit is provided with a WiFi module and is used for communicating with a server through the WiFi module;
the second sub-terminal unit is provided with a LiFi module and is used for communicating with the server through the LiFi module;
the control unit is used for testing the network quality of the WiFi module; and if the network quality obtained by the test does not reach the target quality, controlling the first sub-terminal unit to communicate with the server through the WiFi module, and controlling the second sub-terminal unit to communicate with the server through the LiFi module.
A fourth aspect of the present application is directed to a computer-readable storage medium, where computer-readable instructions are stored, and the computer-readable instructions are configured to cause a computer to execute the data transmission method set forth in the foregoing first aspect.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the network data of the game application program is transmitted by adopting the first network connection, the network quality of the first network connection is tested, and if the network quality does not reach the target quality, the first network connection and the second network connection are adopted to transmit the network data together; the first network connection and the second network connection have different network connection modes. In the application, when the network quality of the first network connection is poor, the first network connection and the second network connection are adopted to transmit network data together, so that the phenomenon that the game application program is jammed due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The data transmission method is mainly used for solving the technical problem that in the prior art, when the WiFi network quality is poor, the game is blocked.
The data transmission method of the embodiment of the application transmits the network data of the game application program by adopting the first network connection, tests the network quality of the first network connection, and transmits the network data by adopting the first network connection and the second network connection together if the network quality does not reach the target quality; the first network connection and the second network connection have different network connection modes. In the application, when the network quality of the first network connection is poor, the first network connection and the second network connection are adopted to transmit network data together, so that the phenomenon that the game application program is jammed due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
The following describes a data transmission method, a data transmission device, and a mobile terminal according to an embodiment of the present application with reference to the drawings. Before describing embodiments of the present invention in detail, for ease of understanding, common terminology will be introduced first:
the Light Fidelity (LiFi) technology is a Light internet access technology, and Light emitted by an LED lighting lamp is used as a transmission tool for network signals to transmit data, so as to realize illumination internet access. LiFi has the characteristics of low radiation, low energy consumption, low carbon and environmental protection, and gradually becomes a research hotspot in the field of the Internet.
Fig. 1 is a flowchart illustrating a data transmission method according to an embodiment of the present application.
As shown in fig. 1, the data transmission method may include the steps of:
In this embodiment of the application, the first network connection may be one of a Wireless Fidelity (WiFi) network connection and a LiFi network connection.
In the embodiment of the application, when it is detected that the mobile terminal starts the game Application (APP), the first network connection may be used to transmit the network data of the game application. The network data comprises data sent by the game application program to the background server and data sent by the background server to the game application program.
For example, when the first network connection is a WiFi network connection, and when it is detected that the mobile terminal starts the game application, the WiFi network connection may be adopted to transmit the network data of the game application in the foreground operation state.
In the embodiment of the application, in order to avoid the phenomenon that the game application program is jammed due to poor network quality of the first network connection, in the application, after the game application program is started and network data of the game application program is transmitted by adopting the first network connection, the network quality of the first network connection can be tested. Optionally, a network quality testing technique in related technologies may be adopted to test the first network connection to obtain the network quality corresponding to the first network connection, which is not limited in this application.
For example, the mobile terminal may periodically access the target server through the first network connection while transmitting the network data of the game application through the first network connection, so as to obtain the network test quality, or may also test the first network connection by using a test APP or a security APP installed in the mobile terminal, so as to obtain the network quality.
The network quality may include parameter information such as delay, packet loss rate, and the like, and it can be understood that the lower the delay and/or the lower the packet loss rate is, the better the network quality of the first network connection is. Alternatively, the network quality may further include information such as a network connection rate, and a higher network connection rate indicates a better network quality of the first network connection.
103, if the network quality does not reach the target quality, adopting the first network connection and the second network connection to jointly transmit network data; the first network connection and the second network connection have different network connection modes.
In an embodiment of the application, the second network connection may be another one of a WiFi network connection and a LiFi network connection.
In this embodiment of the application, the target quality may be preset for the mobile terminal, and the target quality may include parameter information such as a target delay and a target packet loss rate, where the target delay and the target packet loss rate are minimum indexes that the game application program needs to meet when running normally. Alternatively, the target quality may also include information such as a target network connection rate.
It should be appreciated that the parameters contained in the target quality may be different for different types of game class applications, since different types of games may have different requirements on network quality.
In the embodiment of the application, after the network quality of the first network connection is obtained, the mobile terminal may detect whether the network quality reaches a target quality, and if the network quality reaches the target quality, it indicates that the network quality of the first network connection is better, so that the first network connection can be maintained to transmit network data. If the network quality does not reach the target quality, it indicates that the network quality of the first network connection is poor, and at this time, in order to avoid the phenomenon that the game application program is stuck due to the poor network quality of the first network connection, in the present application, the first network connection and the second network connection may be adopted to transmit network data together.
By way of example, network quality including delay and/or packet loss rate is exemplified. When the delay in the network quality is higher than the target delay, or when the packet loss rate in the network quality is higher than the target packet loss rate, or when the delay in the network quality is higher than the target delay and the packet loss rate is higher than the target packet loss rate, it indicates that the network quality does not reach the target quality. And when the delay in the network quality is lower than or equal to the target delay, or when the packet loss rate in the network quality is lower than or equal to the target packet loss rate, or when the delay in the network quality is lower than or equal to the target delay and the packet loss rate is lower than or equal to the target packet loss rate, it indicates that the network quality reaches the target quality.
Alternatively, the network quality may include a network connection rate. When the network connection rate in the network quality is lower than the target network connection rate, it indicates that the network quality does not reach the target quality, and when the network connection rate in the network quality is higher than or equal to the target network connection rate, it indicates that the network quality reaches the target quality.
The data transmission method of the embodiment of the application transmits the network data of the game application program by adopting the first network connection, tests the network quality of the first network connection, and transmits the network data by adopting the first network connection and the second network connection together if the network quality does not reach the target quality; the first network connection and the second network connection have different network connection modes. In the application, when the network quality of the first network connection is poor, the first network connection and the second network connection are adopted to transmit network data together, so that the phenomenon that the game application program is jammed due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
It can be understood that the bandwidth of the LiFi network is very wide, and therefore, some data with a large data volume but low real-time requirement can be transmitted by using the LiFi network connection, and data with a small data volume but high real-time requirement can be transmitted by using the WiFi network connection. Therefore, in the application, the real-time data and the data with the larger data volume in the network data can be identified, so that when the network quality of the first network connection is poor, the data with the larger data volume in the network data can be transmitted by adopting the LiFi network connection, and the real-time data in the network data can be transmitted by adopting the WiFi network connection. The above process is described in detail with reference to example two.
Fig. 2 is a schematic flowchart of a data transmission method according to a second embodiment of the present application.
As shown in fig. 2, the data transmission method may include the steps of:
The execution process of steps 201 to 202 may refer to the execution process of steps 101 to 102 in the above embodiments, which is not described herein again.
In the embodiment of the application, when the network quality of the first network connection reaches the target quality, the network quality of the first network connection is better, so that the first network connection can be maintained to transmit network data.
In step 205, first data and second data in the network data are identified.
For example, when the first network connection is a WiFi network connection and the second network connection is a LiFi network connection, because the network quality of the first network connection is poor, the data volume that is smaller but has a higher requirement for real-time performance may be transmitted through the WiFi connection, that is, the first data may be real-time data in the network data, and the data volume that is larger but has a lower requirement for real-time performance may be transmitted through the LiFi network connection, that is, the second data may be data with a larger data volume in the network data.
Optionally, an identification algorithm in the related art may be adopted to identify the network data to obtain real-time data and data with a large data volume, which is not limited in the present application.
According to the data transmission method, when the network quality does not reach the target quality, the first data are transmitted by adopting the first network connection, and the second data are transmitted by adopting the second network connection. Therefore, the phenomenon that the game application program is jammed due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
Generally, the data sent by the game application to the background server is real-time data, such as operation data of a user, control instructions in a game, and the like, and the data sent by the background server to the game application is data with a large data volume, such as image and/or video data loaded in an upgrade, a clearance, a scene, and the like. Therefore, in step 205, the data sent by the game application to the server may be identified as the first data and the data sent by the server to the game application may be identified as the second data according to the transmission direction of the network data.
It can be understood that, when the user plays the game, the operation data of the user is real-time interactive data, and when the server receives the operation data of the user, the server may generate a corresponding control instruction in response to the operation data, where the control instruction is used to instruct the game-type application to perform a corresponding reaction. For example, when a user manipulates a character in a game to move quickly, the server may send a corresponding control instruction in response to a user operation, where the control instruction is used to instruct the game-class application to move the user's game character quickly. Therefore, in the present application, the user operation data generated by the game application and the control command transmitted by the server may be used as the first data. And the data for display, such as image and/or video data loaded for upgrading, clearance, scene, etc., sent by the server to the game-like application is large in data volume and not high in requirement on real-time performance, so that the data can be used as the second data.
That is, in step 205, the user operation data generated by the game application and the control command sent by the server may be used as the first data, and the data sent by the server for display may be used as the second data, according to the type of the network data. The data for display may include, among other things, upgrades, customs, picture and/or video data for scene loading, and so forth.
Further, after the game application receives second data for display sent by the server, for example, image and/or video data loaded for upgrade, clearance, scene, and the like, the second data may also be loaded and rendered, so that the user can intuitively know the corresponding game data.
It should be noted that, when the network quality of the first network connection does not reach the target quality, it needs to be determined whether to establish the second network connection, and only when it is determined that the second network connection is established, the first network connection and the second network connection can be used to transmit network data together, when the second network connection is not established, the network data can be transmitted only by adopting the first network connection, or whether a third network connection is established can be further judged, wherein the third network connection may be a mobile network connection (e.g., a 2G/3G/4G/5G network connection), and upon determining that the third network connection has been established, the first network connection and the third network connection may be employed to jointly transmit network data, and when determining that the third network connection is not established, the first network connection may be used to transmit the network data.
For example, when it is determined that the second network connection is not established and the third network connection is established, the first data may be transmitted using the first network connection and the second data may be transmitted using the third network connection.
In order to implement the above embodiments, the present application further provides a data transmission device.
Fig. 3 is a schematic structural diagram of a data transmission device according to a third embodiment of the present application.
As shown in fig. 3, the data transmission apparatus includes: a first transmission module 110, a test module 120, and a second transmission module 130.
The first transmission module 110 is configured to transmit network data of the game application program by using a first network connection.
A testing module 120 for testing network quality for the first network connection.
A second transmission module 130, configured to transmit network data by using the first network connection and the second network connection together if the network quality does not reach the target quality; the first network connection and the second network connection have different network connection modes.
Further, in a possible implementation manner of the embodiment of the present application, referring to fig. 4, on the basis of the embodiment shown in fig. 3, the data transmission apparatus may further include:
a second transmission module 130, comprising: an identification unit 131 and a transmission unit 132.
The identifying unit 131 is configured to identify first data and second data in the network data.
A transmission unit 132 configured to transmit the first data using the first network connection and to transmit the second data using the second network connection.
As a possible implementation manner of the embodiment of the present application, the identifying unit 131 is specifically configured to: according to the transmission direction of the network data, the data sent by the game application to the server is identified as first data, and the data sent by the server to the game application is identified as second data.
As another possible implementation manner of the embodiment of the present application, the identifying unit 131 is specifically configured to: according to the type of the network data, the user operation data generated by the game application and the control command sent by the server are used as first data, and the data sent by the server for display are used as second data.
The data for display includes upgrade, clearance, picture loaded by scene and/or video data.
And a rendering module 140, configured to load and render the second data.
The first transmission module 110 is further configured to, after testing the network quality of the first network connection, maintain to transmit the network data using the first network connection if the network quality reaches the target quality.
In the embodiment of the application, the first network connection is a wireless fidelity WiFi network connection, and the second network connection is a light fidelity LiFi network connection.
It should be noted that the foregoing explanation on the embodiment of the data transmission method is also applicable to the data transmission apparatus of this embodiment, and is not repeated here.
The data transmission device of the embodiment of the application adopts the first network connection to transmit the network data of the game application program, tests the network quality of the first network connection, and adopts the first network connection and the second network connection to transmit the network data together if the network quality does not reach the target quality; the first network connection and the second network connection have different network connection modes. In the application, when the network quality of the first network connection is poor, the first network connection and the second network connection are adopted to transmit network data together, so that the phenomenon that the game application program is jammed due to poor network quality of the first network connection can be avoided, and the use experience of a user is improved.
In order to implement the above embodiments, the present application further provides a mobile terminal.
Fig. 5 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application.
As shown in fig. 5, the client of the mobile terminal is provided with a first sub-terminal unit 10, a second sub-terminal unit 20, and a control unit 30.
The first sub-terminal unit 10 is provided with a WiFi module, and the first sub-terminal unit 10 is configured to communicate with a server through the WiFi module.
The second sub-terminal unit 20 is provided with a LiFi module 21, and the second sub-terminal unit 20 is configured to communicate with the server through the LiFi module.
The control unit 30 is used for testing the network quality of the WiFi module; and if the network quality obtained by the test does not reach the target quality, controlling the first sub-terminal unit 10 to communicate with the server through the WiFi module, and controlling the second sub-terminal unit 20 to communicate with the server through the LiFi module.
The mobile terminal may be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices having various operating systems, touch screens, and/or display screens.
In the embodiment of the present application, the client of the mobile terminal specifically refers to a client corresponding to a game application, and compared with the data transmission method provided in the embodiments of fig. 1 to 2, the first network connection is defined as a WiFi network connection, and the second network connection is defined as a LiFi network connection. The first sub-terminal unit 10 in the client communicates with the server through the WiFi module, and the second sub-terminal unit 20 communicates with the server through the LiFi module. The control unit 30 tests the network quality of the WiFi module, and if the network quality obtained through the test does not reach the target quality, controls the first sub-terminal unit 10 to communicate with the server through the WiFi module, and controls the second sub-terminal unit 20 to communicate with the server through the LiFi module. Therefore, when the network quality of WiFi network connection is poor, the WiFi network connection and the LiFi network connection are adopted to communicate with the server together, and therefore the phenomenon that the client is blocked due to poor network quality of WiFi network connection can be avoided, and the use experience of a user is improved.
As a possible implementation manner of the embodiment of the present application, the control unit 30 is specifically configured to: and controlling the first sub-terminal unit 10 to transmit data to the server through the WiFi module, and controlling the second sub-terminal unit 20 to receive data transmitted by the server through the LiFi module.
As another possible implementation manner of the embodiment of the present application, the control unit 30 is specifically configured to: and controlling the first sub-terminal unit to send user operation data and receive a control instruction sent by the server to the server through the WiFi module, and controlling the second sub-terminal unit to receive data which are sent by the server and used for displaying through the LiFi module.
The data for display includes upgrade, clearance, picture loaded by scene and/or video data.
In the embodiment of the present application, the control unit 30 is further configured to: the second sub-terminal 20 is controlled to load and render data for display.
In the embodiment of the present application, the control unit 30 is further configured to: and if the network quality obtained by the test reaches the target quality, controlling the first sub-terminal unit 10 to communicate with the server through the WiFi module.
It should be noted that the foregoing explanation on the embodiment of the data transmission method is also applicable to the mobile terminal in this embodiment, and is not described herein again.
In the prior art, the WiFi module generally sets up in mobile terminal's top or bottom, and under this kind of mode, if user's both hands grip mobile terminal, the hand that grips probably causes very big influence to the WiFi antenna to reduce the signal strength of WiFi module, reduce WiFi network connection's network quality promptly, and then lead to the customer end to appear the card pause phenomenon.
In the present application, in order to avoid the foregoing situation, the WiFi module may be disposed on the back of the mobile terminal, specifically, the front of the mobile terminal is a side where the display screen is located, and the other side opposite to the display screen is the back. Or, WiFi may also be disposed on a side of the mobile terminal, specifically, the mobile terminal is in a vertical state, and the left and right sides of the mobile terminal are sides.
In order to implement the foregoing embodiments, the present application further provides a computer-readable storage medium, where computer-readable instructions are stored, and the computer-readable instructions are configured to enable a computer to execute the data transmission method provided by the foregoing embodiments.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
Claims (18)
1. A method of data transmission, comprising:
adopting a first network connection to transmit network data of the game application program;
testing network quality for the first network connection;
if the network quality does not reach the target quality, the first network connection and the second network connection are adopted to jointly transmit the network data; wherein the first network connection and the second network connection have different network connection modes.
2. The data transmission method according to claim 1, wherein the jointly transmitting the network data using the first network connection and the second network connection comprises:
identifying first data and second data in the network data;
and transmitting the first data using the first network connection, and transmitting the second data using the second network connection.
3. The data transmission method of claim 2, wherein the identifying the first data and the second data in the network data comprises:
according to the transmission direction of the network data, the data sent by the game application to the server is identified as the first data, and the data sent by the server to the game application is identified as the second data.
4. The data transmission method of claim 2, the identifying first and second data in the network data, comprising:
and according to the type of the network data, taking the user operation data generated by the game application and the control instruction sent by the server as the first data, and taking the data sent by the server for display as the second data.
5. The data transmission method according to claim 4, wherein the data for display comprises picture and/or video data for upgrade, clearance, scene loading.
6. The data transmission method according to claim 4, wherein after the transmitting the second data using the second network connection, further comprising:
and loading and rendering the second data.
7. The data transmission method of claim 1, wherein after testing the first network connection for network quality, the method further comprises:
and if the network quality reaches the target quality, maintaining the first network connection to transmit the network data.
8. The data transmission method of any one of claims 1 to 7, wherein the first network connection is a wireless fidelity (WiFi) network connection and the second network connection is a light fidelity (LiFi) network connection.
9. The data transmission method according to any of claims 1 to 7, wherein before the jointly transmitting the network data using the first network connection and the second network connection, further comprising:
determining that the second network connection has been established.
10. A data transmission apparatus, comprising:
the first transmission module is used for connecting and transmitting network data of the game application program by adopting a first network;
a test module for testing network quality for the first network connection;
the second transmission module is used for adopting the first network connection and the second network connection to jointly transmit the network data if the network quality does not reach the target quality; wherein the first network connection and the second network connection have different network connection modes.
11. A mobile terminal is characterized in that a client of the mobile terminal is provided with a first sub-terminal unit, a second sub-terminal unit and a control unit;
the first sub-terminal unit is provided with a WiFi module and is used for communicating with a server through the WiFi module;
the second sub-terminal unit is provided with a LiFi module and is used for communicating with the server through the LiFi module;
the control unit is used for testing the network quality of the WiFi module; and if the network quality obtained by the test does not reach the target quality, controlling the first sub-terminal unit to communicate with the server through the WiFi module, and controlling the second sub-terminal unit to communicate with the server through the LiFi module.
12. The mobile terminal according to claim 11, wherein the control unit is specifically configured to:
and controlling the first sub-terminal unit to transmit data to the server through the WiFi module, and controlling the second sub-terminal unit to receive the data transmitted by the server through the LiFi module.
13. The mobile terminal according to claim 11, wherein the control unit is specifically configured to:
and controlling the first sub-terminal unit to send user operation data to the server and receive a control instruction sent by the server through the WiFi module, and controlling the second sub-terminal unit to receive data which are sent by the server and used for displaying through the LiFi module.
14. The mobile terminal of claim 13, wherein the data for display comprises picture and/or video data for upgrades, customs, scene loading.
15. The mobile terminal of claim 13, wherein the control unit is further configured to:
and controlling the second sub-terminal to load and render the data for display.
16. The mobile terminal of claim 11, wherein the control unit is further configured to:
and if the network quality obtained by the test reaches the target quality, controlling the first sub-terminal unit to communicate with the server through the WiFi module.
17. The mobile terminal according to any of claims 11 to 16, wherein the LiFi module is disposed on a back side of the mobile terminal, or wherein the LiFi module is disposed on a side of the mobile terminal.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910577465.6A CN112153668A (en) | 2019-06-28 | 2019-06-28 | Data transmission method and device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910577465.6A CN112153668A (en) | 2019-06-28 | 2019-06-28 | Data transmission method and device and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112153668A true CN112153668A (en) | 2020-12-29 |
Family
ID=73870147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910577465.6A Pending CN112153668A (en) | 2019-06-28 | 2019-06-28 | Data transmission method and device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112153668A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499700A (en) * | 2022-08-26 | 2022-12-20 | 深圳市旭联信息技术有限公司 | Screen transmission data processing method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140082057A1 (en) * | 2012-08-31 | 2014-03-20 | Tencent Technology (Shenzhen) Company Limited | Data transfer method and system |
CN105764101A (en) * | 2016-04-28 | 2016-07-13 | 乐视控股(北京)有限公司 | Method for switching network route of mobile terminal and mobile terminal |
CN105813148A (en) * | 2016-01-28 | 2016-07-27 | 努比亚技术有限公司 | Network switching apparatus and method |
CN108184254A (en) * | 2017-12-04 | 2018-06-19 | 广东欧珀移动通信有限公司 | Network connection control method, device and equipment |
-
2019
- 2019-06-28 CN CN201910577465.6A patent/CN112153668A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140082057A1 (en) * | 2012-08-31 | 2014-03-20 | Tencent Technology (Shenzhen) Company Limited | Data transfer method and system |
CN105813148A (en) * | 2016-01-28 | 2016-07-27 | 努比亚技术有限公司 | Network switching apparatus and method |
CN105764101A (en) * | 2016-04-28 | 2016-07-13 | 乐视控股(北京)有限公司 | Method for switching network route of mobile terminal and mobile terminal |
CN108184254A (en) * | 2017-12-04 | 2018-06-19 | 广东欧珀移动通信有限公司 | Network connection control method, device and equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499700A (en) * | 2022-08-26 | 2022-12-20 | 深圳市旭联信息技术有限公司 | Screen transmission data processing method, device and system |
CN115499700B (en) * | 2022-08-26 | 2023-08-25 | 深圳市旭联信息技术有限公司 | Screen transmission data processing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111240837B (en) | Resource allocation method, device, terminal and storage medium | |
CN109117361B (en) | Remote debugging method, related equipment and system for small program | |
CN109152095B (en) | Wireless network connection method for terminal | |
KR102154800B1 (en) | Data streaming method of electronic apparatus and electronic apparatus thereof | |
CN106412483B (en) | Camera sharing method and device | |
CN107635027B (en) | Domain name resolution method, medium, device and computing equipment | |
CN110166791B (en) | Connection establishing method, device, equipment and storage medium | |
CN107329865B (en) | Method for opening adb function of debugging bridge, mobile terminal and computer readable medium | |
CN110493756B (en) | Screen projection method and 5G terminal | |
US20190051147A1 (en) | Remote control method, apparatus, terminal device, and computer readable storage medium | |
CN110177300B (en) | Program running state monitoring method and device, electronic equipment and storage medium | |
US10893275B2 (en) | Video coding method, device, device and storage medium | |
EP3187996A1 (en) | Method and apparatus for peripheral context management | |
CN111294850B (en) | Measurement reporting method and device, and terminal equipment information acquisition method and device | |
CN112312222A (en) | Video sending method and device and electronic equipment | |
JP2022517585A (en) | Uplink transmission resource selection method, terminal and storage medium | |
US20220408143A1 (en) | Control setting method and apparatus, electronic device and interaction system | |
CN109495769B (en) | Video communication method, terminal, smart television, server and storage medium | |
CN113064635A (en) | Page display method and device of smart television | |
CN112153668A (en) | Data transmission method and device and mobile terminal | |
US20240007591A1 (en) | Method and apparatus of interaction video connection, electronic device, and storage medium | |
CN110809166B (en) | Video data processing method and device and electronic equipment | |
CN106791992B (en) | Signal source method for pushing and system | |
CN114363654B (en) | Video push method, device, terminal equipment and storage medium | |
CN112153094B (en) | Method and device for controlling data transmission between electronic devices |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201229 |