Airplay directional projection method and device

By using a dual-NIC design for the proxy server, the problems of screen projection service discovery and cross-projection under hotel VLAN isolation were solved, achieving stable connection and flexible deployment for targeted screen projection and reducing implementation costs.

CN121547624BActive Publication Date: 2026-04-10BEIJING BILI INFORMATION & TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-01-16
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In commercial settings such as hotels, existing AirPlay projection technology cannot adapt to VLAN-isolated network architectures, leading to difficulties in discovering projection services and cross-projection issues. Furthermore, the deployment solutions are highly intrusive and lack flexibility.

Method used

A proxy server with dual network cards is used to obtain mDNS query packets through the client network card and reply with a simplified response, which induces unicast queries and forwards them to the projection device network for multicast response packet filtering and address replacement, establishing a NAT network channel to achieve targeted projection.

Benefits of technology

It solves the difficulties in discovering the screen projection service and the cross-projection problem caused by VLAN isolation, and offers flexible deployment, stable connection, reduced implementation costs, and adaptability to different hotel resource configuration needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121547624B_ABST
    Figure CN121547624B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of wireless screen projection, in particular to an Airplay directional screen projection method and device, which are applied to a proxy server configured with double network cards, the proxy server is arranged between a guest network and a screen projection device network and respectively accesses the two networks; after an mDNS query packet of a user mobile phone terminal is acquired through a guest network card, a simplified mDNS response packet is replied to induce the mobile phone terminal to send a unicast query packet; the unicast query packet is forwarded to a screen projection device network multicast address, only a multicast response packet of a screen projection service bound with the mobile phone terminal is received; a service address in the response packet is modified into a guest network card IP and is fed back to the mobile phone terminal, and a NAT network channel is simultaneously established. The application solves the screen projection service discovery difficulty and the screen projection service discovery difficulty caused by VLAN isolation in a hotel and the like scene, does not need to change an existing network topology, realizes directional screen projection, the screen projection service can be flexibly arranged, adapts to different scene requirements, and has high connection stability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the wireless projection technology field, and in particular to an Airplay directional projection method and device. BACKGROUND

[0002] With the popularity of mobile terminals and smart TVs, the Airplay projection technology has been widely used in home scenarios. Users can discover the projection service in the local area network through the mDNS (multicast DNS) protocol by multicast mode through the Airplay protocol of the Apple mobile phone, and realize the mirror projection of mobile phone content to the TV.

[0003] However, in commercial scenarios such as hotels, there are special network architectures and usage requirements, which make the existing home projection scheme not directly applicable. On the one hand, the hotel network usually divides the guest network where the user's mobile phone is located and the projection device network where the projection device such as TV is located into two isolated VLANs (virtual local area networks), and the two networks cannot directly communicate, so that the mobile phone cannot discover the projection service in the projection device network through the conventional mDNS multicast mode. On the other hand, the hotel guest only needs to project to the TV in the room. If the projection service is deployed in the guest network, the broadcast feature of the mDNS multicast will cause all mobile phones in the guest network to discover the service, leading to the problem of cross-projection between different room guests, which seriously affects the user experience. And due to the characteristics of iOS devices, directly using a unicast packet to respond to the multicast query sent by the mobile phone, the mobile phone cannot normally discover the projection service. Thus, it is in a dilemma that the projection service unicast reply does not respond to the mobile phone, and the projection service multicast reply will cause cross-projection.

[0004] In the existing solution, if the gateway device is modified to realize the forwarding of multicast packets and routing data packets between the two VLANs, the existing network topology and network devices of the hotel need to be changed greatly, which has high implementation cost, strong invasiveness, and high maintenance difficulty. If a single projection service deployment mode is used, it cannot adapt to the number of rooms and resource configuration requirements of different hotels, and the flexibility is insufficient. Therefore, there is an urgent need for an Airplay projection scheme that has small invasiveness to the existing network architecture, can realize directional projection, and has flexible deployment. SUMMARY

[0005] Therefore, the purpose of the present application is to provide an Airplay directional projection method and device to overcome the problems in the prior art.

