Remote desktop display method, device, equipment and storage medium
In the remote desktop control system, the screen resolution is adjusted and the layout is optimized according to the device type of the controlled terminal, which solves the problem of unclear screen display when the controlled terminal is a PC when the main control terminal is a mobile terminal, and realizes The effect is clearly displayed on the mobile terminal.
Patent Information
- Application Number
- CN202310277561.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-03-21
AI Technical Summary
In the remote desktop control system, when the main control terminal is a mobile terminal and the controlled terminal is a PC, the screen image will not be displayed clearly on the mobile terminal due to its large resolution.
By obtaining the device type of the controlled terminal, if it is a PC, the screen image is adjusted according to the preset resolution, and the adjusted image is transmitted to the main control terminal; if it is a mobile terminal, the current screen image is directly transmitted. Adjustment methods include rearranging desktop icons and adjusting them according to the preset resolution to adapt to the display mode of the mobile terminal.
Displaying a clear screen image of the controlled terminal on the main control terminal avoids blur problems caused by resolution differences and improves the user experience of remote desktop control.
Smart Images

Figure CN116820636B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a remote desktop display method, device, equipment and storage medium. Background Art
[0002] Remote desktop is a mode of remote terminal operation. It can be used to visually access the desktop environment of the remote terminal, making it easier for administrators to manage the remote computer server on the client. Through remote desktop, users can remotely control the terminal device at the other end through the network, display the screen display of the controlled end on the main control end, and call the files or programs of the remote terminal.
[0003] The remote desktop control system includes a master terminal and a controlled terminal. However, under normal configuration, if the master terminal is a mobile terminal and the controlled terminal is a PC terminal, due to the larger resolution of the PC terminal display, when the PC terminal screen is displayed remotely, the PC terminal screen will be scaled according to a certain ratio to display the complete screen on the mobile terminal, resulting in unclear mobile terminal screen. Therefore, we urgently need a remote desktop display method that can display a clear controlled terminal screen on the master terminal when the master terminal is a mobile terminal during remote desktop control. Summary of the invention
[0004] The present invention provides a remote desktop display method, device, equipment and storage medium to solve the technical problem that when the main control end is a mobile end and the controlled end is a PC end, the mobile end screen cannot be seen clearly.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a remote desktop display method, comprising:
[0006] Obtaining a remote desktop connection request from a master terminal, and sending a startup instruction to a corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back a current screen image after receiving the startup instruction; wherein the master terminal is a mobile terminal;
[0007] Receiving a device type acquisition instruction sent by the master terminal, and acquiring the device type of the controlled terminal according to the device type acquisition instruction;
[0008] When the device type of the controlled end is a PC end, the current screen image is adjusted according to a preset resolution, and the adjusted screen image is transmitted to the main control end, so that the main control end displays the adjusted screen image after receiving the adjusted screen image;
[0009] When the device type of the controlled terminal is a mobile terminal, the current screen image is directly transmitted to the main control terminal, so that the main control terminal displays the current screen image after receiving the current screen image.
[0010] As a preferred solution, adjusting the current screen image according to a preset resolution includes:
[0011] Acquire the current display mode of the main control end, and when the current display mode of the main control end is vertical screen display, adjust the current screen image according to a preset first resolution;
[0012] When the current display mode of the main control terminal is horizontal screen display, the current screen image is adjusted according to a preset second resolution; wherein the first resolution is smaller than the second resolution.
[0013] As a preferred solution, the preset first resolution is 350px, and the preset second resolution ranges from 768-1080px.
[0014] As a preferred solution, adjusting the current screen image according to a preset resolution includes:
[0015] The desktop icons in the current screen image are rearranged, and then the rearranged current screen image is adjusted according to a preset resolution.
[0016] As a preferred solution, the rearrangement of the desktop icons in the current screen image includes:
[0017] According to the layout mode of the waterfall flow, the desktop icons in the current screen are rearranged.
[0018] Based on the above embodiment, another embodiment of the present invention provides a remote desktop display device, characterized in that it includes: a remote desktop connection module, a device type acquisition module, a current screen image adjustment module and a current screen image transmission module;
[0019] The remote desktop connection module is used to obtain a remote desktop connection request from the master terminal, and send a startup instruction to the corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back the current screen image after receiving the startup instruction; wherein the master terminal is a mobile terminal;
[0020] The device type acquisition module is used to receive an acquisition device type instruction sent by the master terminal, and acquire the device type of the controlled terminal according to the acquisition device type instruction;
[0021] The current screen image adjustment module is used to adjust the current screen image according to a preset resolution when the device type of the controlled end is a PC end, and transmit the adjusted screen image to the main control end, so that the main control end displays the adjusted screen image after receiving the adjusted screen image;
[0022] The current screen transmission module is used to directly transmit the current screen to the main control end when the device type of the controlled end is a mobile end, so that the main control end displays the current screen after receiving the current screen.
[0023] As a preferred solution, the current screen image adjustment module includes: a desktop icon layout unit and a current screen image adjustment unit;
[0024] The desktop icon layout unit is used to, when the device type of the controlled terminal is a PC terminal, re-layout the desktop icons in the current screen image, then adjust the re-layout current screen image according to a preset resolution, and transmit the re-layout current screen image to the current screen image adjustment unit;
[0025] The current screen image adjustment unit is used to adjust the rearranged current screen image according to a preset resolution.
[0026] Based on the above embodiments, another embodiment of the present invention provides a remote desktop display device, the device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the remote desktop display method described in the above invention embodiment is implemented.
[0027] Based on the above embodiments, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the remote desktop display method described in the above invention embodiment.
[0028] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0029] When the present invention performs remote desktop control, if the master terminal is a mobile terminal, a remote desktop connection request of the master terminal is obtained, and a startup instruction is sent to the corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back the current screen image after receiving the startup instruction; when the device type of the controlled terminal is a PC terminal, the current screen image is adjusted according to a preset resolution, and the adjusted screen image is transmitted to the master terminal, so that the master terminal displays the adjusted screen image after receiving the adjusted screen image; when the device type of the controlled terminal is a mobile terminal, the current screen image is directly transmitted to the master terminal, so that the master terminal displays the current screen image after receiving the current screen image.
[0030] When the master terminal is a mobile terminal and the controlled terminal is a PC terminal, compared with the prior art that directly scales the screen image of the PC terminal according to a certain ratio to display the complete image on the mobile terminal, the present invention adjusts the current screen image fed back by the controlled terminal according to a preset resolution, adjusts it to adapt to the resolution of the mobile terminal, and then transmits the adjusted screen image to the master terminal, so that the master terminal displays the adjusted screen image after receiving the adjusted screen image, and a clear screen image of the controlled terminal can be displayed on the master terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flowchart of a remote desktop display method provided by an embodiment of the present invention;
[0032] Figure 2 It is a schematic diagram of the structure of the remote desktop connection system;
[0033] Figure 3 This is a schematic diagram of the layout of the waterfall-style desktop icons on the mobile terminal;
[0034] Figure 4 The present invention is a schematic diagram of a remote desktop display device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Embodiment 1
[0037] Please refer to Figure 1 , is a flow chart of a remote desktop display method provided by an embodiment of the present invention, comprising the following specific steps:
[0038] S1. Obtain a remote desktop connection request from a master terminal, and send a start instruction to a corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back a current screen image after receiving the start instruction; wherein the master terminal is a mobile terminal.
[0039] First, establish a remote desktop connection between the host and the controlled end. Please refer to Figure 2, is a schematic diagram of the composition structure of the remote desktop connection system. The system architecture of the remote desktop includes a client, a server and a remote desktop terminal. The client program is usually installed on the master terminal, and the remote desktop terminal program is installed on the controlled terminal. Among them, the client, that is, the master terminal is used to provide an operation interface for the client. The server includes two modules, namely, a server control module and an agent service module. The server control module is used to receive a remote desktop connection request sent by the client, return a connection response to the client, and send a start instruction to the remote desktop terminal; the agent service module is used to receive a remote desktop control instruction sent by the client after the client and the remote desktop terminal establish a remote communication connection, forward it to the remote desktop control module of the remote desktop terminal through a proxy connection, and forward the result after the remote desktop terminal executes the remote desktop control instruction to the client. The remote desktop terminal, that is, the controlled terminal also includes two modules, namely, a remote desktop control module and a remote desktop service module. The remote desktop control module is used to receive the start instruction sent by the server control module, establish a proxy connection with the agent service module, and send a remote desktop control instruction to the remote desktop service module; the remote desktop service module is used to receive the control instruction sent by the control module, and perform remote control of the remote desktop according to the instruction content.
[0040] When using remote desktop, the main control end program sends a remote desktop connection request to the server control module of the server. After receiving the remote desktop request, the server control module sends a connection response to the main control end and sends a startup instruction to the controlled end. After receiving the startup instruction, the remote desktop control module of the controlled end establishes a proxy connection with the server and feeds back the current screen image to the server. Finally, the main control end starts the remote connection tool to establish a connection with the server, and the server forwards the remote desktop control instructions of the main control end and the current screen display image of the controlled end, so as to achieve the purpose of the main control end remote desktop controlling the controlled end.
[0041] S2. Receive an instruction for obtaining a device type sent by the master terminal, and obtain the device type of the controlled terminal according to the instruction for obtaining a device type.
[0042] The master terminal is set as the mobile terminal. After the master terminal and the controlled terminal establish a remote communication connection, the master terminal sends a device type acquisition instruction to the server, and the server acquires the device type of the controlled terminal according to the device type acquisition instruction.
[0043] S3. When the device type of the controlled end is a PC, the current screen image is adjusted according to a preset resolution, and the adjusted screen image is transmitted to the main control end, so that the main control end displays the adjusted screen image after receiving the adjusted screen image.
[0044] Preferably, the adjusting the current screen image according to a preset resolution includes: obtaining the current display mode of the main control end, and when the current display mode of the main control end is vertical screen display, adjusting the current screen image according to a preset first resolution; when the current display mode of the main control end is horizontal screen display, adjusting the current screen image according to a preset second resolution; wherein the first resolution is smaller than the second resolution.
[0045] Preferably, the preset first resolution is 350px, and the preset second resolution ranges from 768-1080px.
[0046] Preferably, adjusting the current screen image according to a preset resolution includes: rearranging the desktop icons in the current screen image, and then adjusting the rearranged current screen image according to the preset resolution.
[0047] Preferably, the rearranging of the desktop icons in the current screen includes: rearranging the desktop icons in the current screen according to a waterfall flow layout.
[0048] When the device type of the controlled terminal is PC, the server first identifies the number of physical displays of the current controlled terminal, marks the resolution of each physical display, obtains the resolution of the current screen display of the controlled terminal and performs resolution conversion accordingly. Then the current display mode of the main control terminal is obtained. When the current display mode of the main control terminal is vertical screen display, the resolution of the current screen image of the controlled terminal is adjusted to 350px; when the current display mode of the main control terminal is horizontal screen display, the resolution of the current screen image of the controlled terminal is adjusted to 768-1080px; and the adjusted screen image is transmitted to the main control terminal, so that the main control terminal displays the adjusted screen image after receiving the adjusted screen image. For further information, please refer to Figure 3 , which is a schematic diagram of the layout of waterfall-style desktop icons on a mobile terminal. Before adjusting the resolution of the current screen image, the desktop icons in the current screen image are first rearranged according to the layout method of the waterfall flow, and then the resolution of the rearranged current screen image is adjusted.
[0049] S4. When the device type of the controlled terminal is a mobile terminal, the current screen image is directly transmitted to the main control terminal, so that the main control terminal displays the current screen image after receiving the current screen image.
[0050] When the device type of the controlled end is a mobile end, the resolution of the current screen image is not converted, and the current screen image is directly transmitted to the main control end, so that the main control end displays the current screen image after receiving the current screen image.
[0051] It can be seen that the present invention provides a remote desktop display method. When the main control end is a mobile end and the controlled end is a PC end, the method adjusts the current screen image fed back by the controlled end according to a preset resolution, adjusts it to a resolution suitable for the mobile end, and then transmits the adjusted screen image to the main control end, so that the main control end displays the adjusted screen image after receiving the adjusted screen image, and a clear screen image of the controlled end can be displayed on the main control end.
[0052] Embodiment 2
[0053] Please refer to Figure 4 , is a schematic diagram of the structure of a remote desktop display device provided by an embodiment of the present invention, the device comprising: a remote desktop connection module, a device type acquisition module, a current screen image adjustment module and a current screen image transmission module;
[0054] The remote desktop connection module is used to obtain a remote desktop connection request from the master terminal, and send a startup instruction to the corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back the current screen image after receiving the startup instruction; wherein the master terminal is a mobile terminal;
[0055] The device type acquisition module is used to receive an acquisition device type instruction sent by the master terminal, and acquire the device type of the controlled terminal according to the acquisition device type instruction;
[0056] The current screen image adjustment module is used to adjust the current screen image according to a preset resolution when the device type of the controlled end is a PC end, and transmit the adjusted screen image to the main control end, so that the main control end displays the adjusted screen image after receiving the adjusted screen image;
[0057] The current screen transmission module is used to directly transmit the current screen to the main control end when the device type of the controlled end is a mobile end, so that the main control end displays the current screen after receiving the current screen.
[0058] Preferably, the current screen image adjustment module includes: a desktop icon layout unit and a current screen image adjustment unit; the desktop icon layout unit is used to, when the device type of the controlled end is a PC end, rearrange the desktop icons in the current screen image, and then adjust the rearranged current screen image according to a preset resolution, and transmit the rearranged current screen image to the current screen image adjustment unit; the current screen image adjustment unit is used to adjust the rearranged current screen image according to a preset resolution.
[0059] Embodiment 3
[0060] Accordingly, an embodiment of the present invention provides a remote desktop display device, the device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the remote desktop display method described in the above-mentioned embodiment of the invention is implemented.
[0061] Embodiment 4
[0062] Accordingly, an embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the remote desktop display method described in the above embodiment of the invention.
[0063] In summary, the present invention provides a display device, equipment and storage medium for a remote desktop. When the main control end is a mobile end and the controlled end is a PC end, the current screen image fed back by the controlled end is adjusted according to a preset resolution. After adjusting it to a resolution suitable for the mobile end, the adjusted screen image is transmitted to the main control end, so that the main control end displays the adjusted screen image after receiving the adjusted screen image, and a clear screen image of the controlled end can be displayed on the main control end.
[0064] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0065] Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0066] The device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The device may include, but is not limited to, a processor and a memory.
[0067] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and various interfaces and lines are used to connect various parts of the entire device.
[0068] The memory can be used to store the computer program, and the processor realizes various functions of the device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0069] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0070] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A remote desktop display method, characterized in that: include: Obtaining a remote desktop connection request from a master terminal, and sending a startup instruction to a corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back a current screen image after receiving the startup instruction; wherein the master terminal is a mobile terminal; Receiving a device type acquisition instruction sent by the master terminal, and acquiring the device type of the controlled terminal according to the device type acquisition instruction; When the device type of the controlled end is a PC end, the current display mode of the master end is obtained, when the current display mode of the master end is a portrait display, the current screen image is adjusted according to a preset first resolution, when the current display mode of the master end is a landscape display, the current screen image is adjusted according to a preset second resolution, and the adjusted screen image is transmitted to the master end, so that the master end displays the adjusted screen image after receiving the adjusted screen image; wherein the first resolution is smaller than the second resolution; When the device type of the controlled terminal is a mobile terminal, the current screen image is directly transmitted to the main control terminal, so that the main control terminal displays the current screen image after receiving the current screen image.
2. The remote desktop display method according to claim 1, characterized in that: The preset first resolution is 350px, and the preset second resolution ranges from 768-1080px.
3. The remote desktop display method according to claim 1, wherein: The adjusting the current screen image according to a preset resolution includes: The desktop icons in the current screen image are rearranged, and then the rearranged current screen image is adjusted according to a preset resolution.
4. The remote desktop display method according to claim 3, characterized in that: The rearranging of the desktop icons in the current screen includes: According to the layout mode of the waterfall flow, the desktop icons in the current screen are rearranged.
5. A remote desktop display device, characterized in that: include: Remote desktop connection module, device type acquisition module, current screen image adjustment module and current screen image transmission module; The remote desktop connection module is used to obtain a remote desktop connection request from the master terminal, and send a startup instruction to the corresponding controlled terminal according to the remote desktop connection request, so that the controlled terminal feeds back the current screen image after receiving the startup instruction; wherein the master terminal is a mobile terminal; The device type acquisition module is used to receive an acquisition device type instruction sent by the master terminal, and acquire the device type of the controlled terminal according to the acquisition device type instruction; The current screen image adjustment module is used to, when the device type of the controlled end is a PC end, obtain the current display mode of the master end, when the current display mode of the master end is a portrait screen display, adjust the current screen image according to a preset first resolution, when the current display mode of the master end is a landscape screen display, adjust the current screen image according to a preset second resolution, and transmit the adjusted screen image to the master end, so that the master end displays the adjusted screen image after receiving the adjusted screen image; wherein, the first resolution is smaller than the second resolution; The current screen transmission module is used to directly transmit the current screen to the main control end when the device type of the controlled end is a mobile end, so that the main control end displays the current screen after receiving the current screen.
6. The remote desktop display device according to claim 5, characterized in that: The current screen image adjustment module includes: a desktop icon layout unit and a current screen image adjustment unit; The desktop icon layout unit is used to, when the device type of the controlled terminal is a PC terminal, re-layout the desktop icons in the current screen image, then adjust the re-layout current screen image according to a preset resolution, and transmit the re-layout current screen image to the current screen image adjustment unit; The current screen image adjustment unit is used to adjust the rearranged current screen image according to a preset resolution.
7. A remote desktop display device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the remote desktop display method according to any one of claims 1 to 4 when executing the computer program.
8. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the remote desktop display method according to any one of claims 1 to 4.
