CN110475136B - Method and device for realizing screen projection of terminal - Google Patents

Method and device for realizing screen projection of terminal Download PDF

Info

Publication number
CN110475136B
CN110475136B CN201910607609.8A CN201910607609A CN110475136B CN 110475136 B CN110475136 B CN 110475136B CN 201910607609 A CN201910607609 A CN 201910607609A CN 110475136 B CN110475136 B CN 110475136B
Authority
CN
China
Prior art keywords
address
terminal
virtual
server
screen projection
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
CN201910607609.8A
Other languages
Chinese (zh)
Other versions
CN110475136A (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201910607609.8A priority Critical patent/CN110475136B/en
Publication of CN110475136A publication Critical patent/CN110475136A/en
Application granted granted Critical
Publication of CN110475136B publication Critical patent/CN110475136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/63Control 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/643Communication protocols
    • H04N21/64322IP

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for realizing screen projection of a terminal, wherein the method comprises the following steps: the method comprises the steps of configuring a first corresponding relation between a location code and a real IP address of a server, configuring a second corresponding relation between the real IP address of the server and a virtual IP address, sending the virtual IP address to a first terminal, receiving a first screen projection request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address, determining the real IP address of the server according to the second corresponding relation, and providing screen projection service for the first terminal according to the real IP address of the server. The problem that the terminal caches the IP address of the television (server) is solved, and meanwhile, the problem that the prior art cannot support the terminal to directionally cast a screen to a designated server across networks is solved.

Description

Method and device for realizing screen projection of terminal
Technical Field
The invention relates to the field of data communication, in particular to a method and a device for realizing screen projection of a terminal.
Background
With the rapid development of smart televisions and smart phones, the demand of screen projection of mobile phones (based on the DLAN protocol of android and the AIRPLAY protocol of apple) is increasing. Some products such as gateways, routers and the like in the current market do not support the function of the screen-casting agent. However, at present, the IP address of the screen projection television (server) is cached in the mobile phone by part of behaviors of the mobile phone software APP, so that the screen projection television (server) can be searched without a screen projection agent. At present, hotel requirements are that designated terminals (terminals such as android and apple) can only be projected to designated televisions (servers), so that the problem that the IP addresses of the televisions (servers) are cached by the terminals is solved. The screen projection in the prior art is only carried out between the terminal and the server in the same network segment, and only the problem of signal synchronization between the terminal and the server can be solved, but the problem of supporting the terminal to directionally project the screen to the specified server in a cross-network segment can not be solved.
Disclosure of Invention
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
a method for realizing screen projection of a terminal comprises the following steps:
configuring a first correspondence of location codes to real IP addresses of servers,
configuring a second correspondence of the server real IP address and virtual IP address,
transmitting the virtual IP address to the first terminal,
receiving a first screen-casting request initiated by the first terminal at a place determined according to the place code and according to the virtual IP address,
determining the real IP address of the server according to the second corresponding relation,
and providing screen projection service for the first terminal according to the real IP address of the server.
Alternatively to this, the first and second parts may,
the step of sending the virtual IP address to the first terminal specifically includes:
sending the virtual IP address to a first terminal in a two-dimensional code form;
the step of receiving a first screen-casting request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address specifically includes:
and receiving a first screen projection request which is initiated by the first terminal according to the virtual IP address after the first terminal scans the two-dimensional code according to the location code and acquires the virtual IP address.
Optionally, the method further includes:
and deleting the second corresponding relation when the first preset period expires and the flow of the first terminal is not received.
Optionally, the method further includes:
and when the first terminal initiates a second screen projection request again according to the location determined by the location code and the virtual IP address directly and determines that the second corresponding relation does not exist, the second screen projection request is not responded.
Optionally, the location is encoded as a room number.
The embodiment of the invention also provides a device for realizing screen projection of the terminal, which comprises:
a first configuration module for configuring a first correspondence of the location code and the server real IP address,
a second configuration module, configured to configure a second corresponding relationship between the real IP address and the virtual IP address of the server,
a sending module for sending the virtual IP address to a first terminal,
a receiving module, configured to receive a first screen-casting request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address,
a determining module for determining the real IP address of the server according to the second corresponding relation,
and the processing module is used for providing screen projection service for the first terminal according to the real IP address of the server.
Alternatively to this, the first and second parts may,
the sending module is specifically configured to:
sending the virtual IP address to a first terminal in a two-dimensional code form;
the receiving module is specifically configured to:
and receiving a first screen projection request which is initiated by the first terminal according to the virtual IP address after the first terminal scans the two-dimensional code according to the location code and acquires the virtual IP address.
Optionally, the method further includes:
and the deleting module is used for deleting the second corresponding relation when the flow of the first terminal is not received when a first preset period expires.
Alternatively to this, the first and second parts may,
the processing module is further configured to not respond to the second screen projection request when the first terminal initiates the second screen projection request again according to the location determined by the location code and directly according to the virtual IP address and when it is determined that the second correspondence does not exist.
Optionally, the location is encoded as a room number.
The method for realizing screen projection of the terminal has the advantages that a first corresponding relation between a location code and a real IP address of a server is configured, a second corresponding relation between the real IP address of the server and a virtual IP address is configured, the virtual IP address is sent to a first terminal, a first screen projection request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address is received, the real IP address of the server is determined according to the second corresponding relation, and screen projection service is provided for the first terminal according to the real IP address of the server. The problem that the IP address of the server is cached by the terminal is solved, and meanwhile, the problem that the prior art cannot support the terminal to directionally cast a screen to the designated server across network segments is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 3 is a flowchart of a method provided by an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus according to an embodiment of the present invention;
fig. 5 is a diagram illustrating a structure of an apparatus according to an embodiment of the present invention.
Detailed Description
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.
The embodiment of the invention provides a method for realizing screen projection of a terminal, which comprises the following steps as shown in figure 1:
s101, configuring a first corresponding relation between the location code and the real IP address of the server,
s103, configuring a second corresponding relation between the real IP address and the virtual IP address of the server,
s105, sending the virtual IP address to the first terminal,
s107, receiving a first screen projection request initiated by the first terminal at a place determined according to the place code and according to the virtual IP address,
s109, determining the real IP address of the server according to the second corresponding relation,
and S111, providing screen projection service to the first terminal according to the real IP address of the server.
Alternatively to this, the first and second parts may,
the server may be a television;
alternatively to this, the first and second parts may,
the step S105 specifically includes:
sending the virtual IP address to a first terminal in a two-dimensional code form;
the step S107 specifically includes:
and receiving a first screen projection request which is initiated by the first terminal according to the virtual IP address after the first terminal scans the two-dimensional code according to the location code and acquires the virtual IP address.
Optionally, as shown in fig. 2, the method further includes:
s113, when the first preset period expires and the traffic of the first terminal is not received, deleting the second corresponding relationship.
Optionally, as shown in fig. 3, the method further includes:
and S115, when the first terminal initiates a second screen projection request again according to the location determined by the location code and the virtual IP address directly, and the second corresponding relation does not exist, the second screen projection request is not responded.
Optionally, the location is encoded as a room number.
The method for realizing screen projection of the terminal has the advantages that a first corresponding relation between a location code and a real IP address of a server is configured, a second corresponding relation between the real IP address of the server and a virtual IP address is configured, the virtual IP address is sent to a first terminal, a first screen projection request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address is received, the real IP address of the server is determined according to the second corresponding relation, and screen projection service is provided for the first terminal according to the real IP address of the server. The problem of terminal cache server's IP address is solved, simultaneously, solved prior art scheme can not cross the network and support the terminal orientation to throw the screen to the problem of appointed server.
An embodiment of the present invention further provides a device for implementing screen projection of a terminal, as shown in fig. 4, including:
a first configuration module 401 for configuring a first correspondence of the location code and the server real IP address,
a second configuration module 403, configured to configure a second corresponding relationship between the real IP address and the virtual IP address of the server,
a sending module 405, configured to send the virtual IP address to the first terminal,
a receiving module 407, configured to receive a first screen-casting request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address,
a determining module 409, configured to determine a real IP address of the server according to the second correspondence,
and the processing module 411 is configured to provide a screen projection service to the first terminal according to the real IP address of the server.
Alternatively to this, the first and second parts may,
the sending module 405 is specifically configured to:
sending the virtual IP address to a first terminal in a two-dimensional code form;
the receiving module 407 is specifically configured to:
and receiving a first screen projection request which is initiated by the first terminal according to the virtual IP address after the first terminal scans the two-dimensional code according to the location code and acquires the virtual IP address.
Optionally, as shown in fig. 5, the method further includes:
a deleting module 413, configured to delete the second mapping relationship when the first preset period expires and the traffic of the first terminal is not received.
Alternatively to this, the first and second parts may,
the processing module 411 is further configured to, when the first terminal initiates a second screen projection request again according to the location determined by the location code and directly according to the virtual IP address, and it is determined that the second correspondence does not exist, not respond to the second screen projection request.
Optionally, the location is encoded as a room number.
The embodiment of the invention has the advantages of solving the problem that the terminal caches the IP address of the server and simultaneously solving the problem that the prior art can not support the terminal to directionally screen to the specified server across networks.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for realizing screen projection of a terminal is characterized by comprising the following steps:
configuring a first correspondence of location codes to real IP addresses of servers,
configuring a second correspondence of the server real IP address and virtual IP address,
transmitting the virtual IP address to the first terminal,
receiving a first screen-casting request initiated by the first terminal at a place determined according to the place code and according to the virtual IP address,
determining the real IP address of the server according to the second corresponding relation,
and providing screen projection service for the first terminal according to the real IP address of the server.
2. The method of claim 1,
the step of sending the virtual IP address to the first terminal specifically includes:
sending the virtual IP address to a first terminal in a two-dimensional code form;
the step of receiving a first screen-casting request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address specifically includes:
and receiving a first screen projection request which is initiated by the first terminal according to the virtual IP address after the first terminal scans the two-dimensional code according to the location code and acquires the virtual IP address.
3. The method of claim 1, further comprising:
and deleting the second corresponding relation when the first preset period expires and the flow of the first terminal is not received.
4. The method of claim 3, further comprising:
and when the first terminal initiates a second screen projection request again according to the location determined by the location code and the virtual IP address directly and determines that the second corresponding relation does not exist, the second screen projection request is not responded.
5. The method of claim 1, wherein the location code is a room number.
6. The utility model provides a device that screen was thrown to realization terminal which characterized in that includes:
a first configuration module for configuring a first correspondence of the location code and the server real IP address,
a second configuration module, configured to configure a second corresponding relationship between the real IP address and the virtual IP address of the server,
a sending module for sending the virtual IP address to a first terminal,
a receiving module, configured to receive a first screen-casting request initiated by the first terminal at a location determined according to the location code and according to the virtual IP address,
a determining module for determining the real IP address of the server according to the second corresponding relation,
and the processing module is used for providing screen projection service for the first terminal according to the real IP address of the server.
7. The apparatus of claim 6,
the sending module is specifically configured to:
sending the virtual IP address to a first terminal in a two-dimensional code form;
the receiving module is specifically configured to:
and receiving a first screen projection request which is initiated by the first terminal according to the virtual IP address after the first terminal scans the two-dimensional code according to the location code and acquires the virtual IP address.
8. The apparatus of claim 6, further comprising:
and the deleting module is used for deleting the second corresponding relation when the flow of the first terminal is not received when a first preset period expires.
9. The apparatus of claim 8,
the processing module is further configured to not respond to the second screen projection request when the first terminal initiates the second screen projection request again according to the location determined by the location code and directly according to the virtual IP address and when it is determined that the second correspondence does not exist.
10. The apparatus of claim 6, wherein the location code is a room number.
CN201910607609.8A 2019-07-05 2019-07-05 Method and device for realizing screen projection of terminal Active CN110475136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910607609.8A CN110475136B (en) 2019-07-05 2019-07-05 Method and device for realizing screen projection of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910607609.8A CN110475136B (en) 2019-07-05 2019-07-05 Method and device for realizing screen projection of terminal

Publications (2)

Publication Number Publication Date
CN110475136A CN110475136A (en) 2019-11-19
CN110475136B true CN110475136B (en) 2021-10-22

Family

ID=68507104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910607609.8A Active CN110475136B (en) 2019-07-05 2019-07-05 Method and device for realizing screen projection of terminal

Country Status (1)

Country Link
CN (1) CN110475136B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225956B (en) * 2021-04-16 2024-09-20 广州视源电子科技股份有限公司 Wireless screen projection method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004355417A (en) * 2003-05-30 2004-12-16 Sanyo Electric Co Ltd Project information management device and program
US9014513B2 (en) * 2000-11-06 2015-04-21 Nant Holdings Ip, Llc Image capture and identification system and process
CN109660815A (en) * 2018-12-13 2019-04-19 圆动(上海)信息技术服务有限公司 A kind of realization hotel multi-screen interactive dynamic management system and its method flow
CN109889870A (en) * 2019-03-08 2019-06-14 浙江辉驿网络科技有限公司 A kind of credible throwing screen method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9014513B2 (en) * 2000-11-06 2015-04-21 Nant Holdings Ip, Llc Image capture and identification system and process
JP2004355417A (en) * 2003-05-30 2004-12-16 Sanyo Electric Co Ltd Project information management device and program
CN109660815A (en) * 2018-12-13 2019-04-19 圆动(上海)信息技术服务有限公司 A kind of realization hotel multi-screen interactive dynamic management system and its method flow
CN109889870A (en) * 2019-03-08 2019-06-14 浙江辉驿网络科技有限公司 A kind of credible throwing screen method and system

Also Published As

Publication number Publication date
CN110475136A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN110881207B (en) Network slice selection method and related product
RU2683630C2 (en) Method for update of nsd network service descriptor and device
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
US20180048633A1 (en) Perception-free authentication method and system, and control method and system based on the same
CN106685917A (en) Method and system for realizing intelligent binding between Internet of Things device and controller
CN104679528B (en) The newer method and apparatus of application program remote
CN107094102B (en) Information transmission method and equipment
CN105100021A (en) Method, device and system for triggering device management sessions
CN105392185A (en) Intelligent equipment networking method and device, and system
WO2015000379A1 (en) Method for remotely controlling air conditioner and remote control system for air conditioner
CN106713522A (en) Wireless fidelity (Wi-Fi) connection method and mobile terminal
CN110475136B (en) Method and device for realizing screen projection of terminal
CN112020050A (en) Networking method of wireless device, gateway device and storage medium
WO2012019391A1 (en) System and method for obtaining detail information of number
CN113422772B (en) Private network terminal access processing method and device and electronic equipment
CN106648721A (en) Method and device for upgrading software
CN103220821B (en) A kind of X2 link is from method, device and the base station set up
JP6884209B2 (en) Service ordering method and equipment
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
JP7149328B2 (en) Coupling redirect method and apparatus
WO2013167061A2 (en) Method, device, system and user equipment for updating applications
CN113141606A (en) Operator network switching method and device of equipment
CN111328031A (en) Message forwarding method and device
CN105681480A (en) Point-to-point protocol (PPP) dial on demand method and equipment

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