[0006] To achieve the above purpose, the present application adopts the following technical solutions:

[0007] On the one hand, the present application provides an Airplay directional projection method applied to a proxy server deployed between a guest network and a projection device network. The proxy server is configured with two network cards respectively connected to the guest network and the projection device network. The method comprises:

[0008] Step S1, through the guest network card, when the user mobile terminal searches for a screen projection service, an mDNS query packet sent by the user mobile terminal is acquired;

[0009] Step S2, through the guest network card, an mDNS response packet not containing detailed information or a service address is replied to the user mobile terminal; wherein the mDNS response packet induces the user mobile terminal to send an unicast query packet;

[0010] Step S3, through the guest network card, the unicast query packet is received, and the unicast query packet is forwarded to the multicast address of the screen projection device network through the screen projection device network card;

[0011] Step S4, according to the unicast query packet, the screen projection service bound with the user mobile terminal is determined, and through the screen projection device network card, only the multicast response packet of the screen projection service bound with the user mobile terminal is received in all multicast response packets replied in the screen projection device network;

[0012] Step S5, the service address in the received multicast response packet is replaced with the IP of the guest network card, and is sent to the user mobile terminal through UDP unicast, so that the user mobile terminal discovers the target screen projection service according to the multicast response packet, initiates connection and completes screen projection.

[0013] Further, the above-mentioned method further comprises, before the step S5:

[0014] The network data packet sent by the user mobile terminal to the guest network card is forwarded to the IP of the screen projection service bound with the user mobile terminal;

[0015] The source address of the network data packet is disguised as the screen projection device network card IP of the proxy server, and a NAT network channel between the user mobile terminal and the screen projection service is established.

[0016] Further, the above-mentioned method, the user mobile terminal establishes a one-to-one binding relationship between the user mobile terminal and the screen projection service by scanning a two-dimensional code displayed by a screen projection service carrier in a target room.

[0017] Further, the above-mentioned method further comprises:

[0018] Each room is configured with an independent screen projection service, or multiple rooms share a screen projection service pool.

[0019] Further, the above-mentioned method further comprises:

[0020] If each room is configured with an independent screen mirroring service, the proxy server will identify the independent screen mirroring services that are bound together and allocate screen mirroring service resources to the independent screen mirroring services that are bound together.

[0021] If multiple rooms share a single screen mirroring service pool, the proxy server, upon receiving a screen mirroring request from a target room, determines the screen mirroring service pool for that target room and allocates a screen mirroring service resource from the pool to the target room. The allocated screen mirroring service resource is then reclaimed after the target room finishes its screen mirroring session.

[0022] Furthermore, in the method described above, step S1 includes:

[0023] Obtain mDNS query packets sent by all users when searching for the screen mirroring service on their mobile devices via the guest network card;

[0024] The corresponding user's mobile device is determined based on the mDNS query packet, and it is also determined whether the user's mobile device has a binding relationship.

[0025] Ignore the mDNS query packets corresponding to user mobile devices that do not have a binding relationship.

[0026] On the other hand, this application provides an AirPlay directional screen projection device, including a proxy server, the proxy server comprising:

[0027] Dual network interface card (NIC) modules are used to connect to the customer network and the projection device network respectively;

[0028] The mDNS receiving module is used to obtain the mDNS query packets sent by the user's mobile phone when searching for screen mirroring services through the guest network card;

[0029] The mDNS response module is used to reply to the user's mobile terminal with an mDNS response packet that does not contain detailed information or service address through the client network card; wherein, the mDNS response packet induces the user's mobile terminal to send a unicast query packet;

[0030] The data forwarding module receives the unicast query packet through the client network card and forwards the unicast query packet to the multicast address of the projection device network through the projection device network card.

[0031] The multicast response packet receiving module determines the screen casting service bound to the user's mobile phone based on the unicast query packet, and only receives the multicast response packet bound to the user's mobile phone from all the multicast response packets replied by the screen casting device network through the network card of the screen casting device network;

