CN115801771A - Remote operation method, device, computer equipment and storage medium - Google Patents

Remote operation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN115801771A
CN115801771A CN202310092097.2A CN202310092097A CN115801771A CN 115801771 A CN115801771 A CN 115801771A CN 202310092097 A CN202310092097 A CN 202310092097A CN 115801771 A CN115801771 A CN 115801771A
Authority
CN
China
Prior art keywords
application
request
controlled device
screen
remote operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310092097.2A
Other languages
Chinese (zh)
Inventor
汪蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yishi Huolala Technology Co Ltd
Original Assignee
Shenzhen Yishi Huolala Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yishi Huolala Technology Co Ltd filed Critical Shenzhen Yishi Huolala Technology Co Ltd
Priority to CN202310092097.2A priority Critical patent/CN115801771A/en
Publication of CN115801771A publication Critical patent/CN115801771A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application relates to a remote operation method and a remote operation device. The method comprises the following steps: receiving a screen projection request through a second application, wherein the screen projection request is sent by a main control device in response to a first operation detected by the first application; acquiring a screen image of the controlled device, and transmitting the screen image of the controlled device to the first application through the second application; receiving a remote operation request carrying an operation command through a second application, wherein the remote operation request is sent by the main control device in response to a second operation detected by the first application; and operating the controlled device according to the operation command, and transmitting the current screen image of the controlled device to the first application through the second application after the operation is finished. According to the embodiment of the application, the controlled device can remotely project the screen image to the main control device, and the main control device can remotely operate the controlled device.

Description

Remote operation method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a remote operation method, an apparatus, a computer device, and a storage medium.
Background
In the current App (Application) test work, a large number of different types of mobile phones are needed for different model tests and/or compatibility tests, if a tester does not have a mobile phone of a certain model on hand, the tester needs to purchase or borrow the mobile phone of the model for testing, wherein a large amount of money is needed for purchasing the mobile phone for testing, while a large amount of time is usually needed for borrowing the mobile phone for testing, and the testing progress is delayed due to the fact that the mobile phone of the model cannot be borrowed.
Some enterprises may set corresponding office areas in different geographic locations, for example, an enterprise sets office areas in shenzhen, shanghai and beijing, if each office area is equipped with various models of mobile phones for testing, the testing cost is high, and the utilization rate of the testing mobile phones (referred to as mobile phones for testing) is low at this time. In order to control the testing cost and improve the utilization rate of the testing mobile phone, each office area may be only equipped with a part of models of mobile phones, and when the mobile phones of some models are temporarily unavailable, the mobile phones can be handed to other office areas for testing.
Disclosure of Invention
In order to overcome the defects or shortcomings, the application provides a remote operation method, a remote operation device, computer equipment and a storage medium.
According to a first aspect, the present application provides a remote operation method, in an embodiment, the method is applied to a controlled device, the controlled device and a master control device access a same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application includes a remote operation server program; the method comprises the following steps:
receiving a screen projection request through a second application, wherein the screen projection request is sent by a main control device in response to a first operation of a user detected by the first application;
acquiring a screen image of the controlled device, and transmitting the screen image of the controlled device to the first application through the second application;
receiving a remote operation request carrying an operation command through a second application, wherein the remote operation request is sent by the main control device in response to a second operation detected by the first application;
and operating the controlled device according to the operation command, and transmitting the current screen image of the controlled device to the first application through the second application after the operation is finished.
In one embodiment, before receiving, by the second application, the screen-casting request, the method further comprises:
starting a java process through a second application, and continuously running the java process in a background;
receiving, by the second application, a screen projection request: the method comprises the following steps:
receiving a screen projection request through the java process;
receiving a remote operation request carrying an operation command through a second application, including:
and receiving a remote operation request carrying an operation command through the java process.
In one embodiment, the method further comprises:
after receiving a screen projection request, starting websocket service in the java process;
transmitting the screen image of the controlled device to the first application through the second application, including:
transmitting the screen image of the controlled device to a first application through the websocket service;
transmitting the current screen image of the controlled device to the first application through the second application, wherein the method comprises the following steps:
and transmitting the current screen image of the controlled device to the first application through the websocket service.
In one embodiment, before receiving the screen-casting request through the second application, the method further includes:
and establishing communication connection with the main control equipment through the local area network, and communicating with the main control equipment through the communication connection.
In one embodiment, before receiving the screen-casting request through the second application, the method further includes:
the second application is started in app _ process.
In one embodiment, after acquiring the screen image of the controlled device and transmitting the screen image of the controlled device to the first application through the second application, the method further includes:
monitoring whether an image displayed on a screen of a controlled device changes;
and responding to the change of the image displayed on the screen of the controlled equipment, and sending the changed image displayed on the screen to the first application.
In one embodiment, the controlled device and the master device are located in different geographical locations.
In one embodiment, the controlled device and the master control device are accessed to the same local area network, the master control device is internally provided with a first application, the controlled device is internally provided with a second application, and the second application comprises a remote operation server program; the device comprises:
the screen projection request receiving module is used for receiving a screen projection request through a second application, wherein the screen projection request is sent by the main control device in response to a first operation detected by the first application;
the screen projection module is used for acquiring a screen image of the controlled equipment and transmitting the screen image of the controlled equipment to the first application through the second application;
the operation request receiving module is used for receiving a remote operation request carrying an operation command through a second application, wherein the remote operation request is sent by the main control device in response to a second operation detected by the first application;
and the operation module is used for operating the controlled equipment according to the operation command and transmitting the current screen image of the controlled equipment to the first application through the second application after the operation is finished.
In one embodiment, the method is applied to a master control device, the master control device and a controlled device access the same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; the method comprises the following steps:
detecting a first operation of a user through a first application, responding to the first operation and generating a corresponding screen projection request, and sending the screen projection request to a second application; the screen projection request is used for indicating the second application to transmit the screen image of the controlled device to the first application;
displaying the received screen image of the controlled device through the first application;
detecting a second operation of the user through the first application, responding to the second operation, generating a corresponding remote operation request carrying an operation command, and sending the remote operation request to the second application; the remote operation request is used for indicating the second application to operate the controlled device according to the operation command and transmitting the current screen image of the controlled device to the first application after the operation is completed;
and displaying the received current screen image of the controlled device through the first application.
The present application provides a remote operation apparatus according to a fourth aspect, in an embodiment, the apparatus is applied to a master control device, the master control device and a controlled device access a same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application includes a remote operation server program; the device comprises:
the screen projection request sending module is used for detecting a first operation of a user through a first application, responding to the first operation and generating a corresponding screen projection request, and sending the screen projection request to a second application; the screen projection request is used for indicating the second application to transmit the screen image of the controlled device to the first application;
the first display module is used for displaying the received screen image of the controlled equipment through a first application;
the operation request sending module is used for detecting a second operation of the user through the first application, responding to the detected second operation to generate a corresponding remote operation request carrying an operation command, and sending the remote operation request to the second application; the remote operation request is used for indicating the second application to operate the controlled equipment according to the operation command and transmitting the current screen image of the controlled equipment to the first application after the operation is finished;
and the second display module is used for displaying the received current screen image of the controlled device through the first application.
According to a fifth aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above-described embodiments of the method when executing the computer program.
The present application provides according to a sixth aspect a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of an embodiment of any of the methods described above.
In the embodiment of the application, the master control device and the controlled device are accessed to the same local area network, so that the master control device and the controlled device communicate through the local area network; the master control equipment is internally provided with a first application, and the controlled equipment is internally provided with a second application; the second application comprises a remote operation server program; sending a screen projection request to a second application through a first application, wherein the screen projection request is used for indicating the second application to transmit a screen image of a controlled device to the first application and indicating the first application to display the received screen image of the controlled device through a main control device; and sending a remote operation request carrying an operation command to the second application through the first application, wherein the remote operation request is used for instructing the second application to operate the controlled device according to the operation command, transmitting the current screen image of the controlled device to the first application after the operation is completed, and instructing the first application to display the received current screen image of the controlled device through the main control device, so that the controlled device can remotely screen the screen image to the main control device, and the main control device can remotely operate the controlled device.
Drawings
FIG. 1 is a diagram of an application environment for a remote operation method in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method of remote operation in one embodiment;
FIG. 3 is a schematic diagram illustrating a process for monitoring screen changes of a controlled device according to an embodiment;
FIG. 4 is a block diagram of a remote operation device in one embodiment;
FIG. 5 is a schematic flow chart of a method for remote operation in another embodiment;
FIG. 6 is a block diagram showing a structure of a remote operation device according to another embodiment;
FIG. 7 is a diagram of the internal structure of a computer device in one embodiment.
Detailed description of the preferred embodiments
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The application provides a remote operation method. In one embodiment, the remote operation method may be applied to an application environment as shown in fig. 1, where 10 is a controlled device, 20 is a master device, the controlled device may be a smart mobile device such as a smart phone or a tablet computer, and the master device may be a computing device such as a laptop computer or a desktop computer.
The remote operation method provided by this embodiment may be applied to the controlled device, where the controlled device and the master control device access the same local area network, so that the controlled device and the master control device may communicate via the local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application includes a remote operation server program; in some embodiments, the first application may be a browser. In some embodiments, the controlled device and the master device are located in different geographic locations, e.g., the controlled device is located in beijing and the master device is located in shenzhen. In some embodiments, the controlled device can be located in the same geographic location as the master device, e.g., both located in Shenzhen.
The remote operation method provided by the embodiment includes the steps shown in fig. 2:
and S110, receiving a screen projection request through the second application.
The screen-casting request is sent by the main control equipment in response to a first operation of the user detected by the first application. The first operation refers to any operation performed by the user of the master control device to instruct the first application to send a screen-casting request to the second application, and this embodiment does not limit specific operation content of the first operation.
Further, before receiving a screen-casting request through the second application, the method further includes: and establishing communication connection with the main control equipment through the local area network, and communicating with the main control equipment through the communication connection.
And S120, acquiring the screen image of the controlled device, and transmitting the screen image of the controlled device to the first application through the second application.
The screen image of the controlled device can be transmitted through the local area network.
After the first application receives the screen image of the controlled device, the screen image can be displayed, so that the second application can remotely project the screen of the controlled device to the main control device.
Furthermore, in order to realize better remote screen-projection physical examination, the user of the main control device can check the screen change of the controlled device in time.
In some embodiments, after acquiring the screen image of the controlled device and transmitting the screen image of the controlled device to the first application through the second application, as shown in fig. 3, the method further includes:
s210: monitoring whether an image displayed on a screen of controlled equipment changes or not;
s220: and responding to the change of the image displayed on the screen of the controlled equipment, and sending the changed image displayed on the screen to the first application.
In this embodiment, through the above steps S210 to S220, the screen image of the controlled device can be transmitted to the main control device in real time through the second application, so that the user of the main control device can see the latest image displayed on the screen of the controlled device in time.
And S130, receiving the remote operation request carrying the operation command through the second application.
The remote operation request is sent by the main control device in response to a second operation detected by the first application.
Through the above steps S110 to S120, the user of the master device may see the image displayed on the screen of the controlled device, and then may perform a second operation based on the content displayed by the image to instruct the master device to transmit a remote operation request to the second application. The remote operation request carries an operation instruction, and the operation instruction can be determined according to the second operation. It should be noted that, in this embodiment, specific operation content of the second operation is not limited, and the second operation may be any control instruction that can be supported by the first application. For example, assuming that the controlled device sends the application interface of the second application currently displayed on the screen to the first application, after the application interface of the second application is displayed by the first application, the user of the master device performs a second operation to trigger a corresponding operation instruction (for example, the user may trigger a return instruction by clicking a return button, and for example, the user may trigger a display instruction of a pull-down menu by performing a downward sliding operation from the upper edge of the interface, and so on).
And S140, operating the controlled device according to the operation command, and transmitting the current screen image of the controlled device to the first application through the second application after the operation is finished.
After receiving the remote operation request, the second application extracts an operation command carried by the request, then executes the operation command to operate the controlled device, and transmits the current screen image of the controlled device to the first application after the operation is completed, so that a user of the main control device can see the screen image of the controlled device after the operation is completed through the first application.
In some embodiments, before receiving, by the second application, the screen-casting request, the method further includes: the second application is started in app _ process.
In the embodiment, the second application is started in the app _ process mode of the Android system (and the Android operating system), so that a user of the controlled device does not need to build a complex environment (for example, build a cloud server) on the controlled device in advance, only needs to install the second application on the controlled device, then starts the second application in the app _ process mode, can remotely project a screen image of the controlled device to the master control device through the second application, and can directly respond to the remote operation of the master control device through the second application, thereby simplifying a system architecture required to be built for realizing remote control.
In some embodiments, before receiving, by the second application, the screen-casting request, the method further includes: starting a java process through a second application, and continuously running the java process in a background;
accordingly, the receiving a screen-casting request through the second application includes: receiving a screen projection request through the java process;
receiving a remote operation request carrying an operation command through a second application, including: and receiving a remote operation request carrying an operation command through the java process.
In this embodiment, after the second application is started, a java process is started in the background, and the java process is made to run in the background all the time. Through the java process, the controlled device can be used as a server to receive the screen projection request and the remote operation request sent by the master control device. The screen-casting request and the remote operation request may be HTTP (Hyper Text Transfer Protocol) requests.
Further, in some embodiments, the method further comprises: after receiving a screen projection request, starting websocket service in the java process;
correspondingly, the screen image of the controlled device is transmitted to the first application through the second application, and the method comprises the following steps: transmitting a screen image of a controlled device to a first application through the websocket service;
transmitting the current screen image of the controlled device to the first application through the second application, wherein the method comprises the following steps: and transmitting the current screen image of the controlled device to the first application through the websocket service.
In this embodiment, after the second application is started, if a screen-casting request or a remote operation request sent by the main control device is received, a websocket service is started inside the java process, and then the websocket service is used to transmit the screen image of the controlled device to the first application in real time.
The application also provides an application example for performing remote testing by using the remote operation method provided by the embodiment.
In this application example, the master device is a PC (Personal Computer), the controlled device is a smartphone, and the master device can interface with a plurality of controlled devices (hereinafter, it is assumed that a mobile phone a, a mobile phone B, and a mobile phone C). The first application is a browser and the second application is a remote control application that enables screen projection and remote operation.
The PC and the mobile phone can be located in the same geographical location, or in different geographical locations, for example, the PC is located in shenzhen, and the mobile phone a, the mobile phone B, and the mobile phone C can be located in shenzhen, beijing, and shanghai, respectively.
Remote control application needs to be installed in advance on each mobile phone, and in addition, the PC and each mobile phone need to be accessed to the same local area network, so that the PC and each mobile phone can communicate through the local area network. In order to distinguish the mobile phones in different geographic locations, different IP addresses can be pre-allocated to the mobile phones in different geographic locations for distinguishing.
In the application example, as long as the mobile phone can access the local area network where the PC is located, the mobile phone can establish communication connection with the PC, and further can interact with the PC through the communication connection to complete functions such as screen projection and remote operation. The method comprises the steps that a user of a PC (personal computer) can perform relevant operation on an application interface of a browser to select a target mobile phone needing screen projection from the mobile phones A, B and C, the PC can respond to the operation of the user to establish communication connection with the target mobile phone and then send a screen projection request through the communication connection, a java process can be created in the background when a remote control application running in the target mobile phone is started, a websocket service can be created in the java process after the screen projection request is received through the java process, and then a screen image of the target mobile phone is transmitted to the PC to be displayed through the websocket service. The method comprises the steps that a user of the PC can perform relevant operation on a screen image of a target mobile phone displayed by the PC to trigger an operation command, the PC can obtain the operation command, an IP address corresponding to the target mobile phone and a port number corresponding to a remote control application in the target mobile phone, then a remote operation request (carrying the operation command, the IP address and the port number) is generated and sent to the target mobile phone, the target mobile phone sends the remote operation request to the remote control application based on the port number, the remote control application executes the operation command, and then after the operation corresponding to the operation command is completed, the current screen image of the target mobile phone is transmitted to the PC, so that the user of the PC can see the screen image after the remote operation.
Because the PC can remotely operate the mobile phones at other geographic positions, the utilization rate of the mobile phones for testing can be improved, so that various types of mobile phones required by testing do not need to be equipped at each geographic position, the testing cost can be saved,
fig. 2 and fig. 3 are schematic flow charts of a remote operation method in one embodiment. It should be understood that, although the steps in the flowcharts of fig. 2 and 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
Based on the same inventive concept, the application also provides a remote operation device. In one embodiment, the device is applied to a controlled device, the controlled device and a master control device are accessed to the same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; as shown in fig. 4, the apparatus includes:
a screen projection request receiving module 110, configured to receive a screen projection request through a second application, where the screen projection request is sent by the main control device in response to a first operation detected by the first application;
the screen projection module 120 is configured to obtain a screen image of the controlled device, and transmit the screen image of the controlled device to the first application through the second application;
an operation request receiving module 130, configured to receive, through a second application, a remote operation request carrying an operation command, where the remote operation request is sent by the main control device in response to a second operation detected by the first application and performed by the user;
and the operation module 140 is configured to operate the controlled device according to the operation command, and transmit the current screen image of the controlled device to the first application through the second application after the operation is completed.
In one embodiment, the apparatus further comprises an initiating module. And the starting module is used for starting the java process through the second application before the screen projection request is received through the second application, and continuously running the java process in the background.
Correspondingly, when the screen projection request receiving module 110 receives the screen projection request through the second application, the screen projection request receiving module is configured to: and receiving a screen projection request through the java process.
When the operation request receiving module 130 receives the remote operation request carrying the operation command through the second application, the operation request receiving module is configured to: and receiving a remote operation request carrying an operation command through the java process.
In some embodiments, the apparatus further comprises a service opening module. And the service opening module is used for opening the websocket service in the java process after receiving the screen projection request.
Accordingly, when the screen projecting module 120 transmits the screen image of the controlled device to the first application through the second application, the screen projecting module is configured to: and transmitting the screen image of the controlled device to the first application through the websocket service. The operation module 140 is configured to, when transmitting the current screen image of the controlled device to the first application through the second application: and transmitting the current screen image of the controlled device to the first application through the websocket service.
In some embodiments, the apparatus further comprises a connection module. And the connection module is used for establishing communication connection with the main control equipment through the local area network and communicating with the main control equipment through the communication connection before receiving the screen projection request through the second application.
In some embodiments, the apparatus further comprises an application launching module. And the application starting module is used for starting the second application in an app _ process mode before the screen projection request is received by the second application.
In some embodiments, the apparatus further comprises a monitoring module. The monitoring module is used for monitoring whether the image displayed on the screen of the controlled device changes or not after the screen image of the controlled device is acquired and transmitted to the first application through the second application; and in response to the image displayed on the screen of the controlled device changing, instructing the operation module 140 to send the changed image displayed on the screen to the first application.
In some embodiments, the controlled device and the master device are located in different geographic locations.
For specific limitations of the remote operation device, reference may be made to the above limitations of the remote operation method, which are not described herein again. The respective modules in the remote operation device described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Based on the same inventive concept, the application also provides another remote operation method. In one embodiment, the method is applied to a master control device, the master control device and a controlled device are accessed to the same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; as shown in fig. 5, the method includes:
s310: the method comprises the steps of detecting a first operation of a user through a first application, responding to the first operation, generating a corresponding screen projection request, and sending the screen projection request to a second application.
Wherein the screen-casting request is used for instructing the second application to transmit the screen image of the controlled device to the first application.
S320: displaying the received screen image of the controlled device through the first application;
s330: the method comprises the steps of detecting a second operation of a user through a first application, responding to the second operation, generating a corresponding remote operation request carrying an operation command, and sending the remote operation request to a second application.
The remote operation request is used for instructing the second application to operate the controlled device according to the operation command, and transmitting the current screen image of the controlled device to the first application after the operation is completed.
S340: and displaying the received current screen image of the controlled device through the first application.
For specific limitations of the remote operation method provided in this embodiment, reference may be made to limitations of the remote operation method in the foregoing embodiments, and details are not described here.
Based on the same inventive concept, the application also provides another remote operation device. In one embodiment, the device is applied to a master control device, the master control device and a controlled device are accessed to the same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; as shown in fig. 6, the apparatus includes:
a screen-casting request sending module 310, configured to detect a first operation of a user through a first application, generate a corresponding screen-casting request in response to detecting the first operation, and send the screen-casting request to a second application; the screen projection request is used for indicating the second application to transmit the screen image of the controlled device to the first application;
a first display module 320, configured to display the received screen image of the controlled device through a first application;
an operation request sending module 330, configured to detect a second operation of the user through the first application, generate a corresponding remote operation request carrying an operation command in response to the detection of the second operation, and send the remote operation request to the second application; the remote operation request is used for indicating the second application to operate the controlled equipment according to the operation command and transmitting the current screen image of the controlled equipment to the first application after the operation is finished;
and the second display module 340 is configured to display the received current screen image of the controlled device through the first application.
For specific limitations of the remote operation device provided in this embodiment, reference may be made to the limitations of the remote operation method in the foregoing embodiment, and details are not described herein again. The respective modules in the remote operation device described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used to store data such as an IP address, a port number, etc. of the second application, and specific stored data can also refer to the definitions in the above method embodiments. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a remote operation method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The present embodiment also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method provided in any of the above method embodiments.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method as provided in any of the method embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the embodiments of the methods described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A remote operation method is characterized in that the method is applied to controlled equipment, the controlled equipment and a main control equipment are accessed to the same local area network, a first application is installed in the main control equipment, a second application is installed in the controlled equipment, and the second application comprises a remote operation server program; the method comprises the following steps:
receiving, by the second application, a screen-casting request, where the screen-casting request is sent by the master device in response to a first operation of a user detected by the first application;
acquiring a screen image of the controlled device, and transmitting the screen image of the controlled device to the first application through the second application;
receiving a remote operation request carrying an operation command through the second application, wherein the remote operation request is sent by the main control device in response to a second operation of the user detected by the first application;
and operating the controlled equipment according to the operation command, and transmitting the current screen image of the controlled equipment to the first application through the second application after the operation is finished.
2. The method of claim 1, wherein prior to receiving, by the second application, a screen-cast request, the method further comprises:
starting a java process through the second application, and continuously running the java process in a background;
receiving, by the second application, a screen projection request: the method comprises the following steps:
receiving the screen projection request through the java process;
receiving, by the second application, a remote operation request carrying an operation command, including:
and receiving the remote operation request carrying the operation command through the java process.
3. The method of claim 2, wherein the method further comprises:
after receiving the screen projection request, starting websocket service inside the java process;
transmitting, by the second application, a screen image of the controlled device to the first application, including:
transmitting the screen image of the controlled device to the first application through the websocket service;
transmitting, by the second application, a current screen image of the controlled device to the first application, including:
and transmitting the current screen image of the controlled device to the first application through the websocket service.
4. The method of claim 1, wherein prior to receiving, by the second application, a screen-cast request, the method further comprises:
and establishing communication connection with the main control equipment through the local area network, and communicating with the main control equipment through the communication connection.
5. The method of claim 1, wherein prior to receiving, by the second application, a screen-cast request, the method further comprises:
the second application is started in app _ process.
6. The method of claim 1, wherein after obtaining the screen image of the controlled device and transmitting the screen image of the controlled device to the first application via the second application, the method further comprises:
monitoring whether an image displayed on a screen of the controlled equipment changes;
and responding to the change of the image displayed on the screen of the controlled equipment, and sending the changed image displayed on the screen to the first application.
7. The method of claim 1, wherein the controlled device and the master device are located in different geographic locations.
8. A remote operation device is characterized in that the remote operation device is applied to a controlled device, the controlled device and a main control device are accessed to the same local area network, a first application is installed in the main control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; the device comprises:
a screen projection request receiving module, configured to receive, through the second application, a screen projection request, where the screen projection request is sent by the master control device in response to a first operation of a user detected by the first application;
the screen projection module is used for acquiring a screen image of the controlled device and transmitting the screen image of the controlled device to the first application through the second application;
an operation request receiving module, configured to receive, through the second application, a remote operation request carrying an operation command, where the remote operation request is sent by the master control device in response to a second operation detected by the first application and performed by the user;
and the operation module is used for operating the controlled equipment according to the operation command and transmitting the current screen image of the controlled equipment to the first application through the second application after the operation is finished.
9. A remote operation method is characterized in that the method is applied to a master control device, the master control device and a controlled device are accessed to the same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; the method comprises the following steps:
detecting a first operation of a user through the first application, responding to the first operation and generating a corresponding screen projection request, and sending the screen projection request to the second application; the screen projection request is used for instructing the second application to transmit the screen image of the controlled device to the first application;
displaying the received screen image of the controlled device through the first application;
detecting a second operation of a user through the first application, responding to the second operation, generating a corresponding remote operation request carrying an operation command, and sending the remote operation request to the second application; the remote operation request is used for indicating the second application to operate the controlled equipment according to the operation command and transmitting the current screen image of the controlled equipment to the first application after the operation is finished;
and displaying the received current screen image of the controlled device through the first application.
10. A remote operation device is characterized by being applied to a master control device, wherein the master control device and a controlled device are connected to the same local area network, a first application is installed in the master control device, a second application is installed in the controlled device, and the second application comprises a remote operation server program; the device comprises:
the screen projection request sending module is used for detecting a first operation of a user through the first application, responding to the first operation and generating a corresponding screen projection request, and sending the screen projection request to the second application; the screen projection request is used for instructing the second application to transmit the screen image of the controlled device to the first application;
the first display module is used for displaying the received screen image of the controlled equipment through the first application;
an operation request sending module, configured to detect a second operation of a user through the first application, generate a corresponding remote operation request carrying an operation command in response to detecting the second operation, and send the remote operation request to the second application; the remote operation request is used for indicating the second application to operate the controlled device according to the operation command and transmitting the current screen image of the controlled device to the first application after the operation is completed;
and the second display module is used for displaying the received current screen image of the controlled device through the first application.
CN202310092097.2A 2023-02-10 2023-02-10 Remote operation method, device, computer equipment and storage medium Pending CN115801771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310092097.2A CN115801771A (en) 2023-02-10 2023-02-10 Remote operation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310092097.2A CN115801771A (en) 2023-02-10 2023-02-10 Remote operation method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115801771A true CN115801771A (en) 2023-03-14

