CN116347150A - Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment - Google Patents

Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment Download PDF

Info

Publication number
CN116347150A
CN116347150A CN202310240764.7A CN202310240764A CN116347150A CN 116347150 A CN116347150 A CN 116347150A CN 202310240764 A CN202310240764 A CN 202310240764A CN 116347150 A CN116347150 A CN 116347150A
Authority
CN
China
Prior art keywords
sink
equipment
source
area network
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.)
Pending
Application number
CN202310240764.7A
Other languages
Chinese (zh)
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.)
Kirin Software Co Ltd
Original Assignee
Kirin Software 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 Kirin Software Co Ltd filed Critical Kirin Software Co Ltd
Priority to CN202310240764.7A priority Critical patent/CN116347150A/en
Publication of CN116347150A publication Critical patent/CN116347150A/en
Pending legal-status Critical Current

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/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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The method for quickly establishing the wireless screen-throwing connection of the PC equipment is realized based on two PC equipment which are co-located in the same wireless local area network, the two PC equipment are respectively used as source and sink ends, and the discovery of the equipment is completed through the following steps: the source end and sink end respectively start the screen projection function, release displaysrc._tcp service, respectively announce the source function and sink function to the local area network; the source end starts a front end interface process to search sink end equipment supporting display_tcp service in the local area network; the sink end replies a response frame containing the host name of the sink end to the source end; the source end analyzes the host name according to the response frame, and presents a sink equipment list on the front end interface for a user to select a projected sink object. The invention improves the equipment discovery speed and the connection establishment speed during screen projection, and improves the connection stability.