[0032] The screen projection establishing module replaces the service address in the received multicast response packet with the IP of the guest network card and sends the multicast response packet to the user mobile terminal through UDP unicast, so that the user mobile terminal discovers the target screen projection service according to the multicast response packet, initiates connection and completes screen projection.

[0033] Further, the device described above further comprises:

[0034] The network channel establishing module forwards the network data packet sent by the user mobile terminal to the guest network card to the IP of the screen projection service bound with the user mobile terminal, and disguises the source address of the network data packet as the screen projection device network card IP of the proxy server, to establish the NAT network channel between the user mobile terminal and the screen projection service.

[0035] Further, the device described above further comprises:

[0036] The binding management module records and maintains the one-to-one binding relationship between the user mobile terminal and the screen projection service.

[0037] The present application has the following advantages:

[0038] Solve the problem of VLAN isolation and string projection: cross-VLAN data forwarding is realized through the double network card proxy server, without changing the existing network topology, and the invasiveness is small; the multicast response packet is filtered based on the one-to-one binding relationship, and the mobile phone is induced to receive the unicast service discovery response packet through process design, and the service response packet is sent to the bound mobile phone through unicast, so that each mobile phone in the network can only discover the screen projection service bound with itself, and the risk of string projection is fundamentally eliminated, and it is ensured that the user can only connect the screen projection service in the room.

[0039] Flexible screen projection service deployment: support for single room independent screen projection service and multi-room shared screen projection service pool deployment mode, and the proxy server can allocate resources according to the deployment mode difference, adapt to the resource configuration needs of different scale hotels, and has strong practicability.

[0040] Stable and reliable connection: the service address in the multicast response packet is modified to realize screen projection service discovery, the real screen projection service response packet is forwarded without tampering with the core parameters, and the connection failure caused by parameter mismatch is avoided; the establishment of the NAT network channel ensures the stable transmission of the screen projection data, and improves the user experience.

[0041] Low implementation cost: without modifying the existing network equipment and topology, the proxy server is simple to deploy and convenient to maintain, which reduces the implementation and operation cost of hotels and other commercial scenarios. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0043] Figure 1 is a flow chart provided by an embodiment of an Airplay directional screen projection method of the present application;

[0044] Figure 2 is a structural schematic diagram provided by an embodiment of an Airplay directional screen projection device of the present application;

[0045] Figure 3 is a flow chart provided by an embodiment of an Airplay directional screen projection device of the present application. DETAILED DESCRIPTION

[0046] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail below. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0047] Figure 1 is a flow chart provided by an embodiment of an Airplay directional screen projection method of the present application. Please refer to Figure 1 , the present embodiment is applied to a proxy server deployed between a guest network and a screen projection device network, the proxy server is configured with two network cards, respectively connected to the guest network and the screen projection device network, and the present embodiment can include the following steps:

[0048] Step S1, obtaining an mDNS query packet sent by a user mobile terminal when searching for a screen projection service through a guest network card;

[0049] Step S2, replying to the user mobile terminal with an mDNS response packet containing no detailed information or service address through the guest network card; wherein the mDNS response packet induces the user mobile terminal to send a unicast query packet;

[0050] Step S3, receiving the unicast query packet through the guest network card, and forwarding the unicast query packet to a multicast address of the screen projection device network through a screen projection device network card;

[0051] Step S4, determining the screen projection service bound with the user mobile terminal according to the unicast query packet, and receiving only the multicast response packet of the screen projection service bound with the user mobile terminal in all multicast response packets returned by the screen projection device network through the network card of the screen projection device network;

[0052] Step S5, replacing the service address in the received multicast response packet with the IP of the guest network card, and sending to the user mobile terminal through the UDP unicast, so that the user mobile terminal discovers the target screen projection service according to the multicast response packet, initiates connection and completes screen projection.

[0053] Preferably, before step S5, further comprising:

[0054] forwarding the network data packet sent by the user mobile terminal to the guest network card to the IP of the screen projection service bound with the user mobile terminal;

[0055] disguising the source address of the network data packet as the screen projection device network card IP of the proxy server, and establishing the NAT network channel between the user mobile terminal and the screen projection service.

