Screen projection control method and device, terminal equipment and storage medium

CN122431568APending Publication Date: 2026-07-21WUHAN FENGQI INNOVATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WUHAN FENGQI INNOVATION TECHNOLOGY CO LTD
Filing Date
2026-03-12
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Without relying on the installation of dedicated software on the source device, existing technologies make it difficult to achieve precise reverse control of the source device by the receiving device, resulting in sluggish operation and inaccurate cursor positioning, which affects the user experience.

Method used

By establishing a Bluetooth connection, the target logical coordinates of the touch operation are obtained, a calibration command is sent to reset the cursor to the reference position, and the total displacement is decomposed into multiple micro-displacement commands, which are sent to the source device according to a predetermined sequence to achieve precise cursor movement.

Benefits of technology

Without relying on installing dedicated programs on the source device, it improves cursor positioning accuracy and control smoothness, ensures the convenience and precision of reverse control, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122431568A_ABST
    Figure CN122431568A_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of intelligent terminals, and provides a screen projection control method and device, a terminal equipment and a storage medium. The method comprises the following steps: establishing a Bluetooth connection with a source terminal; in response to a touch operation detected on a receiving terminal, obtaining a target logical coordinate corresponding to the touch operation; based on the Bluetooth connection, sending a calibration instruction to the source terminal, the calibration instruction being used to instruct the source terminal to reset a cursor to a reference position; determining a total displacement of the cursor from the reference position to a target position according to the target logical coordinate; decomposing the total displacement into a plurality of micro-displacement instructions; and based on the Bluetooth connection, sequentially sending the plurality of micro-displacement instructions to the source terminal according to a predetermined timing sequence, so that the source terminal controls the cursor to move from the reference position to the target position. The application can improve the cursor positioning accuracy and control fluency without relying on the installation of a special program on the source terminal, and realizes accurate reverse control of the receiving terminal on the source terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart terminal technology, and in particular to a screen projection control method, device, terminal equipment, and storage medium. Background Technology

[0002] Screen mirroring technology is widely used in various scenarios such as meetings, in-vehicle entertainment, and education. It typically involves projecting content from a source device (such as a mobile phone or tablet) to a receiving device (such as a conference tablet or smart TV) for display. To improve ease of use, users often need to control the source device from the receiving device, enabling precise operations such as clicking and swiping on the projected content to meet diverse needs such as meeting presentations, teaching demonstrations, and in-vehicle interaction.

[0003] However, in the current process of implementing reverse control of the source device by the receiving device, operation lag is prone to occur, making it difficult to achieve accurate and smooth reverse control, which affects the user experience.

[0004] Therefore, how to improve cursor positioning accuracy and control smoothness without relying on installing special programs on the source device, and to achieve accurate reverse control of the source device by the receiving device, is a problem that needs to be considered. Summary of the Invention

[0005] This application provides a screen projection control method, device, terminal equipment, and storage medium, which can improve cursor positioning accuracy and operation smoothness without relying on the installation of dedicated programs on the source device, and realize precise reverse control of the source device by the receiving device.

[0006] In a first aspect, embodiments of this application provide a screen projection control method, applied to a receiving device, the method comprising: Establish a Bluetooth connection with the source device; In response to a touch operation detected on the receiving device, the target logical coordinates corresponding to the touch operation are obtained; Based on the Bluetooth connection, a calibration command is sent to the source device, which instructs the source device to reset the cursor to the reference position. Based on the target logical coordinates, determine the total displacement of the cursor from the reference position to the target position, where the target position is the position corresponding to the target logical coordinates on the screen of the source device; The total displacement is decomposed into multiple micro-displacement commands, wherein the displacement of each micro-displacement command is within the linear threshold range of the source device's response to cursor movement. Based on the Bluetooth connection, the multiple micro-displacement commands are sent sequentially to the source device according to a predetermined timing sequence, so that the source device controls the cursor to move from the reference position to the target position.

[0007] In one possible implementation of the first aspect, establishing a Bluetooth connection with the source device includes: Scan and identify Bluetooth devices that match the identifier of the projection source device, and initiate a Bluetooth connection request to the matched Bluetooth device; Receive pairing request information from the matched Bluetooth device based on the Bluetooth connection request, and trigger Bluetooth pairing request broadcast; Intercept the Bluetooth pairing request broadcast; The pairing type corresponding to the Bluetooth pairing request broadcast is identified, and a preset pairing code is automatically injected according to the pairing type to complete the pairing confirmation.

[0008] In one possible implementation of the first aspect, obtaining the target logical coordinates corresponding to the touch operation includes: Obtain the device model information of the source device; Determine the logical resolution corresponding to the device model information; Obtain the original physical coordinates of the touch operation on the receiving device; The target logical coordinates are calculated based on the original physical coordinates, the logical resolution, and the display area parameters of the projected image on the receiving device.

[0009] In one possible implementation of the first aspect, sending the calibration command to the source device based on the Bluetooth connection includes: Construct a negative displacement and generate a boundary calibration command based on the negative displacement; Based on the Bluetooth connection, the boundary calibration command is sent to the source device in a loop to instruct the source device to block the cursor and stop it at the reference position when the cumulative displacement corresponding to the sent boundary calibration command is greater than the maximum screen resolution of the source device.

[0010] In one possible implementation of the first aspect, decomposing the total displacement into multiple micro-displacement commands includes: Based on the total displacement and the current remaining distance, the maximum available safe displacement value that is adapted to the current remaining distance is obtained from a preset step table. The preset step table contains multiple safe displacement values ​​within the linear threshold range. The current remaining distance is the amount of displacement that has not yet been completed between the current position of the cursor and the target position during the process of the cursor moving from the reference position to the target position. The total displacement is decomposed based on the maximum available safe displacement value obtained by matching, and the plurality of micro-displacement commands are generated.

