CN117170603A - Terminal control method, electronic device and readable storage medium - Google Patents

Terminal control method, electronic device and readable storage medium Download PDF

Info

Publication number
CN117170603A
CN117170603A CN202311025511.4A CN202311025511A CN117170603A CN 117170603 A CN117170603 A CN 117170603A CN 202311025511 A CN202311025511 A CN 202311025511A CN 117170603 A CN117170603 A CN 117170603A
Authority
CN
China
Prior art keywords
terminal
control
screen display
display picture
instruction
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
CN202311025511.4A
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.)
Xiamen Lidaxin Digital Education Technology Co ltd
Original Assignee
Xiamen Lidaxin Digital Education 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 Xiamen Lidaxin Digital Education Technology Co ltd filed Critical Xiamen Lidaxin Digital Education Technology Co ltd
Priority to CN202311025511.4A priority Critical patent/CN117170603A/en
Publication of CN117170603A publication Critical patent/CN117170603A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a terminal control method, electronic equipment and a readable storage medium, which are applied to the technical field of communication and applied to a first terminal, and comprise the following steps: receiving a screen display picture of a second terminal sent by the second terminal, and throwing the screen display picture; responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal; and sending the control information to the second terminal so that the second terminal executes the control instruction according to the control information. The application solves the technical problem of higher limitation of terminal control.

Description