Description

Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment
Technical Field
The invention relates to a device connection technology in a local area network, in particular to a method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment.
Background
The WiFi alliance defines the Miracast specification and provides a technical framework for implementing source device image and sound projection to sink devices based on wireless links, mutual discovery, pairing, connection and multimedia presentation.
The physical layer depends on the group of 2.4GHZ or 5GHZ radio channels.
The link layer realizes device discovery through a Wifi-P2P technology or a TDLS technology and Wifi Infrastructure and establishes a link.
The IP layer distributes IP addresses to the sending and receiving devices through a C/S structure of DHCP.
At the IP level, sessions are defined-a TCP-based control session and a UDP streaming data session. Wherein the control plane includes: and the control of the receiving end to the transmitting end is realized through the UIBC through RTSP multimedia capability negotiation and setting. The data plane is the H.264 code stream of RTP package. The technical frame diagram is shown in figure 1.
Based on Miracast specifications, two operating systems with very large use amount, namely a commercial android system and Windows10, integrate the functions of WFD source and sink. Products of many android mobile phone manufacturers in China have WFD source functions, and many intelligent television manufacturers based on the android system have WFD sink functions. The Windows10 system has both source and sink functions.
In the market, general WFD source projects to sink, the general Miracast R1 specification, namely the earliest protocol specification, is used for realizing device discovery based on wifi-p2p, establishing a link, negotiating ip again, and establishing a multimedia session based on ip. The method has the advantage that a wifi network is not needed, namely the source and sink do not need to be accessed to the same wireless local area network at the same time. However, its drawbacks are also evident:
1) The wireless network card driver is required to support the P2P function.
2) The P2P connection process has a plurality of links, the connection speed is low, the probability of a problem in the process is also increased, the success rate is not particularly high, for example, a SONY television which is a android mobile phone or a Windows10 computer and is put on a screen to carry an android system can fail.
Disclosure of Invention
In order to solve the defects existing in the prior art, the invention provides a method for quickly establishing wireless screen-throwing connection of PC equipment, which is realized based on two PC equipment which are co-located in the same wireless local area network, wherein the two PC equipment are respectively used as source and sink ends, and the two PC equipment are used for completing the discovery of equipment through the following steps:
step S1: the source end starts a screen projection function, joins a multicast group through an mDNS protocol, issues a displaysrc_tcp service, and announces the source function supporting Miracast to the local area network;
step S2: the sink end starts a projection receiving function, joins a multicast group through an mDNS protocol, issues a display_tcp service, and announces the sink function supporting Miracast to the local area network;
step S3: the source end starts a front end interface process to find and analyze the service, and the front end interface process searches sink end equipment supporting display_tcp service in the local area network;
step S4: the sink end receives an mDNS query request for display_tcp service sent by the source end, and replies a response frame containing own host name to the source end;
step S5: and the source end analyzes the host name according to the received response frame, and presents a sink equipment list on the front end interface for a user to select a projected sink object.
In the step S3, the front end interface process discovers and resolves sink end devices supporting display_tcp services in the local area network by sending an mDNS request.
The source end is connected with the sink end based on the following method:
step S6: the source end organizes an mDNS query message according to host name equipment selected by a user, multicasts the message and inquires specific information of the host name;
step S7: the sink end receives an mDNS query message associated with the host name of the sink end, informs the sink end of the information of the ip and the port number of the sink end, monitors the TCP port and waits for the access of source end equipment;
step S8: the source end directly establishes TCP connection with the IP and the port number informed by the sink end, monitors the RTSP service port of the source end after success, and then sends the source name, the RTSP service port number and the session start command of the source end to the corresponding sink end.
The invention improves the equipment discovery speed and the connection establishment speed during screen projection, and improves the connection stability.
Drawings
Fig. 1: the prior art TCP-based control session implements a flow chart with a UDP streaming data session.
Fig. 2: the invention relates to a technical conception diagram of a method for quickly establishing wireless screen-throwing connection of PC equipment.
Fig. 3: the device discovery process of the method for quickly establishing the wireless screen-throwing connection of the PC device realizes a flow chart.
Fig. 4: the device connection process of the method for quickly establishing the wireless screen-throwing connection of the PC device realizes a flow chart.
Detailed Description
In order to further understand the technical scheme and beneficial effects of the present invention, the technical scheme and beneficial effects thereof will be described in detail with reference to the accompanying drawings.
The term interpretation convention referred to in this invention is as follows:
miracast: the set of specifications for WIFI alliance authentication defines the specifications for device discovery, pairing, connection and multimedia presentation.
WFD: wi-Fi Display can be understood as a device that supports specifications.
Sink, receiving and displaying equipment of the projection image in the wireless projection connection based on the Miracast frame.
Source, namely a transmitting Source device of a projection image in the wireless projection connection based on the Miracast framework.
WLAN: a wireless local area network.
RTSP: real-time streaming protocol.
And analyzing application scenes of wireless screen projection, wherein the application scenes are near field communication. Therefore, in most cases, the source device and sink device are in the same WLAN, so we refer to the R2 protocol of Miracast, and implement a technical scheme to optimize the following scenario:
two devices carrying kylin operation systems in the same wireless local area network respectively play roles in establishing projection relation between WFD source and sink, so as to accelerate the establishment of multimedia session and improve the success rate of connection.
As shown in fig. 2, the overall technical implementation is divided into: reconstruction of equipment discovery; optimization of connection session establishment.
According to the description in the general technical scheme, the precondition for the implementation of the invention, namely, two computers carrying wireless network cards, are all carried with kylin operating systems. The invention mainly aims to take a kylin operating system as an environment, take a source module and a sink module of a wireless screen shot carried by the kylin operating system as objects, expand based on Miracast specifications and improve the speed and success rate of establishing multimedia session connection between a WFD source end and a sink end.
Based on the general technical scheme provided by fig. 2, the invention mainly reforms the discovery process of the equipment and the connection session establishment process of the equipment.
Fig. 3 shows a flowchart of an implementation process of a device discovery process of the method for quickly establishing a wireless screen-drop connection of a PC device according to the present invention, as shown in fig. 3, a device discovery process of two computers a and B respectively serving as a source and sink of WFD based on a wireless local area network is as follows:
a turns on the screen projection function. Then, according to the RFC 6335 specification, a multicast group is added, a displaysrc_tcp service is issued, and the source function supporting Miracast is announced to the local area network. Displaysrc_tcp is a service type published in the local area network based on mDNS protocol specifications. The service type is specially used for providing the service of desktop image source data in Miracast specifications formulated based on Wifi alliance, and the service type is issued by equipment for providing the source image data.
B, turning on the projection receiving function. Then, according to the RFC 6335 specification, a multicast group is added, a display_tcp service is issued, and a sink function supporting Miracast is announced to the local area network. Display_tcp is a service type published in the local area network based on the mDNS protocol specification. The service type is specially used for receiving desktop image source data provided by a displaysrc_tcp service issuing device in Miracast specifications established based on Wifi alliance, displaying special services, and issuing by the device for displaying the source image data.
Miracast is a specification formulated by Wifi alliance, is a wireless-based display protocol, and runs one device (source device) to display own desktop content on a display device of another device (sink device).
A, starting a front-end interface process to find and analyze the service. As long as the user does not exit the interface, the process searches sink devices supporting display_tcp services in the local area network according to RFC 6335 specifications. This discovery process is accomplished by sending an mDNS query request.
mDNS is a standard network protocol, described in RFC 6335 specification, mainly for implementing device discovery inside a local area network. A query is a request to actively query a service.
B receives an mDNS query request sent by A for display_tcp service, and replies response frame to A, wherein the response frame contains own host name.
And A, analyzing the host name of the response frame according to the received response frame, and displaying a sink equipment list on the front-end interface for a user to select a projected sink object.
To this end, device discovery is complete, not relying on P2P anymore, but on existing WLAN networks. Simplification of the connection process:
the establishment of the P2P connection needs to establish rules including Group master-slave roles, transmission channels and the like through P2P Group negotiation, and then needs to complete the establishment of a P2P link through a process of Formation. The information process also comprises the processes of certificate generation, key exchange and the like, the process is relatively long and can reach 10s at maximum, and negotiation failure can sometimes occur. However, with WLAN-based schemes, it is simple to open a connection between devices after discovery is completed. Still described in the context of the two devices a, B.
Fig. 4 shows a flowchart of an implementation process of a device connection in the method for quickly establishing a wireless screen-throwing connection of a PC device according to the present invention, as shown in fig. 4, two computers a and B are respectively used as source and sink ends of WFD, and a user makes a selection of connection B on a:
and A, organizing an mDNS query message according to host name equipment selected by a user, multicasting the message, and inquiring specific information of the host name.
And B, receiving an mDNS query message associated with the host name of the user, informing the user of information such as ip, port number and the like, monitoring the TCP port, and waiting for the access of source equipment.
A directly establishes TCP connection with the IP and port number informed by B, monitors the RTSP service port of the user after success, and then sends the source name of the user, the RTSP service port number and a session start command to B.
It can be seen that the connection procedure is simple, the connection is established by directly taking over the IP and port through mDNS.
And then, starting the process of establishing the multimedia session, namely connecting the RTSP port of the A after receiving the session starting command, performing RTSP negotiation, establishing the multimedia session, and starting the screen-throwing playing.
In summary, the invention falls to Miracast R2 standard on domestic Linux operating system and is integrated into the system, when both ends devices use kylin operating system, as long as both ends devices access to the same WiFi local area network, source end devices can quickly find sink devices, thereby improving the device discovery speed and connection establishment speed when screen is put on, and simultaneously improving the connection stability, and after 500 times of tests, the connection success rate is 99 percent and the connection success rate is completed within 5 seconds.
Although the present invention has been described with reference to the above preferred embodiments, it should be understood that the present invention is not limited to the above embodiments, and that various changes and modifications can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (3)

  1. The method for quickly establishing the wireless screen-throwing connection of the PC equipment is characterized by being realized based on two PC equipment which are co-located in the same wireless local area network, wherein the two PC equipment are respectively used as source and sink ends, and the two PC equipment can finish the discovery of the equipment through the following steps:
    step S1: the source end starts a screen projection function, joins a multicast group through an mDNS protocol, issues a displaysrc_tcp service, and announces the source function supporting Miracast to the local area network;
    step S2: the sink end starts a projection receiving function, joins a multicast group through an mDNS protocol, issues a display_tcp service, and announces the sink function supporting Miracast to the local area network;
    step S3: the source end starts a front end interface process to find and analyze the service, and the front end interface process searches sink end equipment supporting display_tcp service in the local area network;
    step S4: the sink end receives an mDNS query request for display_tcp service sent by the source end, and replies a response frame containing own host name to the source end;
    step S5: and the source end analyzes the host name according to the received response frame, and presents a sink equipment list on the front end interface for a user to select a projected sink object.
  2. 2. The method for quickly establishing the wireless screen-drop connection of the PC equipment according to claim 1, wherein in the step S3, the front-end interface process discovers and resolves sink end equipment supporting display_tcp service in the local area network by sending an mDNS request.
  3. 3. The method for quickly establishing the wireless screen-throwing connection of the PC equipment according to claim 1, wherein the source terminal is connected with the sink terminal based on the following method:
    step S6: the source end organizes an mDNS query message according to host name equipment selected by a user, multicasts the message and inquires specific information of the host name;
    step S7: the sink end receives an mDNS query message associated with the host name of the sink end, informs the sink end of the information of the ip and the port number of the sink end, monitors the TCP port and waits for the access of source end equipment;
    step S8: the source end directly establishes TCP connection with the IP and the port number informed by the sink end, monitors the RTSP service port of the source end after success, and then sends the source name, the RTSP service port number and the session start command of the source end to the corresponding sink end.