[0011] In one possible implementation of the first aspect, the step of sequentially sending the plurality of micro-displacement commands to the source device according to a predetermined timing sequence based on the Bluetooth connection includes: Push the multiple micro-displacement instructions into an asynchronous queue; A single-threaded scheduler is started, and based on the Bluetooth connection, the micro-displacement command is retrieved from the asynchronous queue at fixed time intervals and sent to the source device.

[0012] In one possible implementation of the first aspect, the method further includes: During the process of sending the multiple micro-displacement commands to the source device, the actual movement position of the cursor is monitored; If the actual movement position of the cursor deviates from the expected trajectory, the total displacement is decomposed again based on the amount of displacement that has not yet been completed between the current position of the cursor and the target position when the deviation occurs, and a compensation micro-displacement command is generated and sent to the source device.

[0013] Secondly, embodiments of this application provide a screen projection control device, applied to a receiving device, comprising: Bluetooth connectivity unit, used to establish a Bluetooth connection with the source device; The target information acquisition unit is used to acquire the target logical coordinates corresponding to the touch operation in response to the touch operation detected on the receiving device; A cursor calibration unit is used to send a calibration command to the source device based on the Bluetooth connection. The calibration command is used to instruct the source device to reset the cursor to the reference position. The displacement information determination unit is used to determine the total displacement of the cursor from the reference position to the target position based on the target logical coordinates, wherein the target position is the position of the target logical coordinates on the screen of the source device; The displacement decomposition unit is used to decompose the total displacement into multiple micro-displacement commands, wherein the displacement of each micro-displacement command is within the linear threshold range of the source device's response to cursor movement. The control unit is configured to send the plurality of micro-displacement commands sequentially to the source device according to a predetermined timing sequence based on the Bluetooth connection, so that the source device controls the cursor to move from the reference position to the target position.

[0014] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the screen projection control method as described in the first aspect above.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the screen projection control method described in the first aspect above.

[0016] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the screen projection control method described in the first aspect above.

[0017] In this embodiment, a Bluetooth connection is established with the source device to achieve stable communication between the receiving device and the source device without requiring any dedicated software to be installed on the source device. The receiving device responds to the detected touch operation and obtains the corresponding target logical coordinates, accurately capturing the user's control intention and providing clear target guidance for cursor movement. Then, based on the established Bluetooth connection, a calibration command is sent to the source device, instructing the source device to reset the cursor to the reference position, eliminating positioning deviations caused by the uncertainty of the initial cursor position. The total displacement of the cursor from the reference position to the target logical coordinates is determined according to the target logical coordinates, clarifying the overall requirements for cursor movement and ensuring the targeted nature of displacement control. This total displacement is then decomposed into multiple micro-displacement commands whose displacement amounts are within the linear threshold range of the source device's response to cursor movement. This effectively avoids interference from the source device's response characteristics to cursor movement accuracy, significantly improving the accuracy of cursor positioning. Finally, based on the Bluetooth connection, multiple micro-displacement commands are sent sequentially according to a predetermined time sequence, ensuring the orderliness and stability of command transmission. This allows the source device to smoothly control the cursor to move to the target logical coordinates, avoiding problems such as control stuttering and delay caused by sudden command interruptions, and improving the smoothness of reverse control. In summary, this application's solution improves cursor positioning accuracy and control smoothness without relying on installing dedicated programs on the source device, enabling precise reverse control of the source device by the receiving device. This effectively meets users' needs for convenience and accuracy in reverse control across various screen projection scenarios, enhancing the user experience. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating the implementation of the screen projection control method provided in this application embodiment; Figure 2 This is a flowchart illustrating a specific implementation of step S101 in the screen projection control method provided in this application embodiment; Figure 3 This is a flowchart illustrating a specific implementation of the screen projection control method provided in this application for obtaining target logical coordinates. Figure 4 This is a flowchart illustrating a specific implementation of step S103 in the screen projection control method provided in this application embodiment; Figure 5 This is a flowchart illustrating a specific implementation of the screen projection control method provided in this application embodiment, which decomposes the total displacement. Figure 6 This is a flowchart illustrating a specific implementation of cursor movement monitoring in the screen projection control method provided in this application embodiment; Figure 7 This is a structural block diagram of the screen projection control device provided in the embodiments of this application; Figure 8 This is a schematic diagram of the terminal device provided in the embodiments of this application. Detailed Implementation

[0020] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0021] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0022] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0023] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0024] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0025] By way of example and not limitation, the screen projection control method provided in this application is applicable to various types of terminal devices that need to perform screen projection control. Specific terminal devices may include mobile phones, tablets, wearable devices, laptops, ultra-mobile personal computers (UMPCs), desktop computers, smart interactive screens, and servers, etc. This application does not impose any restrictions on the specific type of terminal device.

[0026] Figure 1 The implementation flow of the screen projection control method provided in this application embodiment is illustrated. The method flow includes steps S101 to S106, and the executing entity of this flow is the receiving device. The specific implementation principle of each step is as follows: Step S101: Establish a Bluetooth connection with the source device.

[0027] In screen mirroring control scenarios, the source device refers to the device that initiates the screen mirroring and provides the mirrored content, such as a smartphone, tablet, or personal computer. This source device runs a screen mirroring service and a cursor control system. The receiving device refers to the device that receives and displays the mirrored content, such as a smart TV, projector, or monitor. This receiving device runs a screen mirroring receiving application and reverse control functions.

[0028] Bluetooth connectivity is a short-range data communication link established based on Bluetooth wireless communication technology. It is used to transmit control commands and data between the receiving device and the source device. It is usually implemented based on the Bluetooth HID (Human Interface Device) protocol, which allows the device to simulate input devices such as a mouse and keyboard, thereby realizing reverse control functions.

