Cursor crossing method and device
By determining the device location and sending traversal messages in the main device, the problem of multi-device cursor traversal is solved, enabling continuous movement of the cursor between three devices and more and improving user experience.
Patent Information
- Application Number
- CN202410511567.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology fails to design a cursor traversal mechanism for three devices or more, resulting in the cursor being unable to traverse between three or more devices.
The master device determines the relative position between the devices, determines whether the cursor can traverse to adjacent devices, and sends a traversal message to switch the cursor's display device to ensure continuous movement of the cursor among three devices or more.
It realizes the continuous traversal of the cursor between multiple devices, meets the user's cursor display needs, reduces the overhead of transmission resources, and improves the user experience.
Smart Images

Figure CN118535053A
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application filed with the State Intellectual Property Office on October 31, 2022, with application number 202211346051.0 and application name “Cursor Crossing Method and Device”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a method and device for cursor crossing. Background Art
[0003] A cursor is an icon on the user interface (UI) that indicates the user's current focus. In a multi-device collaboration scenario, the user needs to move the cursor from the screen of one terminal device to the screen of another terminal device. This situation is called cursor crossing. For example, there is a communication connection between terminal device A (a terminal device that receives cursor displacement data) and terminal device B. The user controls the cursor to move right on the screen of terminal device A. When the cursor moves to the right edge of the screen of terminal device A, terminal device A sends the cursor position information to terminal device B. Terminal device B then displays the cursor, and terminal device A no longer displays the cursor, thereby achieving cursor crossing.
[0004] Since the prior art does not design a cursor crossing mechanism for three or more devices, even if terminal device C exists near terminal device B, the cursor cannot cross to terminal device C. How to make the cursor cross between three or more devices is a problem that needs to be solved at present. Summary of the invention
[0005] The embodiments of the present application provide a method and apparatus for cursor crossing, which can enable the cursor to cross between three or more devices.
[0006] In a first aspect, a cursor crossing method is provided, which is applied to a system including a master device and at least two slave devices, wherein the master device is a device that receives cursor displacement data from an input device, and the method includes: the master device determines the relative positions between the devices in the system; the master device determines the current position of the cursor; when the current position is located in the screen edge area of the first slave device, the master device determines whether there is a second slave device in the cursor movement direction of the first slave device according to the relative positions of the devices in the system, the first slave device is any one of the at least two slave devices, and the second slave device is a slave device adjacent to the first slave device among the at least two slave devices; when the second slave device exists in the cursor movement direction, the master device sends a first crossing message to the second slave device, and the first crossing message includes position information of the initial position of the cursor after crossing from the first slave device to the second slave device.
[0007] When the current position of the cursor is located at the edge area of the screen of the first slave device, it means that the user may need the cursor to cross to other devices, and the master device needs to determine whether there is a second slave device in the direction of the cursor movement in order to switch the display device of the cursor. If there is a second slave device, it means that the system has the conditions for the cursor to cross, and the master device can send a first crossing message to the second slave device to switch the display device of the cursor. It can be seen that the embodiment of the present application can enable the cursor to cross between three devices and more devices. In addition, the movement of the cursor is continuous. When the user moves the cursor to the right edge area of the screen of the first slave device, the user usually wants the cursor to cross to the slave device adjacent to the right side of the first slave device. The embodiment of the present application determines the second slave device based on the direction of the cursor movement, which can meet the user's cursor display needs when there are multiple slave devices around the first slave device.
[0008] Optionally, the master device determines the relative position between each device in the system, including: the master device receives a first wireless signal from the first slave device, the first wireless signal including the identifier of the first slave device; the master device determines a first arrival angle and a transmission delay of the first wireless signal; the master device processes the transmission delay of the first wireless signal through a ranging model to determine a first distance between the master device and the first slave device; the master device receives a second wireless signal from the second slave device, the second wireless signal including the identifier of the second slave device; the master device determines a second arrival angle and a transmission delay of the second wireless signal; the master device processes the transmission delay of the second wireless signal through the ranging model to determine a second distance between the master device and the second slave device; the master device determines the relative position between the master device, the first slave device and the second slave device according to the identifier of the first slave device, the identifier of the second slave device, the first arrival angle, the second arrival angle, the first distance and the second distance.
[0009] Through the identification of the first slave device and the identification of the second slave device, the master device can determine the devices (i.e., the first slave device and the second slave device) corresponding to the first wireless signal and the second wireless signal. Through the first arrival angle and the second arrival angle, the master device can determine the direction of the first slave device and the second slave device relative to the master device. Through the first distance and the second distance, the master device can determine the distance of the first slave device and the second slave device relative to the master device. After determining the direction and distance of the first slave device and the second slave device relative to the master device, the master device can determine the relative position between the master device, the first slave device, and the second slave device.
[0010] Optionally, before the master device sends the first crossing message to the second slave device, the method also includes: the master device obtains the screen size of the first slave device and the screen size of the second slave device, the screen size of the first slave device includes a first side length, the screen size of the second slave device includes a second side length, the first side length and the second side length are respectively the lengths of adjacent sides of the first slave device and the second slave device; the master device determines the initial position based on the first side length and the second side length, the initial position is the product of the coordinates of the crossing position of the cursor on the first slave device and a first ratio, the first ratio being the ratio of the first side length to the second side length.
[0011] The first ratio reflects the difference in screen size between the first slave device and the second slave device. The greater the difference in screen size between the first slave device and the second slave device, the greater the first ratio, and the greater the difference between the initial position of the cursor on the second slave device and the crossing position of the cursor on the first slave device; the smaller the difference in screen size between the first slave device and the second slave device, the smaller the first ratio, and the smaller the difference between the initial position of the cursor on the second slave device and the crossing position of the cursor on the first slave device. Therefore, this embodiment can make the position change of the cursor before and after crossing match the ratio of the screen size of the first slave device and the second slave device, thereby making the crossing of the cursor more coherent and smooth.
[0012] Optionally, the master device obtains the screen size of the first slave device and the screen size of the second slave device, including: the master device obtains the screen size of the first slave device from a response message of a first connection request, the first connection request is a connection request sent by the master device to the first slave device; the master device obtains the screen size of the second slave device from a response message of a second connection request, the second connection request is a connection request sent by the master device to the second slave device.
[0013] The master device obtains the screen resolution of the slave device by using the message in the process of establishing the connection, without specifically requesting to obtain the screen resolution of the slave device, which can reduce signaling overhead.
[0014] Optionally, before the master device sends the first crossing message to the second slave device, the method also includes: the master device obtains the screen resolution of the second slave device; the master device determines the cursor sensitivity conversion rate of the second slave device based on the screen resolution of the master device and the screen resolution of the second slave device, the cursor sensitivity conversion rate is positively correlated with a second ratio, and the second ratio is the ratio of the screen resolution of the second slave device to the screen resolution of the master device; after the master device sends the first crossing message to the second slave device, the method also includes: the master device receives first displacement data of the cursor from the input device; the master device determines second displacement data based on the first displacement data and the cursor sensitivity conversion rate, the second displacement data is equal to the product of the first displacement data and the cursor sensitivity conversion rate; the master device sends the second displacement data to the second slave device.
[0015] The cursor sensitivity conversion rate reflects the difference between the screen resolution of the second slave device and the screen resolution of the master device. The larger the ratio of the screen resolution of the second slave device to the screen resolution of the master device, the larger the cursor sensitivity conversion rate, and the larger the difference between the second displacement data and the first displacement data when the mouse (or other input device) moves the same distance; the smaller the ratio of the screen resolution of the second slave device to the screen resolution of the master device, the smaller the cursor sensitivity conversion rate, and the smaller the difference between the second displacement data and the first displacement data when the mouse (or other input device) moves the same distance. Therefore, this embodiment can make the position of the cursor before and after crossing match the ratio of the screen size of the first slave device and the second slave device, thereby making the cursor crossing more coherent and smooth.
[0016] Optionally, the master device determines the current position of the cursor, including: the master device sends third displacement data of the cursor to the first slave device, and the third displacement data is used by the first slave device to determine the current position; the master device receives current position information from the first slave device, and the current position information indicates the current position; the master device determines the current position based on the current position information.
[0017] When the cursor is located at the first slave device, the first slave device can determine the current position of the cursor based on the third displacement data. Subsequently, the first slave device sends the current position information to the master device, so that the master device can determine the current position of the cursor based on the current position information, and then determine whether to execute the cursor crossing process based on the current position.
[0018] Optionally, the method further includes: after the cursor passes through the second slave device, the master device determines not to send the cursor displacement data to the first slave device.
[0019] After the cursor passes through the second slave device, it becomes meaningless to send displacement data to the first slave device. Stopping sending displacement data to the first slave device can reduce the overhead of transmission resources.
[0020] Optionally, the method also includes: the master device sends fourth displacement data of the cursor to the second slave device, and the fourth displacement data is used by the first slave device to determine the position of the cursor on the second slave device; when the position of the cursor on the second slave device is located in the screen edge area of the second slave device, the master device determines whether there is an adjacent slave device in the cursor movement direction of the second slave device according to the relative positions of each device in the system; when the first slave device exists in the cursor movement direction of the second slave device, and when the cursor reaches the boundary of the second slave device, the master device sends a second crossing message to the first slave device, and the second crossing message includes position information of the initial position of the cursor after crossing from the second slave device to the first slave device.
[0021] The first slave device can determine the initial position of the cursor after the cursor passes through based on the second passing message, thereby realizing the back-passing of the cursor.
[0022] In a second aspect, a cursor crossing device is provided, comprising a unit for executing any one of the methods in the first aspect. The device may be a terminal device or a chip in the terminal device. The device may include an input unit and a processing unit.
[0023] When the device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory, which is used to store computer program code. When the processor executes the computer program code stored in the memory, the terminal device executes any one of the methods in the first aspect.
[0024] When the device is a chip in a terminal device, the processing unit may be a logic processing unit inside the chip, and the input unit may be an output interface, a pin or a circuit, etc.; the chip may also include a memory, which may be a memory inside the chip (for example, a register, a cache, etc.) or a memory located outside the chip (for example, a read-only memory, a random access memory, etc.); the memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes any one of the methods of the first aspect.
[0025] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code, and when the computer program code is executed by a device through which a cursor passes, the device executes any one of the methods according to the first aspect.
[0026] In a fourth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by a device through which a cursor passes, the device executes any one of the methods in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a schematic diagram of an application scenario applicable to the present application;
[0028] Figure 2 It is a schematic diagram of a hardware system of a master device or a slave device provided by the present application;
[0029] Figure 3 It is a schematic diagram of a software system of a main device provided by the present application;
[0030] Figure 4 is a schematic diagram of a software system of a slave device provided by the present application;
[0031] Figure 5 is a schematic diagram of a cursor crossing method provided by the present application;
[0032] Figure 6 is a schematic diagram of a screen edge area provided by the present application;
[0033] Figure 7 is a schematic diagram of an embodiment of cursor crossing provided by the present application;
[0034] Figure 8 is a schematic diagram of another embodiment of cursor crossing provided by the present application;
[0035] Fig. 9 is a schematic diagram of a method for determining an initial position provided by the present application;
[0036] Fig.10 is a schematic diagram of another method for determining an initial position provided by the present application;
[0037] Fig.11 is a schematic diagram of a mouse sensitivity conversion method provided by the present application;
[0038] Fig.12 is a schematic diagram of a cursor back-penetration method provided by the present application;
[0039] Fig.13 is a schematic diagram of a method for measuring distance through Bluetooth signals provided by the present application;
[0040] Fig.14 It is a schematic diagram of a method for measuring distance through WiFi signals provided by the present application;
[0041] Fig.15is a schematic diagram of a method for ranging through UWB signals provided by the present application;
[0042] Fig.16 It is a schematic diagram of a cursor crossing preparation process provided by the present application;
[0043] Fig.17 It is a schematic diagram of a cursor crossing process provided by the present application;
[0044] Fig.18 It is a schematic diagram of a cursor back-through process provided by the present application. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0046] Figure 1 is a schematic diagram of an application scenario suitable for this application.
[0047] The master device, the first slave device and the second slave device may be a notebook computer, a tablet computer, a foldable electronic device, a desktop computer, a laptop computer, a handheld computer, a personal computer (PC), a netbook, etc.
[0048] There is a communication connection between the device and the first slave device, and there is also a communication connection between the master device and the second slave device. The above communication connection can be a Bluetooth connection, a wireless fidelity (wireless fidelity, WIFI) connection, or an ultra wide band (ultra wide band, UWB) connection. This application does not limit the specific form of the above communication connection.
[0049] The user controls the cursor to interact with the main device through the input device. For example, the user can control the cursor to perform operations such as moving, clicking, double-clicking, or dragging on the interface of the main device through the input device. The input device can be a mouse, a touch pad, or a touch screen, or other devices that can control the cursor, such as a virtual reality (VR) device.
[0050] In some cases, the user needs to operate the first slave device through the cursor. The user can move the cursor to the right through the input device. When the cursor moves to the edge area of the master device, the master device transmits the cursor displacement data to the first slave device through the communication connection with the first slave device. Subsequently, the first slave device displays the cursor, and the master device no longer displays the cursor. From the user's perspective, the cursor passes from the master device to the first slave device.
[0051] After the cursor passes through the first slave device, if the user needs to operate the second slave device, the user hopes that the cursor can pass through to the second slave device. However, there is no communication connection between the second slave device and the first slave device. The first slave device cannot inform the second slave device of information such as the cursor's crossing position, resulting in the cursor being unable to achieve continuous crossing.
[0052] It should be understood that Figure 1 This is an example rather than a limitation, and the scenario applicable to the present application may also include more slave devices.
[0053] The following describes embodiments of the cursor crossing method and device provided by the present application. First, the hardware system and software system of the device applicable to the present application are introduced.
[0054] Figure 2 The figure shows a hardware system suitable for the device of the present application. The device 100 is a possible form of a master device or a slave device.
[0055] The device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera module 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a fingerprint sensor 180H and a touch sensor 180K.
[0056] It should be noted that Figure 2 The structure shown does not constitute a specific limitation on the device 100. In other embodiments of the present application, the device 100 may include Figure 2 More or fewer components than those shown, or the apparatus 100 may include Figure 2 Combinations of some of the components shown, or the apparatus 100 may include Figure 2 Subassemblies of some of the components shown. Figure 2 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0057] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.
[0058] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0059] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0060] In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and a USB interface.
[0061] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera module 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the device 100.
[0062] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0063] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0064] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0065] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera module 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera module 193 communicate via the CSI interface to implement the shooting function of the device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the device 100.
[0066] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal interface or as a data signal interface. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera module 193, the display screen 194, the wireless communication module 160, the audio module 170 and the sensor module 180. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface or a MIPI interface.
[0067] Figure 2 The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the device 100. Optionally, the modules of the device 100 may adopt an interface connection method different from the connection method in the above embodiment, or the modules of the device 100 may adopt a combination of multiple connection methods in the above embodiment.
[0068] The USB interface 130 is an interface that complies with the USB standard specification, for example, it can be a mini USB interface, a micro USB interface, or a USB Type C interface. The USB interface 130 can be used to connect a charger to charge the device 100, can also be used to transfer data between the device 100 and peripheral devices, and can also be used to connect headphones to play audio through the headphones. The USB interface 130 can also be used to connect other devices, such as AR devices.
[0069] The charging management module 140 is used to receive power from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive current from the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive electromagnetic waves through the wireless charging coil of the device 100 (the current path is shown as a dotted line). While the charging management module 140 is charging the battery 142, it may also power the device 100 through the power management module 141.
[0070] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera module 193 and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number and battery health status (e.g., leakage, impedance). Optionally, the power management module 141 can be provided in the processor 110, or the power management module 141 and the charging management module 140 can be provided in the same device.
[0071] The wireless communication function of the device 100 can be implemented by components such as the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
[0072] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0073] The mobile communication module 150 can provide a wireless communication solution applied to the device 100, such as at least one of the following solutions: second generation (2 th generation, 2G) mobile communication solutions, third generation (3 th generation, 3G) mobile communication solutions, fourth generation (4 th generation, 5G) mobile communication solutions, the fifth generation (5 th The mobile communication module 150 may include at least one filter, a switch, a power amplifier and a low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmit them to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and the amplified signal is converted into an electromagnetic wave and radiated out through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
[0074] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (for example, a speaker 170A and a receiver 170B), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0075] Similar to the mobile communication module 150, the wireless communication module 160 can also provide a wireless communication solution applied to the device 100, such as at least one of the following solutions: wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR). The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate and amplify it, and the signal is converted into electromagnetic waves and radiated through the antenna 2.
[0076] In some embodiments, antenna 1 of device 100 is coupled to mobile communication module 150 , and antenna 2 of device 100 is coupled to wireless communication module 160 .
[0077] The device 100 can implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0078] The display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED (Micro OLED) or a quantum dot light emitting diode (QLED). In some embodiments, the device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0079] The device 100 can realize the shooting function through the camera module 193, ISP, DSP, video codec, GPU, display screen 194 and application processor.
[0080] The camera module 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard red green blue (RGB), YUV or other format. In some embodiments, the device 100 may include 1 or N camera modules 193, where N is a positive integer greater than 1.
[0081] The ISP is used to process the data fed back by the camera module 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera sensor through the lens. The light signal is converted into an electrical signal, and the camera sensor transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can perform algorithm optimization on the noise, brightness and color of the image. The ISP can also optimize the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera module 193.
[0082] The DSP is used to process digital signals, and in addition to processing digital image signals, it can also process other digital signals. For example, when the device 100 is selecting a frequency point, the DSP is used to perform Fourier transform on the frequency point energy.
[0083] Video codecs are used to compress or decompress digital videos. The device 100 may support one or more video codecs. Thus, the device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0084] NPU is a processor that draws on the structure of biological neural networks, such as the transmission mode between neurons in the human brain to quickly process input information, and can also continuously self-learn. The NPU can realize functions such as intelligent cognition of the device 100, such as: image recognition, face recognition, voice recognition and text understanding.
[0085] In some embodiments, the camera module 193 may be composed of a color camera module and a 3D sensing module.
[0086] In some embodiments, the photosensitive element of the camera of the color camera module can be a CCD or CMOS phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
[0087] In some embodiments, the 3D sensing module may be a time of flight (TOF) 3D sensing module or a structured light 3D sensing module. Among them, structured light 3D sensing is an active depth sensing technology, and the basic components of the structured light 3D sensing module may include an IR transmitter, an IR camera module, etc. The working principle of the structured light 3D sensing module is to first emit a light spot of a specific pattern to the object being photographed, and then receive the light spot pattern coding (light coding) on the surface of the object, and then compare the similarities and differences with the original projected light spot, and use the triangulation principle to calculate the three-dimensional coordinates of the object. The three-dimensional coordinates include the distance between the device 100 and the object being photographed. Among them, TOF 3D sensing may be an active depth sensing technology, and the basic components of the TOF 3D sensing module may include an IR transmitter, an IR camera module, etc. The working principle of the TOF 3D sensing module is to calculate the distance (i.e., depth) between the TOF 3D sensing module and the object being photographed by the time when the infrared rays return to obtain a 3D depth map.
[0088] The structured light 3D sensing module can also be applied to face recognition, somatosensory game consoles, industrial machine vision inspection and other fields. The TOF 3D sensing module can also be applied to game consoles, AR / VR and other fields.
[0089] In other embodiments, the camera module 193 may also be composed of two or more cameras. The two or more cameras may include a color camera, which can be used to collect color image data of the photographed object. The two or more cameras may use stereo vision technology to collect depth data of the photographed object. Stereo vision technology is based on the principle of human eye parallax. Under natural light, two or more cameras are used to capture images of the same object from different angles, and then triangulation and other operations are performed to obtain the distance information between the device 100 and the photographed object, that is, the depth information.
[0090] In some embodiments, the device 100 may include one or more camera modules 193. For example, the device 100 may include one front camera module 193 and one rear camera module 193. The front camera module 193 may be used to collect color image data and depth data of the photographer facing the display screen 194, and the rear camera module may be used to collect color image data and depth data of the subject (such as a person, scenery, etc.) facing the photographer.
[0091] In some embodiments, the CPU, GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera module 193. In some embodiments, the NPU can identify the color image data collected by the camera module 193 through a neural network algorithm based on the skeleton point recognition technology, such as a convolutional neural network algorithm, to determine the skeleton points of the photographed person. The CPU or GPU can also run a neural network algorithm to determine the skeleton points of the photographed person according to the color image data. In some embodiments, the CPU, GPU or NPU can also be used to confirm the figure of the photographed person (such as body proportions, fatness and thinness of body parts between skeleton points) according to the depth data collected by the camera module 193 (which can be a 3D sensing module) and the identified skeleton points, and can further determine the body beautification parameters for the photographed person, and finally process the photographed image of the photographed person according to the body beautification parameters, so that the body shape of the photographed person in the photographed image is beautified.
[0092] The external memory interface 120 can be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing files such as music and videos in the external memory card.
[0093] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, at least one application required for a function (for example, a sound playback function and an image playback function). The data storage area can store data created during the use of the device 100 (for example, audio data and a phone book). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as: at least one disk storage device, a flash memory device, and a universal flash storage (UFS). The processor 110 executes various processing methods of the device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0094] The device 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
[0095] The audio module 170 is used to convert digital audio information into analog audio signal output, and can also be used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 or some functional modules of the audio module 170 can be arranged in the processor 110.
[0096] The speaker 170A, also called a horn, is used to convert an audio electrical signal into a sound signal. The device 100 can listen to music or make a hands-free call through the speaker 170A.
[0097] The receiver 170B, also called an earpiece, is used to convert an audio electrical signal into a sound signal. When a user uses the device 100 to answer a call or voice message, the user can listen to the voice by placing the receiver 170B close to the ear.
[0098] Microphone 170C, also known as a microphone or a microphone, is used to convert sound signals into electrical signals. When a user makes a call or sends a voice message, the sound signal can be input into microphone 170C by speaking close to microphone 170C. Device 100 can be provided with at least one microphone 170C. In other embodiments, device 100 can be provided with two microphones 170C to achieve a noise reduction function. In other embodiments, device 100 can also be provided with three, four or more microphones 170C to achieve functions such as sound signal collection, noise reduction, identification of sound source and directional recording.
[0099] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0100] The fingerprint sensor 180H is used to collect fingerprints. The device 100 can use the collected fingerprint characteristics to implement functions such as unlocking and accessing application locks.
[0101] The touch sensor 180K is also called a touch control device. The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch control screen. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor 180K can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the device 100 and set at a different position from the display screen 194.
[0102] The key 190 includes a power key and a volume key. The key 190 may be a mechanical key or a touch key. The device 100 may receive a key input signal and implement a function related to the key input signal.
[0103] Motor 191 can generate vibration. Motor 191 can be used for incoming call reminders and can also be used for touch feedback. Motor 191 can generate different vibration feedback effects for touch operations acting on different applications. Motor 191 can also generate different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (for example, time reminders, receiving messages, alarm clocks, and games) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0104] The indicator 192 may be an indicator light, which may be used to indicate the charging status and the change in the amount of electricity, and may also be used to indicate messages, missed calls, and notifications.
[0105] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195 to achieve contact with the device 100, and can also be pulled out from the SIM card interface 195 to achieve separation from the device 100. The device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. Multiple cards can be inserted into the same SIM card interface 195 at the same time, and the types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with external memory cards. The device 100 interacts with the network through the SIM card to achieve functions such as calls and data communications. In some embodiments, the device 100 uses an embedded SIM (embedded-SIM, eSIM) card, and the eSIM card can be embedded in the device 100 and cannot be separated from the device 100.
[0106] The hardware system of the device 100 is described in detail above, and the software system of the device 100 is introduced below. The software system can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture or a cloud architecture. The embodiment of the present application takes the layered architecture as an example to exemplarily describe the software system of the device 100.
[0107] Figure 3 It is a schematic diagram of the software system of the main device. The software system using a layered architecture is divided into several layers. Each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into three layers, namely, the business layer, the capability layer, and the driver layer from top to bottom.
[0108] The application layer can include a series of application packages. Application packages can include UI implementation, setting management, state management, main service, ranging management, discovery connection management, rule management, keyboard and mouse management, and drag management. The main functions of each application package are as follows.
[0109] UI implementation: mainly implements the logic of related UI.
[0110] Settings Management: Display and logical management of setting capabilities.
[0111] State management: manage the device information table, connection configuration table, and state changes during cursor traversal.
[0112] Main service: The main service that the business starts automatically.
[0113] Discovery and connection management: business scheduling of communication connections and discovery and communication connection capability calls.
[0114] Rule management: Make feasibility judgments on communication connections and direction changes based on the device information table and connection configuration table and return results.
[0115] Keyboard and mouse management: scheduling, triggering, and shutting down keyboard and mouse virtualization capabilities.
[0116] Drag management: Provides drag-in and drag-out capabilities.
[0117] Distance measurement management: distance measurement between collaborative devices (master and slave), direction-related business logic implementation and direction recognition capabilities, including direction change monitoring, fence setting, etc.
[0118] The capability layer provides application programming interface (API) and other functions for the applications in the application layer. The capability layer can include the following modules.
[0119] Direction recognition capability: provides fence capability, dynamic change callback and other functions.
[0120] Keyboard and mouse virtualization capabilities: Provides keyboard and mouse virtualization capabilities, including keyboard and mouse message acquisition and transmission.
[0121] Device management middleware: provides data sharing capabilities between collaborative devices, including service capability switches between collaborative devices.
[0122] Magic link: Provides connection channels and data transmission capabilities between collaborative devices.
[0123] PC Manager Framework: Provides key basic capabilities of the PC, including inter-process communication, multi-screen display capabilities, and drag capabilities (the ability to drag files when the cursor passes through).
[0124] Account system: provides account management functions.
[0125] Trust Ring: Provides security features.
[0126] Basic capabilities: Provides functions such as sockets, input manager, and transmission control protocol (TCP) / Internet protocol (IP).
[0127] The driver layer is the layer between hardware and software. The driver layer includes, for example, Bluetooth drivers, WiFi drivers, human interface device (HID) drivers, and display drivers. Among them, the HID driver can be a mouse driver or a touchpad driver, which is used to establish a communication bridge between the mouse or touchpad and the software system.
[0128] Figure 4 Schematic diagram of the software system of the slave device. The software system using layered architecture is divided into several layers. Each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into three layers, namely, the business layer, the capability layer and the driver layer from top to bottom.
[0129] The application layer can include a series of application packages. Application packages can include UI implementation, setting management, state management, main service, distance management, connection management, keyboard and mouse management, and drag management. The main functions of each application package are as follows.
[0130] UI implementation: mainly implements the logic of related UI.
[0131] Settings Management: Display and logical management of setting capabilities.
[0132] State management: manage the state changes of the cursor during traversal.
[0133] Main service: The main service when the keyboard and mouse service is enabled.
[0134] Connection management: communication connection capacity scheduling and data communication in keyboard and mouse services.
[0135] Keyboard and mouse management: scheduling of keyboard and mouse virtualization capabilities in keyboard and mouse services.
[0136] Drag management: drag-in and drag-out capabilities are implemented.
[0137] Distance measurement management: distance measurement between collaborative devices (master and slave).
[0138] The capability layer provides API and other functions for the applications in the application layer. The capability layer can include the following modules.
[0139] Direction recognition capability: Provides direction recognition function.
[0140] Keyboard and mouse virtualization capability: Provides keyboard and mouse virtualization capability.
[0141] Device management middleware: provides data sharing capabilities between collaborative devices.
[0142] Magic link: Provides connection channels and data transmission capabilities between collaborative devices.
[0143] Service framework: manages the switching and registration of service capabilities.
[0144] Account system: provides account management functions.
[0145] Trust Ring: Provides security features.
[0146] Basic capabilities: Provides sockets, multi-screen framework, drag framework, TCP / IP, input management, etc. The drag framework is used to provide the dragging capability when the cursor passes through, and the input management is used to provide the keyboard and mouse event reporting function of the slave device.
[0147] The driver layer is the layer between hardware and software. The driver layer includes, for example, Bluetooth driver, WiFi driver, user input driver (UinputDriver) and display driver. Among them, UinputDriver is input event driver and needs to be injected.
[0148] Understandably, Figures 2 to 4 The hardware structure and software architecture shown are merely exemplary introductions to the device 100 and do not constitute limitations on the hardware and software of the device 100. The device 100 may also have other types of hardware structures and software architectures.
[0149] The following describes an embodiment of the cursor crossing method provided by the present application. Figure 5 As shown, the method is applied to a system including a master device and at least two slave devices (such as Figure 1The method includes the following contents.
[0150] S510, the master device determines the relative positions of various devices in the system.
[0151] The master device is a device that receives the displacement data of the cursor from the input device, and the slave device is a device that receives the displacement data of the cursor from the master device. The input device can be a mouse, a touchpad, or a VR device. When the input device is a mouse or a VR device, the mouse or VR device can send the displacement data to the master device via a wireless connection (such as a Bluetooth connection or a WiFi connection), or send the displacement data to the master device via a wired connection (such as a USB connection). When the input device is a touchpad, the touchpad can be integrated on the master device and send the displacement data to the processor of the master device through the device bus of the master device; the touchpad can also be an independent device that sends the displacement data to the master device via a wireless connection or a wired connection. This application does not limit the specific form of the input device corresponding to the cursor.
[0152] The master device can determine the relative positions of the devices in the system through Bluetooth connection, WiFi connection or UWB connection. The purpose of determining the relative positions is to prepare for cursor crossing. The method for the master device to determine the relative positions of the devices in the system will be described in detail below.
[0153] S520: The master device determines a current position of the cursor.
[0154] When the cursor is located at the master device, the master device can determine the current position of the cursor based on the previous position and displacement data of the cursor. For example, the mouse sends two displacement data to the master device at time A and time B respectively. The master device updates the position of the cursor at time A according to the displacement data at time A. At time B, the master device can determine the position of the cursor at time B (i.e., the current position) based on the position of the cursor at time A and the displacement data received at time B.
[0155] When the cursor is located at the slave device, the slave device can obtain displacement data from the master device, determine the current position of the cursor and send the current position of the cursor to the master device, so that the master device determines the current position of the cursor on the slave device.
[0156] S530, when the current position is located in the screen edge area of the first slave device, the master device determines whether there is a second slave device in the cursor movement direction of the first slave device according to the relative positions of each device in the system, the first slave device is any one of the at least two slave devices, and the second slave device is a slave device adjacent to the first slave device among the at least two slave devices.
[0157] When the cursor is located at the edge area of the screen of the first slave device, the possibility of the cursor crossing is high. The master device can determine whether there is a second slave device in the direction of the cursor's movement, so as to switch the display device of the cursor. If there is no second slave device, it means that the condition for the cursor to cross does not exist, and the master device does not need to perform the preparation steps for the cursor to cross. If the cursor displacement data is received later, the cursor displacement data can continue to be transmitted to the first slave device. If there is a second slave device, it means that the condition for the cursor to cross exists. The master device can perform the preparation steps for the cursor to cross (such as S540). If the cursor continues to move in the previous direction of movement, the master device switches the target device from the first slave device to the second slave device, sends the cursor displacement data to the second slave device, and no longer sends the cursor displacement data to the first slave device.
[0158] The edge area of the screen may be a preset area, for example, an area whose distance from the border of the screen is less than or equal to a preset length.
[0159] Figure 6 It is a schematic diagram of the edge area of the screen. The cursor moves to the right from the center position of the first slave device. The master device receives the displacement data sent by the mouse and sends the displacement data to the first slave device. The first slave device determines the current position of the cursor based on the displacement data. When the cursor enters the right edge area of the screen (the area outside the dotted box), the first slave device notifies the master device of the event that the cursor enters the right edge area of the screen, and the first slave device also notifies the master device of the direction of movement of the cursor. After the master device obtains these two pieces of information, it determines whether there is an adjacent slave device (i.e., the second slave device) on the right side of the first slave device, and then the following steps can be performed.
[0160] S540, when the second slave device exists in the direction of the cursor movement, and when the cursor reaches the boundary of the first slave device, the master device sends a first crossing message to the second slave device, and the first crossing message includes position information of the initial position of the cursor after crossing from the first slave device to the second slave device.
[0161] An example of cursor crossing is Figure 7 As shown. After the master device determines that the cursor enters the right edge area of the screen of the first slave device, the master device predicts that the cursor will reach the middle of the right boundary of the screen of the first slave device based on the movement trajectory of the cursor. Then the master device can determine that the initial position of the cursor after crossing to the second slave device is the middle of the left boundary of the screen of the second slave device. The master device can set the initial position according to the screen size of the second slave device obtained in advance, and send the position information (such as the coordinate value) of the initial position to the second slave device after the cursor moves to the right boundary of the screen of the first slave device. After the second slave device receives the position information, it displays the cursor in the middle of the left boundary of the screen according to the position information, thereby completing the cursor crossing.
[0162] Another example of cursor crossing is Figure 8 As shown. After the master device determines that the cursor enters the upper edge area of the screen of the first slave device, the master device determines whether there is an adjacent slave device in the direction of the cursor movement (the upper side of the first slave device). When there is a third slave device in the direction of the cursor movement, the master device predicts the crossing position of the cursor according to the movement trajectory of the cursor (e.g., the middle of the upper boundary of the screen of the first slave device). Subsequently, the master device can determine that the initial position of the cursor after crossing to the third slave device is the middle of the lower boundary of the screen of the third slave device. The master device can set the initial position according to the screen size of the third device obtained in advance, and after the cursor moves to the upper boundary of the screen of the first slave device, the position information (e.g., coordinate value) of the initial position is sent to the third slave device. After receiving the position information, the third slave device displays the cursor in the middle of the lower boundary of the screen according to the position information, thereby completing the cursor crossing.
[0163] It can be seen that the embodiment of the present application can make the cursor pass between three devices or more devices. In addition, the movement of the cursor is continuous. When the user moves the cursor to the right edge area of the screen of the first slave device, the user usually wants the cursor to pass to the slave device adjacent to the right side of the first slave device. The embodiment of the present application determines the second slave device based on the cursor movement direction, which can meet the user's cursor display needs when there are multiple slave devices around the first slave device.
[0164] Optionally, before the master device sends the first traversal message to the second slave device, Figure 5 The method shown also includes:
[0165] The master device obtains the screen size of the first slave device and the screen size of the second slave device, the screen size of the first slave device includes the first side length, the screen size of the second slave device includes the second side length, the first side length and the second side length are the lengths of adjacent sides of the first slave device and the second slave device respectively; the master device determines the initial position according to the first side length and the second side length, the initial position is the product of the coordinates of the cursor at the crossing position of the first slave device and the first ratio, the first ratio is the ratio of the first side length to the second side length.
[0166] After obtaining the screen size of the first slave device and the screen size of the second slave device, the master device can determine the first side length and the second side length according to the positional relationship between the first slave device and the second slave device. For example, the master device determines the positional relationship between the first slave device and the second slave device through distance measurement and direction recognition. Figure 7 As shown, the master device can determine that the first side length is the width of the first slave device, and the second side length is the width of the second slave device.
[0167] After determining the first side length and the second side length, the master device can determine the initial position of the cursor after the cursor passes through according to the passing position of the cursor. Optionally, the master device can determine the initial position of the cursor after the cursor passes through according to the following formula:
[0168] Initial position = crossing position * (second side length / first side length).
[0169] like Fig. 9 As shown, the first side length of the first slave device is 30 cm, and the second side length of the second slave device is 20 cm, then the first ratio = second side length / first side length = 2 / 3. If the coordinates of the cursor's crossing position on the first slave device are (4, 3), then the horizontal coordinate of the cursor's crossing to the initial position on the second slave device is 0, and the vertical coordinate is 3*(2 / 3) = 2.
[0170] like Fig.10 As shown, the first side length of the first slave device is 30 cm, and the second side length of the second slave device is also 30 cm, then the first ratio = second side length / first side length = 1. If the coordinates of the cursor's crossing position on the first slave device are (4, 3), then the horizontal coordinate of the cursor's crossing to the initial position on the second slave device is 0, and the vertical coordinate is 3*1=3.
[0171] Depend on Fig. 9 and Fig.10 It can be seen that the first ratio reflects the difference in screen size between the first slave device and the second slave device. The greater the difference in screen size between the first slave device and the second slave device, the greater the first ratio, and the greater the difference between the initial position of the cursor on the second slave device and the crossing position of the cursor on the first slave device; the smaller the difference in screen size between the first slave device and the second slave device, the smaller the first ratio, and the smaller the difference between the initial position of the cursor on the second slave device and the crossing position of the cursor on the first slave device. Therefore, this embodiment can make the position change of the cursor before and after crossing match the ratio of the screen size of the first slave device and the second slave device, thereby making the crossing of the cursor more coherent and smooth.
[0172] Optionally, the master device may obtain the screen size of the first slave device from a response message of a first connection request, where the first connection request is a connection request sent by the master device to the first slave device. The master device may obtain the screen size of the second slave device from a response message of a second connection request, where the second connection request is a connection request sent by the master device to the second slave device.
[0173] The master device obtains the screen resolution of the slave device by using the message in the process of establishing the connection, without specifically requesting to obtain the screen resolution of the slave device, which can reduce signaling overhead.
[0174] In some cases, the screen resolutions of the master device and the slave device are different, resulting in different cursor movement rates on the master device and the slave device, which degrades the user experience. To this end, the slave device can send its screen resolution to the master device, and the master device processes the displacement data based on the screen resolution of the slave device and then sends the processed displacement data to the slave device, so that the cursor movement rate of each slave device can be the same as that of the master device, that is, the mouse sensitivity of each slave device can be the same as that of the master device.
[0175] Fig.11 The invention is an embodiment of a method for converting mouse sensitivity. The method includes the following contents.
[0176] S1101, the master device requests to obtain the screen resolution of the slave device.
[0177] S1102, the slave device sends the screen resolution of the slave device to the master device.
[0178] Optionally, the slave device may also actively send the screen resolution to the master device. For example, during the process of establishing a connection between the master device and the slave device, after the slave device receives the connection request sent by the master device, it sends its own screen resolution to the master device through a response message to the connection request. In this way, the master device does not need to specifically request to obtain the screen resolution of the slave device, which can reduce signaling overhead.
[0179] S1103, the master device calculates the sensitivity conversion rate of the slave device according to the screen resolution of the slave device.
[0180] The master device can determine the cursor sensitivity conversion rate of the second slave device based on the screen resolution of the master device and the screen resolution of the second slave device. The cursor sensitivity conversion rate is positively correlated with the second ratio, which is the ratio of the screen resolution of the second slave device to the screen resolution of the master device.
[0181] For example, if the screen resolution of the master device is 3000*2000 and the screen resolution of the second slave device is 2000*1000, the second ratio of the x-axis is 2000 / 3000=2 / 3, and the second ratio of the y-axis is 1000 / 2000=1 / 2. The sensitivity conversion rate of the x-axis can be 2 / 3 or a multiple of 2 / 3, and the sensitivity conversion rate of the y-axis can be 1 / 2 or a multiple of 1 / 2.
[0182] S1104: Multiply the first cursor displacement data by the sensitivity conversion rate to generate second cursor displacement data.
[0183] The host device receives first displacement data of the cursor from the input device, and then determines second displacement data according to the first displacement data and the cursor sensitivity conversion rate, where the second displacement data is equal to the product of the first displacement data and the cursor sensitivity conversion rate.
[0184] For example, the first displacement data is (3, 2), which indicates that the cursor moves 3 units in the x-axis direction of the screen of the master device, and the cursor moves 2 units in the y-axis direction of the screen of the master device. If the sensitivity conversion rate of the x-axis is 2 / 3 and the sensitivity conversion rate of the y-axis is 1 / 2, then the second displacement data is (3*2 / 3, 2*1 / 2), that is, (2, 1), indicating that the cursor moves 2 units in the x-axis direction of the screen of the second slave device, and the cursor moves 1 unit in the y-axis direction of the screen of the master device.
[0185] After determining the second cursor displacement data, the master device may perform the following steps.
[0186] S1105, the master device sends second cursor displacement data to the slave device.
[0187] The cursor sensitivity conversion rate reflects the difference between the screen resolution of the second slave device and the screen resolution of the master device. The larger the ratio of the screen resolution of the second slave device to the screen resolution of the master device, the larger the cursor sensitivity conversion rate, and the larger the difference between the second displacement data and the first displacement data when the mouse (or other input device) moves the same distance; the smaller the ratio of the screen resolution of the second slave device to the screen resolution of the master device, the smaller the cursor sensitivity conversion rate, and the smaller the difference between the second displacement data and the first displacement data when the mouse (or other input device) moves the same distance. Therefore, this embodiment can make the cursor movement rate of each slave device the same as the cursor movement rate of the master device, thereby improving the user experience.
[0188] Optionally, Figure 5 The method shown also includes:
[0189] After the cursor passes through the second slave device, the master device determines not to send the cursor displacement data to the first slave device.
[0190] After the cursor passes through the second slave device, it becomes meaningless to send displacement data to the first slave device. Stopping sending displacement data to the first slave device can reduce the overhead of transmission resources.
[0191] Optionally, Figure 5The method shown also includes: the master device sends fourth displacement data of the cursor to the second slave device, and the fourth displacement data is used by the first slave device to determine the position of the cursor on the second slave device; when the position of the cursor on the second slave device is located in the screen edge area of the second slave device, the master device determines whether there is an adjacent slave device in the cursor movement direction of the second slave device according to the relative positions of each device in the system; when there is a first slave device in the cursor movement direction of the second slave device, and when the cursor reaches the boundary of the second slave device, the master device sends a second crossing message to the first slave device, and the second crossing message includes position information of the initial position of the cursor after crossing from the second slave device to the first slave device.
[0192] The first slave device can determine the initial position of the cursor after the cursor passes through based on the second passing message, thereby realizing the back-passing of the cursor.
[0193] Fig.12 It is a schematic diagram of a cursor back-penetration method provided by the present application.
[0194] After the master device determines that the cursor enters the left edge area of the screen of the second slave device, the master device determines whether there is an adjacent slave device in the direction of the cursor movement (the left side of the second slave device). When there is an adjacent slave device (i.e., the first slave device) in the direction of the cursor movement, the master device predicts the crossing position of the cursor (e.g., the middle of the left side border of the screen of the second slave device) based on the movement trajectory of the cursor. Subsequently, the master device can determine that the initial position of the cursor after crossing to the first slave device is the middle of the right side border of the screen of the first slave device. The master device can set the initial position based on the screen size of the first slave device obtained in advance. After the cursor moves to the left side border of the screen of the second slave device, the position information (e.g., coordinate value) of the initial position is sent to the first slave device. After receiving the position information, the first slave device displays the cursor in the middle of the right side border of the screen according to the position information, thereby completing the cursor back-crossing.
[0195] The following describes a method for the master device to determine the relative positions of various devices in the system. The method includes the following contents.
[0196] The master device receives a first wireless signal from a first slave device, the first wireless signal including an identifier of the first slave device; the master device determines a first arrival angle and a transmission delay of the first wireless signal; the master device processes the transmission delay of the first wireless signal through a ranging model to determine a first distance between the master device and the first slave device; the master device receives a second wireless signal from a second slave device, the second wireless signal including an identifier of the second slave device; the master device determines a second arrival angle and a transmission delay of the second wireless signal; the master device processes the transmission delay of the second wireless signal through a ranging model to determine a second distance between the master device and the second slave device; the master device determines the relative positions between the master device, the first slave device and the second slave device according to the identifier of the first slave device, the identifier of the second slave device, the first arrival angle, the second arrival angle, the first distance and the second distance.
[0197] Through the identification of the first slave device and the identification of the second slave device, the master device can determine the devices (i.e., the first slave device and the second slave device) corresponding to the first wireless signal and the second wireless signal. Through the first arrival angle and the second arrival angle, the master device can determine the direction of the first slave device and the second slave device relative to the master device. Through the first distance and the second distance, the master device can determine the distance of the first slave device and the second slave device relative to the master device. After determining the direction and distance of the first slave device and the second slave device relative to the master device, the master device can determine the relative position between the master device, the first slave device, and the second slave device.
[0198] Optionally, the first wireless signal and the second wireless signal are: Bluetooth signals, WiFi signals or UWB signals.
[0199] Below, respectively combine Figure 13 to Figure 15 Introduce these three situations.
[0200] As one of the most widely used short-range wireless communication technologies, Bluetooth is used in smart terminal devices. Its stability, power consumption, and transmission distance have been greatly improved in recent years. As a device installed in smart terminals, it also has a natural advantage in distance measurement. Fig.13 The present invention is an example of a method for determining the relative positions of various devices in a system based on Bluetooth signals. The method includes the following contents.
[0201] S1310: The master device establishes a Bluetooth connection with the slave device.
[0202] The slave device can be any one of the multiple slave devices in the system, such as the first slave device, the second slave device, or the third slave device. After the Bluetooth connection is established, the master device can perform the following steps.
[0203] S1320, the master device records the Bluetooth address information, initial Bluetooth signal strength and initial transmission delay of the slave device.
[0204] S1330: The master device reads the current Bluetooth signal strength and current transmission delay of the slave device.
[0205] S1340, the master device calculates a difference between an initial Bluetooth signal strength and a current Bluetooth signal strength, and a difference between an initial transmission delay and a current transmission delay.
[0206] S1350: The master device inputs the Bluetooth signal strength difference and the transmission delay difference into a fitting model to determine the distance between the master device and the slave device.
[0207] The signal strength can be characterized by a received signal strength indicator (RSSI). The greater the distance between the master device and the slave device, the smaller the RSSI; the smaller the distance between the master device and the slave device, the larger the RSSI. Therefore, the distance between the master device and the slave device can be determined based on the RSSI. The distance between the master device and the slave device can also be determined based on other characteristics of the Bluetooth signal, which is not limited in this application.
[0208] As the most widely used wireless technology, WiFi has spread throughout our daily life and work. As a device naturally carried by smart terminals, it also plays a vital role in multi-device collaboration. Therefore, using it as a ranging module does not require adding new device modules and is relatively simple to implement. Fig.14 This is an example of a method for determining the relative positions of various devices in a system based on WiFi signals. The method includes the following contents.
[0209] S1410, the master device establishes a WiFi connection with the slave device.
[0210] S1420, the master device determines a time difference baseline of the WiFi signal of the slave device.
[0211] S1430, the master device receives a current WiFi signal from the slave device, where the current WiFi signal includes a sending time.
[0212] S1440: The master device determines the time difference according to the sending time and receiving time of the current WiFi signal.
[0213] S1450, the master device inputs the time difference baseline and the time difference into a fitting model to determine the distance between the master device and the slave device.
[0214] The transmission of WiFi signals takes time. The master device can determine the transmission time of the WiFi signal (i.e., time difference) based on the time information carried by the WiFi signal (indicating the transmission time of the WiFi signal) and the time of receiving the WiFi signal, and then determine the distance between the master device and the slave device. The transmission time of the WiFi signal determined for the first time after the master device and the slave device establish a WiFi connection can be used as a time difference baseline. Subsequently, if the distance between the master device and the slave device increases, the time difference increases; if the distance between the master device and the slave device decreases, the time difference decreases. Therefore, the distance between the current master device and the slave device can be determined based on the time difference baseline and the current time difference. The distance between the master device and the slave device can also be determined based on other characteristics of the WiFi signal, which is not limited in this application.
[0215] UWB technology is also known as impulse radio technology. Its transmission power consumption is only tens of μW, its frequency domain bandwidth is wide, its wireless power density is low, it will not interfere with other wireless devices, and it also enhances its own anti-interference ability. Therefore, the distance measurement using UWB technology has a higher accuracy. Fig.15 The method is an example of a method for determining the relative positions of various devices in a system based on UWB signals. The method includes the following contents.
[0216] S1510: The master device establishes a UWB connection with the slave device.
[0217] S1520, the master device determines a time difference baseline of the UWB signal of the slave device.
[0218] S1530, the master device receives a current UWB signal from the slave device, where the current UWB signal includes a sending time.
[0219] S1540: The master device determines the time difference according to the sending time and receiving time of the current UWB signal.
[0220] S1550, the master device inputs the time difference baseline and the time difference into the fitting model to determine the distance between the master device and the slave device.
[0221] The transmission of UWB signals takes time. The master device can determine the transmission time of the UWB signal (i.e., time difference) based on the time information carried by the UWB signal (indicating the transmission time of the UWB signal) and the time of receiving the UWB signal, and then determine the distance between the master device and the slave device. The transmission time of the UWB signal determined for the first time after the master device and the slave device establish a UWB connection can be used as a time difference baseline. Subsequently, as the distance between the master device and the slave device increases, the time difference increases; as the distance between the master device and the slave device decreases, the time difference decreases. Therefore, the distance between the current master device and the slave device can be determined based on the time difference baseline and the current time difference. The distance between the master device and the slave device can also be determined based on other characteristics of the UWB signal, which is not limited in this application.
[0222] Next, an embodiment of the cursor crossing method provided by the present application is introduced from the perspective of module interaction.
[0223] Fig.16 This is an example of the preparation process before cursor crossing. The preparation process includes the following.
[0224] S1601, a master service of a master device sends a first connection request to a first slave device.
[0225] Taking Bluetooth connection as an example, the main service may send a first connection request to the first slave device through a Bluetooth driver. After receiving the first connection request, the Bluetooth driver of the first slave device forwards the first connection request to the main service of the first slave device.
[0226] S1602: The master service of the master device sends a ranging instruction to the ranging management.
[0227] The master service may send a ranging indication to the ranging management after sending connection requests to multiple slave devices, so that the ranging management can prepare for ranging.
[0228] S1603, first obtain the screen resolution from the main service of the device.
[0229] After receiving the first connection request, the first slave device determines that the master device and the first slave device are about to work together, and the collaborative work includes cursor crossing. The first slave device can read its own screen resolution and send it to the master device so that the sensitivity before and after the cursor crossing remains unchanged.
[0230] S1604: The master service instruction input management of the first slave device starts the injection service.
[0231] S1605, the input management of the first slave device starts the injection service and waits for data injection.
[0232] S1606: The master service of the first slave device sends a first connection response to the master service of the master device.
[0233] The first connection response is a response message to the first connection request, including the screen resolution and device identifier of the first slave device, wherein the device identifier is used to uniquely identify the first slave device so that the master device can determine the slave device corresponding to the first connection response when receiving multiple response messages.
[0234] S1607: The ranging management of the master device sends a first ranging signal to the first slave device.
[0235] After receiving the first connection response, the master service of the master device determines that the first slave device can work in cooperation, and then notifies the ranging management to measure the position relationship between the master device and the first slave device.
[0236] S1608: The ranging management of the first slave device sends a first ranging response to the master device.
[0237] S1609: The ranging management of the master device determines the distance and relative position of the first slave device according to the first ranging response.
[0238] The first ranging response is a response signal to the first ranging signal. The master device and the first slave device can Figure 13 to Figure 15 Any of the methods in the range measurement can be used.
[0239] S1610, the distance measurement management of the master device sends the distance and relative position of the first slave device to the master service of the master device.
[0240] S1611, the master service of the master device sends a second connection request to the second slave device.
[0241] The second connection request and the first connection request may be sent simultaneously or at different times. The present application does not limit the sending sequence of the first connection request and the second connection request.
[0242] Taking Bluetooth connection as an example, the main service can send a second connection request to the second slave device through the Bluetooth driver. After receiving the second connection request, the Bluetooth driver of the second slave device forwards the second connection request to the main service of the second slave device.
[0243] S1612, secondly, obtaining the screen resolution from the main service of the slave device.
[0244] After receiving the second connection request, the second slave device determines that the master device and the second slave device are about to work together, including cursor crossing. The second slave device can read its own screen resolution and send it to the master device so that the sensitivity before and after the cursor crossing remains unchanged.
[0245] S1613, the master service instruction input management of the second slave device starts the injection service.
[0246] S1614, the input management of the second slave device starts the injection service and waits for data injection.
[0247] S1615, the master service of the second slave device sends a first connection response to the master service of the master device.
[0248] The second connection response is a response message to the second connection request, including the screen resolution and device identifier of the second slave device, wherein the device identifier is used to uniquely identify the second slave device so that the master device can determine the slave device corresponding to the second connection response when receiving multiple response messages.
[0249] S1616: The ranging management of the master device sends a second ranging signal to the second slave device.
[0250] After receiving the second connection response, the master service of the master device determines that the second slave device can work in cooperation, and then notifies the ranging management to measure the position relationship between the master device and the second slave device.
[0251] S1617, the ranging management of the second slave device sends a second ranging response to the master device.
[0252] S1618: The ranging management of the master device determines the distance and relative position of the second slave device according to the second ranging response.
[0253] The second ranging response is a response signal to the second ranging signal. The master device and the second slave device can communicate with each other through Figure 13 to Figure 15 Any of the methods in the range measurement can be used.
[0254] S1619, the distance measurement management of the master device sends the distance and relative position of the second slave device to the master service of the master device.
[0255] If there are more slave devices in the system, the master device can wait until all slave devices have completed ranging before implementing Fig.17 The cursor shown moves through the process.
[0256] Fig.17 The cursor traversal process shown includes the following.
[0257] S1701, the master service of the master device determines the target device.
[0258] The master service may perform the above steps when the cursor is within the screen edge area of the master device. Figure 1 For example, when the cursor is located at the right edge of the screen of the master device, the target device is the first slave device. After determining the target device, the master service can instruct the input management to calculate the initial position of the cursor to the target device.
[0259] S1702: The master service of the master device instructs the input management of the master device to calculate an initial position.
[0260] The main service can send information such as the screen size of the target device to the input management. The main device can also send the device identifier of the target device to the input management, and the input management obtains information such as the screen size of the target device based on the device identifier. After obtaining the screen size of the target device, the input management can Fig. 9 or Fig.10 The example shown calculates the initial position.
[0261] S1703, the input management of the master device sends initial location information to the master service of the master device.
[0262] The initial position information may be a coordinate value. When the cursor moves to the right screen boundary of the master device, the master service of the master device may perform the following steps.
[0263] S1704, the master service of the master device sends a crossing message to the first slave device.
[0264] If a Bluetooth connection is established between the master device and the first slave device, the master service of the master device may send the crossing message through the Bluetooth driver. The crossing message includes initial position information indicating the initial position of the cursor after crossing to the first slave device.
[0265] S1705: The master service of the first slave device sends initial location information to the input management of the first slave device.
[0266] S1706: The input management of the first slave device sets an initial position of the cursor.
[0267] For example, the initial position information is a coordinate value, and the input management of the first slave device sets the initial position of the cursor according to the coordinate value.
[0268] S1707, the input management of the master device sends the displacement data to the master service of the master device.
[0269] The displacement data is data received by the master device from the mouse after the cursor passes through the first slave device.
[0270] S1708, the master service of the master device sends displacement data to the master service of the first slave device.
[0271] S1709, the master service of the first slave device sends displacement data to the input management of the first slave device.
[0272] S1710: The input management of the first slave device sets the current position of the cursor according to the current displacement data.
[0273] The user controls the mouse to move continuously, and the master device continuously sends displacement data to the first slave device. When the cursor moves to the edge area of the screen of the first slave device, the first slave device performs the following steps.
[0274] S1711, the input management of the first slave device sends a notification message to the master service of the first slave device.
[0275] S1712, the master service of the first slave device sends a notification message to the master service of the master device.
[0276] The notification message is used to notify the master device that the cursor has moved to the edge area of the screen of the first slave device.
[0277] S1713, the master device switches the target device according to the notification message.
[0278] by Figure 7 For example, when the cursor is located at the right edge of the screen of the first slave device, the target device is the second slave device. After determining the target device, the master service can instruct the input management to calculate the initial position of the cursor when it crosses to the target device. The input management can be based on Fig. 9 or Fig.10 The example shown calculates the initial position.
[0279] S1714, the master service of the master device instructs the input management of the master device to calculate an initial position.
[0280] The main service can send information such as the screen size of the target device to the input management. The main device can also send the device identifier of the target device to the input management, and the input management obtains information such as the screen size of the target device based on the device identifier. After obtaining the screen size of the target device, the input management can Fig. 9 or Fig.10 The example shown calculates the initial position.
[0281] S1715, the input management of the master device sends initial location information to the master service of the master device.
[0282] The initial position information may be a coordinate value. When the cursor moves to the right screen border of the first slave device, the master service of the master device may perform the following steps.
[0283] S1716, the master service of the master device sends a crossing message to the second slave device.
[0284] If a Bluetooth connection is established between the master device and the second slave device, the master service of the master device can send the crossing message through the Bluetooth driver. The crossing message includes initial position information indicating the initial position of the cursor after crossing to the second slave device.
[0285] S1717, the master service of the second slave device sends initial position information to the input management of the second slave device.
[0286] S1718, the input management of the second slave device sets the initial position of the cursor.
[0287] For example, the initial position information is a coordinate value, and the input management of the second slave device sets the initial position of the cursor according to the coordinate value.
[0288] S1710, the input management of the master device sends displacement data to the master service of the master device.
[0289] The displacement data is data received by the master device from the mouse after the cursor passes through the second slave device.
[0290] S1720, the master service of the master device sends displacement data to the master service of the second slave device.
[0291] S1721, the master service of the second slave device sends displacement data to the input management of the second slave device.
[0292] S1722: The input management of the second slave device sets the current position of the cursor according to the current displacement data.
[0293] The user controls the mouse to move continuously, and the master device continuously sends displacement data to the second slave device.
[0294] The following describes the cursor back-through process. Fig.18 As shown, the back-through process includes the following contents.
[0295] S1801, the input management of the master device sends displacement data to the master service of the master device.
[0296] The displacement data is data received by the master device from the mouse after the cursor passes through the second slave device.
[0297] S1802, the master service of the master device sends displacement data to the master service of the second slave device.
[0298] S1803, the master service of the second slave device sends displacement data to the input management of the second slave device.
[0299] S1804: The input management of the second slave device sets the current position of the cursor according to the current displacement data.
[0300] The user controls the mouse to move continuously, and the master device continuously sends displacement data to the second slave device. When the cursor moves to the edge area of the screen of the second slave device, the second slave device performs the following steps.
[0301] S1805: The input management of the second slave device sends a notification message to the master service of the second slave device.
[0302] S1806, the master service of the second slave device sends a notification message to the master service of the master device.
[0303] The notification message is used to notify the master device that the cursor has moved to the edge area of the screen of the second slave device.
[0304] S1807: The master device switches the target device according to the notification message.
[0305] by Fig.12 For example, when the cursor is located at the left edge of the screen of the second slave device, the target device is the first slave device. After determining the target device, the master service can instruct the input management to calculate the initial position of the cursor when it crosses to the target device. The input management can be based on Fig. 9 or Fig.10 The example shown calculates the initial position.
[0306] S1808: The master service of the master device instructs the input management of the master device to calculate an initial position.
[0307] The main service can send information such as the screen size of the target device to the input management. The main device can also send the device identifier of the target device to the input management, and the input management obtains information such as the screen size of the target device based on the device identifier. After obtaining the screen size of the target device, the input management can Fig. 9 or Fig.10 The example shown calculates the initial position.
[0308] S1809, the input management of the master device sends initial location information to the master service of the master device.
[0309] The initial position information may be a coordinate value. When the cursor moves to the left screen border of the second slave device, the master service of the master device may perform the following steps.
[0310] S1810, the master service of the master device sends a traversal message to the first slave device.
[0311] If a Bluetooth connection is established between the master device and the first slave device, the master service of the master device may send the crossing message through the Bluetooth driver. The crossing message includes initial position information indicating the initial position of the cursor after crossing to the first slave device.
[0312] S1811, the master service of the first slave device sends initial location information to the input management of the first slave device.
[0313] S1812: The input management of the first slave device sets an initial position of the cursor.
[0314] For example, the initial position information is a coordinate value, and the input management of the first slave device sets the initial position of the cursor according to the coordinate value.
[0315] S1813, the input management of the master device sends the displacement data to the master service of the master device.
[0316] The displacement data is data received by the master device from the mouse after the cursor passes from the second slave device to the first slave device.
[0317] S1814, the master service of the master device sends displacement data to the master service of the first slave device.
[0318] S1815, the master service of the first slave device sends displacement data to the input management of the first slave device.
[0319] S1816: The input management of the first slave device sets the current position of the cursor according to the current displacement data.
[0320] The user controls the mouse to move continuously, and the master device continuously sends displacement data to the first slave device.
[0321] The present application also provides a computer program product, which, when executed by a processor, implements the method described in any method embodiment of the present application.
[0322] The computer program product can be stored in a memory, and is finally converted into an executable target file that can be executed by a processor after preprocessing, compiling, assembling and linking.
[0323] The computer program product may also be a code fixed in a chip. The present application does not limit the specific form of the computer program product.
[0324] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0325] The computer-readable storage medium may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM).
[0326] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0327] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0328] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean 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 the present application.
[0329] In addition, the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0330] In short, the above is only a preferred embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application.
Claims
1. A method for cursor crossing, It is characterized in that Applied to a master device, the master device is respectively connected to an input device and at least two slave devices, the at least two slave devices are located on the same side of the master device, the master device is a device that receives cursor displacement data from the input device, and the slave device is a device that receives cursor displacement data from the master device, the method comprises: The master device determines the relative positions between the master device and the at least two slave devices respectively; The master device determines a current position of the cursor; When the current position is located in the screen edge area of the first slave device, the master device determines, according to the relative position, whether there is a second slave device in the cursor moving direction of the first slave device, the first slave device is any one of the at least two slave devices, the second slave device is a slave device adjacent to the first slave device among the at least two slave devices, and the cursor moving direction is the direction of the moving track of the cursor from the first position at the first moment to the current position at the second moment; When the second slave device exists in the direction of the cursor movement and when the cursor reaches the boundary of the first slave device, the master device sends a first crossing message to the second slave device, so that the second slave device displays the cursor at the initial position when receiving the first crossing message, and the first crossing message includes position information of the initial position of the cursor after crossing from the first slave device to the second slave device.
2. The method according to claim 1, It is characterized in that The master device determines the relative positions between the master device and the at least two slave devices, including: The master device receives a first wireless signal from the first slave device, where the first wireless signal includes an identification of the first slave device; The master device determines a first arrival angle and a transmission delay of the first wireless signal; The master device processes the transmission delay of the first wireless signal through a ranging model to determine a first distance between the master device and the first slave device; The master device receives a second wireless signal from the second slave device, where the second wireless signal includes an identification of the second slave device; The master device determines a second arrival angle and a transmission delay of the second wireless signal; The master device processes the transmission delay of the second wireless signal by using the ranging model to determine a second distance between the master device and the second slave device; The master device determines the relative positions among the master device, the first slave device, and the second slave device according to the identifier of the first slave device, the identifier of the second slave device, the first arrival angle, the second arrival angle, the first distance, and the second distance.
3. The method according to claim 1 or 2, It is characterized in that Before the master device sends the first traversal message to the second slave device, the method further includes: The master device acquires a screen size of the first slave device and a screen size of the second slave device, where the screen size of the first slave device includes a first side length, and the screen size of the second slave device includes a second side length, and the first side length and the second side length are respectively the lengths of adjacent sides of the first slave device and the second slave device; The master device determines the initial position according to the first side length and the second side length, and the initial position is the product of the coordinates of the cursor's crossing position on the first slave device and a first ratio, and the first ratio is the ratio of the first side length to the second side length.
4. The method according to claim 3, It is characterized in that The master device acquires the screen size of the first slave device and the screen size of the second slave device, including: The master device acquires the screen size of the first slave device from a response message of a first connection request, where the first connection request is a connection request sent by the master device to the first slave device; The master device obtains the screen size of the second slave device from a response message of a second connection request, where the second connection request is a connection request sent by the master device to the second slave device.
5. The method according to any one of claims 1 to 4, It is characterized in that Before the master device sends the first traversal message to the second slave device, the method further includes: The master device acquires the screen resolution of the second slave device; The master device determines a cursor sensitivity conversion rate of the second slave device according to a screen resolution of the master device and a screen resolution of the second slave device, wherein the cursor sensitivity conversion rate is positively correlated with a second ratio, and the second ratio is a ratio of a screen resolution of the second slave device to a screen resolution of the master device; After the master device sends the first traversal message to the second slave device, the method further includes: The host device receives first displacement data of the cursor from the input device; The master device determines second displacement data according to the first displacement data and the cursor sensitivity conversion rate, wherein the second displacement data is equal to the product of the first displacement data and the cursor sensitivity conversion rate; The master device sends the second displacement data to the second slave device.
6. The method according to claim 5, It is characterized in that The master device acquires the screen resolution of the second slave device, including: The master device obtains the screen size of the second slave device from a response message of a second connection request, where the second connection request is a connection request sent by the master device to the second slave device.
7. The method according to any one of claims 1 to 6, It is characterized in that The master device determines the current position of the cursor, including: The master device sends third displacement data of the cursor to the first slave device, where the third displacement data is used by the first slave device to determine the current position; The master device receives current location information from the first slave device, the current location information indicating the current location; The master device determines the current location according to the current location information.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: After the cursor passes through the second slave device, the master device determines not to send the cursor displacement data to the first slave device.
9. The method according to any one of claims 1 to 8, It is characterized in that The method further comprises: The master device sends fourth displacement data of the cursor to the second slave device, where the fourth displacement data is used by the first slave device to determine the position of the cursor on the second slave device; When the position of the cursor on the second slave device is located in the edge area of the screen of the second slave device, the master device determines whether there is an adjacent slave device in the moving direction of the cursor of the second slave device according to the relative position; When the first slave device exists in the direction of the cursor movement of the second slave device, and when the cursor reaches the boundary of the second slave device, the master device sends a second crossing message to the first slave device, and the second crossing message includes position information of the initial position of the cursor after crossing from the second slave device to the first slave device.
10. A device for cursor crossing, It is characterized in that The device comprises a processor and a memory, wherein the processor and the memory are coupled, and the memory is used to store a computer program. When the computer program is executed by the processor, the device executes the method according to any one of claims 1 to 9.
11. A cursor traversal system, It is characterized in that The cursor traversal system includes a master device, at least two slave devices and an input device, wherein the master device is connected to the input device and the at least two slave devices respectively, and the at least two slave devices are located on the same side of the master device. The master device is a device that receives cursor displacement data from the input device, and the slave device is a device that receives cursor displacement data from the master device. The master device is used to execute the method described in any one of claims 1 to 9.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device including the processor executes the method according to any one of claims 1 to 9.
