CN112565461B - Screen projection equipment service agent discovery method, device, equipment and readable storage medium - Google Patents

Screen projection equipment service agent discovery method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112565461B
CN112565461B CN202011615072.9A CN202011615072A CN112565461B CN 112565461 B CN112565461 B CN 112565461B CN 202011615072 A CN202011615072 A CN 202011615072A CN 112565461 B CN112565461 B CN 112565461B
Authority
CN
China
Prior art keywords
screen projection
screen
equipment
data
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011615072.9A
Other languages
Chinese (zh)
Other versions
CN112565461A (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.)
Shenzhen Happycast Technology Co Ltd
Original Assignee
Shenzhen Happycast Technology 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 Shenzhen Happycast Technology Co Ltd filed Critical Shenzhen Happycast Technology Co Ltd
Priority to CN202011615072.9A priority Critical patent/CN112565461B/en
Publication of CN112565461A publication Critical patent/CN112565461A/en
Application granted granted Critical
Publication of CN112565461B publication Critical patent/CN112565461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method, a device, equipment and a readable storage medium for discovering a service agent of screen projection equipment, and relates to the technical field of screen projection. The method comprises the following steps: establishing connection with the screen projected equipment which is not connected with the server side in the same local area network, and acquiring external equipment data of the screen projected equipment which is not connected with the server side in the same local area network; sending the local equipment data and the external equipment data to a server; receiving a connection request of screen projection equipment, and establishing connection with the screen projection equipment according to the connection request; and acquiring the equipment data list through the server, and sending the equipment data list to the screen projection equipment. The screen projection device selects the screen projected device corresponding to the device data list to project the screen, so that the technical problem that when a plurality of screen projected devices exist in a local area network in the prior art, the screen projected devices need to be connected with the screen projected devices respectively in a finding mode supported by the screen projected devices, and the connection process is complex is solved.

Description

Screen projection equipment service agent discovery method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of screen projection, in particular to a method, a device, equipment and a readable storage medium for discovering a service agent of screen projection equipment.
Background
The purpose of the screen projection service release is to enable other screen projection devices to discover the screen projection service provided by the screen projection device, so that the other screen projection devices can project screens on the screen projection device by using the screen projection service provided by the screen projection device.
The user can only perform screen projection action after searching and connecting the screen projection equipment to screen projection, and the screen projection equipment actively searches and finds the screen projection equipment at present. The screen projection service is issued by the screen projection equipment in various modes; for example, screen-casting service modes such as two-dimensional code scanning, PIN code connection, mDNS search, NFC touch, and the like, require that the screen-casting device also needs to support multiple device discovery modes corresponding to the screen-casting service. When a plurality of screen projection devices exist in the local area network, the screen projection devices need to be connected with the screen projection devices respectively in a discovery mode supported by the screen projection devices, and the connection process is complex.
Therefore, how to provide an effective scheme for facilitating the screen projection device to discover the screen projected devices in the same local area network and establish a connection service is an urgent problem to be solved in the prior art.
Disclosure of Invention
The invention provides a method, a device, equipment and a readable storage medium for discovering a service agent of screen projection equipment, which are used for solving the technical problem that in the prior art, when a plurality of screen projection equipment exist in a local area network, the screen projection equipment needs to be connected with the screen projection equipment respectively in a discovery mode supported by the screen projection equipment, and the connection process is complex.
In a first aspect, an embodiment of the present invention provides a method for discovering a service agent of a screen projection device, where the method is applied to a screen projection device connected to a server in any one of multiple screen projection devices in a same local area network, and the method includes:
establishing connection with a screen projected device which is not connected with a server side in the same local area network, and acquiring external device data of the screen projected device which is not connected with the server side in the same local area network, wherein the external device data is the device data of one or more screen projected devices which are not connected with the server side;
sending the local equipment data and the external equipment data to a server for the server to generate an equipment data list according to the external equipment data and the local equipment data;
receiving a connection request of screen projection equipment, and establishing connection with the screen projection equipment according to the connection request;
the method comprises the steps that a device data list is obtained through a server side, the device data list is sent to screen projection equipment, and screen projection connection is established between the screen projection equipment and any one of a plurality of screen projection equipment in the same local area network through the device data list.
Preferably, the step of receiving a connection request of the screen projection device specifically includes:
receiving a connection request sent by screen projection equipment through screen projection equipment which is not connected with a server side;
or receiving a connection request sent by the screen projection equipment.
Preferably, before the step of establishing a connection with a device to be screened which is not connected with the server side in the same local area network, the method further includes:
and issuing a service search request outwards for establishing connection with the screen projection device which is not connected with the service end in the same local area network.
Preferably, the local device data includes at least one of a local device ip address, a service port, a device name, a device identifier, a screen projection service identifier, and connected WiFi data.
Preferably, after the step of obtaining the device data list through the server, and before the step of sending the device data list to the screen projection device, the method further includes:
and judging whether the connection is established with the corresponding screen projected equipment in the equipment data list, and deleting the equipment data corresponding to the unconnected screen projected equipment from the equipment data list.
Preferably, before the step of obtaining the device data list through the server, the method further includes:
and sending a list request to the server, wherein the list request comprises the local equipment data.
In a second aspect, an embodiment of the present invention provides a device for discovering a service agent of a screen projection device, including:
the device data acquisition module is used for establishing connection with the screen projected device which is not connected with the server side in the same local area network and acquiring external device data of the screen projected device which is not connected with the server side in the same local area network, wherein the external device data is the device data of one or more screen projected devices which are not connected with the server side;
the data sending module is used for sending the local equipment data and the external equipment data to the server so that the server can generate an equipment data list according to the external equipment data and the local equipment data;
the connection module is used for receiving a connection request of the screen projection equipment and establishing connection with the screen projection equipment according to the connection request;
and the screen projection device connecting module is used for acquiring the device data list through the server and sending the device data list to the screen projection device, so that the screen projection device establishes screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list.
Preferably, the connection module further comprises:
the request acquisition unit is used for receiving a connection request sent by the screen projection equipment through the screen projection equipment which is not connected with the server side; or receiving a connection request sent by the screen projection equipment.
In a third aspect, an embodiment of the present invention provides a computing device, including: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a screen projection device service agent discovery program stored in the memory to implement the method steps set forth in the embodiments described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a screen-casting device service agent discovery program, and when the screen-casting device service agent discovery program is executed by at least one processor, the method steps as set forth in the foregoing embodiment are implemented.
In summary, the embodiments of the present invention disclose a method, an apparatus, a device and a readable storage medium for discovering a service agent of a screen projection device, which are applied to a screen projection device connected to a server side in any one of a plurality of screen projection devices in the same lan. Establishing connection with a screen projected device which is not connected with a server side in the same local area network, and acquiring external device data of the screen projected device which is not connected with the server side in the same local area network; sending the local equipment data and the external equipment data to a server; receiving a connection request of screen projection equipment, and establishing connection with the screen projection equipment according to the connection request; and acquiring the equipment data list through the server, and sending the equipment data list to the screen projection equipment. The screen projection device selects the screen projected device corresponding to the device data list to project the screen, so that the technical problem that when a plurality of screen projected devices exist in a local area network in the prior art, the screen projected devices need to be connected with the screen projected devices respectively in a finding mode supported by the screen projected devices, and the connection process is complex is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a service agent discovery method for a screen projection device according to a first embodiment of the present invention;
fig. 2 is a flowchart of a service agent discovery method for a screen projection device according to a first embodiment of the present invention;
fig. 3 is a flowchart of a service agent discovery method for a screen projection device according to a first embodiment of the present invention;
fig. 4 is a flowchart of a service agent discovery method for a screen projection device according to a first embodiment of the present invention;
fig. 5 is a flowchart of a service agent discovery method for a screen projection device according to a second embodiment of the present invention;
fig. 6 is a functional module schematic diagram of a service agent discovery apparatus for a screen projection device according to a second embodiment of the present invention;
fig. 7 is a functional module schematic diagram of a service agent discovery apparatus for a screen projection device according to a second embodiment of the present invention;
fig. 8 is a functional module diagram of a service agent discovery apparatus for a screen projection device according to a second embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, a flowchart of a service agent discovery method for a screen projection device according to a first embodiment of the present invention is shown. In this embodiment, the method for discovering the service agent of the screen projection device includes the following steps:
step S101, connection is established with the screen projected equipment which is not connected with the server side in the same local area network, and external equipment data of the screen projected equipment which is not connected with the server side in the same local area network are obtained, wherein the external equipment data are the equipment data of one or more screen projected equipment which is not connected with the server side.
The user can only perform screen projection action after searching and connecting the screen projection equipment to screen projection, and the screen projection equipment actively searches and finds the screen projection equipment at present. The screen projection service is issued by the screen projection equipment in various modes; for example, screen-casting service modes such as two-dimensional code scanning, PIN code connection, mDNS search, NFC touch, and the like, require that the screen-casting device also needs to support multiple device discovery modes corresponding to the screen-casting service. When a plurality of screen projection devices exist in the local area network, the screen projection devices need to be connected with the screen projection devices respectively in a discovery mode supported by the screen projection devices, and the connection process is complex.
In this embodiment, when the screen projection device in the same local area network issues the screen projection service, the screen projection device also has the search capability of the screen projection service, and the screen projection device can also search other screen projection devices that can project the screen and upload the searched device data of the screen projection device to the server. The screen-projected devices in the same local area network may be devices produced by the same manufacturer or devices produced according to the same standard, and there is a possibility that the screen-projected devices do not establish a connection with the server. Therefore, the connected screen projection device connected with the server is connected with the screen projection device which is not connected with the server in the same local area network, and external device data of the screen projection device which is not connected with the server in the same local area network are obtained, wherein the external device data are device data of one or more screen projection devices which are not connected with the server. And the device data of one or more projected screen devices which are not connected with the server side are sent to the server side through the projected screen devices connected with the server side.
The server can be a gateway of a local area network or a server corresponding to the screen projection equipment; and when the server side is the gateway, the screen projected equipment which is connected with the gateway sends the equipment data of the screen projected equipment which is not connected with the gateway to the gateway. After receiving the device data of the screen projected device which is not connected with the gateway, the gateway can be directly connected with the screen projected device through the local area network; or when the screen projection equipment receives the equipment data list, the screen projection equipment is selected, and the screen projection equipment can be directly connected with the gateway and used for screen projection of the screen projection equipment. When the server side is a server corresponding to the brand of the screen projected equipment in the same local area network, the screen projected equipment corresponding to the same brand is connected with the server side; and the screen projection equipment connected with the server side sends the equipment data of other screen projection equipment which is not connected with the server side in the same local area network to the server side. After the device data of other screen-projected devices which are not connected with the server side in the same local area network are sent to the server side, the screen-projected devices can directly acquire the device data of other brands of screen-projected devices after being connected with the server side through the screen-projected devices corresponding to the brands.
And S102, sending the local equipment data and the external equipment data to the server for the server to generate an equipment data list according to the external equipment data and the local equipment data.
And sending the local device data and the connection device data to the server so that the server can generate a device data list according to the connection device data and the local device data. The external device data is the device data of one or more projected screen devices which are not connected with the server side.
Preferably, the local device data includes: at least one of a local device ip address, a service port, a device name, a device identifier, a screen projection service identifier, and connected WiFi data. The connection device data may also be at least one of an ip address, a service port, a device name, a device identifier, a screen projection service identifier, and connected WiFi data. And after receiving the local equipment data and the connection equipment data, the server generates an equipment list. And the server can obtain the device list corresponding to the local area network through the ip address of the local device, the service port, the device name, the device identifier, the screen projection service identifier and the connected WiFi data.
And step S103, receiving a connection request of the screen projection equipment, and establishing connection with the screen projection equipment according to the connection request.
The screen projection device can issue the screen projection service outwards, a screen projection request is sent to the screen projection device when the screen projection device needs to project a screen, and the screen projection device is connected with the screen projection device after receiving the screen projection request.
Preferably, referring to fig. 2 and 3, in step S103, receiving a connection request of the screen projection device, and establishing a connection with the screen projection device according to the connection request may include: step S1031, receiving a connection request sent by the screen projection equipment through the screen projection equipment which is not connected with the server; or, in step S1032, a connection request sent by the screen projection device is received.
Step S1031, receiving a connection request sent by the screen projection equipment through the screen projection equipment which is not connected with the server; that is, when the screen-thrown device which is not connected with the server is connected with the screen-thrown device in the same local area network, the screen-throwing device sends a screen-throwing request to the screen-thrown device which is connected with the server through the screen-thrown device which is not connected with the server, and the screen-thrown device which is connected with the server is connected with the screen-throwing device through the screen-thrown device which is not connected with the server.
Step S1032, receiving a connection request sent by the screen projection equipment; namely, the screen projection equipment directly sends a screen projection request to the screen projection equipment connected with the server side, and the screen projection equipment connected with the server side directly receives the connection request of the screen projection equipment and directly establishes connection with the screen projection equipment.
And step S104, acquiring the device data list through the server, and sending the device data list to the screen projection device, wherein the screen projection device is used for establishing screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list.
After receiving a connection request of screen projection equipment, screen projection equipment connected with a server side acquires an equipment data list from the server side, and sends the equipment data list to the screen projection equipment through the screen projection equipment which is connected with the screen projection equipment and is not connected with the server side; or directly sending the device data list to the screen projection device. The screen projection device can establish screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list. And the screen projection equipment connected with the server establishes connection with the screen projection equipment which is not connected with the server in the same local area network, and after the interactive authentication is successful, the screen projection equipment connected with the screen projection equipment can work normally. And after the screen projection equipment receives the equipment list, the corresponding screen projection equipment in the equipment list can be connected, and a user only needs to select the corresponding screen projection equipment interface to project the screen without being connected with the screen projection equipment in a discovery mode supported by the screen projection equipment. Therefore, the technical problem that when a plurality of screen projection devices exist in a local area network, the screen projection devices need to be connected with the screen projection devices respectively in a finding mode supported by the screen projection devices, and the connection process is complex in the prior art is solved.
Preferably, step S104, please refer to fig. 4, specifically includes:
step S1041, obtaining, by the server, the device data list.
And sending a data list acquisition request to the server, wherein the list acquisition request contains the screen-projected device data, so that the server can match the device data with a corresponding device data list in the same local area network through the device data and send the data list to the screen-projected device.
Step S1042, determine whether a connection is established with the corresponding device to be screened in the device data list.
After the screen projection device receives the data list, whether other screen projection devices connected with the screen projection device are connected with the screen projection device is judged, namely whether the screen projection device matched with the data list can be normally used is judged.
Step S1043, deleting the device data corresponding to the unconnected screen-projected device from the device data list.
After connection authentication is carried out on other screen projection equipment, equipment data which are not connected with the screen projection equipment are deleted, namely, the screen projection equipment is ensured to be directly connected with equipment which is normally used in the local area network through an equipment data list.
And step S1044, sending the device data list to the screen projection device.
The device data list sent to the screen projection device is the latest data list, and the screen projection device can be connected through the screen projection device corresponding to the device data list.
The screen projection device can be stably connected with the corresponding screen projected device in the device data list, and all the screen projected devices in the local area network can be obtained by the screen projection device only by establishing connection with one screen projected device. The user can perform screen projection only by selecting the equipment corresponding to the data list.
Certainly, after the screen projection device is connected to the screen projection device in the local area network, the device data of the screen projection device can be acquired; the screen projection equipment can be directly connected with the server side and sends the screen projection data to the server side, so that the server side can conveniently acquire an equipment list corresponding to the equipment list through the equipment data and can be directly connected with other screen projection data through acquiring the data list; after the server receives the device data, the server sends a device connection request to the screen projection device in the local area network corresponding to the device data, so that the screen projection device directly sends the connection request to the screen projection device or establishes connection with the screen projection device, and the screen projection device directly selects the corresponding screen projection device to project a screen.
Referring to fig. 5, a flowchart of a service agent discovery method for a screen projection device according to a second embodiment of the present invention is shown. In this embodiment, in the technology of the first embodiment, the method for discovering the service agent of the screen projection device includes the following steps:
step S201, issuing a service search request to the outside for establishing connection with a screen-thrown device which is not connected with a service end in the same local area network.
In this embodiment, when the screen projection device in the same local area network issues the screen projection service, the screen projection device also has the search capability of the screen projection service, and the screen projection device can also search other screen projection devices that can project the screen and upload the searched device data of the screen projection device to the server. During specific implementation, mutual authentication is carried out between the projected screen devices connected in the same local area network, and corresponding authentication protocols can be adopted for mutual authentication between the projected screen devices, so that the projected screen devices of two different brands can be connected with each other when being in the same local area network.
Step S202, connection is established with the screen projected equipment which is not connected with the server side in the same local area network, and external equipment data of the screen projected equipment which is not connected with the server side in the same local area network is obtained, wherein the external equipment data is the equipment data of one or more screen projected equipment which is not connected with the server side.
Step S203, sending the local device data and the external device data to the server, where the server generates a device data list according to the external device data and the local device data.
And step S204, receiving a connection request of the screen projection equipment, and establishing connection with the screen projection equipment according to the connection request.
Step S205, obtaining the device data list through the server, and sending the device data list to the screen projection device, where the screen projection device establishes screen projection connection with any one of the multiple screen projection devices in the same lan through the device data list.
The steps S202 to S205 have already been described in detail in the first embodiment, and are not described herein again.
Please refer to fig. 6 to 8, which are schematic functional modules of a service agent discovery apparatus 100 for a screen projection device according to a ninth embodiment of the present invention. The screen projection device is applied to any one of a plurality of screen projection devices in the same local area network, and is connected with a server side, wherein the screen projection device comprises but is not limited to a mobile phone, a smart phone, a tablet computer, a personal computer, a projector, a projection curtain wall and other electronic devices with display components. The screen-casting device service agent discovery apparatus 100 includes a device data obtaining module 110, a data sending module 120, a connection module 130, and a screen-casting device connection module 140.
The device data obtaining module 110 is configured to establish a connection with a screen-projected device that is not connected to the server in the same local area network, and obtain external device data of the screen-projected device that is not connected to the server in the same local area network, where the external device data is device data of one or more screen-projected devices that are not connected to the server.
The user can only perform screen projection action after searching and connecting the screen projection equipment to screen projection, and the screen projection equipment actively searches and finds the screen projection equipment at present. The screen projection service is issued by the screen projection equipment in various modes; for example, screen-casting service modes such as two-dimensional code scanning, PIN code connection, mDNS search, NFC touch, and the like, require that the screen-casting device also needs to support multiple device discovery modes corresponding to the screen-casting service. When a plurality of screen projection devices exist in the local area network, the screen projection devices need to be connected with the screen projection devices respectively in a discovery mode supported by the screen projection devices, and the connection process is complex.
In this embodiment, when the screen projection device in the same local area network issues the screen projection service, the screen projection device also has the search capability of the screen projection service, and the screen projection device can also search other screen projection devices that can project the screen and upload the searched device data of the screen projection device to the server. The screen-projected devices in the same local area network may be devices produced by the same manufacturer or devices produced according to the same standard, and there is a possibility that the screen-projected devices do not establish a connection with the server. Therefore, the connected screen projection device connected with the server is connected with the screen projection device which is not connected with the server in the same local area network, and external device data of the screen projection device which is not connected with the server in the same local area network are obtained, wherein the external device data are device data of one or more screen projection devices which are not connected with the server. And the device data of one or more projected screen devices which are not connected with the server side are sent to the server side through the projected screen devices connected with the server side.
The server can be a gateway of a local area network or a server corresponding to the screen projection equipment; and when the server side is the gateway, the screen projected equipment which is connected with the gateway sends the equipment data of the screen projected equipment which is not connected with the gateway to the gateway. After receiving the device data of the screen projected device which is not connected with the gateway, the gateway can be directly connected with the screen projected device through the local area network; or when the screen projection equipment receives the equipment data list, the screen projection equipment is selected, and the screen projection equipment can be directly connected with the gateway and used for screen projection of the screen projection equipment. When the server side is a server corresponding to the brand of the screen projected equipment in the same local area network, the screen projected equipment corresponding to the same brand is connected with the server side; and the screen projection equipment connected with the server side sends the equipment data of other screen projection equipment which is not connected with the server side in the same local area network to the server side. After the device data of other screen-projected devices which are not connected with the server side in the same local area network are sent to the server side, the screen-projected devices can directly acquire the device data of other brands of screen-projected devices after being connected with the server side through the screen-projected devices corresponding to the brands.
The data sending module 120 is configured to send the local device data and the external device data to the server, so that the server generates a device data list according to the external device data and the local device data.
And sending the local device data and the connection device data to the server so that the server can generate a device data list according to the connection device data and the local device data. The external device data is the device data of one or more projected screen devices which are not connected with the server side.
Preferably, the local device data includes: at least one of a local device ip address, a service port, a device name, a device identifier, a screen projection service identifier, and connected WiFi data. The connection device data may also be at least one of an ip address, a service port, a device name, a device identifier, a screen projection service identifier, and connected WiFi data. And after receiving the local equipment data and the connection equipment data, the server generates an equipment list. And the server can obtain the device list corresponding to the local area network through the ip address of the local device, the service port, the device name, the device identifier, the screen projection service identifier and the connected WiFi data.
The connection module 130 is configured to receive a connection request of the screen projection device, and establish a connection with the screen projection device according to the connection request.
The screen projection device can issue the screen projection service outwards, a screen projection request is sent to the screen projection device when the screen projection device needs to project a screen, and the screen projection device is connected with the screen projection device after receiving the screen projection request.
Preferably, referring to fig. 7, the connection module 130 further includes: a request obtaining unit 131, configured to receive a connection request sent by a screen projection device through a screen projection device that is not connected to a server; or receiving a connection request sent by the screen projection equipment.
A request obtaining unit 131, configured to receive a connection request sent by a screen projection device through a screen projection device that is not connected to a server; that is, when the screen-thrown device which is not connected with the server is connected with the screen-thrown device in the same local area network, the screen-throwing device sends a screen-throwing request to the screen-thrown device which is connected with the server through the screen-thrown device which is not connected with the server, and the screen-thrown device which is connected with the server is connected with the screen-throwing device through the screen-thrown device which is not connected with the server.
Or, receiving a connection request sent by the screen projection equipment; namely, the screen projection equipment directly sends a screen projection request to the screen projection equipment connected with the server side, and the screen projection equipment connected with the server side directly receives the connection request of the screen projection equipment and directly establishes connection with the screen projection equipment.
And the screen projection device connecting module 140 is configured to obtain the device data list through the server, send the device data list to the screen projection device, and establish screen projection connection between the screen projection device and any one of the plurality of screen projection devices in the same local area network through the device data list.
After receiving a connection request of screen projection equipment, screen projection equipment connected with a server side acquires an equipment data list from the server side, and sends the equipment data list to the screen projection equipment through the screen projection equipment which is connected with the screen projection equipment and is not connected with the server side; or directly sending the device data list to the screen projection device. The screen projection device can establish screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list. And the screen projection equipment connected with the server establishes connection with the screen projection equipment which is not connected with the server in the same local area network, and after the interactive authentication is successful, the screen projection equipment connected with the screen projection equipment can work normally. And after the screen projection equipment receives the equipment list, the corresponding screen projection equipment in the equipment list can be connected, and a user only needs to select the corresponding screen projection equipment interface to project the screen without being connected with the screen projection equipment in a discovery mode supported by the screen projection equipment. Therefore, the technical problem that when a plurality of screen projection devices exist in a local area network, the screen projection devices need to be connected with the screen projection devices respectively in a finding mode supported by the screen projection devices, and the connection process is complex in the prior art is solved.
Preferably, the screen projection device connection module 140 further includes:
a device data list obtaining unit 141, configured to obtain the device data list through the server.
And sending a data list acquisition request to the server, wherein the list acquisition request contains the screen-projected device data, so that the server can match the device data with a corresponding device data list in the same local area network through the device data and send the data list to the screen-projected device.
And the judging unit 142 is configured to judge whether a connection is established with the corresponding screen-projected device in the device data list.
After the screen projection device receives the data list, whether other screen projection devices connected with the screen projection device are connected with the screen projection device is judged, namely whether the screen projection device matched with the data list can be normally used is judged.
A deleting unit 143, configured to delete device data corresponding to the unconnected screen-projected device from the device data list.
After connection authentication is carried out on other screen projection equipment, equipment data which are not connected with the screen projection equipment are deleted, namely, the screen projection equipment is ensured to be directly connected with equipment which is normally used in the local area network through an equipment data list.
The device data list sending unit 144 is configured to send a device data list to the screen projection device as a latest data list, and the screen projection device can connect through the screen projection device corresponding to the device data list.
The device data list sent to the screen projection device is the latest data list, and the screen projection device can be connected through the screen projection device corresponding to the device data list.
The screen projection device can be stably connected with the corresponding screen projected device in the device data list, and all the screen projected devices in the local area network can be obtained by the screen projection device only by establishing connection with one screen projected device. The user can perform screen projection only by selecting the equipment corresponding to the data list.
Certainly, after the screen projection device is connected to the screen projection device in the local area network, the device data of the screen projection device can be acquired; the screen projection equipment can be directly connected with the server side and sends the screen projection data to the server side, so that the server side can conveniently acquire an equipment list corresponding to the equipment list through the equipment data and can be directly connected with other screen projection data through acquiring the data list; after the server receives the device data, the server sends a device connection request to the screen projection device in the local area network corresponding to the device data, so that the screen projection device directly sends the connection request to the screen projection device or establishes connection with the screen projection device, and the screen projection device directly selects the corresponding screen projection device to project a screen.
Preferably, the screen-casting device service agent discovery apparatus 100 further includes:
and the search request unit 150 is configured to issue a service search request to the outside, and is configured to establish a connection with a screen-thrown device that is not connected to the server side in the same local area network.
In this embodiment, when the screen projection device in the same local area network issues the screen projection service, the screen projection device also has the search capability of the screen projection service, and the screen projection device can also search other screen projection devices that can project the screen and upload the searched device data of the screen projection device to the server. During specific implementation, mutual authentication is carried out between the projected screen devices connected in the same local area network, and corresponding authentication protocols can be adopted for mutual authentication between the projected screen devices, so that the projected screen devices of two different brands can be connected with each other when being in the same local area network.
An embodiment of the present invention further provides a computer device, including: a processor, a memory, and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the screen projection equipment service agent discovery program stored in the memory so as to realize the following steps:
step S101, connection is established with the screen projected equipment which is not connected with the server side in the same local area network, and external equipment data of the screen projected equipment which is not connected with the server side in the same local area network are obtained, wherein the external equipment data are the equipment data of one or more screen projected equipment which is not connected with the server side.
And S102, sending the local equipment data and the external equipment data to the server for the server to generate an equipment data list according to the external equipment data and the local equipment data.
And step S103, receiving a connection request of the screen projection equipment, and establishing connection with the screen projection equipment according to the connection request.
And step S104, acquiring the device data list through the server, and sending the device data list to the screen projection device, wherein the screen projection device is used for establishing screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list.
Alternatively, the steps performed may be replaced with steps S201 to S205.
Since the detailed description has been given to the implementation process of the service agent discovery method for the screen projection device in the first embodiment, details are not described in this embodiment.
The projected screen device in this embodiment includes, but is not limited to, a mobile phone, a smart phone, a tablet computer, a personal computer, a projector, a projection curtain wall, and other electronic devices with a display component.
An embodiment of the present invention further provides a computer-readable storage medium storing a screen-casting device service agent discovery method, which when executed by at least one processor, causes the at least one processor to perform the following steps:
step S101, connection is established with the screen projected equipment which is not connected with the server side in the same local area network, and external equipment data of the screen projected equipment which is not connected with the server side in the same local area network are obtained, wherein the external equipment data are the equipment data of one or more screen projected equipment which is not connected with the server side.
And S102, sending the local equipment data and the external equipment data to the server for the server to generate an equipment data list according to the external equipment data and the local equipment data.
And step S103, receiving a connection request of the screen projection equipment, and establishing connection with the screen projection equipment according to the connection request.
And step S104, acquiring the device data list through the server, and sending the device data list to the screen projection device, wherein the screen projection device is used for establishing screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list.
Alternatively, the steps performed may be replaced with steps S201 to S205.
Since the detailed description has been given to the implementation process of the service agent discovery method for the screen projection device in the first embodiment, details are not described in this embodiment.
The projected screen device in this embodiment includes, but is not limited to, a mobile phone, a smart phone, a tablet computer, a personal computer, a projector, a projection curtain wall, and other electronic devices with a display component.
In summary, the invention discloses a method, a device, equipment and a readable storage medium for discovering a service agent of screen projection equipment, and relates to the technical field of screen projection. The method comprises the following steps: establishing connection with the screen projected equipment which is not connected with the server side in the same local area network, and acquiring external equipment data of the screen projected equipment which is not connected with the server side in the same local area network; sending the local equipment data and the external equipment data to a server; receiving a connection request of screen projection equipment, and establishing connection with the screen projection equipment according to the connection request; and acquiring the equipment data list through the server, and sending the equipment data list to the screen projection equipment. The screen projection device selects the screen projected device corresponding to the device data list to project the screen, so that the technical problem that when a plurality of screen projected devices exist in a local area network in the prior art, the screen projected devices need to be connected with the screen projected devices respectively in a finding mode supported by the screen projected devices, and the connection process is complex is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

Claims (10)

1. A screen projection device service agent discovery method is applied to a screen projection device which is connected with a server side and is any one of a plurality of screen projection devices in the same local area network, and is characterized by comprising the following steps:
establishing connection with a screen projected device which is not connected with a server side in the same local area network, and acquiring external device data of the screen projected device which is not connected with the server side in the same local area network, wherein the external device data is device data of one or more screen projected devices which are not connected with the server side;
sending the local equipment data and the external equipment data to a server for the server to generate an equipment data list according to the external equipment data and the local equipment data;
receiving a connection request of screen projection equipment, and establishing connection with the screen projection equipment according to the connection request;
and acquiring the device data list through the server, and sending the device data list to the screen projection device, so that the screen projection device establishes screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list.
2. The method for discovering the service agent of the screen projection device according to claim 1, wherein the step of receiving the connection request of the screen projection device specifically comprises:
receiving a connection request sent by screen projection equipment through screen projection equipment which is not connected with a server side;
or receiving a connection request sent by the screen projection equipment.
3. The method for discovering the service agent of the screen projection device according to claim 1, wherein before the step of establishing connection with the screen projection device which is not connected with the service end in the same local area network, the method further comprises the following steps:
and issuing a service search request outwards for establishing connection with the screen projection device which is not connected with the service end in the same local area network.
4. The method for discovering the service agent of the screen-casting device according to claim 1, wherein the local device data comprises at least one of a local device ip address, a service port, a device name, a device identifier, a screen-casting service identifier, and connected WiFi data.
5. The method for discovering screen-casting device service agent according to claim 1, after the step of obtaining the device data list through the server, and before the step of sending the device data list to the screen-casting device, further comprising:
and judging whether the connection is established with the corresponding screen projected equipment in the equipment data list, and deleting the equipment data corresponding to the unconnected screen projected equipment from the equipment data list.
6. The method for discovering a service agent of a screen-casting device according to claim 1, wherein before the step of obtaining the device data list through the server, the method further comprises:
and sending a list request to a server, wherein the list request comprises local equipment data.
7. A device for discovering service agents of screen projection equipment is characterized by comprising:
the device data acquisition module is used for establishing connection with the screen projected device which is not connected with the server side in the same local area network and acquiring external device data of the screen projected device which is not connected with the server side in the same local area network, wherein the external device data is the device data of one or more screen projected devices which are not connected with the server side;
the data sending module is used for sending the local equipment data and the external equipment data to the server so that the server can generate an equipment data list according to the external equipment data and the local equipment data;
the connection module is used for receiving a connection request of the screen projection equipment and establishing connection with the screen projection equipment according to the connection request;
and the screen projection device connecting module is used for acquiring the device data list through the server and sending the device data list to the screen projection device, so that the screen projection device establishes screen projection connection with any one of the plurality of screen projection devices in the same local area network through the device data list.
8. The device for service agent discovery of screen-casting equipment as claimed in claim 7, wherein said connection module further comprises:
the request acquisition unit is used for receiving a connection request sent by the screen projection equipment through the screen projection equipment which is not connected with the server side; or receiving a connection request sent by the screen projection equipment.
9. A computing device, comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a screen-casting device service agent discovery program stored in the memory to implement the method steps of any of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a screen casting device service agent discovery program which, when executed by at least one processor, implements the method steps of any of claims 1 to 6.
CN202011615072.9A 2020-12-30 2020-12-30 Screen projection equipment service agent discovery method, device, equipment and readable storage medium Active CN112565461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011615072.9A CN112565461B (en) 2020-12-30 2020-12-30 Screen projection equipment service agent discovery method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011615072.9A CN112565461B (en) 2020-12-30 2020-12-30 Screen projection equipment service agent discovery method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112565461A CN112565461A (en) 2021-03-26
CN112565461B true CN112565461B (en) 2022-04-08

Family

ID=75034784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011615072.9A Active CN112565461B (en) 2020-12-30 2020-12-30 Screen projection equipment service agent discovery method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112565461B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507517A (en) * 2021-07-07 2021-10-15 北京字节跳动网络技术有限公司 Screen projection equipment discovery method and device, electronic equipment and storage medium
CN113873684A (en) * 2021-09-13 2021-12-31 Oppo广东移动通信有限公司 Connection establishing method and device based on local area network, terminal equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743220A (en) * 2017-10-24 2018-02-27 西安万像电子科技有限公司 The method, apparatus of condition prompting moves on to screen system with
CN109905527A (en) * 2017-12-07 2019-06-18 北京雷石天地电子技术有限公司 Throw screen method and system
CN108989879B (en) * 2018-08-28 2021-06-15 广州视源电子科技股份有限公司 Screen projection control method, device and system
CN111669424B (en) * 2019-09-29 2023-05-02 深圳乐播科技有限公司 Screen projection connection method, device and system and electronic equipment
CN112019900A (en) * 2020-10-19 2020-12-01 深圳乐播科技有限公司 DLNA (digital Living network alliance) -based screen projection method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN112565461A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
JP6101861B2 (en) Group creation method, group withdrawal method, apparatus, program, and recording medium
CN112565461B (en) Screen projection equipment service agent discovery method, device, equipment and readable storage medium
WO2015000397A1 (en) User login methods,devices,and systems
CN104702665A (en) Information sharing method and information sharing device
US10194047B2 (en) Information processing device and non-transitory recording medium
US20150092601A1 (en) Communication Apparatus
CN110381160B (en) Communication information interaction method and device, storage medium and computer equipment
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
JP2016054391A (en) Information processing device, control method of information processing device, and program
CN113507517A (en) Screen projection equipment discovery method and device, electronic equipment and storage medium
CN105959188B (en) Method and device for controlling user terminal to be on-line
US9485203B2 (en) Method and system for attaching scanned documents to email replies via a mobile communications device
CN104158854B (en) Resource share method and device
JP6408690B2 (en) Near-field discovery method, user equipment, and storage medium
JP6188968B2 (en) Application starting method, apparatus, program, and recording medium
US20170272477A1 (en) Conference system, connection control device and connection control method
CN113259942B (en) Connection method, connection device, electronic equipment, connection system and computer-readable storage medium
CN105450867A (en) Communication method and device based on picture information
JP2007066061A (en) Data transmitter, receiver, transmission system, reception system, method, and terminal apparatus
CN111459571A (en) Configuration method, processing method and device
US20130097228A1 (en) Network storage system, data manipulation method in network storage system, storage device and computer program product for controlling client device
US9635150B2 (en) Communication apparatus, control method therefor, and program
US9288833B2 (en) Communication apparatus and control method thereof
CN111132131A (en) Number copying method, terminal and storage medium
CN105100629A (en) Image processing method and electronic 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