[0029] By establishing a Bluetooth connection between the receiving device and the source device, command transmission between the two can be achieved without relying on the source device to install any special program, effectively avoiding the problems of cumbersome operation and poor compatibility caused by installing special programs.

[0030] As one possible implementation of this application Figure 2 A specific implementation flow of step S101 in the screen projection control method provided in this application embodiment is shown below: A1: Scan and identify Bluetooth devices that match the identifier of the projection source device, and initiate a Bluetooth connection request to the matched Bluetooth device.

[0031] The receiving device initiates a Bluetooth scanning function to search for all discoverable Bluetooth devices in the vicinity. During the scanning process, the receiving device acquires the broadcast information of each discovered Bluetooth device, extracts the device identifier (including device name, Bluetooth address, etc.), and compares it with the identifier of the projection source device. When a Bluetooth device identifier matches the projection source device identifier, that matching Bluetooth device becomes the current projection source device. The receiving device then initiates a Bluetooth connection request to that matching Bluetooth device to establish a Bluetooth connection for subsequent reverse control command transmission. The projection source device identifier can be obtained by the receiving device during the process of establishing a projection connection with the source device.

[0032] A2: Receive the pairing request information from the matched Bluetooth device based on the Bluetooth connection request, and trigger a Bluetooth pairing request broadcast.

[0033] After receiving a Bluetooth connection request from the receiving device, the paired Bluetooth device (i.e., the source device) verifies the Bluetooth connection request. Once the verification is successful, it sends a pairing request to the receiving device, which includes key information such as pairing type and pairing verification requirements.

[0034] After receiving the pairing request information from the matched Bluetooth device, the receiving device automatically triggers a Bluetooth pairing request broadcast, notifying all applications or services in the system that have registered to listen to the broadcast of the pairing event. This transforms the underlying pairing request event into a system-level broadcast event, enabling upper-layer applications to perceive and intervene in the pairing process.

[0035] A3: Intercept the Bluetooth pairing request broadcast.

[0036] The Bluetooth processing module of the receiving device listens for Bluetooth pairing request broadcasts in real time. Upon detecting a Bluetooth pairing request broadcast, it immediately intercepts the broadcast, preventing the system from displaying a pairing pop-up window that requires manual user intervention. This ensures that subsequent pairing confirmation operations are completed automatically without user intervention. For example, after the Bluetooth processing module of the conference tablet listens for and detects a Bluetooth pairing request broadcast in the system, it immediately intercepts the broadcast, preventing the system from displaying pop-ups such as "Please enter pairing code" or "Confirm pairing," thus ensuring the automated progress of the pairing process.

[0037] A4: Identify the pairing type corresponding to the Bluetooth pairing request broadcast, and automatically inject the preset pairing code according to the pairing type to complete the pairing confirmation.

[0038] Pairing type refers to the different security verification methods used in the Bluetooth pairing process, such as numeric comparison pairing, password input pairing, etc. The preset pairing code refers to the verification code that is stored in the receiving device in advance and corresponds to a specific screen projection source device or a specific pairing type.

[0039] Automatic injection of a preset pairing code refers to the source device's application simulating user input and automatically submitting a preset pairing code to the Bluetooth protocol stack to complete pairing verification. Specifically, it parses intercepted Bluetooth pairing request broadcasts, identifies the corresponding pairing type, and, based on the identified pairing type, calls the preset pairing code injection logic to automatically inject the preset pairing code from the receiving device into the Bluetooth pairing verification process. After the pairing code injection is complete, the receiving device automatically sends a pairing confirmation signal to the source device. The source device's Bluetooth protocol stack verifies the injected pairing code. Upon successful verification, the receiving device and the source device complete pairing confirmation and formally establish a stable Bluetooth connection.

[0040] In this embodiment, the source device for screen projection is accurately located by uniquely matching its identifier, ensuring the targetedness and accuracy of the Bluetooth connection. The pairing request from the source device is fed back to the receiving device, and the pairing request interaction between the receiving device and the source device is realized by triggering a Bluetooth pairing request broadcast. At the same time, by intercepting the Bluetooth pairing request broadcast, the user is prevented from manually intervening in the Bluetooth pairing process. Furthermore, by automatically identifying the pairing type and automatically injecting the pairing code, the user's manual input of the pairing code and clicking confirmation are replaced, realizing the automation and seamlessness of Bluetooth pairing, simplifying the Bluetooth connection operation process, and ensuring that the receiving device and the source device can quickly and stably establish a Bluetooth connection, thus achieving the automation of Bluetooth pairing.

[0041] Step S102: In response to a touch operation detected on the receiving device, obtain the target logical coordinates corresponding to the touch operation.

[0042] Touch operations include user actions such as clicking, swiping, and dragging on the touchscreen of the receiving device. These touch operations trigger reverse control commands from the receiving device. Target logical coordinates are the coordinate values ​​corresponding to the position of the touch operation on the receiving device's screen. They are used to accurately indicate the target position of the touch operation on the source device, and their coordinate system perfectly matches the user interface coordinate system of the source device.

[0043] As one possible implementation of this application, logical coordinates are typically expressed in pixels. Figure 3 This application illustrates a specific implementation flow for obtaining target logical coordinates in the screen projection control method provided in this embodiment, detailed below: B1: Obtain the device model information of the source device.

[0044] Device model information is used to uniquely identify the specific model of the source device, including the device brand model, hardware version number, etc., to distinguish source devices of different specifications.

[0045] In one possible implementation, the device model information can be obtained through the screen mirroring protocol when establishing a screen mirroring connection, or by querying the interaction between the established Bluetooth connection and the source device.

[0046] For example, the receiving device sends a device model query command to the source device based on the established Bluetooth connection. After receiving the query command, the source device returns its own device model information, and the receiving device receives and stores the device model information.

[0047] B2: Determine the logical resolution corresponding to the device model information.