Terminal control method, electronic device and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a terminal control method, an electronic device, and a readable storage medium.
Background
Along with the development of technology, the communication technology is also mature, and at present, a method for realizing control of a terminal is generally to connect a control peripheral to the terminal through a KVM (Keyboard Video Mouse, keyboard, display and mouse) port, so that the control of the terminal is realized through the control peripheral, and the limitation of terminal control is higher.
Disclosure of Invention
The application mainly aims to provide a terminal control method, electronic equipment and a readable storage medium, and aims to solve the technical problem of high limitation of terminal control in the prior art.
In order to achieve the above object, the present application provides a terminal control method applied to a first terminal, the terminal control method comprising:
receiving a screen display picture of a second terminal sent by the second terminal, and throwing the screen display picture;
responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal;
and sending the control information to the second terminal so that the second terminal executes the control instruction according to the control information.
Optionally, the step of generating the control information corresponding to the second terminal in response to the control instruction for the screen display picture includes:
if the control instruction comprises an instruction generated by user operation, acquiring operation position information corresponding to the user operation, wherein the user operation comprises clicking operation and/or touch operation;
and generating the control information according to the operation position information and the user operation.
Optionally, the step of generating the control information according to the operation position information and the user operation includes:
acquiring a first model of the first terminal;
inquiring a first configuration file according to the user operation and the first model to obtain a target control result guided by the user operation, wherein the first configuration file comprises a corresponding relation between the equipment model and the user operation and the control result;
and generating the control information according to the operation position information and the target control result.
Optionally, the step of generating the control information corresponding to the second terminal in response to the control instruction for the screen display picture includes:
and if the control instruction comprises an instruction generated by a target control result, extracting the target control result and control position information corresponding to the target control result from the control instruction, and generating the control information according to the control position information and the target control result.
Optionally, the step of projecting the screen display picture includes:
acquiring a preset display mode corresponding to the screen display picture, a first screen display parameter of the first terminal and a second screen display parameter of the second terminal, wherein the preset display mode comprises full screen display or window display;
Determining a scaling factor of the screen display picture according to the preset display mode, the first screen display parameter and the second screen display parameter;
and optimizing the screen display picture according to the scaling coefficient, and throwing the optimized screen display picture.
In order to achieve the above object, the present application further provides a terminal control method, applied to a second terminal, the terminal control method comprising:
transmitting a screen display picture of the second terminal to a first terminal so that the first terminal receives the screen display picture and projects the screen display picture;
and receiving control information sent by the first terminal, and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction.
Optionally, the step of executing the control instruction for the screen display on the first terminal according to the control information includes:
if the control instruction comprises an instruction generated by user operation, determining operation position information corresponding to the user operation according to the control information;
And executing a control instruction aiming at the screen display picture on the first terminal according to the control information and the operation position information.
Optionally, the step of executing the control instruction for the screen display on the first terminal according to the control information and the operation position information includes:
obtaining a second model of the second terminal;
inquiring a second configuration file according to a target control result in the control information and the second model to obtain a control strategy corresponding to the second terminal, wherein the second configuration file comprises a corresponding relation between the equipment model and the control result and the control strategy;
and determining a control point on the second terminal according to the control strategy and the operation position information, and executing the control strategy on the control point to execute the control instruction.
In order to achieve the above object, the present application further provides a first terminal, including:
the first receiving module is used for receiving a screen display picture of the second terminal sent by the second terminal and throwing the screen display picture;
the generation module is used for responding to the control instruction aiming at the screen display picture and generating control information corresponding to the second terminal;
And the first sending module is used for sending the control information to the second terminal so that the second terminal can execute the control instruction according to the control information.
To achieve the above object, the present application also provides a second terminal including:
the second sending module is used for sending a screen display picture of the second terminal to the first terminal so that the first terminal can receive the screen display picture and throw the screen display picture;
and the second receiving module is used for receiving the control information sent by the first terminal and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction.
The application also provides an electronic device comprising: the terminal control method includes a memory, a processor, and a program of the terminal control method stored on the memory and executable on the processor, the program of the terminal control method realizing the steps of the terminal control method as described above when executed by the processor.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a terminal control method, which when executed by a processor implements the steps of the terminal control method as described above.
The application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a terminal control method as described above.
The application provides a terminal control method, electronic equipment and a readable storage medium, which are applied to a first terminal, and are used for receiving a screen display picture of a second terminal sent by the second terminal and throwing the screen display picture; responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal; and the control information is sent to the second terminal, so that the second terminal executes the control instruction according to the control information, and the control of the first terminal to the second terminal is realized through screen throwing and control, so that the limitation that the peripheral is required to be connected with and controlled through a KVM port and the terminal is controlled through the control peripheral is overcome, and the limitation of terminal control is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of a first embodiment of a terminal control method according to the present application;
FIG. 2 is a flowchart of a second embodiment of a terminal control method according to the present application;
fig. 3 is a schematic device structure diagram of a first terminal related to a terminal control method in an embodiment of the present application;
fig. 4 is a schematic device structure diagram of a second terminal related to a terminal control method in an embodiment of the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a terminal control method in an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
In order to make the above objects, features and advantages of the present application more comprehensible, the following description of the embodiments accompanied with the accompanying drawings will be given in detail. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Example 1
An embodiment of the present application provides a terminal control method, in a first embodiment of the present application, applied to a first terminal, referring to fig. 1, the terminal control method includes:
step S10, receiving a screen display picture of a second terminal sent by the second terminal, and throwing the screen display picture;
in this embodiment, it should be noted that, the first terminal is a terminal with communication capability, the second terminal is a terminal with communication capability, and the first terminal and the second terminal may use the same terminal system or different terminal systems, which is not limited herein.
In a possible embodiment, a preset screen area of the first terminal is obtained, a screen display picture of the second terminal sent by the second terminal is received through the first terminal, and the screen display picture is projected on the preset screen area.
In another possible embodiment, a preset screen area is acquired; receiving a screen display picture of a second terminal sent by the second terminal through the first terminal; and adjusting the screen display picture according to the area size of the preset screen area, and throwing the adjusted screen display picture on the preset screen area.
In a possible embodiment, when the first terminal and the second terminal adopt different terminal systems, an HDMI (High Definition Multimedia Interface, high-definition multimedia interface) input interface is configured on the first terminal, an HDMI output interface is configured on the second terminal, the HDMI input interface on the first terminal is connected with the HDMI output interface on the second terminal through a first HDMI connection line, and the second terminal sends a screen display picture of the second terminal to the first terminal through the first HDMI connection line.
In step S10, the step of projecting the screen display image includes:
step S11, a preset display mode corresponding to the screen display picture, a first screen display parameter of the first terminal and a second screen display parameter of the second terminal are obtained, wherein the preset display mode comprises full screen display or window display;
in this embodiment, it should be noted that the preset display mode may be set by a user, or may be a default mode, which is not limited herein. The screen display parameters include, but are not limited to, resolution and display size.
It can be appreciated that the screen sizes of the first terminal and the second terminal may be different, so if the screen display is directly projected, a situation may occur that the display effect of the screen display on the first terminal is poor due to the different screen sizes of the first terminal and the second terminal.
The method includes the steps of obtaining a preset display mode corresponding to the screen display picture, a first resolution and/or a first display size of the first terminal, and a second resolution and/or a second display size of the second terminal.
Step S12, determining a scaling factor of the screen display picture according to the preset display mode, the first screen display parameter and the second screen display parameter;
in a possible embodiment, if the preset display mode is the full screen display, a scaling factor of the screen display picture is calculated based on the first screen display parameter and the second screen display parameter.
Specifically, the ratio of the first screen display parameter to the second screen display parameter is used as the scaling factor.
In another possible embodiment, if the preset display mode is the window display, a third display size corresponding to the window display is obtained, and based on the second screen display parameter, a second display size of the screen display picture in the second terminal is calculated; and calculating a scaling factor of the screen display picture based on the third display size and the second display size.
Specifically, a ratio between the third display size and the second display size is taken as the scaling factor.
And step S13, optimizing the screen display picture according to the scaling coefficient, and throwing the optimized screen display picture.
Illustratively, according to the scaling factor, the screen size of the screen display is adjusted, and the screen display with the adjusted screen size is projected.
In a possible embodiment, if the scaling factor is smaller than a preset factor threshold, the frame size of the screen display frame is reduced according to the scaling factor, where the preset factor threshold may be 1.
In another possible embodiment, if the scaling factor is greater than a preset factor threshold, the screen size of the screen display screen is enlarged according to the scaling factor.
Step S20, responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal;
in this embodiment, it should be noted that, the control instruction may be applied by a user, or may be released by default for the system, and the control instruction may be an instruction pointed by a specific operation, or may be an instruction pointed by a specific target, which is not limited herein.
Wherein in step S20, the step of generating control information corresponding to the second terminal in response to the control instruction for the screen display includes:
step S21, if the control instruction comprises an instruction generated by user operation, acquiring operation position information corresponding to the user operation, wherein the user operation comprises clicking operation and/or touch operation;
in a possible embodiment, the operation position information may be coordinate information of an operation position corresponding to the user operation, where the coordinate information is a coordinate in a coordinate system established by using any point on the first terminal as an origin; the relative position of the corresponding operation position in the first terminal may also be operated for the user.
In a possible embodiment, the first terminal is configured with a USB (Universal Serial Bus ) interface, and the operation location information corresponding to the user operation is obtained through USB.
In another possible embodiment, an I2C (Inter-integrated circuit) interface is configured on the first terminal, and the operation location information corresponding to the user operation is obtained through the I2C interface.
And step S22, generating the control information according to the operation position information and the user operation.
Illustratively, the operation position information and the user operation are packaged together as the control information.
Wherein in step S22, the step of generating the control information according to the operation position information and the user operation includes:
step A10, obtaining a first model of the first terminal;
step A20, inquiring a first configuration file according to the user operation and the first model to obtain a target control result guided by the user operation, wherein the first configuration file comprises a corresponding relation between the equipment model and the user operation and the control result;
it will be appreciated that different types of terminals may have different control results for the same operation, for example, a control result of a double click operation on one terminal may be to control a pause of a video, and a control result on the other terminal may be to control a display size of the video, so there may be a case where the control operation does not correspond to the control result.
And step A30, generating the control information according to the operation position information and the target control result.
Illustratively, the operation position information and the target control result are packaged as the control information.
And inquiring a first configuration file according to the user operation and the first model to obtain a target control result guided by the user operation, wherein the first configuration file comprises a corresponding relation between the equipment model and the user operation and the control result, so that a control instruction transmitted to a second terminal is guided by the control result, and the execution error of the second terminal on control information caused by different models of the first terminal and the second terminal is avoided, thereby ensuring the control accuracy of the terminal.
Wherein in step S20, the step of generating control information corresponding to the second terminal in response to the control instruction for the screen display includes:
and step B10, if the control instruction comprises an instruction generated by a target control result, extracting the target control result and control position information corresponding to the target control result from the control instruction, and generating the control information according to the control position information and the target control result.
In this embodiment, the instruction generated by the target control result may be a voice instruction guided by the control result, or may be a text instruction guided by the control result, for example, an instruction to zoom in or zoom out the video. The operation position information may be position coordinate information of a control object corresponding to the target control result, where the position coordinate information is a coordinate in a coordinate system established by using any point on the first terminal as an origin; the relative position of the target control object in the first terminal may also be the target control object.
In a possible embodiment, if the control instruction is a voice instruction, performing voice recognition on the control instruction to obtain the target control result; and determining the control position information according to the target control result.
Specifically, determining a control object corresponding to the target control result; and taking the position information of the control object as the control position information.
And step S30, the control information is sent to the second terminal so that the second terminal can execute the control instruction according to the control information.
It will be appreciated that when the first terminal and the second terminal adopt different terminal systems, for example, when the first terminal adopts a Windows system and the second terminal adopts an embedded system, or when the first terminal adopts an embedded system and the second terminal adopts a Windows system, there may be a situation that control cannot be performed due to incompatibility of the embedded system and the Windows system, and although the Windows driver can overcome the situation that the above systems are incompatible, the difficulty of developing the Windows driver is high and the compatibility is not good, so that the defect that the above systems are incompatible needs to be overcome.
In a possible embodiment, when the first terminal adopts an embedded system and the second terminal adopts a Windows system, the information type of the control information is converted into an HID (Human Interface Device ) type, and the control information with the converted information type is sent to the second terminal.
Because HID is a standard peripheral of Windows system, the defect of incompatibility of the above system is overcome, and no additional development of Windows driver is needed, so the limitation of terminal control is reduced.
In a possible embodiment, when the first terminal and the second terminal adopt different terminal systems, an HDMI output interface is configured on the first terminal, an HDMI input interface is configured on the second terminal, the HDMI output interface on the first terminal is connected with the HDMI input interface on the second terminal through a second HDMI connection line, and the first terminal sends the control information to the second terminal through the second HDMI connection line.
The embodiment of the application provides a terminal control method which is applied to a first terminal, and is used for receiving a screen display picture of a second terminal sent by the second terminal and throwing the screen display picture; responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal; and the control information is sent to the second terminal, so that the second terminal executes the control instruction according to the control information, and the control of the first terminal to the second terminal is realized through screen throwing and control, so that the limitation that the peripheral is required to be connected with and controlled through a KVM port and the terminal is controlled through the control peripheral is overcome, and the limitation of terminal control is reduced.
Example two
Further, in another embodiment of the present application, the same or similar content as that of the first embodiment may be referred to the above description, and will not be repeated. On this basis, referring to fig. 2, the terminal control method is applied to the second terminal, and includes:
step C10, a screen display picture of the second terminal is sent to a first terminal so that the first terminal can receive the screen display picture and throw the screen display picture;
in a possible embodiment, a screen display is selected in the second terminal, and the screen display is sent to the first terminal.
Specifically, a picture of preset software or a preset area in the second terminal is used as the screen display picture.
In a possible embodiment, when the first terminal and the second terminal adopt different terminal systems, an HDMI input interface is configured on the first terminal, an HDMI output interface is configured on the second terminal, the HDMI input interface on the first terminal is connected with the HDMI output interface on the second terminal through a first HDMI connection line, and the second terminal sends a screen display screen of the second terminal to the first terminal through the first HDMI connection line.
Optionally, before the step of receiving the control information sent by the first terminal, the method further includes: and sending a second screen display parameter of the second terminal to the first terminal, wherein the second screen display parameter comprises a second resolution and/or a second display size.
And step C20, receiving control information sent by the first terminal, and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction.
In a possible embodiment, when the first terminal and the second terminal adopt different terminal systems, an HDMI output interface is configured on the first terminal, an HDMI input interface is configured on the second terminal, the HDMI output interface on the first terminal is connected with the HDMI input interface on the second terminal through a second HDMI connection line, and the first terminal sends the control information to the second terminal through the second HDMI connection line.
Wherein in step C20, the step of executing the control instruction for the screen display on the first terminal according to the control information includes:
Step C21, if the control instruction comprises an instruction generated by user operation, determining operation position information corresponding to the user operation according to the control information;
and step C22, executing a control instruction aiming at the screen display picture on the first terminal according to the control information and the operation position information.
Wherein in step C22, the step of executing the control instruction for the screen display on the first terminal according to the control information and the operation position information includes:
step D10, obtaining a second model of the second terminal;
step D20, inquiring a second configuration file according to a target control result and the second model in the control information to obtain a control strategy corresponding to the second terminal, wherein the second configuration file comprises a corresponding relation between the equipment model and the control result and the control strategy;
and step D30, determining a control point on the second terminal according to the control strategy and the operation position information, and executing the control strategy on the control point to execute the control instruction.
Optionally, if the control instruction includes an instruction generated by a target control result, determining control position information and a target control result in the control information, and querying the second configuration file according to the target control result and the second model to obtain a control policy corresponding to the second terminal; and determining a control point on the second terminal according to the control strategy and the control position information, and executing the control strategy on the control point to execute the control instruction.
The embodiment of the application provides a terminal control method which is applied to a second terminal, and is used for receiving a screen display picture of the second terminal by sending the screen display picture of the second terminal to a first terminal, and throwing the screen display picture; and receiving control information sent by the first terminal, and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction, and the control of the first terminal to the second terminal is realized through interaction of the second terminal and the first terminal, so that the limitation that the peripheral is required to be controlled through the KVM port connection and the terminal is controlled through the control peripheral is overcome, and the limitation of terminal control is reduced.
Example III
The embodiment of the application also provides a first terminal, referring to fig. 3, where the first terminal includes:
the first receiving module is used for receiving a screen display picture of the second terminal sent by the second terminal and throwing the screen display picture;
the generation module is used for responding to the control instruction aiming at the screen display picture and generating control information corresponding to the second terminal;
And the first sending module is used for sending the control information to the second terminal so that the second terminal can execute the control instruction according to the control information.
Optionally, the generating module is further configured to:
if the control instruction comprises an instruction generated by user operation, acquiring operation position information corresponding to the user operation, wherein the user operation comprises clicking operation and/or touch operation;
and generating the control information according to the operation position information and the user operation.
Optionally, the generating module is further configured to:
acquiring a first model of the first terminal;
inquiring a first configuration file according to the user operation and the first model to obtain a target control result guided by the user operation, wherein the first configuration file comprises a corresponding relation between the equipment model and the user operation and the control result;
and generating the control information according to the operation position information and the target control result.
Optionally, the generating module is further configured to:
and if the control instruction comprises an instruction generated by a target control result, extracting the target control result and control position information corresponding to the target control result from the control instruction, and generating the control information according to the control position information and the target control result.
Optionally, the first receiving module is further configured to:
acquiring a preset display mode corresponding to the screen display picture, a first screen display parameter of the first terminal and a second screen display parameter of the second terminal, wherein the preset display mode comprises full screen display or window display;
determining a scaling factor of the screen display picture according to the preset display mode, the first screen display parameter and the second screen display parameter;
and optimizing the screen display picture according to the scaling coefficient, and throwing the optimized screen display picture.
The first terminal provided by the application adopts the terminal control method in the embodiment, and solves the technical problem of higher limitation of terminal control. Compared with the prior art, the beneficial effects of the first terminal provided by the embodiment of the application are the same as those of the terminal control method provided by the embodiment, and other technical features in the first terminal are the same as those disclosed by the method of the embodiment, so that the description is omitted herein.
Example IV
The embodiment of the application also provides a second terminal, referring to fig. 4, where the second terminal includes:
The second sending module is used for sending a screen display picture of the second terminal to the first terminal so that the first terminal can receive the screen display picture and throw the screen display picture;
and the second receiving module is used for receiving the control information sent by the first terminal and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction.
Optionally, the second receiving module is further configured to:
if the control instruction comprises an instruction generated by user operation, determining operation position information corresponding to the user operation according to the control information;
and executing a control instruction aiming at the screen display picture on the first terminal according to the control information and the operation position information.
Optionally, the second receiving module is further configured to:
obtaining a second model of the second terminal;
inquiring a second configuration file according to a target control result in the control information and the second model to obtain a control strategy corresponding to the second terminal, wherein the second configuration file comprises a corresponding relation between the equipment model and the control result and the control strategy;
And determining a control point on the second terminal according to the control strategy and the operation position information, and executing the control strategy on the control point to execute the control instruction.
The second terminal provided by the application solves the technical problem of higher limitation of terminal control by adopting the terminal control method in the embodiment. Compared with the prior art, the beneficial effects of the second terminal provided by the embodiment of the present application are the same as those of the terminal control method provided by the above embodiment, and other technical features of the second terminal are the same as those disclosed by the method of the above embodiment, which are not described in detail herein.
Example five
An embodiment of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the terminal control method in the above embodiment.
Referring now to fig. 5, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers PDAs (Personal Digital Assistant, personal digital assistants), PADs (tablet computers), PMPs (Portable Media Player, portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic apparatus may include a processing device (e.g., a central processing unit, a graphics processor, etc.) that may perform various appropriate actions and processes according to a program stored in a ROM (Read-Only Memory) or a program loaded from a storage device into a RAM (Random Access Memory ). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM and RAM are connected to each other via a bus. Input/output (I/O) ports are also connected to the bus.
In general, the following systems may be connected to I/O ports: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tape, hard disk, etc.; a communication device. The communication means may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While electronic devices having various systems are shown in the figures, it should be understood that not all of the illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from ROM. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by a processing device.
The electronic equipment provided by the application solves the technical problem of higher limitation of terminal control by adopting the terminal control method in the embodiment. Compared with the prior art, the electronic device provided by the embodiment of the application has the same beneficial effects as the terminal control method provided by the embodiment, and other technical features in the electronic device are the same as the features disclosed by the method of the embodiment, and are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Example six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for executing the method of the terminal control method in the above-described embodiment.
The computer readable storage medium according to the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, RAM, ROM, EPROM (Erasable Programmable Read Only Memory, erasable programmable read-only memory) or flash memory, an optical fiber, a CD-ROM (compact disc read-only memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (Radio Frequency), and the like, or any suitable combination thereof.
The above-described computer-readable storage medium may be contained in an electronic device; or may exist alone without being assembled into an electronic device.
The computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: receiving a screen display picture of a second terminal sent by the second terminal, and throwing the screen display picture; responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal; the control information is sent to the second terminal so that the second terminal executes the control instruction according to the control information, or a screen display picture of the second terminal is sent to a first terminal so that the first terminal receives the screen display picture and throws the screen display picture; and receiving control information sent by the first terminal, and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a LAN (Local Area Network ) or WAN (Wide Area Network, wide area network), or it may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The computer readable storage medium provided by the application stores the computer readable program instructions for executing the terminal control method, and solves the technical problem of higher limitation of terminal control. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the embodiment of the application are the same as those of the terminal control method provided by the implementation, and are not described in detail herein.
Example seven
The application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a terminal control method as described above.
The computer program product provided by the application solves the technical problem of higher limitation of terminal control. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the terminal control method provided by the above embodiment, and are not described herein.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein, or any application, directly or indirectly, within the scope of the application.

Claims (10)

1. A terminal control method, applied to a first terminal, comprising:
receiving a screen display picture of a second terminal sent by the second terminal, and throwing the screen display picture;
responding to a control instruction aiming at the screen display picture, and generating control information corresponding to the second terminal;
and sending the control information to the second terminal so that the second terminal executes the control instruction according to the control information.
2. The terminal control method according to claim 1, wherein the step of generating control information corresponding to the second terminal in response to a control instruction for the screen display includes:
if the control instruction comprises an instruction generated by user operation, acquiring operation position information corresponding to the user operation, wherein the user operation comprises clicking operation and/or touch operation;
And generating the control information according to the operation position information and the user operation.
3. The terminal control method according to claim 2, wherein the step of generating the control information according to the operation position information and the user operation includes:
acquiring a first model of the first terminal;
inquiring a first configuration file according to the user operation and the first model to obtain a target control result guided by the user operation, wherein the first configuration file comprises a corresponding relation between the equipment model and the user operation and the control result;
and generating the control information according to the operation position information and the target control result.
4. The terminal control method according to claim 1, wherein the step of generating control information corresponding to the second terminal in response to a control instruction for the screen display includes:
and if the control instruction comprises an instruction generated by a target control result, extracting the target control result and control position information corresponding to the target control result from the control instruction, and generating the control information according to the control position information and the target control result.
5. The terminal control method according to claim 1, wherein the step of projecting the screen display includes:
acquiring a preset display mode corresponding to the screen display picture, a first screen display parameter of the first terminal and a second screen display parameter of the second terminal, wherein the preset display mode comprises full screen display or window display;
determining a scaling factor of the screen display picture according to the preset display mode, the first screen display parameter and the second screen display parameter;
and optimizing the screen display picture according to the scaling coefficient, and throwing the optimized screen display picture.
6. A terminal control method, applied to a second terminal, comprising:
transmitting a screen display picture of the second terminal to a first terminal so that the first terminal receives the screen display picture and projects the screen display picture;
and receiving control information sent by the first terminal, and executing a control instruction aiming at the screen display picture on the first terminal according to the control information, wherein the control information is generated by the first terminal in response to the control instruction.
7. The terminal control method of claim 6, wherein the step of executing a control instruction for the screen display on the first terminal according to the control information comprises:
if the control instruction comprises an instruction generated by user operation, determining operation position information corresponding to the user operation according to the control information;
and executing a control instruction aiming at the screen display picture on the first terminal according to the control information and the operation position information.
8. The terminal control method according to claim 7, wherein the step of executing a control instruction for the screen display on the first terminal based on the control information and the operation position information includes:
obtaining a second model of the second terminal;
inquiring a second configuration file according to a target control result in the control information and the second model to obtain a control strategy corresponding to the second terminal, wherein the second configuration file comprises a corresponding relation between the equipment model and the control result and the control strategy;
and determining a control point on the second terminal according to the control strategy and the operation position information, and executing the control strategy on the control point to execute the control instruction.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the terminal control method of any one of claims 1 to 5 or to perform the steps of the terminal control method of any one of claims 6 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program that realizes the terminal control method, the program realizing the terminal control method being executed by a processor to realize the terminal control method according to any one of claims 1 to 5, or to perform the steps of the terminal control method according to any one of claims 6 to 8.
CN202311025511.4A 2023-08-15 2023-08-15 Terminal control method, electronic device and readable storage medium Pending CN117170603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311025511.4A CN117170603A (en) 2023-08-15 2023-08-15 Terminal control method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311025511.4A CN117170603A (en) 2023-08-15 2023-08-15 Terminal control method, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN117170603A true CN117170603A (en) 2023-12-05

Family

ID=88938561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311025511.4A Pending CN117170603A (en) 2023-08-15 2023-08-15 Terminal control method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN117170603A (en)

Similar Documents

Publication Publication Date Title
US20220053068A1 (en) Methods, apparatuses and computer storage media for applet state synchronization
CN109446025B (en) Operation behavior playback method and device, electronic equipment and readable medium
WO2020156056A1 (en) Video playing control method, apparatus and device, and medium
CN113377365B (en) Code display method, apparatus, device, computer readable storage medium and product
CN110287810A (en) Car door motion detection method, device and computer readable storage medium
WO2021088794A1 (en) Control setting method and apparatus, electronic device and interaction system
CN111309617A (en) Application program control method and device, storage medium and electronic equipment
CN109302563B (en) Anti-shake processing method and device, storage medium and mobile terminal
CN113129366B (en) Monocular SLAM initialization method and device and electronic equipment
CN117170603A (en) Terminal control method, electronic device and readable storage medium
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN115022611A (en) VR picture display method, electronic device and readable storage medium
CN114153542A (en) Screen projection method and device, electronic equipment and computer readable storage medium
CN114090817A (en) Dynamic construction method and device of face feature database and storage medium
CN115190342B (en) Display device control method and device, electronic device and readable storage medium
CN114724528B (en) Display control method and device of display device, electronic device and storage medium
CN115348478B (en) Equipment interactive display method and device, electronic equipment and readable storage medium
CN112040149A (en) Input source switching method and device of screen projector, screen projector and storage medium
CN115314740B (en) Display page interaction control method and device, electronic equipment and readable storage medium
CN114979792B (en) Display device control method and device, electronic device and readable storage medium
CN110908711A (en) Control development method and device of application program and electronic equipment
CN115052181B (en) Split-screen body-building mode starting method and device, display equipment and readable storage medium
CN114979749B (en) Graphic interface drawing method, electronic equipment and readable storage medium
WO2020238276A1 (en) Sliding control method and apparatus for view control, device, and storage medium
CN114690907A (en) User interaction assistance method, electronic device and readable 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