Family

ID=85430742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310092097.2A Pending CN115801771A (en) 2023-02-10 2023-02-10 Remote operation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115801771A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427524A (en) * 2020-02-27 2020-07-17 深圳壹账通智能科技有限公司 Remote control method, device, computer equipment and storage medium
CN113608812A (en) * 2021-08-10 2021-11-05 湖北亿咖通科技有限公司 Remote control method, device, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427524A (en) * 2020-02-27 2020-07-17 深圳壹账通智能科技有限公司 Remote control method, device, computer equipment and storage medium
CN113608812A (en) * 2021-08-10 2021-11-05 湖北亿咖通科技有限公司 Remote control method, device, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苍耳的博客: ""app_process使用"" *

Similar Documents

Publication Publication Date Title
CN111858296B (en) Interface testing method, device, equipment and storage medium
CN111917758B (en) Method, device, computer equipment and storage medium for accessing Internet of things platform
CN110031746B (en) Chip test remote monitoring method and device, computer equipment and storage medium
CN110034972B (en) Server pressure testing method and device
CN108400978B (en) Vulnerability detection method and device, computer equipment and storage medium
CN103546907A (en) System and method for testing wireless application protocol webpage
CN109726134B (en) Interface test method and system
CN111352836A (en) Pressure testing method and related device
CN110597709B (en) Interactive debugging method and device for mixed-mode mobile application and computer equipment
CN111193768A (en) Network data processing method and device, computer equipment and storage medium
CN107015912A (en) Realize system, method, device and the electronic equipment of remote debugging
CN105260082A (en) Display method for test data and development terminal
CN111240905B (en) Screen projection diagnosis method, device, system, storage medium and equipment
CN113608812A (en) Remote control method, device, system and storage medium
CN110858175A (en) Test control method, master control equipment, controlled equipment and test system
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN112181822A (en) Test method and test method for starting time consumption of application program
CN109711124B (en) Method, apparatus, computer device and storage medium for managing mobile device
CN111966530A (en) Disaster recovery switching method and device for application system, computer equipment and storage medium
CN114297062A (en) Service testing method and device, electronic equipment and storage medium
CN113630473A (en) Internet of things equipment control method and system, computer equipment and storage medium
CN106302011B (en) Multi-terminal-based test method and terminal
CN111159025B (en) Application program interface testing method and device, computer equipment and storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
CN115801771A (en) Remote operation method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230314