[0048] Logical resolution is the screen resolution used by the source device's display system. It represents the logical coordinate range of the source device's user interface. Different device models correspond to different logical resolutions. Logical resolution is measured in pixels, such as 1920×1080 pixels.

[0049] The local pre-built database or cloud service stores a large number of mapping relationships between different device model information and corresponding logical resolutions. After obtaining the device model information of the source device, the receiving device queries the local pre-built database or cloud service for the logical resolution corresponding to the device model information.

[0050] B3: Obtain the original physical coordinates of the touch operation on the receiving device.

[0051] The original physical coordinates refer to the actual physical coordinates of the touch operation on the screen of the receiving device. When a user performs a touch operation on the touch screen of the receiving device, the receiving device captures the touch point position in real time and generates the original physical coordinates. These original physical coordinates are related to the screen specifications of the receiving device and are usually expressed in pixels. The origin of the coordinate system is generally the upper left corner of the receiving device screen.

[0052] B4: The target logical coordinates are calculated based on the original physical coordinates, the logical resolution, and the display area parameters of the projected image on the receiving device.

[0053] Display area parameters refer to the parameters related to the actual display area of ​​the projected image on the receiving device's screen.

[0054] In one possible implementation, the display area parameters of the projected image include the width, height, and black border offset of the projected image display area. The black border offset refers to the distance between the edge of the projected image and the edge of the receiving device's screen, used to correct the coordinate deviation caused by the projected image offset. The target logical coordinates are determined according to the following calculation formula (1). : , (1) The raw physical coordinates collected by the receiving device. This refers to the width of the area to be displayed on the projected screen. The height of the projection screen display area. The black border offset in the X direction. This represents the offset of the black border in the Y direction. For the logical resolution width of the source device, This is the logical resolution height.

[0055] In one possible implementation, since the projected image may not be displayed in full screen, but rather scaled up or centered in a certain area of ​​the receiving device's screen, the width and height of the projected image display area are determined based on the scaling ratio and logical resolution of the projected image.

[0056] In one possible implementation, the scaling ratio is calculated according to the following formula (2). : (2) The width and height of the projection screen display area are determined according to the following formula (3): , (3) In this embodiment, the original physical coordinates on the receiving device are converted into target logical coordinates that can be recognized by the source device. This corrects the coordinate deviation caused by the screen projection offset and the difference in logical resolution, ensuring that the target logical coordinates can accurately correspond to the position on the source device, thus guaranteeing the accuracy of subsequent reverse control.

[0057] Step S103: Based on the Bluetooth connection, send a calibration command to the source device, the calibration command being used to instruct the source device to reset the cursor to the reference position.

[0058] A calibration command is a command used to instruct the source device to perform a cursor reset operation. The cursor is a visual identifier on the source device's display interface used to indicate the current position, such as an arrow, hand, or other icon. In screen projection control scenarios, the cursor is typically generated and displayed by the source device. The reference position is a fixed position pre-set in the source device's display system, such as the upper left corner of the screen (0,0), used as the reference starting point for cursor movement. Reset means forcibly moving the cursor from its current position to the reference position. In this embodiment, the cursor on the source device is moved from any current position to the reference position to achieve cursor reset, ensuring the consistency of the cursor's initial position. As one possible implementation of this application Figure 4 A specific implementation flow of step S103 of the screen projection control method provided in this application embodiment is shown below: C1: Construct a negative displacement and generate a boundary calibration command based on the negative displacement.

[0059] When the reference position is the top-left corner of the screen (i.e., the screen coordinate origin), negative displacement refers to the amount of displacement in the direction of movement towards the screen coordinate origin, such as moving -10 pixels to the left or -10 pixels upwards. In the screen coordinate system, the top-left corner is usually defined as the screen coordinate origin (0,0), with right and down being positive directions. Therefore, movement to the left or upwards is negative displacement. Boundary calibration commands are cursor movement commands that include negative displacement, used to instruct the source device to move the cursor towards the screen coordinate origin.

[0060] C2: Based on the Bluetooth connection, the boundary calibration command is sent to the source device in a loop to instruct the source device to block the cursor and stop it at the reference position when the cumulative displacement corresponding to the sent boundary calibration command is greater than the maximum screen resolution of the source device.

[0061] Cumulative displacement refers to the sum of displacements contained in multiple boundary calibration commands sent in a loop. Maximum screen resolution includes the maximum pixel size of the source device's display screen in both the horizontal and vertical directions. For example, a 1920×1080 pixel screen has a maximum horizontal resolution of 1920 pixels and a maximum vertical resolution of 1080 pixels.

[0062] Based on the established Bluetooth connection, the receiving device initiates a cyclic transmission mechanism, continuously sending boundary calibration commands to the source device at a preset frequency. Upon receiving each boundary calibration command, the source device executes the corresponding negative displacement operation, driving the cursor to move towards the screen coordinate origin, and accumulating the negative displacement corresponding to all received boundary calibration commands in real time. When the accumulated displacement exceeds the maximum screen resolution of the source device, the operating system of the source device utilizes the cursor boundary blocking characteristic to block the cursor at the screen boundary position, which serves as the reference position, thereby completing the cursor reset calibration.

[0063] For example, a set of negative displacements is constructed, including a horizontal negative displacement ΔX = -120 pixels and a vertical negative displacement ΔY = -120 pixels. Based on this set of negative displacements, a corresponding boundary calibration command is generated. This boundary calibration command has the same format as a normal cursor movement command, but contains negative displacement values, indicating that the cursor should move towards the upper left corner of the screen. These boundary calibration commands are sent to the source device via Bluetooth in a loop. Each time the source device receives a boundary calibration command, it moves the cursor 120 pixels towards the upper left corner of the screen. When the 20th command is sent, the cumulative displacement reaches -2400 pixels horizontally and -2400 pixels vertically, exceeding the maximum resolution of the source device's screen (1920×1080). At this point, the cursor has already moved to the upper left corner (0,0) position on the screen, and subsequent commands cannot move the cursor further due to the screen boundary obstruction; the cursor remains stably stationary at the upper left reference position.