[0056] It can be understood that in the embodiment, the proxy server is deployed between the guest network and the screen projection device network and accesses the two networks respectively; after obtaining the mDNS query packet of the user mobile terminal through the guest network card, a simplified mDNS response packet is returned to induce the mobile terminal to send a unicast query packet; the unicast query packet is forwarded to the multicast address of the screen projection device network, and only the multicast response packet of the screen projection service bound with the mobile terminal is received; the service address in the response packet is modified to the IP of the guest network card and fed back to the mobile terminal, and a NAT network channel is established at the same time. The application solves the difficulty of screen projection service discovery and the problem of screen projection caused by VLAN isolation in hotels and other scenarios, does not need to change the existing network topology, realizes directional screen projection, and the screen projection service can be flexibly deployed to adapt to different scene requirements, and the connection stability is high.

[0057] Preferably, the user mobile terminal establishes a one-to-one binding relationship between the user mobile terminal and the screen projection service by scanning a two-dimensional code displayed by the screen projection service carrier in the target room.

[0058] It can be understood that when the user needs to perform screen projection, the user first needs to open the screen projection service carrier in the room, at this time the screen projection service carrier displays a two-dimensional code, and the user scans the two-dimensional code through the mobile terminal to establish a one-to-one binding relationship between the mobile terminal and the screen projection service of the screen projection service carrier. The screen projection service carrier can be a television, a computer and a projector, and after scanning the two-dimensional code, a two-dimensional code request address can be obtained, which points to the proxy server.

[0059] Preferably, further comprising:

[0060] Each room is configured with an independent screen projection service, or multiple rooms share a screen projection service pool.

[0061] Preferably, it also includes:

[0062] If each room is configured with an independent screen projection service, the proxy server determines the independent screen projection services with a binding relationship and allocates screen projection service resources to the independent screen projection services with a binding relationship;

[0063] If multiple rooms share a screen projection service pool, after the proxy server receives the screen projection demand of the target room, it determines the screen projection service pool of the target room and allocates a screen projection service resource from the screen projection service pool to the target room. After the screen projection of the target room ends, the allocated screen projection service resource is recovered.

[0064] It can be understood that if the independent screen projection service deployment mode is adopted, the proxy server monitors the binding state of each independent screen projection service in real time. When the binding management module detects that there is a valid binding relationship for a certain independent screen projection service, it allocates sufficient CPU, bandwidth and other screen projection service resources to it, ensuring smooth screen projection process and not being affected by the resource occupation of other unbound services.

[0065] If the screen projection service pool deployment mode is adopted, multiple rooms can share a screen projection service pool, and the screen projection service pool has a preset number of screen projection service resources. When the proxy server receives the screen projection demand of the target room, it allocates a screen projection service resource from the screen projection service pool bound by the target room to the target room. After the screen projection of the target room ends, the allocated screen projection service resource is recovered.

[0066] Preferably, step S1 comprises:

[0067] Obtain the mDNS query package sent by all user mobile terminals when searching for screen projection services through the guest network card;

[0068] Determine the corresponding user mobile terminal according to the mDNS query package and determine whether the user mobile terminal has a binding relationship;

[0069] Ignore the mDNS query package corresponding to the user mobile terminal without a binding relationship.

[0070] It can be understood that the proxy server will receive the mDNS query package sent by all user mobile terminals when searching for screen projection services, but the proxy server will only respond to the mDNS query package sent by the user mobile terminal with a binding relationship, thereby avoiding the problem that the user's screen projection content is projected onto the screen projection device of other rooms. For the user mobile terminal without a binding relationship, the proxy server will send a prompt to it that it needs to bind the screen projection device and send the screen projection device binding process.

[0071] In specific practice:

[0072] 1. First, deploy the server:

[0073] Deploy the proxy server, which configures two physical network cards (network card A and network card B): configure network card A as a legal IP address of the guest network (VLAN1) and access the hotel guest network switch; configure network card B as a legal IP address of the screen projection device network (VLAN2) and access the screen projection device network switch; the proxy server installs and enables each functional module to ensure that the dual-network card module normally accesses the two networks, and the binding management module, network channel establishment module, etc. are in a ready state.

