CN111010483B - Mobile terminal control method and device, computer device and storage medium - Google Patents

Mobile terminal control method and device, computer device and storage medium Download PDF

Info

Publication number
CN111010483B
CN111010483B CN201911329424.1A CN201911329424A CN111010483B CN 111010483 B CN111010483 B CN 111010483B CN 201911329424 A CN201911329424 A CN 201911329424A CN 111010483 B CN111010483 B CN 111010483B
Authority
CN
China
Prior art keywords
control
terminal
mobile terminal
request
mobile terminals
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.)
Active
Application number
CN201911329424.1A
Other languages
Chinese (zh)
Other versions
CN111010483A (en
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 Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201911329424.1A priority Critical patent/CN111010483B/en
Publication of CN111010483A publication Critical patent/CN111010483A/en
Application granted granted Critical
Publication of CN111010483B publication Critical patent/CN111010483B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a mobile terminal control method, which comprises the following steps: connecting a plurality of mobile terminals in the wireless local area network, wherein the plurality of mobile terminals are integrated with control controls; determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network; receiving a terminal information request sent by a control request terminal; responding to the terminal information request to return the terminal information of the online mobile terminal to the control request terminal; receiving a control instruction of the control request terminal to a specified mobile terminal in the on-line mobile terminals; and calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction. The invention also provides a mobile terminal control device, a computer device and a computer readable storage medium. The invention can realize more convenient control of the mobile terminal, improves the control efficiency and enhances the scene adaptability.

Description

Mobile terminal control method and device, computer device and storage medium
Technical Field
The invention relates to the field of equipment control, in particular to a mobile terminal control method and device, a computer device and a computer readable storage medium.
Background
Generally, the server or the computer may control the mobile terminal through a USB (Universal Serial Bus).
However, the server or the computer controls the mobile terminal through the USB is affected by the number of USB interfaces, the control authority, and other factors, which results in low efficiency of controlling the mobile terminal. In addition, due to the limitation of the length of the USB, the server or the computer is not highly adaptive to the scene in which the mobile terminal is controlled by the USB.
Disclosure of Invention
In view of the foregoing, there is a need for a mobile terminal control method, a mobile terminal control apparatus, a computer apparatus, and a computer-readable storage medium, which can achieve more convenient control of a mobile terminal, improve control efficiency, and enhance scene adaptability.
A first aspect of the present application provides a mobile terminal control method, including:
connecting a plurality of mobile terminals in the wireless local area network, wherein the plurality of mobile terminals are integrated with control controls;
determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network;
receiving a terminal information request sent by a control request terminal;
responding to the terminal information request to return the terminal information of the online mobile terminal to the control request terminal;
receiving a control instruction of the control request terminal to a specified mobile terminal in the on-line mobile terminals;
and calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
In another possible implementation manner, the connecting the plurality of mobile terminals in the wireless local area network includes:
receiving connection requests sent by the plurality of mobile terminals through an HTTP service running on the computer device;
and responding to the connection request to establish HTTP connection with the plurality of mobile terminals.
In another possible implementation manner, the computer apparatus communicates with the plurality of mobile terminals through a wireless routing device in the wireless local area network, and the connecting the plurality of mobile terminals in the wireless local area network includes:
the HTTP service running on the computer device receives the connection requests sent by the mobile terminals through the wireless routing equipment;
and responding to the connection request, and establishing HTTP connection with the plurality of mobile terminals through the wireless routing equipment.
In another possible implementation manner, the determining, by the wireless local area network, an online mobile terminal from the plurality of mobile terminals includes:
receiving terminal identifications sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time from the plurality of mobile terminals as the online mobile terminal.
In another possible implementation manner, the determining, by the wireless local area network, an online mobile terminal from the plurality of mobile terminals includes:
receiving terminal identifications, residual electric quantity and residual storage space sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time, the residual capacity larger than the preset residual capacity and the residual storage space larger than the preset residual storage space from the plurality of mobile terminals as the online mobile terminal.
In another possible implementation manner, the invoking the control of the specified mobile terminal according to the control instruction includes:
generating a calling request according to the control instruction;
sending the calling request to the proxy service of the appointed mobile terminal, enabling the proxy service of the appointed mobile terminal to call the control of the appointed mobile terminal according to the calling request, and enabling the control of the appointed mobile terminal to control the appointed mobile terminal according to the calling request;
and receiving a control result returned by the proxy service of the appointed mobile terminal.
In another possible implementation manner, before the invoking the control of the specified mobile terminal according to the control instruction, the method further includes:
judging whether the control request terminal is legal or not;
if the control request terminal is legal, calling a control of the specified mobile terminal according to the control instruction;
and if the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
A second aspect of the present application provides a computer apparatus comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, implementing the mobile terminal control method.
A third aspect of the present application provides a mobile terminal control apparatus, the apparatus comprising:
the connection unit is used for connecting a plurality of mobile terminals in the wireless local area network, and the mobile terminals are integrated with control controls;
a determining unit, configured to determine an online mobile terminal from the plurality of mobile terminals through the wireless local area network;
a first receiving unit, configured to receive a terminal information request sent by a control request terminal;
a returning unit, configured to return the terminal information of the online mobile terminal to the control request terminal in response to the terminal information request;
a second receiving unit, configured to receive a control instruction from the control request terminal to a specific mobile terminal in the online mobile terminals;
and the calling unit is used for calling the control of the appointed mobile terminal according to the control instruction so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
In another possible implementation manner, the connecting the plurality of mobile terminals in the wireless local area network includes:
receiving connection requests sent by the plurality of mobile terminals through an HTTP service running on the computer device;
and responding to the connection request to establish HTTP connection with the plurality of mobile terminals.
In another possible implementation manner, the computer apparatus communicates with the plurality of mobile terminals through a wireless routing device in the wireless local area network, and the connecting the plurality of mobile terminals in the wireless local area network includes:
the HTTP service running on the computer device receives the connection requests sent by the mobile terminals through the wireless routing equipment;
and responding to the connection request, and establishing HTTP connection with the plurality of mobile terminals through the wireless routing equipment.
In another possible implementation manner, the determining, by the wireless local area network, an online mobile terminal from the plurality of mobile terminals includes:
receiving terminal identifications sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time from the plurality of mobile terminals as the online mobile terminal.
In another possible implementation manner, the determining, by the wireless local area network, an online mobile terminal from the plurality of mobile terminals includes:
receiving terminal identifications, residual electric quantity and residual storage space sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time, the residual capacity larger than the preset residual capacity and the residual storage space larger than the preset residual storage space from the plurality of mobile terminals as the online mobile terminal.
In another possible implementation manner, the invoking the control of the specified mobile terminal according to the control instruction includes:
generating a calling request according to the control instruction;
sending the calling request to the proxy service of the appointed mobile terminal, enabling the proxy service of the appointed mobile terminal to call the control of the appointed mobile terminal according to the calling request, and enabling the control of the appointed mobile terminal to control the appointed mobile terminal according to the calling request;
and receiving a control result returned by the proxy service of the appointed mobile terminal.
In another possible implementation manner, the mobile terminal control apparatus further includes a determining unit, configured to determine whether the control request terminal is legal or not before the control of the specified mobile terminal is called according to the control instruction; if the control request terminal is legal, calling a control of the specified mobile terminal according to the control instruction; and if the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the mobile terminal control method.
The mobile terminal control method can realize more convenient control of the mobile terminal, improves the efficiency of controlling the mobile terminal and enhances the adaptability to different control scenes.
Drawings
Fig. 1 is a flowchart of a mobile terminal control method according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of a mobile terminal control device according to a preferred embodiment of the present invention.
FIG. 3 is a diagram of a computer device according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Preferably, the mobile terminal control method of the present invention is applied to one or more computer apparatuses. The computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The computer device can be in man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
Example one
Fig. 1 is a flowchart of a mobile terminal control method according to an embodiment of the present invention. The mobile terminal control method is applied to a computer device in a Wireless Local Area Network (WLAN), and is used for controlling the mobile terminal.
Referring to fig. 1, the mobile terminal control method specifically includes the following steps:
and 101, connecting a plurality of mobile terminals in the wireless local area network, wherein the plurality of mobile terminals are integrated with control controls.
In a specific embodiment, the connecting the plurality of mobile terminals in the wireless lan includes:
receiving connection requests transmitted by the plurality of mobile terminals through an HTTP (Hyper Text Transfer Protocol) service running on the computer device;
and responding to the connection request to establish HTTP connection with the plurality of mobile terminals.
Specifically, the plurality of mobile terminals send connection requests to the HTTP service through HTTP. The HTTP service receives the connection requests sent by the mobile terminals through HTTP, and sends confirmation requests to the mobile terminals in response to the connection requests. The plurality of mobile terminals send confirmation information to the HTTP service over HTTP in response to the confirmation request. And the HTTP service receives the confirmation information sent by the mobile terminals through HTTP. When the HTTP service receives the confirmation information sent by the mobile terminals through HTTP, the HTTP service establishes HTTP connection with the mobile terminals successfully.
In another embodiment, the computer apparatus and the plurality of mobile terminals are located in the wireless local area network, and the computer apparatus communicates with the plurality of mobile terminals through a wireless routing device in the wireless local area network. Wireless Local Area Network (WLAN, short for Wireless Local Area Network) refers to a Network system that applies Wireless communication technology to interconnect computer devices to form a Network system that can communicate with each other and realize resource sharing.
Specifically, the computer device communicates with a Wireless router in the Wireless local area network through a wired connection, the mobile terminals communicate with the Wireless router in the Wireless local area network through WiFi (Wireless Fidelity, a Wireless local area network technology based on IEEE 802.11 series standards), and the computer device indirectly communicates with the mobile terminals through the Wireless router in the Wireless local area network.
The connecting the plurality of mobile terminals in the wireless local area network comprises:
the HTTP service running on the computer device receives the connection requests sent by the mobile terminals through the wireless routing equipment;
and responding to the connection request, and establishing HTTP connection with the plurality of mobile terminals through the wireless routing equipment.
The computer device may be a liunx server.
The plurality of mobile terminals may include an Android smart phone, an Android smart tablet, an Android smart watch, and the like.
The control may be uiautomation 2 (a jar package, automation control integrated in google Android official Android system).
102, determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network.
In a specific embodiment, the determining, by the wireless local area network, an online mobile terminal from the plurality of mobile terminals includes:
receiving terminal identifications sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time from the plurality of mobile terminals as the online mobile terminal.
For example, the terminal identifications transmitted by the proxy server by the mobile terminal 1 and the mobile terminal 2 through the wireless router device in the wireless local area network are respectively terminal identification 1(741AEDR43P5DG-2C:57:31:4B:40:72-M2_ E) and terminal identification 2(651AEDR43P5DG-2C:57:31:4B:40:72-M2_ E), and the receiving time 1 of the receiving terminal identification 1 and the receiving time 2 of the receiving terminal identification 2 are recorded. The historical time 1 of the terminal identifier 1 closest to the reception time 1 is searched for from the database of the computer device, and the historical time 2 of the terminal identifier 2 closest to the reception time 2 is searched for from the database of the computer device. And determining the difference between the receiving time 1 and the historical time 1 as the heartbeat interval time of the mobile terminal 1, and determining the difference between the receiving time 2 and the historical time 2 as the heartbeat interval time of the mobile terminal 2. The heartbeat interval time of the mobile terminal 1 is 2s, the heartbeat interval time of the mobile terminal 1 is 4s, and the preset heartbeat interval time is 3 s. The mobile terminal 1 is determined to be an online mobile terminal.
In another embodiment, the determining, from the plurality of mobile terminals, an online mobile terminal through the wireless local area network comprises:
receiving terminal identifications, residual electric quantity and residual storage space sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time, the residual capacity larger than the preset residual capacity and the residual storage space larger than the preset residual storage space from the plurality of mobile terminals as the online mobile terminal.
The terminal identification of each mobile terminal may include an IP (Internet Protocol) address, a MAC (Media Access Control) address, a UDID (Unique Device Identifier), an encrypted IP address, an encrypted MAC address, and/or an encrypted UDID, etc. of the mobile terminal.
The computer device can actively determine the online mobile terminal from the mobile terminals in real time according to the heartbeat interval time of the mobile terminals, so that the online mobile terminal can be timely used when a terminal information request sent by a control request terminal is received, and the purpose of reducing the response time is achieved.
103, receiving a terminal information request from a control request terminal.
In a specific embodiment, the computer device may receive a terminal information request sent by the control request terminal through HTTP to request a terminal identifier, a terminal model, a terminal brand, and the like of the online mobile terminal.
For example, the IP address of the computer device is 10.162.10.4, and the terminal information request to the mobile terminal sent by the control request terminal through HTTP through the HTTP service receiving control request terminal is HTTP:// 10.162.10.4/list.
For another example, the IP address of the computer device is 10.162.10.3, and the terminal information request sent by the HTTP service receiving control request terminal to the online mobile terminal is HTTP://10.162.10.3/listID & SERIAL & BRAND. Wherein "ID", "SERIAL", and "bran" are respectively a terminal identifier, a terminal model, and a terminal BRAND of the online mobile terminal requested by the control request terminal.
The control request terminal may not be located in the wireless local area network, and the control request terminal may communicate with the computer apparatus from a network located outside the wireless local area network through a routing device in the wireless local area network.
The control request terminal may be located in the wireless local area network, and the control request terminal communicates with the computer apparatus through a wireless routing device in the wireless local area network.
In another embodiment, the control request receiving terminal may receive an input terminal information request command, the control request receiving terminal sends the terminal information request to the computer device through HTTP according to the terminal information request command, and the computer device receives the terminal information request sent by the control request receiving terminal through HTTP for the online mobile terminal.
In another embodiment, the control request receiving terminal may execute a script file to generate a terminal information request instruction, the control request receiving terminal sends the terminal information request to the computer device through HTTP according to the terminal information request instruction, and the computer device receives the terminal information request sent by the control request receiving terminal through HTTP to the online mobile terminal.
And 104, responding to the terminal information request, and returning the terminal information of the online mobile terminal to the control request terminal.
In a specific embodiment, the HTTP service running on the computer apparatus may return the terminal identification, the terminal model, and the terminal brand of the online mobile terminal to the control request terminal through HTTP in response to the terminal information request. The terminal identity, terminal model and terminal brand of the online mobile terminal may originate from the online mobile terminal. And the terminal identification of the online mobile terminal corresponds to the IP address one by one.
For example, the HTTP service running on the computer device may respond to the terminal information request, which is HTTP://10.162.10.3/listID & SERIAL & BRAND, the IP address of the control request terminal is 10.162.10.5, and the terminal identification, terminal model and terminal BRAND of the online mobile terminal are returned to the control request terminal with IP address of 10.162.10.5 by HTTP. Returning content may include: { "UDID": 741AEDR43P5DG-2C:57:31:4B:40:72-M2_ E "," IP ": 10.240.218.20", "SERIAL": 741AEDG62E3RH "," BRAND ": MEIZHU" }. Wherein, "741 AEDR43P5DG-2C:57:31:4B:40:72-M2_ E" is a terminal identifier of the online mobile terminal, "10.240.218.20" is an IP address of the online mobile terminal, the terminal identifier and the IP address of the online mobile terminal can be in one-to-one correspondence, the "741 AEDG62E3 RH" is a terminal model of the online mobile terminal, and "MEIZHU" is a terminal brand of the online mobile terminal.
And 105, receiving a control instruction of the control request terminal to a specified mobile terminal in the on-line mobile terminals.
In a specific embodiment, the receiving the control instruction of the control request terminal to the specified one of the online mobile terminals may include:
and receiving a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminal through a GET method or a POST method of HTTP. The type of the control command may include a click command, a screen capture command, and the like.
The control instruction can be a number, a character string and the like, and is used for referring to control behaviors such as clicking, screen capturing and the like. For example, the click command may be the number 1 to refer to simulated click behavior of the user interface of a given mobile terminal; the screen capture instruction may be the number 2 to refer to simulated screen capture behavior of the user interface of the specified mobile terminal.
The terminal model and the terminal brand in the terminal information of the specified mobile terminal may be used to select the specified mobile terminal from the online mobile terminals, and the terminal identification in the terminal information of the specified mobile terminal may be used to distinguish the specified mobile terminal to be controlled.
For example, specifying the terminal model number in the terminal information of the mobile terminal as "741 AEDG62E3 RH", specifying the terminal brand in the terminal information of the mobile terminal as "MEIZHU", may be used by the computer apparatus to select a mobile terminal having the terminal model number of "741 AEDG62E3 RH" and/or the terminal brand of "MEIZHU" from among the online mobile terminals. The terminal identity in the terminal information of the specified mobile terminal is "741 AEDR43P5DG-2C:57:31:4B:40:72-M2_ E", and the computer apparatus may call only the control of the specified mobile terminal corresponding to the terminal identity.
And 106, calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
In a specific embodiment, the invoking the control of the designated mobile terminal according to the control instruction includes:
(1) and generating a calling request according to the control instruction.
For example, the IP address corresponding to the terminal identifier "741 AEDR43P5DG-2C:57:31:4B:40:72-M2_ E" in the control instruction is 10.240.218.20, the type of the control instruction is a click instruction, the character string corresponding to the click instruction is click, and the generated call request is http:// 10.240.118.20/click.
(2) And sending the calling request to the proxy service of the appointed mobile terminal, so that the proxy service of the appointed mobile terminal calls the control of the appointed mobile terminal according to the calling request, and the control of the appointed mobile terminal controls the appointed mobile terminal according to the calling request.
For example, a wireless routing device in a wireless local area network sends a call request "HTTP:// 10.240.118.20/click" to a proxy service of a specified mobile terminal by using a GET method or a POST method of HTTP, and a parameter corresponding to the call request in the proxy service of the specified mobile terminal is { "initial selector 2": new ui selector (). text ("WeChat Red packet") }, where "initial selector 2" is a control of the specified mobile terminal and "new ui selector (). text (" WeChat Red packet ")" may represent a method for newly creating a control for clicking text as WeChat Red packet on the specified mobile terminal, and the specified mobile terminal executes the method, so that the control of the specified mobile terminal can click the control (button) for clicking the text as WeChat Red packet on the specified mobile terminal according to the call request and the parameter corresponding to the call request.
(3) And receiving a control result returned by the proxy service of the appointed mobile terminal.
The control result returned by the proxy service of the specified mobile terminal can be received by the wireless routing device in the wireless local area network by adopting a GET method or a POST method of HTTP. The control result may include a number, a string of characters, and/or a screenshot to express or explain whether the control was successful. For example, as in the above-mentioned example, the control result returned by the proxy service of the specified mobile terminal is received by the wireless routing device by using the GET method of the HTTP, and is number 0, which indicates that the control with the text of the WeChat Red envelope on the specified mobile terminal is clicked and then does not enter the WeChat Red envelope pickup interface, thereby indicating that the control fails.
In another embodiment, before the control of the specified mobile terminal is called according to the control instruction, whether the control request terminal is legal is judged; if the control request terminal is legal, calling a control of the specified mobile terminal according to the control instruction; and if the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
For example, obtaining the identification information of the control request terminal, inquiring whether the control request terminal has the authority to control the specified mobile terminal according to the identification information of the control request terminal, if the inquired control request terminal has the authority to control the specified mobile terminal, the control request terminal is legal, and calling the control of the specified mobile terminal according to the control instruction; and if the inquired control request terminal does not have the authority for controlling the appointed mobile terminal, and the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
The mobile terminal control method according to the first embodiment is connected to a plurality of mobile terminals in the wireless local area network, and the plurality of mobile terminals are integrated with control controls; determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network; receiving a terminal information request sent by a control request terminal; responding to the terminal information request to return the terminal information of the online mobile terminal to the control request terminal; receiving a control instruction of the control request terminal to a specified mobile terminal in the on-line mobile terminals; and calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction. According to the embodiment, the mobile terminal can be controlled more conveniently, the control efficiency is improved, and the scene adaptability is enhanced.
Example two
Fig. 2 is a block diagram of a mobile terminal control device according to a preferred embodiment of the present invention. The mobile terminal control device 10 is applied to a computer device in a Wireless Local Area Network (WLAN) for controlling the mobile terminal.
As shown in fig. 2, the mobile terminal control apparatus 10 may include: the device comprises a connection unit 201, a determination unit 202, a first receiving unit 203, a return unit 204, a second receiving unit 205 and a calling unit 206.
A connection unit 201, configured to connect multiple mobile terminals in the wireless local area network, where the multiple mobile terminals are integrated with a control.
In a specific embodiment, the connecting the plurality of mobile terminals in the wireless lan includes:
receiving connection requests transmitted by the plurality of mobile terminals through an HTTP (Hypertext Transfer Protocol) service running on the computer device;
and responding to the connection request to establish HTTP connection with the plurality of mobile terminals.
Specifically, the plurality of mobile terminals send connection requests to the HTTP service through HTTP. The HTTP service receives the connection requests sent by the mobile terminals through HTTP, and sends confirmation requests to the mobile terminals in response to the connection requests. The plurality of mobile terminals send confirmation information to the HTTP service over HTTP in response to the confirmation request. And the HTTP service receives the confirmation information sent by the mobile terminals through HTTP. When the HTTP service receives the confirmation information sent by the mobile terminals through HTTP, the HTTP service establishes HTTP connection with the mobile terminals successfully.
In another embodiment, the computer apparatus and the plurality of mobile terminals are located in the wireless local area network, and the computer apparatus communicates with the plurality of mobile terminals through a wireless routing device in the wireless local area network. Wireless Local Area Network (WLAN, short for Wireless Local Area Network) refers to a Network system that applies Wireless communication technology to interconnect computer devices to form a Network system that can communicate with each other and realize resource sharing.
Specifically, the computer device communicates with a Wireless router in the Wireless local area network through a wired connection, the mobile terminals communicate with the Wireless router in the Wireless local area network through WiFi (Wireless Fidelity, a Wireless local area network technology based on IEEE 802.11 series standards), and the computer device indirectly communicates with the mobile terminals through the Wireless router in the Wireless local area network.
The connecting the plurality of mobile terminals in the wireless local area network comprises:
the HTTP service running on the computer device receives the connection requests sent by the mobile terminals through the wireless routing equipment;
and responding to the connection request, and establishing HTTP connection with the plurality of mobile terminals through the wireless routing equipment.
The computer device may be a liunx server.
The plurality of mobile terminals may include an Android smart phone, an Android smart tablet, an Android smart watch, and the like.
The control may be uiautomation 2 (a jar package, automation control integrated in google Android official Android system).
A determining unit 202, configured to determine an online mobile terminal from the plurality of mobile terminals through the wireless local area network.
In a specific embodiment, the determining, by the wireless local area network, an online mobile terminal from the plurality of mobile terminals includes:
receiving terminal identifications sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time from the plurality of mobile terminals as the online mobile terminal.
For example, the terminal identifications transmitted by the proxy server by the mobile terminal 1 and the mobile terminal 2 through the wireless router device in the wireless local area network are respectively terminal identification 1(741AEDR43P5DG-2C:57:31:4B:40:72-M2_ E) and terminal identification 2(651AEDR43P5DG-2C:57:31:4B:40:72-M2_ E), and the receiving time 1 of the receiving terminal identification 1 and the receiving time 2 of the receiving terminal identification 2 are recorded. The historical time 1 of the terminal identifier 1 closest to the reception time 1 is searched for from the database of the computer device, and the historical time 2 of the terminal identifier 2 closest to the reception time 2 is searched for from the database of the computer device. And determining the difference between the receiving time 1 and the historical time 1 as the heartbeat interval time of the mobile terminal 1, and determining the difference between the receiving time 2 and the historical time 2 as the heartbeat interval time of the mobile terminal 2. The heartbeat interval time of the mobile terminal 1 is 2s, the heartbeat interval time of the mobile terminal 1 is 4s, and the preset heartbeat interval time is 3 s. The mobile terminal 1 is determined to be an online mobile terminal.
In another embodiment, the determining, from the plurality of mobile terminals, an online mobile terminal through the wireless local area network comprises:
receiving terminal identifications, residual electric quantity and residual storage space sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time, the residual capacity larger than the preset residual capacity and the residual storage space larger than the preset residual storage space from the plurality of mobile terminals as the online mobile terminal.
The terminal identification of each mobile terminal may include an IP (Internet Protocol) address, a MAC (Media Access Control) address, a UDID (Unique Device Identifier), an encrypted IP address, an encrypted MAC address, and/or an encrypted UDID, etc. of the mobile terminal.
The computer device can actively determine the online mobile terminal from the mobile terminals in real time according to the heartbeat interval time of the mobile terminals, so that the online mobile terminal can be timely used when a terminal information request sent by a control request terminal is received, and the purpose of reducing the response time is achieved.
A first receiving unit 203, configured to receive a terminal information request sent by a control request terminal.
In a specific embodiment, the computer device may receive a terminal information request sent by the control request terminal through HTTP to request a terminal identifier, a terminal model, a terminal brand, and the like of the online mobile terminal.
For example, the IP address of the computer device is 10.162.10.4, and the terminal information request to the mobile terminal sent by the control request terminal through HTTP through the HTTP service receiving control request terminal is HTTP:// 10.162.10.4/list.
For another example, the IP address of the computer device is 10.162.10.3, and the terminal information request sent by the HTTP service receiving control request terminal to the online mobile terminal is HTTP://10.162.10.3/listID & SERIAL & BRAND. Wherein "ID", "SERIAL", and "bran" are respectively a terminal identifier, a terminal model, and a terminal BRAND of the online mobile terminal requested by the control request terminal.
The control request terminal may not be located in the wireless local area network, and the control request terminal may communicate with the computer apparatus from a network located outside the wireless local area network through a routing device in the wireless local area network.
The control request terminal may be located in the wireless local area network, and the control request terminal communicates with the computer apparatus through a wireless routing device in the wireless local area network.
In another embodiment, the control request receiving terminal may receive an input terminal information request command, the control request receiving terminal sends the terminal information request to the computer device through HTTP according to the terminal information request command, and the computer device receives the terminal information request sent by the control request receiving terminal through HTTP for the online mobile terminal.
In another embodiment, the control request receiving terminal may execute a script file to generate a terminal information request instruction, the control request receiving terminal sends the terminal information request to the computer device through HTTP according to the terminal information request instruction, and the computer device receives the terminal information request sent by the control request receiving terminal through HTTP to the online mobile terminal.
A returning unit 204, configured to return the terminal information of the online mobile terminal to the control request terminal in response to the terminal information request.
In a specific embodiment, the HTTP service running on the computer apparatus may return the terminal identification, the terminal model, and the terminal brand of the online mobile terminal to the control request terminal through HTTP in response to the terminal information request. The terminal identity, terminal model and terminal brand of the online mobile terminal may originate from the online mobile terminal. And the terminal identification of the online mobile terminal corresponds to the IP address one by one.
For example, the HTTP service running on the computer device may respond to the terminal information request, which is HTTP://10.162.10.3/listID & SERIAL & BRAND, the IP address of the control request terminal is 10.162.10.5, and the terminal identification, terminal model and terminal BRAND of the online mobile terminal are returned to the control request terminal with IP address of 10.162.10.5 by HTTP. Returning content may include: { "UDID": 741AEDR43P5DG-2C:57:31:4B:40:72-M2_ E "," IP ": 10.240.218.20", "SERIAL": 741AEDG62E3RH "," BRAND ": MEIZHU" }. Wherein, "741 AEDR43P5DG-2C:57:31:4B:40:72-M2_ E" is a terminal identifier of the online mobile terminal, "10.240.218.20" is an IP address of the online mobile terminal, the terminal identifier and the IP address of the online mobile terminal can be in one-to-one correspondence, the "741 AEDG62E3 RH" is a terminal model of the online mobile terminal, and "MEIZHU" is a terminal brand of the online mobile terminal.
A second receiving unit 205, configured to receive a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminals.
In a specific embodiment, the receiving the control instruction of the control request terminal to the specified one of the online mobile terminals may include:
and receiving a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminal through a GET method or a POST method of HTTP. The type of the control command may include a click command, a screen capture command, and the like.
The control instruction can be a number, a character string and the like, and is used for referring to control behaviors such as clicking, screen capturing and the like. For example, the click command may be the number 1 to refer to simulated click behavior of the user interface of a given mobile terminal; the screen capture instruction may be the number 2 to refer to simulated screen capture behavior of the user interface of the specified mobile terminal.
The terminal model and the terminal brand in the terminal information of the specified mobile terminal may be used to select the specified mobile terminal from the online mobile terminals, and the terminal identification in the terminal information of the specified mobile terminal may be used to distinguish the specified mobile terminal to be controlled.
For example, specifying the terminal model number in the terminal information of the mobile terminal as "741 AEDG62E3 RH", specifying the terminal brand in the terminal information of the mobile terminal as "MEIZHU", may be used by the computer apparatus to select a mobile terminal having the terminal model number of "741 AEDG62E3 RH" and/or the terminal brand of "MEIZHU" from among the online mobile terminals. The terminal identity in the terminal information of the specified mobile terminal is "741 AEDR43P5DG-2C:57:31:4B:40:72-M2_ E", and the computer apparatus may call only the control of the specified mobile terminal corresponding to the terminal identity.
And the calling unit 206 is configured to call the control of the designated mobile terminal according to the control instruction, so that the control of the designated mobile terminal controls the designated mobile terminal according to the control instruction.
In a specific embodiment, the invoking the control of the designated mobile terminal according to the control instruction includes:
(1) and generating a calling request according to the control instruction.
For example, the IP address corresponding to the terminal identifier "741 AEDR43P5DG-2C:57:31:4B:40:72-M2_ E" in the control instruction is 10.240.218.20, the type of the control instruction is a click instruction, the character string corresponding to the click instruction is click, and the generated call request is http:// 10.240.118.20/click.
(2) And sending the calling request to the proxy service of the appointed mobile terminal, so that the proxy service of the appointed mobile terminal calls the control of the appointed mobile terminal according to the calling request, and the control of the appointed mobile terminal controls the appointed mobile terminal according to the calling request.
For example, a wireless routing device in a wireless local area network sends a call request "HTTP:// 10.240.118.20/click" to a proxy service of a specified mobile terminal by using a GET method or a POST method of HTTP, and a parameter corresponding to the call request in the proxy service of the specified mobile terminal is { "initial selector 2": new ui selector (). text ("WeChat Red packet") }, where "initial selector 2" is a control of the specified mobile terminal and "new ui selector (). text (" WeChat Red packet ")" may represent a method for newly creating a control for clicking text as WeChat Red packet on the specified mobile terminal, and the specified mobile terminal executes the method, so that the control of the specified mobile terminal can click the control (button) for clicking the text as WeChat Red packet on the specified mobile terminal according to the call request and the parameter corresponding to the call request.
(3) And receiving a control result returned by the proxy service of the appointed mobile terminal.
The control result returned by the proxy service of the specified mobile terminal can be received by the wireless routing device in the wireless local area network by adopting a GET method or a POST method of HTTP. The control result may include a number, a string of characters, and/or a screenshot to express or explain whether the control was successful. For example, as in the above-mentioned example, the control result returned by the proxy service of the specified mobile terminal is received by the wireless routing device by using the GET method of the HTTP, and is number 0, which indicates that the control with the text of the WeChat Red envelope on the specified mobile terminal is clicked and then does not enter the WeChat Red envelope pickup interface, thereby indicating that the control fails.
In another embodiment, the mobile terminal control apparatus 10 further includes a determining unit, configured to determine whether the control request terminal is legal before the control of the specified mobile terminal is called according to the control instruction; if the control request terminal is legal, calling a control of the specified mobile terminal according to the control instruction; and if the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
For example, obtaining the identification information of the control request terminal, inquiring whether the control request terminal has the authority to control the specified mobile terminal according to the identification information of the control request terminal, if the inquired control request terminal has the authority to control the specified mobile terminal, the control request terminal is legal, and calling the control of the specified mobile terminal according to the control instruction; and if the inquired control request terminal does not have the authority for controlling the appointed mobile terminal, and the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
The mobile terminal control device 10 of the second embodiment is connected to a plurality of mobile terminals in the wireless local area network, and the plurality of mobile terminals are integrated with control controls; determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network; receiving a terminal information request sent by a control request terminal; responding to the terminal information request to return the terminal information of the online mobile terminal to the control request terminal; receiving a control instruction of the control request terminal to a specified mobile terminal in the on-line mobile terminals; and calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction. The second embodiment can realize more convenient control of the mobile terminal, improve the control efficiency and strengthen the scene adaptability.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps in the above-mentioned mobile terminal control method embodiment, for example, 101-106 shown in fig. 1:
101, connecting a plurality of mobile terminals in the wireless local area network, wherein the plurality of mobile terminals are integrated with control controls;
102, determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network;
103, receiving a terminal information request sent by a control request terminal;
104, responding to the terminal information request, and returning the terminal information of the online mobile terminal to the control request terminal;
105, receiving a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminals;
and 106, calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
Alternatively, the computer program, when executed by the processor, implements the functions of the modules/units in the above-mentioned device embodiments, for example, the unit 201 and 206 in fig. 2:
a connection unit 201, configured to connect a plurality of mobile terminals in the wireless local area network, where the plurality of mobile terminals are integrated with a control;
a determining unit 202, configured to determine an online mobile terminal from the plurality of mobile terminals through the wireless local area network;
a first receiving unit 203, configured to receive a terminal information request sent by a control request terminal;
a returning unit 204, configured to return the terminal information of the online mobile terminal to the control request terminal in response to the terminal information request;
a second receiving unit 205, configured to receive a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminals;
and the calling unit 206 is configured to call the control of the designated mobile terminal according to the control instruction, so that the control of the designated mobile terminal controls the designated mobile terminal according to the control instruction.
Example four
Fig. 3 is a schematic diagram of a computer device according to an embodiment of the present invention. The computer device 1 comprises a memory 20, a processor 30, a bus 50 and a computer program 40 stored in the memory 20 and executable on the processor 30. The processor 30, when executing the computer program 40, implements the steps in the above-mentioned mobile terminal control method embodiment, such as 101-106 shown in fig. 1:
101, connecting a plurality of mobile terminals in the wireless local area network, wherein the plurality of mobile terminals are integrated with control controls;
102, determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network;
103, receiving a terminal information request sent by a control request terminal;
104, responding to the terminal information request, and returning the terminal information of the online mobile terminal to the control request terminal;
105, receiving a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminals;
and 106, calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
Alternatively, the processor 30, when executing the computer program 40, implements the functions of the modules/units in the above-mentioned device embodiments, for example, the units 201 and 206 in fig. 2:
a connection unit 201, configured to connect a plurality of mobile terminals in the wireless local area network, where the plurality of mobile terminals are integrated with a control;
a determining unit 202, configured to determine an online mobile terminal from the plurality of mobile terminals through the wireless local area network;
a first receiving unit 203, configured to receive a terminal information request sent by a control request terminal;
a returning unit 204, configured to return the terminal information of the online mobile terminal to the control request terminal in response to the terminal information request;
a second receiving unit 205, configured to receive a control instruction of the control request terminal to a specified mobile terminal in the online mobile terminals;
and the calling unit 206 is configured to call the control of the designated mobile terminal according to the control instruction, so that the control of the designated mobile terminal controls the designated mobile terminal according to the control instruction.
Illustratively, the computer program 40 may be partitioned into one or more modules/units that are stored in the memory 20 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 40 in the computer apparatus 1. For example, the computer program 40 may be divided into a connection unit 201, a determination unit 202, a first receiving unit 203, a return unit 204, a second receiving unit 205, and a call unit 206 in fig. 2, and specific functions of each unit are described in embodiment two.
The Computer device 1 may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet Computer, a palmtop Computer, a portable Computer, an intelligent router, an ore machine, and a network storage device. In this embodiment, the computer apparatus 1 may be an edge server.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor 30 may be any conventional processor or the like, the processor 30 being the control center of the computer device 1 and connecting the various parts of the whole computer device 1 with various interfaces and lines.
The memory 20 may be used for storing the computer program 40 and/or the module/unit, and the processor 30 implements various functions of the computer device 1 by running or executing the computer program and/or the module/unit stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the computer apparatus 1, and the like. Further, the memory 20 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.
The bus 50 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 50 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
Further, the computer apparatus 1 may further include a network interface, which may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), and is generally used for establishing a communication connection between the computer apparatus 1 and other electronic devices.
Optionally, the computer device 1 may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the computer device 1 and for displaying a visualized user interface.
It will be appreciated by a person skilled in the art that the schematic diagram 3 is merely an example of the computer device 1 and does not constitute a limitation of the computer device 1, and may comprise more or less components than those shown, or some components may be combined, or different components.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the invention are, in whole or in part, generated upon loading and execution of the computer program instructions on a computer apparatus. The computer device may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one type of logical function division, and other division manners may be available in actual implementation, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A mobile terminal control method is applied to a computer device in a wireless local area network, and is characterized by comprising the following steps:
connecting a plurality of mobile terminals in the wireless local area network, wherein the plurality of mobile terminals are integrated with control controls;
determining an online mobile terminal from the plurality of mobile terminals through the wireless local area network, comprising: receiving terminal identifications, residual electric quantity and residual storage space sent by the plurality of mobile terminals through proxy service; determining the heartbeat interval time of each mobile terminal according to the terminal identification; determining a mobile terminal with heartbeat interval time smaller than a preset heartbeat interval time, residual capacity larger than a preset residual capacity and residual storage space larger than a preset residual storage space from the plurality of mobile terminals as the online mobile terminal;
receiving a terminal information request sent by a control request terminal;
responding to the terminal information request to return the terminal information of the online mobile terminal to the control request terminal;
receiving a control instruction of the control request terminal to a specified mobile terminal in the on-line mobile terminals;
and calling the control of the appointed mobile terminal according to the control instruction, so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
2. The method of claim 1, wherein said connecting a plurality of mobile terminals in the wireless local area network comprises:
receiving connection requests sent by the plurality of mobile terminals through an HTTP service running on the computer device;
and responding to the connection request to establish HTTP connection with the plurality of mobile terminals.
3. The method of claim 1, wherein the computer apparatus communicates with the plurality of mobile terminals through a wireless routing device in the wireless local area network, the connecting the plurality of mobile terminals in the wireless local area network comprising:
the HTTP service running on the computer device receives the connection requests sent by the mobile terminals through the wireless routing equipment;
and responding to the connection request, and establishing HTTP connection with the plurality of mobile terminals through the wireless routing equipment.
4. The method of claim 1, wherein said determining an online mobile terminal from the plurality of mobile terminals comprises:
receiving terminal identifications sent by the plurality of mobile terminals through proxy service;
determining the heartbeat interval time of each mobile terminal according to the terminal identification;
and determining the mobile terminal with the heartbeat interval time smaller than the preset heartbeat interval time from the plurality of mobile terminals as the online mobile terminal.
5. The method of claim 1, wherein the invoking of the control of the designated mobile terminal according to the control instruction comprises:
generating a calling request according to the control instruction;
sending the calling request to the proxy service of the appointed mobile terminal, enabling the proxy service of the appointed mobile terminal to call the control of the appointed mobile terminal according to the calling request, and enabling the control of the appointed mobile terminal to control the appointed mobile terminal according to the calling request;
and receiving a control result returned by the proxy service of the appointed mobile terminal.
6. The method of claim 1, wherein prior to said invoking a control of the designated mobile terminal according to the control instruction, the method further comprises:
judging whether the control request terminal is legal or not;
if the control request terminal is legal, calling a control of the specified mobile terminal according to the control instruction;
and if the control request terminal is illegal, prompting the control request terminal to acquire the control authority.
7. A computer arrangement, characterized in that the computer arrangement comprises a memory and a processor, the memory having stored thereon a computer program being executable on the processor, the computer program, when executed by the processor, implementing a mobile terminal control method according to any of claims 1-6.
8. A mobile terminal control apparatus, characterized in that the apparatus comprises:
the device comprises a connecting unit, a control unit and a processing unit, wherein the connecting unit is used for connecting a plurality of mobile terminals in a wireless local area network, and the mobile terminals are integrated with control controls;
a determining unit, configured to determine an online mobile terminal from the plurality of mobile terminals through the wireless local area network, including: receiving terminal identifications, residual electric quantity and residual storage space sent by the plurality of mobile terminals through proxy service; determining the heartbeat interval time of each mobile terminal according to the terminal identification; determining a mobile terminal with heartbeat interval time smaller than a preset heartbeat interval time, residual capacity larger than a preset residual capacity and residual storage space larger than a preset residual storage space from the plurality of mobile terminals as the online mobile terminal;
a first receiving unit, configured to receive a terminal information request sent by a control request terminal;
a returning unit, configured to return the terminal information of the online mobile terminal to the control request terminal in response to the terminal information request;
a second receiving unit, configured to receive a control instruction from the control request terminal to a specific mobile terminal in the online mobile terminals;
and the calling unit is used for calling the control of the appointed mobile terminal according to the control instruction so that the control of the appointed mobile terminal controls the appointed mobile terminal according to the control instruction.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the mobile terminal control method according to any one of claims 1-6.
CN201911329424.1A 2019-12-20 2019-12-20 Mobile terminal control method and device, computer device and storage medium Active CN111010483B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329424.1A CN111010483B (en) 2019-12-20 2019-12-20 Mobile terminal control method and device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329424.1A CN111010483B (en) 2019-12-20 2019-12-20 Mobile terminal control method and device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN111010483A CN111010483A (en) 2020-04-14
CN111010483B true CN111010483B (en) 2021-12-03

