CN110830841B - Screen projection method, system and intelligent device under different local area networks - Google Patents
Screen projection method, system and intelligent device under different local area networks Download PDFInfo
- Publication number
- CN110830841B CN110830841B CN201911225364.9A CN201911225364A CN110830841B CN 110830841 B CN110830841 B CN 110830841B CN 201911225364 A CN201911225364 A CN 201911225364A CN 110830841 B CN110830841 B CN 110830841B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- television equipment
- http
- search
- local area
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000004044 response Effects 0.000 claims description 29
- 238000005266 casting Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 7
- 230000006872 improvement Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/43615—Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6405—Multicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a screen projection method under different local area networks, belongs to the technical field of network screen projection, and mainly solves the technical problem that video application on a mobile phone cannot be projected to a television or a set top box when the mobile phone and an intelligent television or the set top box are not in the same local area network at present. The invention also discloses a screen projection system under different local area networks and an intelligent screen projection device under different local area networks. The invention can realize the cross-network-segment screen projection function and has simple network structure.
Description
Technical Field
The invention relates to the technical field of network screen projection, in particular to a screen projection method, a screen projection system and an intelligent device under different local area networks.
Background
With the continuous improvement of the technology of the processor chip of the mobile phone, the video decoding capability of the mobile phone is stronger, various video application software (such as love art, Tencent video, Youkou video and the like) are produced at a glance, the videos provided by the video platforms do not lack high-definition videos with the resolution ratio of 720P and 1080P, the high-definition videos are watched on a small screen such as the mobile phone, the visual experience is not optimal, and the high-definition videos can be better presented only by being played on a large screen such as a television.
At present, video application software on a smart phone basically provides a screen projection function, and the realization of the screen projection function requires that both the mobile phone and a television (or a set-top box) conform to the DLNA standard and are in the same local area network.
Dlna (digital Living Network alliance), a digital home Network alliance, establishes guidelines and specifications for media formats, transmission and protocol interoperability according to open industry standards, and aims to solve the interconnection and interworking between wireless networks and wired networks including personal PCs, consumer electronics, and mobile devices.
The various technologies and protocols selected by DLNA are widely used at present, and the UPnP protocol family is used in the discovery and control layer of the device.
UPnP (universal Plug and play), that is, universal Plug and play, the target of UPnP is that all devices on the network can know that a new device is added as soon as the device is connected to the network, and the devices can communicate with each other and can be used or controlled directly, and all devices do not need to be set and are completely Plug and play.
UPnP separates components in a network into three types: control points, devices and services, UPnP component schematic is shown in figure 1. The concept of the components in fig. 1 is as follows:
1. the root device/device, the device defined in the UPnP network, has a very broad meaning and a wide variety of appliances, computer peripherals, intelligent devices, wireless devices, personal computers, etc. may be referred to as devices. A UPnP device can be a carrier of multiple services or a nest of multiple sub-devices;
2. service, the functional service that the device can provide. The method comprises control service, event service and display service. The services are the minimum controllable units in the UPnP system, each service is externally represented as a specific behavior and mode, and the behavior and the mode can be described by using state and variable values;
3. the control point, i.e. the control device, may discover and control other devices, e.g. control video playing, pausing, etc. of other devices.
In the UPnP network, a device may be merged with a control point to be the same device, and has both the functions of the device and the functions of the control point, that is, the device may serve as a device and may also serve as a control point to discover and control other devices.
UPnP protocol Stack As shown in FIG. 2, the TCP/IP protocol is the basis of the UPnP protocol structure, and the HTTP protocol and its variation are constructed on top of the TCP/IP protocol, and this part is the core of UPnP, and all UPnP messages are encapsulated in the HTTP protocol and its variation. The variant of the HTTP protocol is HTTPU and HTTPMU, whose message formats follow the HTTP protocol, except that HTTPMU is transmitted by UDP multicast and HTTPU is transmitted by UDP unicast.
The Simple Service Discovery Protocol (SSDP) is built into HTTPU/HTTPMU and defines how services existing on the network can be discovered. Including in particular how the control point finds out which services are available on the network and the information of these services, and the control point itself announces which services it offers. This protocol is used in the device discovery part of the UPnP workflow.
The Simple Object Access Protocol (SOAP) defines how to perform Remote Procedure calls (Remote Procedure calls) using XML and HTTP. The method comprises the steps that how the control point sends a command message to the equipment, and how the equipment sends a response message to the control point after receiving the command message. The protocol is applied in the device control part of the UPnP workflow.
The Generic Event Notification Architecture (GENA) defines how a control point transmits subscription information and receives it when it wants to listen to the status of a certain service state variable of a device, and this protocol is applied in the Event subscription part of the UPnP workflow.
The work flow of UPnP is shown in fig. 3: first, both the control point and the device need to obtain the IP address. After obtaining IP address, the control point sends HTTPMU message to search UPnP device on the whole network, meanwhile, the device on the network also sends HTTPMU message to announce its existence, after receiving the search message, the device sends HTTPU message to the control point to inform the control point to obtain the path of its description information, the control point sends HTTP message to the device according to the path information to request to obtain device description, the device replies its description information to the control point after receiving the request, the control point analyzes the description information and then sends action information to the device, in addition, the control point monitors the state of the device, and when the state changes, corresponding processing action is made.
The process of screen projection by the mobile phone to the television is basically consistent with the process, in the process, the mobile phone is a control point, the television (or the set top box) is a device, when the screen projection function is selected in the video application of the mobile phone, the mobile phone firstly discovers the television (or the set top box) in the network in an HTTPMU mode, the television (or the set top box) in the network informs the mobile phone of the path of the description information in an HTTPU mode, the mobile phone requests the description information to the television (or the set top box) according to the path, after the description information is analyzed by the mobile phone, a searched device list is listed on a mobile phone interface, when a user selects a certain device to project, the mobile phone communicates with the selected television (or the set top box) in an HTTP protocol, the link of the video to be projected is pushed to the television (or the set top box), and the television (or the set top box) starts video playing after acquiring the video link, at this moment, the screen projection function of the video application software is preliminarily realized, and then the mobile phone can send a control instruction to a projected television (or a set top box) or monitor the state of the projected television (or the set top box).
At present, most of smart phones and smart televisions (or set top boxes) in the DLNA standard are supported, but a general large enterprise or a star hotel, in consideration of network security, isolates a mobile phone network and a smart television (or set top box) network, divides the mobile phone network and the smart television (or set top box) network into different local area networks or different VLANs, and the two networks are not communicated with each other.
Disclosure of Invention
The invention aims to solve the technical problem of the prior art, and aims to provide a screen projection method for projecting a mobile phone video application to a smart television or a set top box in a different local area network from a mobile phone.
The invention also aims to provide a screen projection system for realizing screen projection of a mobile phone video application to an intelligent television or a set top box in a different local area network with a mobile phone.
The invention aims to provide a screen projection intelligent device for realizing screen projection of a mobile phone video application to an intelligent television or a set top box in a different local area network with a mobile phone.
In order to achieve the first purpose, the invention provides a screen projection method under different local area networks, wherein a screen projection gateway which is connected with a mobile terminal local area network main switch and a television equipment local area network main switch through a network is arranged, and the mobile terminal completes the screen projection function to the television equipment through the mobile terminal local area network main switch, the screen projection gateway and the television equipment local area network main switch in sequence.
As a further improvement, the screen-casting gateway includes a mobile terminal gateway module for connecting at least one mobile terminal lan main switch, a television equipment gateway module for connecting at least one television equipment lan main switch, an M-SEARCH forwarding module working according to HTTPMU and HTTPU protocols, and an HTTP forwarding module working according to HTTP protocols, and the screen-casting process is as follows:
s1, the M-SEARCH forwarding module monitors a mobile terminal network port module, receives an M-SEARCH message sent to the mobile terminal network port module by a mobile terminal requesting screen projection, and forwards the M-SEARCH message to a television equipment local area network by sending the M-SEARCH message to the television equipment network port module;
s2, the M-SEARCH forwarding module waits for receiving an M-SEARCH response message replied by the television equipment capable of screen casting, and sends the updated Location field content in the M-SEARCH response message to the mobile terminal requesting screen casting;
s3, after the HTTP forwarding module waits for receiving an HTTP request message sent by a mobile terminal requesting screen projection, updating an HOST field in the HTTP request message, establishing TCP network connection with television equipment capable of screen projection, and sending the HTTP request message to the television equipment capable of screen projection;
and S4, the HTTP forwarding module waits for receiving an HTTP reply message replied by the television equipment capable of screen casting and sends the HTTP reply message to the mobile terminal requesting screen casting, so that the mobile terminal can control the television equipment to perform screen casting display and can acquire state information of the television equipment.
Further, in S1, if the M-SEARCH message comes from a new mobile terminal, the M-SEARCH forwarding module will newly create an M-SEARCH forwarding thread corresponding to the new mobile terminal, and the new M-SEARCH forwarding thread forwards the M-SEARCH message to the local area network of the television device.
Further, in S2, the new M-SEARCH forwarding thread waits for receiving an M-SEARCH response message returned by the screen-projectable television device, and sends the updated Location field content in the M-SEARCH response message to the mobile terminal requesting screen projection.
Further, in S2, after receiving the M-SEARCH response message, the new M-SEARCH forwarding thread controls the HTTP forwarding module to newly create an HTTP forwarding thread corresponding to the new mobile terminal.
Further, in S3, the new HTTP forwarding thread waits for receiving the HTTP request packet, updates the HOST field in the HTTP request packet, establishes a TCP network connection with the television apparatus capable of screen projection, and sends the HTTP request packet to the television apparatus capable of screen projection.
Further, in S4, the new HTTP forwarding thread waits for receiving the HTTP reply packet, and sends the HTTP reply packet to the mobile terminal requesting screen projection.
In order to achieve the second purpose, the invention provides a screen projection system under different local area networks, which comprises a mobile terminal, a mobile terminal local area network main switch, television equipment, a television equipment local area network main switch and a screen projection gateway, wherein the mobile terminal completes the screen projection function to the television equipment by the method through the mobile terminal local area network main switch, the screen projection gateway and the television equipment local area network main switch in sequence.
As a further improvement, the screen-casting gateway comprises a mobile terminal port module for connecting at least one mobile terminal local area network main switch, a television equipment port module for connecting at least one television equipment local area network main switch, an M-SEARCH forwarding module working according to HTTPMU and HTTPU protocols, and an HTTP forwarding module working according to HTTP protocols; the M-SEARCH forwarding module is used for receiving the M-SEARCH message sent by the mobile terminal and forwarding the M-SEARCH message to a local area network of television equipment, and is used for receiving the M-SEARCH response message replied by the television equipment and sending the updated Location field content to the mobile terminal; the HTTP forwarding module is used for receiving an HTTP request message sent by the mobile terminal, updating an HOST field in the HTTP request message, establishing TCP network connection with the television equipment, sending the HTTP request message to the television equipment, receiving an HTTP reply message replied by the television equipment, sending the HTTP reply message to the mobile terminal, and enabling the mobile terminal to control the television equipment to perform screen projection display and acquire state information of the television equipment.
In order to achieve the third purpose, the invention provides a screen-casting intelligent device under different local area networks, which comprises a mobile terminal network port module, a television equipment network port module, an M-SEARCH forwarding module and an HTTP forwarding module, wherein the mobile terminal network port module is used for connecting at least one mobile terminal local area network main switch; the M-SEARCH forwarding module is used for receiving an M-SEARCH message sent by the mobile terminal and forwarding the M-SEARCH message to the local area network of the television equipment, and is used for receiving an M-SEARCH response message replied by the television equipment and sending the M-SEARCH response message to the mobile terminal; the HTTP forwarding module is used for receiving an HTTP request message sent by the mobile terminal, updating an HOST field in the HTTP request message, establishing TCP network connection with the television equipment, sending the HTTP request message to the television equipment, receiving an HTTP reply message replied by the television equipment and sending the HTTP reply message to the mobile terminal, so that the mobile terminal can control the television equipment to perform screen projection display and acquire state information of the television equipment by using the method.
Advantageous effects
Compared with the prior art, the invention has the advantages that: the invention can realize the screen projection function across network segments by arranging the screen projection gateway which is connected with the main switch of the local area network of the mobile terminal and the main switch of the local area network of the television equipment through the network, has simple network structure, can expand according to the actual network planning condition without being limited to a single network, and has flexible expansibility.
Drawings
FIG. 1 is a diagram of a UPnP component;
FIG. 2 is a diagram of a UPnP protocol stack;
FIG. 3 is a flow chart of the UPnP operation;
FIG. 4 is a schematic structural view of the present invention;
FIG. 5 is a schematic diagram of a mobile terminal network divided into a plurality of VLANs according to the present invention;
FIG. 6 is a schematic diagram of the M-SEARCH forwarding module according to the present invention;
FIG. 7 is a schematic diagram of the operation of the HTTP forwarding module of the present invention;
FIG. 8 is a flowchart illustrating the operation of the M-SEARCH forwarding thread in the present invention;
FIG. 9 is a flowchart illustrating the operation of the new M-SEARCH forwarding thread in the present invention;
FIG. 10 is a flowchart of the operation of the HTTP forwarding thread of the present invention;
FIG. 11 is a path information diagram of a device description;
fig. 12 is a diagram illustrating modification of path information in the device description.
Wherein: the system comprises an A-mobile terminal local area network main switch, a B-television equipment local area network main switch, a C-screen projection gateway, a D-mobile terminal and an E-television equipment.
Detailed Description
The invention will be further described with reference to specific embodiments shown in the drawings.
Referring to fig. 4-12, a screen projection method under different lans is provided, in which a screen projection gateway C is set to connect a mobile terminal lan master switch a and a television device lan master switch B via a network, and a mobile terminal D completes a screen projection function to a television device E via the mobile terminal lan master switch a, the screen projection gateway C, and the television device lan master switch B in sequence.
The screen-casting gateway C comprises a mobile terminal network port module used for being connected with at least one mobile terminal local area network main switch A, a television equipment network port module used for being connected with at least one television equipment local area network main switch B, an M-SEARCH forwarding module working according to HTTPMU and HTTPU protocols, and an HTTP forwarding module working according to HTTP protocols, wherein the screen-casting process comprises the following steps:
s1, monitoring a mobile terminal network port module by an M-SEARCH forwarding module, receiving an M-SEARCH message sent to the mobile terminal network port module by a mobile terminal D requesting screen projection, and forwarding the M-SEARCH to a television equipment local area network by sending the M-SEARCH to the television equipment network port module;
s2, the M-SEARCH forwarding module waits for receiving an M-SEARCH response message replied by the television equipment E capable of screen casting, and sends the updated Location field content in the M-SEARCH response message to the mobile terminal D requesting screen casting;
s3, after the HTTP forwarding module waits for receiving an HTTP request message sent by the mobile terminal D requesting screen projection, the HOST field in the HTTP request message is updated, TCP network connection is established with the television equipment E capable of screen projection, and the HTTP request message is sent to the television equipment E capable of screen projection;
and S4, the HTTP forwarding module waits for receiving an HTTP reply message replied by the television equipment E capable of screen casting and sends the HTTP reply message to the mobile terminal D requesting screen casting, so that the mobile terminal D can control the television equipment E to perform screen casting display and can acquire state information of the television equipment E.
S1 and S2 are used for finding the television equipment E by the mobile terminal D, S3 and S4 are used for projecting a screen to the television equipment E by the mobile terminal D, the mobile terminal D can be a mobile phone, a tablet computer or other movable video playing equipment, and the television equipment E is a television or a set-top box. The mobile terminal network port module is provided with a network port for connecting a main switch A of a local area network of the mobile terminal, and the television equipment network port module is provided with a network port for connecting a main switch B of the local area network of the television equipment. And the screen projecting gateway C is also provided with a management network port for dispatching. And a CPU is arranged in the screen-casting gateway C and runs a Linux operating system, and the CPU controls the work of the mobile terminal network port module, the television equipment network port module, the M-SEARCH forwarding module, the HTTP forwarding module and the management network port.
In an actual network environment, the situation that a plurality of local area networks of the mobile terminal exist exists, and network port expansion can be performed according to the actual situation. For the case that the mobile terminal network is divided into a plurality of VLANs, as shown in fig. 5, a Trunk port needs to be configured on the core switch where the mobile terminal network is located, and data of each VLAN of the mobile terminal network is allowed to pass through, a Trunk port needs to be simulated on the corresponding port on the screen-casting gateway, and the Linux operating system has a tool for configuring the port as the Trunk port, so that multicast messages of each VLAN of the mobile terminal network can be received.
As shown in fig. 8 and 9, in S1, the M-SEARCH forwarding module monitors the portal module of the mobile terminal, and if the received data is an M-SEARCH message of the http mu protocol, determines whether the M-SEARCH message is from the new mobile terminal D, i.e., whether the M-SEARCH message is from the new IP. If the M-SEARCH message comes from a new mobile terminal D, the M-SEARCH forwarding module creates an M-SEARCH forwarding thread corresponding to the new mobile terminal D, and the new M-SEARCH forwarding thread sends the M-SEARCH message to a local area network of the television equipment; otherwise, a new M-SEARCH forwarding thread is not created.
In S2, the new M-SEARCH forwarding thread waits for receiving the M-SEARCH response message returned by the screen-projectable television apparatus E, and sends the M-SEARCH response message to the mobile terminal D requesting screen projection, where the M-SEARCH response message includes the path information responding to the apparatus description, i.e., the information included in the Location field, as shown in fig. 11. The IP and port number in the path information are the ports of the IP and HTTP services of the television apparatus E, and before returning the received M-SEARCH response message to the mobile terminal D, it is necessary to modify the IP in Location to the IP address of the mobile terminal D, where it is assumed that the IP address of the internet access is 192.168.1.110, and an unused port number is allocated, and the updated data is as shown in fig. 12.
In S2, after receiving the M-SEARCH response message, the new M-SEARCH forwarding thread controls the HTTP forwarding module to newly create an HTTP forwarding thread corresponding to the new mobile terminal D.
As shown in fig. 10, in S3, the new HTTP forwarding thread waits for receiving the HTTP request message, updates the HOST field in the HTTP request message, modifies the IP address in the HOST field in the HTTP request message to the IP address of the television apparatus E capable of screen projection, establishes a TCP network connection with the television apparatus capable of screen projection, and sends the HTTP request message to the television apparatus E capable of screen projection.
In S4, the new HTTP forwarding thread waits for receiving the HTTP reply message, and sends the HTTP reply message to the mobile terminal D requesting screen projection, so that cross-segment forwarding of the device description is completed, and the mobile terminal D can control the television device E to perform screen projection display and obtain status information thereof.
The invention can realize the screen projection function across network segments by arranging the screen projection gateway which is connected with the main switch of the local area network of the mobile terminal and the main switch of the local area network of the television equipment through the network, has simple network structure, can expand according to the actual network planning condition without being limited to a single network, and has flexible expansibility.
A screen projection system under different local area networks comprises a mobile terminal D, a mobile terminal local area network main switch A, a television device E, a television device local area network main switch B and a screen projection gateway C, wherein the mobile terminal D completes the screen projection function of the television device E through the mobile terminal local area network main switch A, the screen projection gateway C and the television device local area network main switch B in sequence by using the method.
The screen-casting gateway C comprises a mobile terminal network port module used for being connected with at least one mobile terminal local area network main switch A, a television equipment network port module used for being connected with at least one television equipment local area network main switch B, an M-SEARCH forwarding module working according to HTTPMU and HTTPU protocols, and an HTTP forwarding module working according to HTTP protocols; the M-SEARCH forwarding module is used for receiving the M-SEARCH message sent by the mobile terminal D and forwarding the M-SEARCH message to the local area network of the television equipment, and is used for receiving the M-SEARCH response message sent by the television equipment E and updating the Location field content in the M-SEARCH response message and sending the updated Location field content to the mobile terminal D; the HTTP forwarding module is used for receiving an HTTP request message sent by the mobile terminal D, establishing TCP network connection with the television equipment E, sending the HTTP request message to the television equipment E, receiving an HTTP reply message replied by the television equipment E and sending the HTTP reply message to the mobile terminal D, so that the mobile terminal D can control the television equipment E to perform screen projection display and acquire state information of the television equipment E.
An intelligent screen projection device under different local area networks comprises a mobile terminal network port module, a television equipment network port module, an M-SEARCH forwarding module and an HTTP forwarding module, wherein the mobile terminal network port module is used for being connected with at least one mobile terminal local area network main switch A, the television equipment network port module is used for being connected with at least one television equipment local area network main switch B, the M-SEARCH forwarding module works according to HTTPMU and HTTPU protocols, and the HTTP forwarding module works according to HTTP protocols. The M-SEARCH forwarding module is used for receiving an M-SEARCH message sent by a mobile terminal D through a main switch A of a mobile terminal LAN, forwarding the M-SEARCH to a television equipment LAN through a television equipment network port module, and searching available television equipment E for the mobile terminal D. After receiving the M-SEARCH message, the available television equipment E replies an M-SEARCH response message to the television equipment network port module, and the M-SEARCH forwarding module receives the M-SEARCH response message and updates the Location field content therein, and then sends the M-SEARCH response message to the mobile terminal D through the mobile terminal network port module to complete the equipment discovery process. The HTTP forwarding module is used for receiving an HTTP request message sent by the mobile terminal D, updating an HOST field in the HTTP request message, establishing TCP network connection with the television equipment E and sending the HTTP request message to the television equipment E, and is used for receiving an HTTP reply message replied by the television equipment E and sending the HTTP reply message to the mobile terminal D, so that the mobile terminal D can control the television equipment E to perform screen projection display and acquire state information of the television equipment E by using the method.
The above is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that several variations and modifications can be made without departing from the structure of the present invention, which will not affect the effect of the implementation of the present invention and the utility of the patent.
Claims (9)
1. A screen projection method under different local area networks is characterized in that a screen projection gateway (C) which is connected with a mobile terminal local area network main switch (A) and a television equipment local area network main switch (B) through a network is arranged, and the mobile terminal (D) completes the screen projection function to the television equipment (E) through the mobile terminal local area network main switch (A), the screen projection gateway (C) and the television equipment local area network main switch (B) in sequence;
the screen projection gateway (C) comprises a mobile terminal network port module used for being connected with at least one mobile terminal local area network main switch (A), a television equipment network port module used for being connected with at least one television equipment local area network main switch (B), an M-SEARCH forwarding module working according to HTTPMU and HTTPU protocols, and an HTTP forwarding module working according to HTTP protocols, and the screen projection process is as follows:
s1, the M-SEARCH forwarding module monitors a mobile terminal network port module, receives an M-SEARCH message of a mobile terminal (D) requesting screen projection, and forwards the M-SEARCH message to a television equipment local area network through a television equipment network port module;
s2, the M-SEARCH forwarding module waits for receiving an M-SEARCH response message replied by television equipment (E) capable of screen projection, and sends the updated Location field content in the M-SEARCH response message to a mobile terminal (D) requesting screen projection;
s3, after the HTTP forwarding module waits for receiving an HTTP request message sent by a mobile terminal (D) requesting screen projection, updating an HOST field in the HTTP request message, establishing TCP network connection with television equipment (E) capable of screen projection, and sending the HTTP request message to the television equipment (E) capable of screen projection;
and S4, the HTTP forwarding module waits for receiving an HTTP reply message replied by the television equipment (E) capable of screen casting and sends the HTTP reply message to the mobile terminal (D) requesting screen casting, so that the mobile terminal (D) can control the television equipment (E) to perform screen casting display and can acquire state information of the television equipment (E).
2. The method of claim 1, wherein in S1, if the M-SEARCH message comes from a new mobile terminal (D), the M-SEARCH forwarding module creates an M-SEARCH forwarding thread corresponding to the new mobile terminal (D), and the new M-SEARCH forwarding thread forwards the M-SEARCH message to the local area network of the tv device.
3. The method of claim 2, wherein in the S2, the new M-SEARCH forwarding thread waits for receiving an M-SEARCH response message returned from the television equipment (E) capable of screen casting, and updates the Location field in the M-SEARCH response message and sends the updated Location field to the mobile terminal (D) requesting screen casting.
4. The method of claim 2, wherein in S2, after receiving the M-SEARCH response message, the new M-SEARCH forwarding thread controls the HTTP forwarding module to create a new HTTP forwarding thread corresponding to the new mobile terminal (D).
5. The method according to claim 4, wherein in the step S3, the new HTTP forwarding thread waits for receiving the HTTP request message, updates the HOST field in the HTTP request message, establishes a TCP network connection with the screen-capable TV device (E), and sends the HTTP request message to the screen-capable TV device (E).
6. The method according to claim 4, wherein in the step S4, the new HTTP forwarding thread waits for receiving the HTTP reply message and sends the HTTP reply message to the mobile terminal (D) requesting screen projection.
7. A screen projection system under different local area networks comprises a mobile terminal (D), a mobile terminal local area network main switch (A), a television device (E), a television device local area network main switch (B) and a screen projection gateway (C), wherein the screen projection system further comprises the screen projection gateway (C), and the mobile terminal (D) completes the screen projection function to the television device (E) through the mobile terminal local area network main switch (A), the screen projection gateway (C) and the television device local area network main switch (B) in sequence by using the screen projection method according to any one of claims 1 to 6.
8. The screen-casting system under different local area networks according to claim 7, wherein the screen-casting gateway (C) comprises a mobile terminal gateway module for connecting at least one mobile terminal local area network master switch (A), a television equipment gateway module for connecting at least one television equipment local area network master switch (B), an M-SEARCH forwarding module operating according to HTTPMU and HTTPU protocols, and an HTTP forwarding module operating according to HTTP protocol; the M-SEARCH forwarding module is used for receiving the M-SEARCH message sent by the mobile terminal (D) and forwarding the M-SEARCH message to the local area network of the television equipment, and is used for receiving the M-SEARCH response message replied by the television equipment (E) and sending the updated content of the Location field to the mobile terminal (D); the HTTP forwarding module is used for receiving an HTTP request message sent by the mobile terminal (D), updating an HOST field in the HTTP request message, establishing TCP network connection with the television equipment (E), sending the HTTP request message to the television equipment (E), receiving an HTTP reply message replied by the television equipment (E) and sending the HTTP reply message to the mobile terminal (D), so that the mobile terminal (D) can control the television equipment (E) to perform screen projection display and obtain state information of the television equipment (E).
9. An intelligent screen projection device under different local area networks is characterized by comprising a mobile terminal network port module, a television equipment network port module, an M-SEARCH forwarding module and an HTTP forwarding module, wherein the mobile terminal network port module is used for being connected with at least one mobile terminal local area network main switch (A), the television equipment network port module is used for being connected with at least one television equipment local area network main switch (B), the M-SEARCH forwarding module works according to HTTPMU and HTTPU protocols, and the HTTP forwarding module works according to HTTP protocols; the M-SEARCH forwarding module is used for receiving an M-SEARCH message sent by a mobile terminal (D) and forwarding the M-SEARCH message to a television equipment local area network, and is used for receiving an M-SEARCH response message replied by the television equipment (E) and sending the M-SEARCH response message to the mobile terminal (D); the HTTP forwarding module is used for receiving an HTTP request message sent by the mobile terminal (D), updating an HOST field in the HTTP request message, establishing TCP network connection with the television equipment (E), sending the HTTP request message to the television equipment (E), receiving an HTTP reply message replied by the television equipment (E) and sending the HTTP reply message to the mobile terminal (D), so that the mobile terminal (D) can control the television equipment (E) to perform screen projection display and obtain state information of the television equipment (E) by using the screen projection method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911225364.9A CN110830841B (en) | 2019-12-04 | 2019-12-04 | Screen projection method, system and intelligent device under different local area networks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911225364.9A CN110830841B (en) | 2019-12-04 | 2019-12-04 | Screen projection method, system and intelligent device under different local area networks |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110830841A CN110830841A (en) | 2020-02-21 |
CN110830841B true CN110830841B (en) | 2021-12-07 |
Family
ID=69542360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911225364.9A Active CN110830841B (en) | 2019-12-04 | 2019-12-04 | Screen projection method, system and intelligent device under different local area networks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110830841B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225956A (en) * | 2021-04-16 | 2022-10-21 | 广州视源电子科技股份有限公司 | Wireless screen projection method and device, electronic equipment, storage medium and correlation |
CN113316013B (en) * | 2021-05-31 | 2022-04-26 | 烽火通信科技股份有限公司 | Video screen projection method and system |
CN113778361A (en) * | 2021-09-10 | 2021-12-10 | 武汉市人机科技有限公司 | Intelligent whiteboard with double-screen interaction function and file one-key screen shifting method |
CN114115775A (en) * | 2021-11-12 | 2022-03-01 | 广州视源电子科技股份有限公司 | Information screen projection method and device, terminal device, display device and storage medium |
CN114339384A (en) * | 2021-12-23 | 2022-04-12 | 天翼视讯传媒有限公司 | Short link signaling channel realization method for realizing remote multi-screen interaction under public network |
CN114401429B (en) * | 2022-01-14 | 2024-02-27 | 烽火通信科技股份有限公司 | Remote screen projection method and electronic equipment |
CN114916094A (en) * | 2022-05-10 | 2022-08-16 | 深圳市宝泽科技有限公司 | Cross-local-area-network screen projection method and system based on wireless screen projection |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105897521A (en) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Screen projection method |
CN108810594A (en) * | 2018-05-04 | 2018-11-13 | 新华三技术有限公司 | Remote screen projection method, device and system |
CN109862113A (en) * | 2019-03-11 | 2019-06-07 | 安徽志辉教育科技有限公司 | The wireless throwing screen system and its method of wide area network-oriented |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105594177B (en) * | 2013-06-06 | 2019-03-08 | 谷歌有限责任公司 | The system, method and medium of media content for rendering |
-
2019
- 2019-12-04 CN CN201911225364.9A patent/CN110830841B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105897521A (en) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Screen projection method |
CN108810594A (en) * | 2018-05-04 | 2018-11-13 | 新华三技术有限公司 | Remote screen projection method, device and system |
CN109862113A (en) * | 2019-03-11 | 2019-06-07 | 安徽志辉教育科技有限公司 | The wireless throwing screen system and its method of wide area network-oriented |
Non-Patent Citations (1)
Title |
---|
局域网和局域网之间如何通信;度定;《https://jingyan.baidu.com/article/e75aca858074c5542edac6b1.html》;20191027;第1页 * |
Also Published As
Publication number | Publication date |
---|---|
CN110830841A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110830841B (en) | Screen projection method, system and intelligent device under different local area networks | |
US9137292B2 (en) | Remote management of DLNA system | |
KR100754431B1 (en) | Method for transferring a content according to the processing capability of dmr in dlna system | |
KR101510878B1 (en) | Method and apparatus to control digital living network alliance network in digital living network alliance network | |
CN101094243B (en) | Multimedia adaptation system and method of adaptating multimedia content for different types of devices base on UPnP | |
KR101158315B1 (en) | Method for controlling a device in a network of distributed stations, and network station | |
US20050204065A1 (en) | Synchronization method of upnp-based home network | |
KR20070111449A (en) | Networked device control architecture | |
JP2003529841A (en) | Communication system, control device and controlled device | |
KR20100050517A (en) | Data stream control for network devices | |
US20020040408A1 (en) | Method for providing service in IP-based network system | |
CN105338023A (en) | Intelligent equipment control method, apparatus and system | |
CN105323628B (en) | Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device | |
KR20030068377A (en) | Network device and network device controlling method | |
US6466549B1 (en) | Broadcast discovery in a network having one or more 1394 buses | |
JP2005512399A (en) | HAVi and UPnP bridge | |
CN103312715A (en) | Web service oriented home network system architecture | |
CN102665134B (en) | Method for realizing DLNA media sharing by using set-top box | |
US20150244755A1 (en) | Method, apparatus, and home network system for presenting multiple images, and mobile terminal | |
CN101867508B (en) | Method, system and device for realizing home network interconnection | |
US8176343B2 (en) | Method for providing information for power management of devices on a network | |
US20070118625A1 (en) | Upnp av device interworking method of upnp-based network system | |
KR101884259B1 (en) | Apparatus and method for providing streaming service | |
KR100371166B1 (en) | Home network connection apparartus and control method thereof | |
CN112187486A (en) | Interaction method between intelligent devices and intelligent 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |