Control method and system for following screen projection, screen projection source equipment and storage medium
By identifying the main screen-casting device in the screen-casting system and using P2P continuous group monitoring of signal strength, the system automatically switches screen-casting to the device with the strongest signal, solving the problem of discontinuous screen-casting while the user is moving, and improving operational efficiency and user experience.
Patent Information
- Application Number
- CN202511739448.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies cannot achieve screen mirroring that follows the user's movement, forcing the user to re-mirror the device while moving, increasing equipment costs and reducing operational efficiency and viewing experience.
By identifying the main screen-casting device in the same scenario and utilizing Miracast connection and P2P continuous group, the signal strength of the following devices is monitored, and the screen-casting is automatically switched to the target device with the strongest signal for playback.
It enables automatic switching of screen projection to the nearest device while the user moves, improving operational efficiency and user viewing experience, and reducing equipment costs.
Smart Images

Figure CN121644859A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of follow-up projection technology, and particularly relates to a follow-up projection control method and system, a projection source device and a computer readable storage medium. BACKGROUND
[0002] With the continuous progress and development of network interconnection technology, the importance of projection technology in various application scenarios is increasingly prominent. Whether it is a business meeting, education and training or home entertainment, projection technology provides great convenience for users.
[0003] However, at present, in the field of projection, the technology of follow-up projection has not been widely applied and implemented. So-called follow-up projection is that the user's projection picture can be projected onto different devices according to the user's movement, which is convenient for the user to watch. The lack of this technology makes the user have to re-project with the television in the bedroom when moving from the living room to the bedroom, which not only increases the cost of the device, but also reduces the operation efficiency and the user's viewing experience.
[0004] Therefore, the prior art still needs to be improved and developed. SUMMARY
[0005] The main purpose of the present application is to provide a follow-up projection control method and system, a projection source device and a computer readable storage medium, which aims to solve the problem that the prior art cannot follow the user's movement for projection, reducing the user's viewing experience.
[0006] To achieve the above purpose, the present application provides a follow-up projection control method, which comprises the following steps: determining a projection master device under the same scene, and after the projection source device establishes a Miracast projection connection with the projection master device, projecting source device data to the projection master device for playing; When the projection source device moves, monitor a plurality of follow-up projection devices, and determine a target follow-up projection device with a follow-up device intensity greater than a maximum adjacent device intensity among the plurality of follow-up projection devices; The projection source device disconnects the connection with the projection master device, and switches the source device data to the target follow-up projection device for playing.
[0007] Optionally, the follow-up projection control method, wherein the determination of a projection master device under the same scene further comprises: The projection master device creates a P2P persistent group, and sets the SSID, channel and IP address of the P2P persistent group; The screen projection master device and all the following screen projection devices start a listening mode of wireless network driver, listen to wireless network packets sent by all the communicating devices under the channel of the P2P persistent group, and read the complete communication data in the wireless network packets; If the following screen projection device listens to a P2P beacon frame, and the SSID is the SSID of the P2P persistent group, the P2P beacon frame is the information of the P2P persistent group created by the screen projection master device, records the MAC address of the wireless network packet, and sends the same P2P beacon frame outward using the MAC address.
[0008] Optionally, the screen projection following control method, wherein the screen projection source device is moved, and the following screen projection devices are monitored, and then the method further comprises: According to the listened P2P beacon frame, the maximum adjacent device strength of each following screen projection device is calculated wherein, represents taking the maximum value, represents the signal strength of the P2P beacon frame sent by the i-th following device. n
[0009] Optionally, the screen projection following control method, wherein the maximum adjacent device strength of each following screen projection device is calculated, and then the method further comprises: The screen projection master device obtains the wireless network packet sent by the screen projection source device every preset time, and calculates the average value as the master device following strength every preset number of signal strengths wherein, represents the signal strength of the i-th wireless network packet sent by the screen projection source device.
[0010] Optionally, the screen projection following control method, wherein the maximum adjacent device strength of each following screen projection device is calculated, and then the method further comprises: Each following screen projection device listens to the channel of the P2P persistent group, obtains the wireless network packet of the type UDP, the target IP is the IP address of the P2P persistent group, and the target port is a predetermined number, obtains one wireless network packet every preset time, records the signal strength, and calculates the average value as the following device following strength every preset number of signal strengths wherein, Indicates the record number The signal strength of the wireless network packet.
[0011] Optionally, the control method for following screen projection, wherein when the projection source device moves, monitoring multiple following screen projection devices and identifying a target following screen projection device among the multiple following screen projection devices whose following intensity is greater than that of the nearest neighbor device, specifically includes: When the projection source device moves, the distance between the multiple following projection devices and the projection source device is monitored; For all screen-sharing devices, determine the tracking strength of all screen-sharing devices. respectively with the strength of the nearest neighboring equipment Compare and determine the following strength of the following device. Greater than the strength of the nearest neighboring equipment The target follows the projection device.
[0012] Optionally, the control method for following screen projection further includes: When the target is following the projection device and is playing a projection video, if the projection source device moves, for the projection master device, if the master device's following strength... Greater than the strength of the nearest neighboring equipment The source device data is then projected onto the main projection device for playback.
[0013] Furthermore, to achieve the above objectives, the present invention also provides a screen-sharing control system, wherein the screen-sharing control system includes: The initial screen casting module is used to identify a main screen casting device in the same scene. After the source screen casting device establishes a Miracast screen casting connection with the main screen casting device, the data from the source device is cast to the main screen casting device for playback. The intensity monitoring module is used to monitor multiple following projection devices when the projection source device moves, and to identify the target following projection device whose following intensity is greater than that of the nearest device among the multiple following projection devices. The screen casting switching module is used to disconnect the screen casting source device from the screen casting master device and switch the data of the source device to the target screen casting device for playback.
[0014] In addition, to achieve the above objectives, the present invention also provides a screen projection source device, wherein the screen projection source device includes: a memory, a processor, and a screen projection control program stored in the memory and executable on the processor, wherein when the screen projection control program is executed by the processor, it implements the steps of the screen projection control method as described above.
[0015] In addition, to achieve the above object, the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a follow-up screen projection control program, and the follow-up screen projection control program realizes the steps of the follow-up screen projection control method when executed by a processor.
[0016] In the application, one screen projection master device is determined in the same scene, a screen projection source device establishes a Miracast screen projection connection with the screen projection master device, and then the source device data is projected to the screen projection master device for playing; when the screen projection source device moves, a plurality of follow-up screen projection devices are monitored, and a target follow-up screen projection device is determined from the plurality of follow-up screen projection devices, in which the follow-up device has a follow-up strength greater than a maximum adjacent device strength; the screen projection source device disconnects the connection with the screen projection master device, and switches the source device data to the target follow-up screen projection device for playing. The application can realize the function of Miracast follow-up screen projection, can display the screen projection picture to the nearest device during the movement of the user, and achieve the effect of follow-up screen projection, thereby facilitating the user to watch. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is a flowchart of a preferred embodiment of the follow-up screen projection control method of the application; Figure 2 is a flowchart of the initialization of the master device and the follow-up device in the preferred embodiment of the follow-up screen projection control method of the application; Figure 3 is a flowchart of the follow-up screen projection in the preferred embodiment of the follow-up screen projection control method of the application; Figure 4 is a schematic diagram of the principle of a preferred embodiment of the follow-up screen projection control system of the application; Figure 5 is a schematic diagram of the running environment of a preferred embodiment of the screen projection source device of the application. DETAILED DESCRIPTION
[0018] In order to make the object, technical scheme and advantages of the application more clear and definite, the application is further described in detail below with reference to the drawings and examples. It should be understood that the specific examples described herein are only used to explain the application, and are not used to limit the application.
[0019] Explanation or definition of related terms in the application: P2P Persistent Group: P2P persistent group, refers to creating a permanent P2P group, and subsequent P2P connection can use this group without creating a new group.
[0020] P2P Beacon frame: P2P beacon frame, which is sent by a device establishing a P2P persistent group every certain period of time (usually 100 ms), and which carries the relevant information of the P2P persistent group according to the requirements of the P2P protocol.
[0021] Screen projection source device: refers to a device that needs to share a screen, such as a mobile phone, a computer, a tablet, etc., which serves as a video data source when screen projection and is projected onto a screen projection master device.
[0022] Screen projection master device: refers to a device that leads and organizes the entire screen projection action, such as a television or a projector, and there can be only one screen projection master device in a screen projection scenario.
[0023] Follow-up screen projection device: refers to a device that automatically plays the screen projection video data of a source device when the source device is close, such as a television or a projector, and there can be multiple follow-up screen projection devices in a screen projection scenario.
[0024] The follow-up screen projection control method described in the preferred embodiment of the present application, as shown in Figure 1 , Figure 2 and Figure 3 , includes the following steps: Step S10: determining a screen projection master device in the same scene, and after a screen projection source device establishes a Miracast screen projection connection with the screen projection master device, projecting source device data to the screen projection master device for playing.
[0025] Specifically, in the same scene, a device is first selected as a screen projection master device, and there can be only one screen projection master device in a scene, for example, a user's home has a bedroom, a living room, and a secondary bedroom with three playing devices, and the user wants to realize follow-up screen projection among the three devices, so one of the three devices must be and only be the screen projection master device (which is preset by the user and can be specified according to the use, that is, the screen projection source device first establishes a connection with the screen projection master device, if a person starts screen projection in the living room, the device in the living room can be set as the screen projection master device, and if a person starts screen projection in the bedroom, the device in the bedroom can be set as the screen projection master device).
[0026] After the screen projection master device is selected, the screen projection source device establishes a Miracast screen projection connection with the screen projection master device (Miracast is a standard wireless display technology that allows seamless and complete mirroring of the screen content of a mobile phone, a tablet computer, or a computer to a television, a projector, or other display devices), and then projects source device data to the screen projection master device for playing.
[0027] As shown in Figure 2As shown, the screen projection master device creates a P2P persistent group (i.e. P2P Persistent Group), and sets the SSID, channel and IP address of the P2P persistent group, for example, fixes the SSID of P2P Persistent Group as DIRECT_KK_FOLLOWCAST, the channel as 2.4G 6 channel, and fixes the IP address of P2P as 192.168.49.50, wherein the format of the SSID needs to meet the P2P protocol requirements, DIRECT_XX_ at the beginning, wherein XX is a capital letter or a number, a special value is defined here to facilitate distinguishing other P2P screen projection devices; the channel is 2.4G 6 channel which has good compatibility and can be compatible with different modules; the address segment of 192.168.49.x of the IP address is generally used more by Android P2P screen projection, and is not easy to conflict with home routers or other network devices.
[0028] As shown in Figure 2 and Figure 3 As shown, the screen projection master device and all follow-up screen projection devices start the listening mode (monitor mode, a special mode provided by a wireless network card, which can receive and listen to all wireless transmission data on a certain channel, and in the normal mode, only receives and listens to the data sent by the connected router) of the wireless network driver, listens to all the wireless network packets sent by the devices in communication under the channel (for example, 2.4G 6 channel) of the P2P persistent group, and reads the complete communication data (including IP address, MAC address, and TCP, IP, and MAC layer data) in the wireless network packet.
[0029] For all follow-up screen projection devices that are not screen projection master devices, if the follow-up screen projection device listens to the P2P beacon frame (i.e. P2P Beacon frame), and the SSID is the SSID of the P2P persistent group (i.e. the corresponding P2P Persistent Group SSID is DIRECT_KK_FOLLOWCAST), then the P2P beacon frame is the information (i.e. P2P Persistent Group information) of the P2P persistent group created by the screen projection master device, records the MAC address of the wireless network packet, and uses the MAC address to send the same P2P beacon frame (i.e. P2P Beacon frame data) outward.
[0030] Step S20, when the screen projection source device moves, monitor a plurality of follow-up screen projection devices, and determine a target follow-up screen projection device in the plurality of follow-up screen projection devices, wherein the follow-up device has a follow-up strength greater than a maximum adjacent device strength.
[0031] Specifically, when the projection source device moves, multiple following projection devices are monitored, and the maximum proximity device strength of each following projection device is calculated based on the monitored P2P beacon frames. (Unit: dB); Because during the initialization process, the P2P Beacon frame information with P2P Persistent Group SSID DIRECT_KK_FOLLOWCAST is copied by multiple non-master screen-sharing devices and sent using the same MAC address, all following screen-sharing devices may be able to listen to multiple identical P2P Beacon frames from different sources. The maximum value among them is... If P2P Beacon frames cannot be detected, then It is infinitesimal.
[0032] ; in, This indicates taking the maximum value. Indicates the number of times the signal was detected. n The signal strength of the P2P beacon frames sent by each follower device, and so on, if n =0, meaning no P2P Beacon frames were detected following the screen-sharing device. It is negative infinity.
[0033] The main device receives wireless network packets sent by the source device every preset time interval (e.g., 100ms), and calculates the average value of the received signal strength packets as the main device's tracking strength. (Unit: dB): ; in, This indicates the first message sent by the screen mirroring source device. The signal strength of the wireless network packet.
[0034] Each following projection device listens to the channel of the P2P persistent group (e.g., 2.4G channel 6), acquires wireless network packets of type UDP (User Datagram Protocol), with the destination IP being the IP address of the P2P persistent group (e.g., 192.168.49.50) and the destination port being a predetermined number (e.g., 20000). It acquires one wireless network packet every preset time interval (e.g., 100ms), records the signal strength, and calculates the average value as the following strength for every preset number (e.g., 10) of signal strengths acquired. (Unit: dB): ; wherein, indicates the signal strength of the recorded first wireless network packet.
[0035] When the screen projection source device moves, the distances between the plurality of following screen projection devices and the screen projection source device are monitored; for all the following screen projection devices, the following device following strength of all the following screen projection devices is compared with the maximum adjacent device strength respectively, to determine the target following screen projection device whose following device following strength is greater than the maximum adjacent device strength .
[0036] That is, for all the following screen projection devices, if > , the following screen projection device parses the content of the source device data, and the upper application plays the relevant content, and if ≤ , the following screen projection device does not parse the content of the source device data and does not play.
[0037] Further, when the target following screen projection device is in the process of screen projection playing, if the screen projection source device moves, for the screen projection master device, if the master device following strength is greater than the maximum adjacent device strength , the source device data is continued to be projected to the screen projection master device for playing.
[0038] That is, for the screen projection master device, if > , the screen projection master device parses the content of the source device data, and the upper application plays the relevant content, and if ≤ , the screen projection master device does not parse the content of the source device data and does not play.
[0039] Step S30, the screen projection source device disconnects the connection with the screen projection master device, and switches the source device data to the target following screen projection device for playing.
[0040] Specifically, if the screen projection source device moves to the vicinity of the nearest target following screen projection device after moving, indicating that the target following screen projection device is the nearest to the screen projection source device (i.e. the user) among all the following screen projection devices, then the screen projection source device needs to disconnect the connection with the screen projection master device at this time, so as to switch to the connection with the target following screen projection device, so that the source device data is switched to the target following screen projection device for playing, facilitating the user to watch.
[0041] If the subsequent screen projection source device moves again, for example, the screen projection source device moves to the vicinity of the screen projection master device again, when the screen projection source device is closer to the screen projection master device than other follow-up screen projection devices, the screen projection source device can continue to switch back to screen projection with the screen projection master device.
[0042] The following is described with an actual example: For example, there are three televisions in the living room, master bedroom and secondary bedroom, among which the television in the living room is the screen projection master device (hereinafter referred to as the living room device), and the devices in the master bedroom and secondary bedroom are follow-up screen projection devices (hereinafter referred to as the master bedroom device and the secondary bedroom device).
[0043] The living room device starts a P2P Persistent Group, all devices start a monitor mode, and the master bedroom device and the secondary bedroom device can receive the P2P Beacon frame of the screen projection master device as the follow-up screen projection devices, so the master bedroom device and the secondary bedroom device copy the P2P Beacon frame and send it to the living room device.
[0044] Calculate the maximum adjacent device strength: under the above conditions, the living room device can receive the P2P Beacon frame copied and sent by the master bedroom and secondary bedroom devices, and the signal strength of the master bedroom device monitored is -45db, and the signal strength of the secondary bedroom device is -55db, so for the living room device, the maximum adjacent device strength is =-45db. Similarly, the maximum adjacent device strength of the master bedroom and secondary bedroom devices can be calculated, which is omitted here, and the result is assumed to be Sm=-45db for the master bedroom device and Sm=-50db for the secondary bedroom device.
[0045] The user establishes a screen projection connection with the living room device in the living room, at this time the network packet signal strength received by the living room device is -30db (because the person is in the living room, so it is relatively large), so the follow-up strength =-30db, At this time, the living room device analyzes the content of the source device data, and the upper application plays the relevant content.
[0046] When the user enters the master bedroom from the living room: For the living room device, at this time the received network packet signal strength is -50db (because the person is in the master bedroom, so the signal strength will be lower than before, and lower than the P2P Beacon frame signal strength sent by the master bedroom device), so =-50db, a≤ At this time, the living room device does not analyze the content of the source device data and does not play.
[0047] For the master bedroom device, at this time the monitored network packet signal strength is -30db, so =-30db, > At this point, the main bedroom device parses the data from the source device, and the upper-level application plays the relevant content.
[0048] At this point, the projected image has been successfully switched from the living room to the master bedroom.
[0049] When the present invention performs follow-up casting, the casting source device first initiates the casting connection and projects the video onto the casting host device. When a person moves while holding the casting source device, the devices can determine the nearest follow-up casting device. The corresponding follow-up casting device automatically maintains the connection and plays video data, achieving the effect of follow-up casting. This enables efficient Miracast casting to multiple devices at once, and the upper limit of the castable devices is not affected by bandwidth, reducing equipment costs and improving operational efficiency.
[0050] Furthermore, such as Figure 4 As shown, based on the above-described control method for screen mirroring, the present invention also provides a control system for screen mirroring, wherein the control system for screen mirroring includes: The initial screen casting module 51 is used to determine a screen casting master device in the same scene. After the screen casting source device establishes a Miracast screen casting connection with the screen casting master device, the data of the source device is cast to the screen casting master device for playback. Intensity monitoring module 52 is used to monitor multiple following projection devices when the projection source device moves, and to identify a target following projection device whose following intensity is greater than the intensity of the nearest device among the multiple following projection devices. The screen casting switching module 53 is used to disconnect the screen casting source device from the screen casting master device and switch the data of the source device to the target screen casting device for playback.
[0051] Furthermore, such as Figure 5 As shown, based on the above-described control method and system for screen projection, the present invention also provides a screen projection source device, which includes a processor 10, a memory 20, and a display 30. Figure 5 Only some components of the projection source device are shown. However, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0052] In some embodiments, the memory 20 may be an internal storage unit of the projection source device, such as a hard drive or memory of the projection source device. In other embodiments, the memory 20 may be an external storage device of the projection source device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the projection source device. Further, the memory 20 may include both internal and external storage units of the projection source device. The memory 20 is used to store application software and various types of data installed on the projection source device, such as the program code installed on the projection source device. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores a projection-following control program 40, which can be executed by the processor 10 to implement the projection-following control method of this application.
[0053] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 20 or process data, such as executing the control method for following screen projection.
[0054] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information from the projection source device and to display a visual user interface. The components 10-30 of the projection source device communicate with each other via a system bus.
[0055] In one embodiment, when the processor 10 executes the control program 40 for screen projection in the memory 20, the following steps are performed: In the same scenario, a main screen casting device is identified. After the source screen casting device establishes a Miracast screen casting connection with the main screen casting device, the data from the source device is cast to the main screen casting device for playback. When the projection source device moves, multiple following projection devices are monitored, and a target following projection device with a following intensity greater than that of the nearest device is identified among the multiple following projection devices. The source device disconnects from the main device and switches the source device data to the target device for playback.
[0056] The method further comprises: The screen projection master device creates a P2P persistent group, and sets SSID, channel and IP address of the P2P persistent group; The screen projection master device and all following screen projection devices start a listening mode of wireless network driver, listen to wireless network packets sent by all devices in communication under the channel of the P2P persistent group, and read complete communication data in the wireless network packets; If the following screen projection device listens to a P2P beacon frame, and SSID is the SSID of the P2P persistent group, the P2P beacon frame is information of the P2P persistent group created by the screen projection master device, records a MAC address of the wireless network packet, and sends the same P2P beacon frame outward by using the MAC address.
[0057] The method further comprises: According to the listened P2P beacon frame, the maximum adjacent device strength of each following screen projection device is calculated Wherein, represents taking the maximum value, represents signal strength of the P2P beacon frame sent by the i-th following device. n The method further comprises:
[0058] The screen projection master device obtains wireless network packets sent by the screen projection source device every preset time, and calculates an average value as the master device following strength every preset number of signal strengths Wherein, represents signal strength of the i-th wireless network packet sent by the screen projection source device. The method further comprises:
[0059] Each following screen projection device listens to the channel of the P2P persistent group, obtains wireless network packets of a type of UDP and a target IP of an IP address of the P2P persistent group and a target port of a predetermined number, obtains a wireless network packet every preset time, records signal strength, and calculates an average value as the following device following strength every preset number of signal strengths ; wherein, indicates the signal strength of the recorded first wireless network packet.
[0060] When the screen projection source device moves, the distances between the plurality of screen projection following devices and the screen projection source device are monitored. When the screen projection source device moves, the distances between the plurality of screen projection following devices and the screen projection source device are monitored. For all screen projection following devices, the following device following strength of all screen projection following devices is compared with the maximum adjacent device strength. respectively, to determine the target screen projection following device whose following device following strength is greater than the maximum adjacent device strength. respectively, to determine the target screen projection following device whose following device following strength is greater than the maximum adjacent device strength. respectively, to determine the target screen projection following device whose following device following strength is greater than the maximum adjacent device strength. respectively, to determine the target screen projection following device whose following device following strength is greater than the maximum adjacent device strength.
[0061] The control method of the screen projection following further includes:When the target screen projection following device is in the process of screen projection playing, if the screen projection source device moves, for the screen projection master device, if the master device following strength is greater than the maximum adjacent device strength, the source device data is continued to be projected to the screen projection master device for playing.
[0062] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a control program of screen projection following, and the control program of screen projection following, when executed by a processor, implements the steps of the control method of screen projection following.
[0063] In summary, the application provides a control method, system, screen projection source device and storage medium of screen projection following, the method comprising: determining a screen projection master device in the same scene, after the screen projection source device and the screen projection master device establish a Miracast screen projection connection, projecting source device data to the screen projection master device for playing; when the screen projection source device moves, monitoring a plurality of screen projection following devices, and determining a target screen projection following device whose following device following strength is greater than the maximum adjacent device strength in the plurality of screen projection following devices; the screen projection source device disconnects the connection with the screen projection master device, and switches the source device data to the target screen projection following device for playing. The application can realize the function of Miracast screen projection following, can display the screen projection picture to the nearest device in the moving process, achieve the effect of screen projection following, and is convenient for users to watch.
[0064] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or casting source device that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or casting source device. Without further limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or casting source device that comprises the element.
[0065] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program. The program can be stored in a computer readable computer readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The computer readable storage medium can be a memory, a disk, an optical disk, etc.
[0066] It should be understood that the application is not limited to the above examples, and those skilled in the art can make improvements or changes according to the above description, and all these improvements and changes shall fall within the protection scope of the appended claims of the present application.
Claims
1. A control method for screen mirroring, characterized in that, The control method of the following projection includes: In the same scene, a projection master device is determined, and after the projection source device establishes a Miracast projection connection with the projection master device, the source device data is projected to the projection master device for playing; When the projection source device moves, a plurality of following projection devices are monitored, and a target following projection device is determined from the plurality of following projection devices, in which the following device has a following strength greater than a maximum adjacent device strength. The projection source device disconnects the connection with the projection master device, and switches the source device data to the target following projection device for playing. 2.The control method of the follow-up screen projection according to claim 1, In the same scene, a projection master device is determined, and after the projection master device establishes a Miracast projection connection with the projection master device, the source device data is projected to the projection master device for playing. The projection master device creates a P2P persistent group, and sets the SSID, channel and IP address of the P2P persistent group; The projection master device and all following projection devices start a listening mode of a wireless network driver, listen to wireless network packets sent by all devices in communication under the channel of the P2P persistent group, and read complete communication data in the wireless network packets; If the following projection device listens to a P2P beacon frame, and the SSID is the SSID of the P2P persistent group, the P2P beacon frame is information of the P2P persistent group created by the projection master device, the MAC address of the wireless network packet is recorded, and the same P2P beacon frame is sent outward using the MAC address. 3.The control method of the follow-up screen projection according to claim 2, When the projection source device moves, a plurality of following projection devices are monitored, and a target following projection device is determined from the plurality of following projection devices, in which the following device has a following strength greater than a maximum adjacent device strength. According to the P2P beacon frame, the maximum proximity device strength of each follow-up projection device is calculated : ; wherein, represents the maximum value, represents the signal strength of the P2P beacon frame transmitted by the n first following device that is monitored. 4.The control method of the follow-up screen projection according to claim 3, The maximum adjacent device strength of each following projection device is calculated, and the maximum adjacent device strength of each following projection device is calculated. The screen projection master device acquires wireless network packets sent by the screen projection source device every preset time, and calculates an average value of a preset number of signal strengths as a following strength of the master device every time : ; wherein, represents the signal strength of the acquired wireless network packet sent by the casting source device. represents the signal strength of the acquired wireless network packet sent by the casting source device. 5.The control method of the follow-up screen projection according to claim 4, characterized in that, The maximum adjacent device strength of each following projection device is calculated, and the maximum adjacent device strength of each following projection device is calculated. Each follow-up screen projection device listens to the channel of the P2P persistent group, acquires a wireless network packet of a type of UDP, a target IP of an IP address of the P2P persistent group, and a target port of a predetermined number, acquires one wireless network packet every preset time, records a signal strength, and calculates an average value as a follow-up device follow-up strength every time a preset number of signal strengths are obtained : ; wherein, represents the signal strength of the recorded first wireless network packet. 6.The control method of the follow-up screen projection according to claim 5, characterized in that, When the projection source device moves, a plurality of following projection devices are monitored, and a target following projection device is determined from the plurality of following projection devices, in which the following device has a following strength greater than a maximum adjacent device strength. When the projection source device moves, the distances between the plurality of following projection devices and the projection source device are monitored. For all follow-me casting devices, compare the follow-me device follow-me strength of all follow-me casting devices to the maximum proximate device strength, respectively, to determine a target follow-me casting device whose follow-me device follow-me strength is greater than the maximum proximate device strength . For all follow-me casting devices, compare the follow-me device follow-me strength of all follow-me casting devices to the maximum proximate device strength, respectively, to determine a target follow-me casting device whose follow-me device follow-me strength is greater than the maximum proximate device strength . 7.The control method of the follow-up screen projection according to claim 6, The control method of the following projection further includes: When the target follow projection device is in the process of projection playing, if the projection source device moves, for the projection master device, if the master device follow intensity is greater than the maximum adjacent device intensity , the source device data continues to be projected to the projection master device for playing.
8. A control system for following a projected screen, characterized by The control system of the following projection includes: An initial projection module is configured to determine a projection master device in the same scene, and after a projection source device establishes a Miracast projection connection with the projection master device, project source device data to the projection master device for playing; A strength monitoring module is configured to monitor a plurality of following projection devices when the projection source device moves, and determine a target following projection device from the plurality of following projection devices, in which the following device has a following strength greater than a maximum adjacent device strength. A projection switching module is configured to disconnect the projection source device from the connection with the projection master device, and switch the source device data to the target following projection device for playing.
9. A screen projection source device, comprising: The projection source device includes a memory, a processor, and a following projection control program stored on the memory and executable on the processor, and the following projection control program implements the steps of the following projection control method of any one of claims 1-7 when executed by the processor.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a follow projection control program, and the follow projection control program, when executed by the processor, implements the steps of the follow projection control method according to any one of claims 1-7.