[0064] In this embodiment, by constructing a fixed negative displacement, the boundary calibration command can stably drive the cursor to move towards the screen boundary (reference position). By utilizing the blocking characteristics of the source device's screen boundary, the cursor can be accurately stopped at the reference position, thus completely eliminating the positioning deviation caused by the uncertainty of the cursor's initial position.

[0065] Step S104: Determine the total displacement of the cursor from the reference position to the target position based on the target logical coordinates, wherein the target position is the position corresponding to the target logical coordinates on the source device screen.

[0066] The target position refers to the specific spatial point on the source device screen corresponding to the target's logical coordinates; that is, the physical display position that the cursor ultimately needs to reach. The total displacement is the total distance the cursor needs to move from the reference position to the target position.

[0067] Total displacement refers to the total distance the cursor needs to move from the reference position to the target position. In one possible implementation, the total displacement is expressed in pixels, including horizontal (X-direction) displacement and vertical (Y-direction) displacement. For example, if the reference position is the top left corner (0,0) of the source device screen and the target logical coordinates are (1920,1080), then the target position is the coordinate point (1920,1080) on the source device screen, and the total displacement is 1920 pixels horizontally and 1080 pixels vertically.

[0068] In this embodiment, the total displacement required for the cursor to move is obtained by calculating the coordinate difference between the reference position and the target position of the source device. This quantifies the total distance the cursor needs to move from the starting point to the target point, providing accurate basic data for subsequent displacement decomposition and ensuring that the decomposition of subsequent micro-displacement commands is targeted and accurate.

[0069] Step S105: Decompose the total displacement into multiple micro-displacement commands, wherein the displacement of each micro-displacement command is within the linear threshold range of the source device's response to cursor movement.

[0070] Decomposing the total displacement involves dividing it into multiple consecutive small displacement segments according to certain rules. Each small displacement segment corresponds to a micro-displacement command. A micro-displacement command is a cursor movement command containing a small displacement amount. Each micro-displacement command corresponds to a small cursor movement, expressed as a relative displacement, such as "move 10 pixels to the right". The linear threshold range refers to the range of displacement amounts within which the source device can respond linearly and accurately to cursor movement commands. The displacement amount of a single micro-displacement command cannot exceed this linear threshold range. Displacement amounts within this linear threshold range will not trigger mouse acceleration, enabling linear cursor movement. Mouse acceleration is a pointer movement algorithm in the source device's operating system. The faster the physical movement speed of the mouse, the longer the distance the screen cursor moves, resulting in different screen displacements for the same physical displacement amount at different speeds, affecting positioning accuracy. It is worth noting that the safe displacement value in the preset step table and the displacement amount of each micro-displacement command are both positive values.

[0071] In one possible implementation, the size of the linear threshold interval is determined based on the hardware performance of the source device, driver design, operating system characteristics, and the reliability of Bluetooth transmission. For example, for some devices, a single displacement command should not exceed 100 pixels.

[0072] As one possible implementation of this application, such as Figure 5 As shown, the total displacement is decomposed into multiple micro-displacement commands, including: D1: Based on the total displacement and the current remaining distance, the maximum available safe displacement value that is compatible with the current remaining distance is obtained by matching from the preset step table.

[0073] The preset step table contains multiple safe displacement values ​​within the linear threshold interval. The current remaining distance is the amount of displacement that has not yet been completed between the current cursor position and the target position during the cursor's movement from the reference position to the target position. The maximum available safe displacement value refers to the maximum safe displacement value in the preset step table that is less than or equal to the current remaining distance. The preset step table is a pre-built and stored data table containing multiple safe displacement values ​​within the linear threshold interval. A safe displacement value is a displacement amount that can be linearly and accurately responded to by the source device, and each safe displacement value is within the linear threshold interval. In this embodiment, the current remaining distance gradually decreases as micro-displacement commands are sent and executed.

[0074] D2: Based on the maximum available safe displacement value obtained by matching, the total displacement is decomposed to generate the multiple micro-displacement commands.

[0075] Before sending micro-displacement commands, the receiving device first initializes the current remaining distance based on the total displacement determined in step S104. Each time a micro-displacement command needs to be generated, the receiving device obtains the current remaining distance and performs a matching search in a preset step table to find all safe displacement values ​​less than or equal to the current remaining distance. The largest displacement value is then selected as the micro-displacement command to be sent. The receiving device updates the current remaining distance, deducts the previously allocated displacement from the updated current remaining distance, and then repeats steps D1 and D2, that is, matching the maximum available safe displacement value again from the preset step table based on the updated current remaining distance to generate the next micro-displacement command, until the current remaining distance decreases to zero. Through this iterative process, the total displacement is decomposed into a series of micro-displacement commands.

[0076] In this embodiment, based on the total displacement and the current remaining distance, the maximum available safe displacement value that is compatible with the current remaining distance is accurately matched from the preset step table. The total displacement is decomposed into multiple micro-displacement instructions that meet the requirements. This ensures that the displacement of each micro-displacement instruction is within the linear threshold range, avoiding the influence of mouse acceleration on the source device. It also maximizes the use of the safe displacement value to achieve the fastest linear movement of the cursor, taking into account both cursor positioning accuracy and movement efficiency. It avoids cursor drift caused by triggering mouse acceleration, effectively ensuring smooth operation, and thus ensuring that the cursor can move accurately and smoothly from the reference position to the target position.

[0077] Step S106: Based on the Bluetooth connection, the multiple micro-displacement commands are sent sequentially to the source device according to a predetermined timing sequence, so that the source device controls the cursor to move from the reference position to the target position.