[0074] According to the size of the hotel, select the deployment mode of the screen projection service: if it is a small hotel (room number ≤ 50), use the mode of configuring an independent screen projection service for each room, and each room's TV is equipped with an independent screen projection service and is assigned a unique device identifier; if it is a large hotel (room number > 50), use the mode of sharing a screen projection service pool for multiple rooms, deploy according to the proportion of one screen projection service pool for every 50 rooms, each service pool contains several screen projection service nodes, and is assigned a unique pool identifier.

[0075] 2, Establish a binding relationship:

[0076] After the screen projection service carrier (TV) is powered on, the screen projection service it carries sends its own identifier information (independent screen projection service sends device identifier, screen projection service in service pool sends pool identifier and node identifier) to the proxy server; the binding management module of the proxy server records the correspondence between the identifier information and the room number, and generates a unique two-dimensional code and sends it to the TV display interface, the two-dimensional code contains the screen projection service identifier information and the room number information.

[0077] After the user enters the room, uses the Apple phone to scan the two-dimensional code on the TV, the phone end analyzes the identifier information in the two-dimensional code, and sends its own device identifier (such as IMEI code) and the screen projection service identifier information to the proxy server; the binding management module of the proxy server receives and stores the corresponding relationship, and completes the one-to-one binding of the user's mobile phone end and the screen projection service.

[0078] 3, mDNS query and response

[0079] The user slides the control center on the mobile phone end to open the Airplay screen projection search function, and the mobile phone end sends an mDNS multicast query packet to the guest network according to the Airplay protocol to query the available screen projection service in the network; the mDNS receiving module of the proxy server listens to the guest network multicast data in real time through network card A (guest network card), captures the mDNS query packet and analyzes the mobile phone end device identifier.

[0080] The mDNS response module of the proxy server generates a simplified mDNS response packet that does not contain the screen projection service detailed parameters (such as encoding format, port number) and the real service address according to the resolution result, and sends the response packet to the user mobile terminal through the network card A; after receiving the response packet, the user mobile terminal automatically sends a UDP unicast query packet containing the device identifier of the user mobile terminal according to the Airplay protocol specification, to obtain the detailed information of the screen projection service.

[0081] 4. Unicast query packet forwarding and response packet screening

[0082] The data forwarding module of the proxy server receives the UDP unicast query packet sent by the user mobile terminal through the network card A, extracts the device identifier of the mobile terminal in the packet, and queries the screen projection service identifier corresponding to the identifier by calling the binding management module; then, the data forwarding module converts the unicast query packet into a multicast query packet, and sends the multicast query packet to the multicast address of the screen projection device network through the network card B (screen projection device network card).

[0083] All online screen projection services (including the target screen projection service and other non-binding screen projection services) in the screen projection device network return a multicast response packet containing their own service information to the proxy server after receiving the multicast query packet; the multicast response packet receiving module of the proxy server receives all the response packets through the network card B, screens out the response packet of the target screen projection service corresponding to the device identifier of the mobile terminal according to the binding relationship recorded by the binding management module, and directly discards the response packets of other non-binding screen projection services.

[0084] 5. Response packet modification and screen projection connection

[0085] The screen projection establishment module of the proxy server processes the screened target screen projection service multicast response packet, replaces the original IP address of the screen projection service recorded in the packet with the IP address of the network card A (guest network card), keeps the core parameters such as service type, encoding format, and port number in the response packet unchanged, and then sends the modified response packet to the user mobile terminal through the UDP unicast mode.

[0086] After receiving the response packet, the user mobile terminal parses the screen projection service information (displayed as the name of the screen projection device corresponding to the room), and the user clicks the name of the screen projection device to initiate a connection request; the network channel establishment module of the proxy server automatically configures a data forwarding rule: forwarding all network data packets (including connection request data, audio and video data streams, etc.) sent by the mobile terminal to the network card A to the IP address of the binding screen projection service; at the same time, the source address of the forwarding data packet is disguised as the IP address of the network card B, so that the screen projection service thinks that the data comes from the proxy server in the screen projection device network, and establishes a NAT network channel between the user mobile terminal and the screen projection service.