CN202310240764.7A 2023-03-14 2023-03-14 Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment Pending CN116347150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310240764.7A CN116347150A (en) 2023-03-14 2023-03-14 Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310240764.7A CN116347150A (en) 2023-03-14 2023-03-14 Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment

Publications (1)

Publication Number Publication Date
CN116347150A true CN116347150A (en) 2023-06-27

Family

ID=86890881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310240764.7A Pending CN116347150A (en) 2023-03-14 2023-03-14 Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment

Country Status (1)

Country Link
CN (1) CN116347150A (en)

Similar Documents

Publication Publication Date Title
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
US10122801B2 (en) Service discovery and topology management
US10285127B2 (en) Wireless communication device, information processing device, and communication method
EP3550888B1 (en) Wireless connection switching method and terminal
US10264038B2 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
EP2803244B1 (en) Methods and apparatus for establishing a tunneled direct link setup (tdls) session between devices in a wireless network
US9743225B2 (en) Method and apparatus for forming communication link using bluetooth
WO2017097088A1 (en) Multi-screen projection control method and system, terminal device, and computer storage medium
CN104205933B (en) Seamless transition of cellular phone from cellular communication to Wi-Fi communication
US20130227647A1 (en) Shared network access via a peer-to-peer link
CN111427527B (en) Screen projection method, device, equipment and computer readable storage medium
CN105828151B (en) A kind of display processing method and device
US20130227152A1 (en) Method for searching for device and communication device using same
US20070297347A1 (en) Communication system, communication apparatus, communication method for communication apparatus, and computer program
CN107070933A (en) Set up and control Wi Fi show the audio connected and voice backward channel
US10663520B2 (en) Method and apparatus for reporting battery state in WFD
WO2016163181A1 (en) Information processing device, information processing method and program
US20200137153A1 (en) Method for establishing peer to peer service session over infrastructure link
CN116347150A (en) Method for quickly establishing wireless screen-throwing connection of PC (personal computer) equipment
JP2018521549A (en) Techniques for managing reverse channel audio sessions
CN105722037B (en) A kind of method and apparatus that wlan device is interacted with WFD equipment
CN106941732A (en) Reconnection method, system and WFD equipment
CN114554262A (en) Method for projecting screen between mobile equipment and smart television

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