[0078] Predetermined timing refers to the order and time interval of sending multiple micro-displacement commands. For example, they are sent sequentially, with a fixed time interval set between adjacent micro-displacement commands to ensure that the source device has enough time to process each command, while avoiding command backlog or loss due to sending too quickly.

[0079] In one possible implementation, the time interval between adjacent micro-displacement commands can be determined based on the screen refresh rate of the source device, or adaptively adjusted based on the reliability of the Bluetooth connection transmission between the source device and the receiving device, to ensure the orderliness and stability of the micro-displacement command transmission.

[0080] In this embodiment, the micro-displacement commands are sent to the source device one by one according to the decomposition order of the micro-displacement commands, ensuring that the cursor moves step by step according to the preset trajectory, realizing precise control of the cursor from the reference position to the target position, avoiding control deviations caused by a single large displacement command exceeding the linear response range of the device or Bluetooth transmission limitations, thereby improving the accuracy and reliability of remote cursor control.

[0081] In one possible implementation, the multiple micro-displacement instructions are pushed into an asynchronous queue. An asynchronous queue is a data structure used for temporary data storage, following a first-in, first-out (FIFO) principle, and enabling decoupling and buffering between different processing units. A single-threaded scheduler is activated, and based on the Bluetooth connection, retrieves the micro-displacement instructions from the asynchronous queue at fixed time intervals and sends them to the source device. The single-threaded scheduler is a task scheduling component running in a single thread, responsible for retrieving tasks from the queue according to predetermined time rules and executing the corresponding cursor movement operations, gradually moving the cursor from the reference position to the target position, thus completing cursor control of the source device.

[0082] By using a single-threaded scheduler and fixed time interval control, micro-displacement commands are sent at a stable pace, avoiding packet loss or delays caused by the source device being unable to process them due to sending too fast, and also avoiding user experience impacted by sending too slow, thus achieving smooth and reliable cursor movement.

[0083] As one possible implementation of this application Figure 6 A specific implementation flow of cursor movement monitoring in the screen projection control method provided in this application embodiment is illustrated below: E1: During the process of sending the multiple micro-displacement commands to the source device, the actual movement position of the cursor is monitored. The actual movement position is the real-time position coordinate of the cursor on the source device's screen. The receiving device periodically queries the cursor position of the source device via Bluetooth connection, or receives position change information actively reported by the source device.

[0084] E2: If the actual movement position of the cursor deviates from the expected trajectory, the total displacement is decomposed again based on the amount of displacement that has not yet been completed between the current position of the cursor and the target position when the deviation occurs, and a compensation micro-displacement command is generated and sent to the source device.

[0085] The expected trajectory refers to the theoretical sequence of positions the cursor should traverse, calculated based on the sent micro-displacement commands. If the actual movement deviates from the expected trajectory beyond a preset allowable range, a deviation occurs. The compensation micro-displacement command is a newly generated micro-displacement command used to correct the deviation and compensate for the remaining displacement.

[0086] The receiving device compares the actual movement position detected with the expected trajectory calculated based on the sent instructions. If the deviation between the two exceeds the preset allowable range, it indicates that the cursor movement is abnormal. At this time, the receiving device records the current position of the cursor when the deviation occurs and calculates the new remaining displacement between the current position and the target position. Then, the receiving device pauses the original planned instruction transmission and, based on the new remaining displacement, re-executes the total displacement decomposition process in step S105. That is, it decomposes the remaining displacement into multiple new compensation micro-displacement instructions again through the preset step table and sends these new compensation micro-displacement instructions to the source device in a predetermined sequence to correct the deviation and guide the cursor to finally reach the target position.

[0087] In this embodiment, by obtaining the actual movement position of the cursor and comparing the actual movement position with the expected trajectory synchronously, abnormal deviations during the cursor movement process can be detected in a timely manner. When a deviation is determined, the unfinished displacement is re-decomposed to generate a compensation micro-displacement command and sent to the source device so as to correct the abnormal deviations during the cursor movement process in a timely manner, ensuring that the cursor can return to the expected trajectory and avoiding the accumulation of deviations that cause the cursor to fail to accurately reach the target position, resulting in reverse control errors.

[0088] As can be seen from the above, in this embodiment, by establishing a Bluetooth connection with the source device, stable communication between the receiving device and the source device is achieved without relying on the source device to install any special programs. The receiving device responds to the detected touch operation and obtains the corresponding target logical coordinates, which can accurately capture the user's control intention and provide clear target guidance for cursor movement. Then, based on the established Bluetooth connection, a calibration command is sent to the source device, instructing the source device to reset the cursor to the reference position, eliminating the positioning deviation caused by the uncertainty of the initial cursor position, and determining the distance from the reference position to the target logical coordinates based on the target logical coordinates. The total displacement is determined by clearly defining the overall requirements for cursor movement, ensuring targeted displacement control. This total displacement is then decomposed into multiple micro-displacement commands whose displacement amounts fall within the linear threshold range of the source device's cursor movement response. This effectively avoids interference from the source device's response characteristics with cursor movement accuracy, significantly improving cursor positioning precision. Finally, based on Bluetooth connectivity, multiple micro-displacement commands are sent sequentially according to a predetermined time sequence, ensuring the orderliness and stability of command transmission. This allows the source device to smoothly control the cursor to the target logical coordinates, avoiding issues such as lag and delay caused by sudden command interruptions, thus improving the smoothness of reverse control. In summary, this application's solution improves cursor positioning accuracy and operational smoothness without relying on installing dedicated software on the source device. It enables precise reverse control of the source device by the receiving device, effectively meeting users' needs for convenience and accuracy in reverse control across various screen projection scenarios, enhancing the user experience.

[0089] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0090] Corresponding to the screen casting control method described in the above embodiments, Figure 7 A structural block diagram of the screen projection control device provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0091] Reference Figure 7 The screen projection control device is applied to the receiving device and includes: a Bluetooth connection unit 71, a target information acquisition unit 72, a cursor calibration unit 73, a displacement information determination unit 74, a displacement decomposition unit 75, and a control unit 76, wherein: Bluetooth connection unit 71 is used to establish a Bluetooth connection with the source device; The target information acquisition unit 72 is used to acquire the target logical coordinates corresponding to the touch operation in response to the touch operation detected on the receiving device; The cursor calibration unit 73 is used to send a calibration command to the source device based on the Bluetooth connection, the calibration command being used to instruct the source device to reset the cursor to the reference position; The displacement information determination unit 74 is used to determine the total displacement of the cursor from the reference position to the target position based on the target logical coordinates, wherein the target position is the position of the target logical coordinates on the screen of the source device; The displacement decomposition unit 75 is used to decompose the total displacement into multiple micro-displacement instructions, wherein the displacement of each micro-displacement instruction is within the linear threshold range of the source device's response to cursor movement. Control unit 76 is configured to send the plurality of micro-displacement commands sequentially to the source device according to a predetermined timing sequence based on the Bluetooth connection, so that the source device controls the cursor to move from the reference position to the target position.

[0092] As one possible implementation of this application, the Bluetooth connection unit 71 is specifically used for: Scan and identify Bluetooth devices that match the identifier of the projection source device, and initiate a Bluetooth connection request to the matched Bluetooth device; Receive pairing request information from the matched Bluetooth device based on the Bluetooth connection request, and trigger Bluetooth pairing request broadcast; Intercept the Bluetooth pairing request broadcast; The pairing type corresponding to the Bluetooth pairing request broadcast is identified, and a preset pairing code is automatically injected according to the pairing type to complete the pairing confirmation.

[0093] As one possible implementation of this application, the target information acquisition unit 72 includes: Model acquisition module, used to acquire the device model information of the source device; A logical resolution determination module is used to determine the logical resolution corresponding to the device model information; A physical coordinate acquisition module is used to acquire the original physical coordinates of the touch operation on the receiving device; The target logical coordinate calculation module is used to calculate the target logical coordinates based on the original physical coordinates, the logical resolution, and the display area parameters of the projected image on the receiving device.

[0094] As one possible implementation of this application, the cursor calibration unit 73 is specifically used for: Construct a negative displacement and generate a boundary calibration command based on the negative displacement; Based on the Bluetooth connection, the boundary calibration command is sent to the source device in a loop to instruct the source device to block the cursor and stop it at the reference position when the cumulative displacement corresponding to the sent boundary calibration command is greater than the maximum screen resolution of the source device.

[0095] As one possible implementation of this application, the displacement decomposition unit 75 includes: The displacement value matching module is used to match the maximum available safe displacement value adapted to the current remaining distance from a preset step table based on the total displacement and the current remaining distance. The preset step table contains multiple safe displacement values ​​within the linear threshold range. The current remaining distance is the amount of displacement that has not yet been completed between the current position of the cursor and the target position during the movement of the cursor from the reference position to the target position. The micro-displacement command generation module is used to decompose the total displacement based on the maximum available safe displacement value obtained by matching, and generate the multiple micro-displacement commands.

[0096] As one possible implementation of this application, the control unit 76 is specifically used for: Push the multiple micro-displacement instructions into an asynchronous queue; A single-threaded scheduler is started, and based on the Bluetooth connection, the micro-displacement command is retrieved from the asynchronous queue at fixed time intervals and sent to the source device.

[0097] As one possible implementation of this application, the screen projection control device further includes: A motion monitoring unit is used to monitor the actual movement position of the cursor during the process of sending the multiple micro-displacement commands to the source device; The compensation control unit is used to, if it is detected that the actual movement position of the cursor deviates from the expected trajectory, re-execute the decomposition of the total displacement based on the amount of displacement that has not yet been completed between the current position of the cursor and the target position when the deviation occurs, generate a compensation micro-displacement command and send it to the source device.

[0098] As can be seen from the above, in this embodiment, by establishing a Bluetooth connection with the source device, stable communication between the receiving device and the source device is achieved without relying on the source device to install any special programs. The receiving device responds to the detected touch operation and obtains the corresponding target logical coordinates, which can accurately capture the user's control intention and provide clear target guidance for cursor movement. Then, based on the established Bluetooth connection, a calibration command is sent to the source device, instructing the source device to reset the cursor to the reference position, eliminating the positioning deviation caused by the uncertainty of the initial cursor position, and determining the distance from the reference position to the target logical coordinates based on the target logical coordinates. The total displacement is determined by clearly defining the overall requirements for cursor movement, ensuring targeted displacement control. This total displacement is then decomposed into multiple micro-displacement commands whose displacement amounts fall within the linear threshold range of the source device's cursor movement response. This effectively avoids interference from the source device's response characteristics with cursor movement accuracy, significantly improving cursor positioning precision. Finally, based on Bluetooth connectivity, multiple micro-displacement commands are sent sequentially according to a predetermined time sequence, ensuring the orderliness and stability of command transmission. This allows the source device to smoothly control the cursor to the target logical coordinates, avoiding issues such as lag and delay caused by sudden command interruptions, thus improving the smoothness of reverse control. In summary, this application's solution improves cursor positioning accuracy and operational smoothness without relying on installing dedicated software on the source device. It enables precise reverse control of the source device by the receiving device, effectively meeting users' needs for convenience and accuracy in reverse control across various screen projection scenarios, enhancing the user experience.

[0099] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0100] This application embodiment also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements... Figures 1 to 6 The steps of any screen mirroring control method are represented.

[0101] This application embodiment also provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements... Figures 1 to 6 The steps of any screen mirroring control method are represented.

[0102] This application also provides a computer program product that, when run on a terminal device, causes the terminal device to execute the implementation of... Figures 1 to 6 The steps of any screen mirroring control method are represented.

[0103] Figure 8 This is a schematic diagram of a terminal device provided in an embodiment of this application. For example... Figure 8 As shown, the terminal device 8 in this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. When the processor 80 executes the computer program 82, it implements the steps in the various screen projection control method embodiments described above, for example... Figure 1 Steps S101 to S106 are shown. Alternatively, when the processor 80 executes the computer program 82, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of units 71 to 76 are shown.

[0104] For example, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete this application. The one or more modules / units may be a series of computer-readable instruction segments capable of performing a specific function, which describe the execution process of the computer program 82 in the terminal device 8.

[0105] The terminal device 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will understand that... Figure 8 This is merely an example of terminal device 8 and does not constitute a limitation on terminal device 8. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal device 8 may also include input / output devices, network access devices, buses, etc.

[0106] The processor 80 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0107] The memory 81 can be an internal storage unit of the terminal device 8, such as a hard disk or memory of the terminal device 8. The memory 81 can also be an external storage device of the terminal device 8, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device 8. Furthermore, the memory 81 can include both internal and external storage units of the terminal device 8. The memory 81 is used to store the computer program and other programs and data required by the terminal device. The memory 81 can also be used to temporarily store data that has been output or will be output.

[0108] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0109] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0110] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0111] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0112] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A screen projection control method, characterized in that, Applied to a receiving device, the method includes: Establish a Bluetooth connection with the source device; In response to a touch operation detected on the receiving device, the target logical coordinates corresponding to the touch operation are obtained; Based on the Bluetooth connection, a calibration command is sent to the source device, which instructs the source device to reset the cursor to the reference position. Based on the target logical coordinates, determine the total displacement of the cursor from the reference position to the target position, where the target position is the position corresponding to the target logical coordinates on the screen of the source device; The total displacement is decomposed into multiple micro-displacement commands, wherein the displacement of each micro-displacement command is within the linear threshold range of the source device's response to cursor movement. Based on the Bluetooth connection, the multiple micro-displacement commands are sent sequentially to the source device according to a predetermined timing sequence, so that the source device controls the cursor to move from the reference position to the target position.

2. The method according to claim 1, characterized in that, Establishing a Bluetooth connection with the source device includes: Scan and identify Bluetooth devices that match the identifier of the projection source device, and initiate a Bluetooth connection request to the matched Bluetooth device; Receive pairing request information from the matched Bluetooth device based on the Bluetooth connection request, and trigger Bluetooth pairing request broadcast; Intercept the Bluetooth pairing request broadcast; The pairing type corresponding to the Bluetooth pairing request broadcast is identified, and a preset pairing code is automatically injected according to the pairing type to complete the pairing confirmation.

3. The method according to claim 1, characterized in that, The step of obtaining the target logical coordinates corresponding to the touch operation includes: Obtain the device model information of the source device; Determine the logical resolution corresponding to the device model information; Obtain the original physical coordinates of the touch operation on the receiving device; The target logical coordinates are calculated based on the original physical coordinates, the logical resolution, and the display area parameters of the projected image on the receiving device.

4. The method according to claim 1, characterized in that, Sending calibration commands to the source device based on the Bluetooth connection includes: Construct a negative displacement and generate a boundary calibration command based on the negative displacement; Based on the Bluetooth connection, the boundary calibration command is sent to the source device in a loop to instruct the source device to block the cursor and stop it at the reference position when the cumulative displacement corresponding to the sent boundary calibration command is greater than the maximum screen resolution of the source device.

5. The method according to claim 1, characterized in that, The step of decomposing the total displacement into multiple micro-displacement commands includes: Based on the total displacement and the current remaining distance, the maximum available safe displacement value that is adapted to the current remaining distance is obtained from a preset step table. The preset step table contains multiple safe displacement values ​​within the linear threshold range. The current remaining distance is the amount of displacement that has not yet been completed between the current position of the cursor and the target position during the process of the cursor moving from the reference position to the target position. The total displacement is decomposed based on the maximum available safe displacement value obtained by matching, and the plurality of micro-displacement commands are generated.

6. The method according to claim 1, characterized in that, Based on the Bluetooth connection, the process of sequentially sending the plurality of micro-displacement commands to the source device according to a predetermined timing sequence includes: Push the multiple micro-displacement instructions into an asynchronous queue; A single-threaded scheduler is started, and based on the Bluetooth connection, the micro-displacement command is retrieved from the asynchronous queue at fixed time intervals and sent to the source device.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: During the process of sending the multiple micro-displacement commands to the source device, the actual movement position of the cursor is monitored; If the actual movement position of the cursor deviates from the expected trajectory, the total displacement is decomposed again based on the amount of displacement that has not yet been completed between the current position of the cursor and the target position when the deviation occurs, and a compensation micro-displacement command is generated and sent to the source device.

8. A screen projection control device, characterized in that, Applied to receiving devices, including: Bluetooth connectivity unit, used to establish a Bluetooth connection with the source device; The target information acquisition unit is used to acquire the target logical coordinates corresponding to the touch operation in response to the touch operation detected on the receiving device; A cursor calibration unit is used to send a calibration command to the source device based on the Bluetooth connection. The calibration command is used to instruct the source device to reset the cursor to the reference position. The displacement information determination unit is used to determine the total displacement of the cursor from the reference position to the target position based on the target logical coordinates, wherein the target position is the position of the target logical coordinates on the screen of the source device; The displacement decomposition unit is used to decompose the total displacement into multiple micro-displacement commands, wherein the displacement of each micro-displacement command is within the linear threshold range of the source device's response to cursor movement. The control unit is configured to send the plurality of micro-displacement commands sequentially to the source device according to a predetermined timing sequence based on the Bluetooth connection, so that the source device controls the cursor to move from the reference position to the target position.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the screen projection control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the screen projection control method as described in any one of claims 1 to 7.