Family

ID=70117558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329424.1A Active CN111010483B (en) 2019-12-20 2019-12-20 Mobile terminal control method and device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN111010483B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634419A (en) * 2013-11-15 2014-03-12 北京洋浦伟业科技发展有限公司 Remote control method of terminal and terminal
CN104378416A (en) * 2014-10-29 2015-02-25 乐视网信息技术(北京)股份有限公司 Method and device for main control equipment to control controlled equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071423A1 (en) * 2003-09-26 2005-03-31 Jaakko Rajaniemi System, apparatus, and method for providing Web services on mobile devices
CN103379446B (en) * 2012-04-26 2017-04-12 华为终端有限公司 Multi-terminal control method and device based on wifi
CN106603807B (en) * 2016-10-11 2020-04-21 潍坊创高信息科技有限公司 Method for controlling controlled equipment by mobile terminal, mobile terminal and controlled equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634419A (en) * 2013-11-15 2014-03-12 北京洋浦伟业科技发展有限公司 Remote control method of terminal and terminal
CN104378416A (en) * 2014-10-29 2015-02-25 乐视网信息技术(北京)股份有限公司 Method and device for main control equipment to control controlled equipment

Also Published As

Publication number Publication date
CN111010483A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN109068179B (en) Multi-platform live broadcast method, computer device and computer readable storage medium
CN113595968B (en) Login method and system based on cloud application instance and related equipment
CN107045508B (en) Application program processing method and device
EP3541098B1 (en) Processing method for communication identifier binding and terminal
US9448781B2 (en) Application installer transmission system, server, and program
CN111343048B (en) Pressure testing method and device, computer device and storage medium
CN106790291B (en) Intrusion detection prompting method and device
KR20140123076A (en) A device control method and apparatus
CN107580011B (en) Data sharing method and desktop cloud server
CN113259342A (en) Login verification method, device, computer equipment and medium
US20180357404A1 (en) Information processing method and apparatus, and electronic device
CN110677506B (en) Network access method, device, computer equipment and storage medium
CN110417789B (en) Server connection method, electronic device, system and medium
CN110808974A (en) Data acquisition method and device, computer device and storage medium
CN111142799A (en) Distributed storage method and device, network node and storage medium
CN111866557B (en) Configuration method and device of large-screen display equipment, storage medium and electronic equipment
CN111010483B (en) Mobile terminal control method and device, computer device and storage medium
US10572213B2 (en) Universal application pinning
CN110535977B (en) File distribution method and device, computer device and storage medium
CN112596883B (en) Application switching method and device, storage medium and electronic equipment
CN111147186B (en) Data transmission method and device, computer equipment and storage medium
CN105025482B (en) Communication information processing method and equipment thereof
CN113961162A (en) Screen projection control method, screen projection sending end, screen projection receiving end and screen projection system
CN111352357B (en) Robot control method and device and terminal equipment
JP6932677B2 (en) Mobile devices, systems, access methods, and programs

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
GR01 Patent grant
GR01 Patent grant