CN109104774B - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
CN109104774B
CN109104774B CN201810990787.9A CN201810990787A CN109104774B CN 109104774 B CN109104774 B CN 109104774B CN 201810990787 A CN201810990787 A CN 201810990787A CN 109104774 B CN109104774 B CN 109104774B
Authority
CN
China
Prior art keywords
receiving end
data
sending end
sending
remote 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.)
Active
Application number
CN201810990787.9A
Other languages
Chinese (zh)
Other versions
CN109104774A (en
Inventor
曹桐军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810990787.9A priority Critical patent/CN109104774B/en
Publication of CN109104774A publication Critical patent/CN109104774A/en
Application granted granted Critical
Publication of CN109104774B publication Critical patent/CN109104774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The invention discloses a data transmission method and a data transmission system. Wherein, the method comprises the following steps: a sending end sends a first login request carrying a login account to a remote server; the method comprises the steps that a sending end determines a receiving end matched with the sending end based on first connection data returned by a remote server, wherein the receiving end sends a second login request carrying a login account number to the remote server; and the sending end sends the screen transmission data to the receiving end. The invention solves the technical problems of high cost and limited quantity of the prior art that a sending end is connected with a receiving end by using a local area network.

Description

Data transmission method and system
Technical Field
The invention relates to the field of internet, in particular to a data transmission method and a data transmission system.
Background
The traditional wireless screen transmission scheme is to use a local area network, and a receiving end (for example, an intelligent interactive tablet) disguises a local IP acquired by the local area network and an opened connection Socket port into a connection code. After a sending end (for example, a mobile device) and a receiving end are in the same local area network subnet, the sending end can analyze an IP (non-full IP) and a port corresponding to the receiving end by manually inputting a connection code generated by the receiving end, and then establish Socket connection with the receiving end, so that the connection in the local area network is communicated (including but not limited to screen projection, document projection, photo projection, audio and video projection, and the like).
However, the conventional wireless screen transmission scheme has two problems: the first problem is that under the condition that the number of connection codes is not changed, the IP with a large subnet cannot be covered completely, so that even if a sending end and a receiving end are in the same local area network, the sending end cannot acquire the correct IP, and further cannot be connected. To solve such problems, the number of bits of the concatenated code can be extended to cover the full IP information, but this increases the input cost, for example, the more bits of the concatenated code, the longer the input time, the more 3 bits of the concatenated code are viewed by human; the second problem is that most of the sending end and the receiving end access the same local area network in a WIFI or AP hotspot mode, the WIFI and AP hotspots are limited by the number of access devices, and when the access devices reach the limit, the subsequent devices cannot access.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and a data transmission system, which are used for at least solving the technical problems of high cost and limited quantity caused by the fact that a sending end is connected with a receiving end by using a local area network in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a data transmission method, including: a sending end sends a first login request carrying a login account to a remote server; the method comprises the steps that a sending end determines a receiving end matched with the sending end based on first connection data returned by a remote server, wherein the receiving end sends a second login request carrying a login account number to the remote server; and the sending end sends the screen transmission data to the receiving end.
Further, the sending end and the remote server establish a socket connection, and the receiving end and the remote server establish a socket connection.
Further, the sending end and the receiving end send the screen transmission data to the receiving end through the sending end and include: and the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, wherein the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
Further, the first connection data comprises one or more of: IP of the receiving end and a socket port opened by the receiving end.
Further, the sending end sending the screen transmission data to the receiving end includes: judging whether the sending end and the receiving end are in the same local area network or not; if the sending end and the receiving end are in the same local area network, the sending end establishes socket connection with the receiving end based on the first connection data; and the sending end sends the screen transmission data to the receiving end through the socket connection established with the receiving end.
Further, if the sending end and the receiving end are not in the same local area network, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, wherein the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
Further, the screen transmission data comprises: control data and traffic data.
Further, the first login request, the second login request and the screen transmission data are encrypted data obtained by encrypting through a preset encryption algorithm.
According to another aspect of the embodiments of the present invention, there is also provided a data transmission method, including: the receiving terminal sends a second login request carrying a login account to the remote server; the receiving end determines a sending end matched with the receiving end based on second connection data returned by the remote server, wherein the sending end sends a first login request carrying a login account number to the remote server; and the receiving end receives the screen transmission data sent by the sending end.
Further, the sending end and the remote server establish a socket connection, and the receiving end and the remote server establish a socket connection.
Further, the second connection data comprises one or more of: IP of the sending end and a socket port opened by the sending end.
According to another aspect of the embodiments of the present invention, there is also provided a data transmission method, including: the remote server receives a first login request carrying a login account and sent by a sending end and a second login request carrying the login account and sent by a receiving end; the remote server sends first connection data to the sending end and second connection data to the receiving end, wherein the first connection data is used for the sending end to establish connection with the matched receiving end, the second connection data is used for the receiving end to establish connection with the matched sending end, and the sending end sends screen transmission data to the receiving end.
According to another aspect of the embodiments of the present invention, there is also provided a data transmission system, including: the system comprises a sending end and a receiving end, wherein the sending end is used for sending a first login request carrying a login account; the receiving terminal is used for sending a second login request carrying a login account; the remote server is connected with the receiving end and the sending end and used for sending the first connection data to the sending end and sending the second connection data to the receiving end; the sending end is also used for determining a receiving end based on the first connection data returned by the remote server and sending the screen transmission data to the receiving end; the receiving end is further used for determining the sending end based on second connection data returned by the remote server and receiving screen transmission data sent by the sending end.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the above-mentioned data transmission method.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes the data transmission method described above.
In the embodiment of the invention, the sending end can send the first login request carrying the login account number to the remote server, the receiving end can send the second login request carrying the same login account number to the remote server, the remote server can be automatically matched to the sending end and the receiving end and send the first connection data to the sending end, and the sending end can determine the matched receiving end based on the first connection data, so that the sending end can send the screen transmission data to the receiving end. Compared with the prior art, the connecting codes do not need to be input by a user, the sending end and the receiving end do not need to be located in the same local area network, the cost is reduced, the user experience is improved, the technical effects of classroom timely interaction are achieved, and the technical problems that in the prior art, the sending end is connected with the receiving end through the local area network, the cost is high, and the quantity is limited are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a first data transmission method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative data transmission system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a second method of data transmission according to an embodiment of the present invention;
FIG. 4 is a flow chart of a third method of data transmission according to an embodiment of the present invention; and
fig. 5 is a schematic diagram of a data transmission system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a data transmission method, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that herein.
The data transmission method provided in this embodiment may be executed by a sending end device, where the sending end device may be implemented in a software and/or hardware manner, and the sending end device may be formed by two or more physical entities, or may be formed by one physical entity. Wherein, the sending end device includes but is not limited to: mobile phones, notebook computers, USB flash disks, tablet computers, desktop computers, and the like. In the present embodiment, a notebook computer is taken as an example for explanation.
In a wireless screen transmission application scene, a sending end device can establish data connection with a receiving end device, the receiving end device displays corresponding screen transmission data, and the receiving end device can be a computer, a mobile phone, a flat panel, a projector or an intelligent interactive flat panel and the like. In the embodiment, an intelligent interactive panel is taken as an example for description, where the intelligent interactive panel may be an integrated device that controls content displayed on a display panel and implements human-computer interaction operations through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound, a television, a video conference terminal, and the like. In an embodiment, the communication mode of the data connection between the sending end device and the receiving end device may be a public network.
Further, the screen transmission data may be in a picture format, which may be screen capture data obtained by capturing a screen of display content of the sending-end device, or a presentation (Microsoft Office PowerPoint, abbreviated as PPT).
In the embodiment, the sending end device is a notebook computer, and the receiving end device is an intelligent interactive tablet, which are taken as examples, and the invention is exemplarily described.
Fig. 1 is a flowchart of a first data transmission method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, a sending end sends a first login request carrying a login account to a remote server.
Specifically, the sending end may be screen-casting application software installed in the notebook computer, and the screen-casting application software may be installed in the notebook computer in advance, or may be downloaded from a third-party device or a server and installed for use when the notebook computer starts the screen-casting application. The third-party device is not limited in the embodiment.
Optionally, the login account may be an account used for logging in a remote server, where the remote server may be a cloud server pre-established in advance according to needs, and is mainly used for establishing a data connection between a sending end and a receiving end, and further assisting the sending end in data forwarding.
The first login request may be a login request sent by the sender to the remote server, where the login request includes a login account for the sender to login to the remote server. After receiving a login request sent by a sending end, the remote server can authenticate the login account, and after the authentication is successful, the remote server can establish Socket connection with the sending end for controlling and forwarding data. Meanwhile, the remote server can acquire the IP of the sending end and the opened Socket port.
And step S104, the sending end determines a receiving end matched with the sending end based on the first connection data returned by the remote server, wherein the receiving end sends a second login request carrying a login account number to the remote server.
Specifically, the receiving end may be screen projection application software in the smart interactive tablet, where the screen projection application software may be pre-installed in the smart interactive tablet, or may be downloaded from a third-party device or a server and installed for use when the smart interactive tablet starts the screen projection application. The third-party device is not limited in the embodiment.
The second login request may be a login request sent by the receiving end to the remote server, where the login request includes a login account number for the receiving end to login to the remote server. After receiving the login request sent by the receiving end, the remote server can authenticate the login account, and after the authentication is successful, the remote server can establish Socket connection with the receiving end for controlling and forwarding data. Meanwhile, the remote server can acquire the IP of the receiving end and the opened Socket port.
Optionally, the first connection data includes one or more of the following: IP of the receiving end and a socket port opened by the receiving end.
In order to establish a connection between the sending end and the receiving end, the receiving end can log in by using the same login account number as the sending end. After the sending end and the receiving end both successfully log in the remote server, the remote server can automatically match the login account number, so that the sending end and the receiving end which are matched with each other are determined. Further, the remote server may generate first connection data according to the obtained IP and the opened Socket port, where the first connection data includes the IP of the receiving end and the Socket port opened by the receiving end. The remote server sends the first connection data to the sending end, so that the sending end can know the matched receiving end.
And step S106, the sending end sends the screen transmission data to the receiving end.
Optionally, the screen transmission data may include: control data and traffic data. The control data may be a control instruction for mutual control between the sending end and the receiving end, the service data may be screen projection data that the receiving end needs to display, and the touch data returned to the sending end by the receiving end.
In an optional scheme, in order to avoid limitation of the number of access devices in WIFI and AP hotspots, the sending end may forward the screen transmission data by using a remote server. The specific implementation steps are as shown in step S1062:
step S1062, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, wherein the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
Specifically, after the sending end and the receiving end successfully log in, the sending end and the receiving end can be respectively connected with a Socket of a remote server. The sending end can send the screen transmission data to the remote server through the Socket connection through the IP of the receiving end. The remote server can send the screen transmission data to the receiving end through Socket connection according to the IP of the receiving end.
It should be noted that, in order to ensure the security of the sending end and the remote server, the receiving end and the remote server, and the sending end and the remote server, the first login request, the second login request, and the screen data are encrypted data obtained by encrypting through a preset encryption algorithm.
In another alternative, the specific implementation manner is as follows step S1064 to step S1060:
step S1064, determining whether the sending end and the receiving end are in the same lan.
Specifically, after receiving the first connection data, the sending end may determine whether the receiving end is in its own local area network according to the IP of the receiving end. Similarly, after receiving the second connection data, the receiving end may determine whether the sending end is in the local area network according to the IP of the sending end.
Step S1066, if the sender and the receiver are in the same lan, the sender establishes a socket connection with the receiver based on the first connection data.
Specifically, since data interaction is directly performed between devices in the same local area network, the response speed is high, and after the fact that the sending end and the receiving end are located in the same local area network is determined, the sending end can directly establish Socket connection with the receiving end through the local area network according to the IP of the receiving end and the opened Socket port, and send screen transmission data to the receiving end through the local area network.
Step S1068, the sending end sends the screen transmission data to the receiving end through the socket connection established with the receiving end.
Step S1060, if the sending end and the receiving end are not in the same local area network, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, wherein the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
Specifically, when the sending end and the receiving end are not in the same local area network, the sending end can forward the screen transmission data by means of the remote server, so that the purpose of unlimited screen transmission is achieved.
It should be noted that, in order to ensure the real-time performance of the screen projection data forwarded by the remote server, the sending end, the receiving end and the remote server may be in the same operator subnet.
By adopting the embodiment of the invention, the sending end can send the first login request carrying the login account number to the remote server, the receiving end can send the second login request carrying the same login account number to the remote server, the remote server can be automatically matched to the sending end and the receiving end and send the first connection data to the sending end, and the sending end can determine the matched receiving end based on the first connection data, so that the sending end can send the screen transmission data to the receiving end. Compared with the prior art, the connecting codes do not need to be input by a user, the sending end and the receiving end do not need to be located in the same local area network, the cost is reduced, the user experience is improved, the technical effects of classroom timely interaction are achieved, and the technical problems that in the prior art, the sending end is connected with the receiving end through the local area network, the cost is high, and the quantity is limited are solved.
Fig. 2 is a schematic diagram of an alternative data transmission system according to an embodiment of the present invention, which is illustrated by taking a large board receiving end and a mobile transmitting end as examples. As shown in fig. 2, a first large board receiving end can log in a cloud backend server through an account a, a first mobile sending end can log in the cloud backend server through the account a, a second large board receiving end can log in the cloud backend server through an account B, and a second mobile sending end can log in the cloud backend server through the account B. The cloud background server can determine that the large-board receiving end logged in through the account A is matched with the mobile sending end by matching the account.
Further, description is given by taking an example in which the large board receiving end and the mobile sending end log in the cloud background server through the account a. The large board receiving end logs in through an account A; and after the large board receiving end successfully logs in, the large board receiving end establishes Socket connection with the background server for receiving and sending command control. The mobile sending terminal also logs in through the account A; and after the mobile sending end successfully logs in, the mobile sending end establishes Socket connection with the background server for receiving and sending command control. The background server automatically matches two devices (a large board receiving end and a mobile transmitting end) logged in by the account A, and sends an instruction to inform the existence of the other side through Socket. The receiving and transmitting end can forward the control instruction by means of the background server so as to achieve the purpose of interconnection and mutual control, the service data is similar, and further, services such as screen projection can be realized.
Through the steps, the connection is carried out through the public network scheme, and the connection is not necessarily carried out under the same WIFI and AP hot spots, so that the purpose of improving the user experience is achieved.
Example 2
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a data transmission method, to note that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
The data transmission method provided in this embodiment may be executed by a receiving end device, where the receiving end device may be implemented in a software and/or hardware manner, and the receiving end device may be two or more physical entities or may be formed by one physical entity. The sending end equipment can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet and the like. In this embodiment, the smart interactive tablet is used for illustration.
Fig. 3 is a flowchart of a second data transmission method according to an embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
step S302, the receiving end sends a second login request carrying a login account to the remote server.
Step S304, the receiving end determines a sending end matched with the receiving end based on second connection data returned by the remote server, wherein the sending end sends a first login request carrying a login account number to the remote server.
Specifically, after receiving a login request sent by a sending end, the remote server may authenticate the login account, and after the authentication is successful, the remote server may establish Socket connection with the sending end for controlling and forwarding data. Meanwhile, the remote server can acquire the IP of the sending end and the opened Socket port.
Optionally, the second connection data includes one or more of the following: IP of the sending end and a socket port opened by the sending end.
In order to establish a connection between the sending end and the receiving end, the receiving end can log in by using the same login account number as the sending end. After the sending end and the receiving end both successfully log in the remote server, the remote server can automatically match the login account number, so that the sending end and the receiving end which are matched with each other are determined. Further, the remote server may generate second connection data according to the obtained IP and the opened Socket port, where the second connection data includes the IP of the sending end and the Socket port opened by the sending end. And the remote server sends the second connection data to the receiving end, so that the receiving end can know the matched sending end.
Step S306, the receiving end receives the screen transmission data sent by the sending end.
Example 3
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a data transmission method, to note that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
The data transmission method provided by this embodiment may be executed by a remote server, where the remote server may be a cloud server that is pre-established in advance according to needs, and the method is mainly used to establish a data connection between a sending end and a receiving end, and further, may assist the sending end in data forwarding.
Fig. 4 is a flowchart of a third data transmission method according to an embodiment of the present invention, as shown in fig. 4, the method includes the following steps:
step S402, the remote server receives a first login request carrying a login account number sent by the sending end and a second login request carrying a login account number sent by the receiving end.
Step S404, the remote server sends first connection data to the sending end and second connection data to the receiving end, wherein the first connection data is used for the sending end to establish connection with the matched receiving end, the second connection data is used for the receiving end to establish connection with the matched sending end, and the sending end sends screen transmission data to the receiving end.
Example 4
According to the embodiment of the invention, the embodiment of the data transmission system is also provided. As shown in fig. 5, the data transmission system may include: a sender 52, a receiver 54, and a remote server 56. Specifically, the sender 52 and remote server 56, and the receiver 54 and remote server 56 are connected via the internet. The number of the transmitting end 52 and the receiving end 54 in the data transmission system may be one or more, and fig. 5 illustrates one transmitting end 52 and one receiving end 54.
The sending end 52 is configured to send a first login request carrying a login account; the receiving end 54 is configured to send a second login request carrying a login account; the remote server 56 is connected to the receiving end and the sending end, and is configured to send the first connection data to the sending end and send the second connection data to the receiving end; the sending end is also used for determining a receiving end based on the first connection data returned by the remote server and sending the screen transmission data to the receiving end; the receiving end is further used for determining the sending end based on second connection data returned by the remote server and receiving screen transmission data sent by the sending end.
Example 5
According to an embodiment of the present invention, there is further provided an embodiment of a storage medium, where the storage medium includes a stored program, and the device on which the storage medium is located is controlled to execute the data transmission method in the foregoing embodiments 1 to 3 when the program runs.
Example 6
According to an embodiment of the present invention, an embodiment of a processor is further provided, where the processor is configured to execute a program, and the program executes the data transmission method in embodiments 1 to 3 when running.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a remote server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method of data transmission, comprising:
a sending end sends a first login request carrying a login account to a remote server;
the sending end determines a receiving end matched with the sending end based on first connection data returned by the remote server, wherein the receiving end sends a second login request carrying the same login account number to the remote server;
the sending end sends the screen transmission data to the receiving end,
wherein, the sending end sends the transmission screen data to the receiving end and includes: judging whether the sending end and the receiving end are in the same local area network or not;
if the sending end and the receiving end are in the same local area network, the sending end establishes socket connection with the receiving end based on the first connection data, wherein the first connection data comprises one or more of the following data: the IP of the receiving end and the socket port opened by the receiving end;
the sending end sends the screen transmission data to the receiving end through the socket connection established with the receiving end;
the remote server is further used for matching the login account and determining that the sending end and the receiving end which send the login account are successfully matched;
if the sending end and the receiving end are not in the same local area network, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, and the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
2. The method of claim 1, wherein the screen-passing data comprises: control data and traffic data.
3. The method of claim 1, wherein the first login request, the second login request, and the screen data are encrypted data obtained by encrypting through a preset encryption algorithm.
4. A method of data transmission, comprising:
the receiving terminal sends a second login request carrying a login account to the remote server;
the receiving end determines a sending end matched with the receiving end based on second connection data returned by the remote server, wherein the sending end sends a first login request carrying the same login account number to the remote server, and the second connection data comprises one or more of the following data: the IP of the sending end and the socket port opened by the sending end;
the receiving end receives screen transmission data sent by the sending end;
wherein, the method also comprises: judging whether the sending end and the receiving end are in the same local area network or not;
if the sending end and the receiving end are in the same local area network, the sending end establishes socket connection with the receiving end based on first connection data returned by the remote server, wherein the first connection data comprises one or more of the following data: the IP of the receiving end and the socket port opened by the receiving end;
the sending end sends the screen transmission data to the receiving end through the socket connection established with the receiving end;
the remote server is further used for matching the login account and determining that the sending end and the receiving end which send the login account are successfully matched;
if the sending end and the receiving end are not in the same local area network, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, and the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
5. A method of data transmission, comprising:
the remote server receives a first login request carrying a login account sent by a sending end and a second login request carrying the same login account sent by a receiving end;
the remote server sends first connection data to the sending end and second connection data to the receiving end, wherein the sending end determines the receiving end matched with the sending end based on the first connection data, the receiving end determines the sending end matched with the receiving end based on the second connection data, the sending end sends screen transmission data to the receiving end, and the first connection data comprise one or more of the following data: the IP of the receiving end, the socket port opened by the receiving end, and the second connection data include one or more of the following: the IP of the sending end and the socket port opened by the sending end;
wherein, the method also comprises: judging whether the sending end and the receiving end are in the same local area network or not;
if the sending end and the receiving end are in the same local area network, the sending end establishes socket connection with the receiving end based on the first connection data;
the sending end sends the screen transmission data to the receiving end through the socket connection established with the receiving end;
the remote server matches the login account, and determines that the sending end and the receiving end which send the login account are successfully matched;
if the sending end and the receiving end are not in the same local area network, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, and the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
6. A data transmission system, comprising:
the system comprises a sending end and a receiving end, wherein the sending end is used for sending a first login request carrying a login account;
the receiving terminal is used for sending a second login request carrying the same login account;
the remote server is connected with the receiving end and the sending end and used for sending first connection data to the sending end and sending second connection data to the receiving end, wherein the first connection data comprises one or more of the following data: the IP of the receiving end, the socket port opened by the receiving end, and the second connection data include one or more of the following: the IP of the sending end and the socket port opened by the sending end;
the sending end is further used for determining the receiving end based on the first connection data returned by the remote server and sending the screen transmission data to the receiving end;
the receiving end is further used for determining the sending end based on second connection data returned by the remote server and receiving the screen transmission data sent by the sending end;
the system is also used for judging whether the sending end and the receiving end are in the same local area network or not;
if the sending end and the receiving end are in the same local area network, the sending end establishes socket connection with the receiving end based on the first connection data;
the sending end sends the screen transmission data to the receiving end through the socket connection established with the receiving end;
the remote server is further used for matching the login account and determining that the sending end and the receiving end which send the login account are successfully matched;
and if the sending end and the receiving end are not in the same local area network, the sending end sends the screen transmission data to the remote server through the socket connection established with the remote server, wherein the remote server forwards the screen transmission data to the receiving end through the socket connection established with the receiving end.
7. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the data transmission method according to any one of claims 1 to 5.
8. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the data transmission method according to any one of claims 1 to 5 when running.
CN201810990787.9A 2018-08-28 2018-08-28 Data transmission method and system Active CN109104774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810990787.9A CN109104774B (en) 2018-08-28 2018-08-28 Data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810990787.9A CN109104774B (en) 2018-08-28 2018-08-28 Data transmission method and system

Publications (2)

Publication Number Publication Date
CN109104774A CN109104774A (en) 2018-12-28
CN109104774B true CN109104774B (en) 2021-03-05

Family

ID=64864128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810990787.9A Active CN109104774B (en) 2018-08-28 2018-08-28 Data transmission method and system

Country Status (1)

Country Link
CN (1) CN109104774B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862113A (en) * 2019-03-11 2019-06-07 安徽志辉教育科技有限公司 The wireless throwing screen system and its method of wide area network-oriented
CN112394898A (en) * 2020-11-23 2021-02-23 深圳乐播科技有限公司 Screen projection method, device and system, screen projection equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355606B (en) * 2011-09-27 2016-02-17 青岛海信电器股份有限公司 The method of remote-controlled intelligent television set
CN104298492B (en) * 2013-07-18 2018-03-16 工业和信息化部软件与集成电路促进中心 A kind of remote mobile terminal control method and system
CN108228125A (en) * 2017-12-29 2018-06-29 广州酷狗计算机科技有限公司 The long-range control method and system of smart machine

Also Published As

Publication number Publication date
CN109104774A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN111459433B (en) Screen transmission method, device and storage medium
WO2020042321A1 (en) Method, apparartus and system for controlling projection screen
CN107911437B (en) Screen sharing method and device, electronic equipment and storage medium
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
EP3425566A1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
WO2017024842A1 (en) Internet access authentication method, client, computer storage medium
JP2013535860A (en) Indirect device communication
CN105393564A (en) Communication between host and accessory devices using accessory protocols via wireless transport
CN106603607A (en) Private cloud desktop system and method and device for implementing service
WO2020062805A1 (en) Multimedia file processing method, transmitting terminal and display terminal
CN107567017B (en) Wireless connection system, device and method
US20170171496A1 (en) Method and Electronic Device for Screen Projection
CN103414740B (en) A kind of private cloud account configuration method and device
TW201442503A (en) System and method for sharing data via cloud
US10164784B2 (en) Communication terminal, communication system, and data transmission method
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
CN102891890A (en) Interaction method and related equipment and system among terminals
WO2017080231A1 (en) Method of accessing wireless network and device utilizing same
CN102118397B (en) Teleconference communication method and system based on mobile phones
CN109104774B (en) Data transmission method and system
CN105959732A (en) Method and device for pushing television program
CN111988660A (en) DLNA equipment screen projection method, gateway, terminal and system
CN112511892B (en) Screen sharing method, device, server and storage medium
WO2024002300A1 (en) Method and apparatus for device to access wireless network, and storage medium
US10205686B2 (en) Communication terminal, communication system, and output method

Legal Events

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