[0087] The connection request is transmitted to the target screen projection service through the NAT channel, after handshaking, the content of the user mobile terminal is transmitted to the screen projection service carrier (television) through the channel in real time, and normal screen projection is realized.

[0088] The application further provides an Airplay directional screen projection device for realizing the above method embodiment. Figure 2 and Figure 3 As shown in Figure 2 is a structural schematic diagram provided by an embodiment of the Airplay directional screen projection device, Figure 3 is a flowchart provided by an embodiment of the Airplay directional screen projection device. The embodiment includes a proxy server 2, and the proxy server 2 includes:

[0089] a double network card module 21 for accessing a guest network and a screen projection device network 3 respectively;

[0090] an mDNS receiving module 22 for acquiring an mDNS query packet sent by the user mobile terminal 1 when searching for a screen projection service through a guest network card;

[0091] an mDNS response module 23 for replying to the user mobile terminal 1 with an mDNS response packet not containing detailed information or a service address through the guest network card; wherein the mDNS response packet induces the user mobile terminal 1 to send a unicast query packet;

[0092] a data forwarding module 24 for receiving the unicast query packet through the guest network card and forwarding the unicast query packet to a multicast address of the screen projection device network 3 through a screen projection device network 3 card;

[0093] a multicast response packet receiving module 25 for determining the screen projection service bound with the user mobile terminal 1 according to the unicast query packet and receiving only the multicast response packet of the screen projection service bound with the user mobile terminal 1 from all the multicast response packets replied in the screen projection device network 3 through the screen projection device network 3 card;

[0094] a screen projection establishing module 26 for replacing the service address in the received multicast response packet with the IP of the guest network card and sending to the user mobile terminal 1 through UDP unicast, so that the user mobile terminal 1 discovers the target screen projection service according to the multicast response packet, initiates connection and completes screen projection.

[0095] Preferably, further comprising:

[0096] a network channel establishing module for forwarding the network data packet sent by the user mobile terminal 1 to the IP of the screen projection service bound with the user mobile terminal 1 and disguising the source address of the network data packet as the screen projection device network 3 card IP of the proxy server 2, so as to establish the NAT network channel between the user mobile terminal 1 and the screen projection service.

[0097] Preferably, it also includes:

[0098] The binding management module is configured to record and maintain the one-to-one binding relationship between the user's mobile terminal 1 and the screen projection service.

[0099] As to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and thus will not be described in detail here.

[0100] It can be understood that the same or similar parts in the above embodiments can be mutually referred to, and the content not described in detail in some embodiments can be referred to the same or similar content in other embodiments.

[0101] It should be noted that, in the description of the present application, the terms "first", "second", etc. are used only for the purpose of description, and cannot be understood as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "a plurality of" is at least two.

[0102] Any process or method descriptions in flow charts or described elsewhere herein can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for performing specific logic functions or steps in the process, and that the various systems described herein can include one or more circuits that include the various hardware elements of a computer or electronic device, including timers, counters, memory storage, processing units, and so on. The embodiments of methods or algorithms described in connection with the present disclosure can be embodied directly in hardware, in software with associated hardware, or in software stored on a computer readable medium that when executed by a computer, software, or hardware based module.

[0103] It should be understood that each part of the present application can be realized by hardware, software, firmware or their combination. In the above embodiments, a plurality of steps or methods can be realized by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if realized by hardware, and as in another embodiment, it can be realized by any one or their combination of the following technologies known in the art: discrete logic circuit with logic gate circuit for implementing logic function on data signal, application specific integrated circuit with suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) and the like.

[0104] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by a program instructing the relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0105] In addition, each function unit in each embodiment of the present application can be integrated in one processing module, or each unit can be physically present separately, or two or more units can be integrated in one module. The integrated module can be realized in the form of hardware, or in the form of a software function module. When the integrated module is realized in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium.

[0106] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0107] In the description of the present specification, the description referring to the terms "one embodiment", "some embodiments", "an example", "a specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily mean the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0108] Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present application.

Claims

1. An Airplay directional projection method, characterized in that, The application is applied to a proxy server arranged between a guest network and a screen projection device network, the proxy server is configured with two network cards respectively connected to the guest network and the screen projection device network, and the method comprises the following steps: In step S1, an mDNS query packet sent by a user mobile terminal when searching for a screen projection service is acquired through a guest network card; In step S2, an mDNS response packet without detailed information or a service address is returned to the user mobile terminal through the guest network card, wherein the mDNS response packet induces the user mobile terminal to send a unicast query packet; In step S3, the unicast query packet is received through the guest network card, and the unicast query packet is forwarded to a multicast address of the screen projection device network through a screen projection device network card; In step S4, a screen projection service bound to the user mobile terminal is determined according to the unicast query packet, and only a multicast response packet of the screen projection service bound to the user mobile terminal is received from all multicast response packets returned by the screen projection device network through the screen projection device network card; In step S5, a service address in the received multicast response packet is replaced with an IP of the guest network card, and the multicast response packet is sent to the user mobile terminal through a UDP unicast, so that the user mobile terminal discovers a target screen projection service according to the multicast response packet, initiates a connection, and completes screen projection.

2. The method of claim 1, wherein, The user mobile terminal establishes a one-to-one binding relationship between the user mobile terminal and the screen projection service by scanning a two-dimensional code displayed by a screen projection service carrier in a target room.

3. The method of claim 2, wherein, Further comprising: Each room is configured with an independent screen projection service, or multiple rooms share a screen projection service pool.

4. The method of claim 3, wherein, Further comprising: If each room is configured with an independent screen projection service, the proxy server determines the independent screen projection service with a binding relationship and allocates a screen projection service resource to the independent screen projection service with the binding relationship; If multiple rooms share a screen projection service pool, the proxy server determines a screen projection service pool of a target room after receiving a screen projection demand of the target room, allocates a screen projection service resource from the screen projection service pool to the target room, and recovers the allocated screen projection service resource after the target room completes screen projection.

5. The method of claim 4, wherein, The step S1 comprises: All mDNS query packets sent by user mobile terminals when searching for a screen projection service are acquired through a guest network card; Corresponding user mobile terminals are determined according to the mDNS query packets, and whether the user mobile terminals have a binding relationship is determined; The mDNS query packets corresponding to the user mobile terminals without a binding relationship are ignored.

6. An Airplay directional projection device, characterized in that, The application comprises a proxy server, and the proxy server comprises: A dual-network card module for connecting to a guest network and a screen projection device network respectively; An mDNS receiving module for acquiring an mDNS query packet sent by a user mobile terminal when searching for a screen projection service through a guest network card; An mDNS response module for returning an mDNS response packet without detailed information or a service address to the user mobile terminal through the guest network card, wherein the mDNS response packet induces the user mobile terminal to send a unicast query packet; The data forwarding module receives the unicast query packet through the guest network card and forwards the unicast query packet to the multicast address of the screen projection device network through the screen projection device network card; The multicast response packet receiving module determines the screen projection service bound with the user mobile terminal according to the unicast query packet and receives only the multicast response packet of the screen projection service bound with the user mobile terminal from all the multicast response packets replied by the screen projection device network through the screen projection device network card; The screen projection establishing module replaces the service address in the received multicast response packet with the IP of the guest network card and sends the multicast response packet to the user mobile terminal through UDP unicast, so that the user mobile terminal discovers the target screen projection service according to the multicast response packet, initiates connection and completes screen projection.

7. The apparatus of claim 6, wherein, Further comprising: The binding management module is used for recording and maintaining the one-to-one binding relationship between the user mobile terminal and the screen projection service.

Citation Information

Patent Citations

  • Hotel multi-screen interactive dynamic management realizing system and method flow thereof

    CN109660815A

  • Hotel Internet of Things intelligent control system, method for intelligently controlling equipment and electronic equipment

    CN110086782A