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

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

Info

Publication number
CN113806175A
CN113806175A CN202111106301.9A CN202111106301A CN113806175A CN 113806175 A CN113806175 A CN 113806175A CN 202111106301 A CN202111106301 A CN 202111106301A CN 113806175 A CN113806175 A CN 113806175A
Authority
CN
China
Prior art keywords
terminal
task
target
instruction
communication link
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
CN202111106301.9A
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.)
Hangzhou Yaowang Network Technology Co ltd
Original Assignee
Hangzhou Yaowang Network 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 Hangzhou Yaowang Network Technology Co ltd filed Critical Hangzhou Yaowang Network Technology Co ltd
Priority to CN202111106301.9A priority Critical patent/CN113806175A/en
Publication of CN113806175A publication Critical patent/CN113806175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a terminal control method, a terminal control device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a connection request sent by a terminal, and establishing a bidirectional communication link with the terminal by using the connection request; if the control instruction is detected, generating an instruction task corresponding to the control instruction; sending the instruction task to a target terminal corresponding to the control instruction through the target bidirectional communication link, and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task; the method utilizes the server to control the terminal, does not need to manually operate the terminal, and reduces the complexity of terminal control.

Description

Terminal control method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a terminal control method, a terminal control apparatus, an electronic device, and a computer-readable storage medium.
Background
For the distributed server, the number of terminals in communication connection with the distributed server is large, and the server can monitor the running state of the terminals and acquire information sent by the terminals. Currently, if a terminal needs to transmit special information or execute possible operations, a user is required to control the terminal to execute corresponding operations, and the control process is complicated because of a large number of terminals and a wide distribution range.
Therefore, the problems of low deployment efficiency and low speed in the related art are technical problems to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a terminal control method, a terminal control apparatus, an electronic device, and a computer-readable storage medium, which can control a terminal by using a server, so as to reduce the complexity of terminal control.
In order to solve the above technical problem, the present application provides a terminal control method, including:
acquiring a connection request sent by a terminal, and establishing a bidirectional communication link with the terminal by using the connection request;
if the control instruction is detected, generating an instruction task corresponding to the control instruction;
and sending the instruction task to a target terminal corresponding to the control instruction through a target bidirectional communication link, and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
Optionally, the connection request includes a terminal type;
the generating of the instruction task corresponding to the control instruction comprises:
determining the task type according to the control instruction;
and determining task data based on the task type and the terminal type, and generating the instruction task by using the task data.
Optionally, the method further comprises:
generating a data table item corresponding to the terminal by using the unique identification information in the connection request;
and if a heartbeat data packet sent by the terminal according to a preset period is obtained, analyzing the heartbeat data packet to obtain running state information, and updating the local state information in the data table item by using the running state information.
Optionally, the method further comprises:
if the disconnection of the bidirectional communication link is detected, judging whether a reconnection request sent by the terminal is received;
if the reconnection request is received, recovering the bidirectional communication link with the terminal;
and after the bidirectional communication link is disconnected, if the bidirectional communication link is not recovered after the terminal sends the reconnection request for the preset times, executing application restart, and resending the reconnection request after the restart.
Optionally, the sending the instruction task to the target terminal corresponding to the control instruction through the target bidirectional communication link includes:
sending the instruction task to the target terminal through the target bidirectional communication link;
removing the target terminal from the candidate terminal cluster.
Optionally, after receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task, the method further includes:
and adding the target terminal into the candidate terminal cluster.
Optionally, the sending the instruction task to the target terminal corresponding to the control instruction through the target bidirectional communication link includes:
judging whether the target terminal exists in the candidate terminal cluster or not;
if the target terminal does not exist, the instruction task is put into a waiting queue;
and if the target terminal exists, sending the instruction task to the target terminal.
The present application further provides a terminal control device, including:
the link establishing module is used for acquiring a connection request sent by a terminal and establishing a bidirectional communication link with the terminal by using the connection request;
the task generation module is used for generating an instruction task corresponding to the control instruction if the control instruction is detected;
and the sending module is used for sending the instruction task to a target terminal corresponding to the control instruction through a target bidirectional communication link and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
The present application further provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the terminal control method.
The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the terminal control method described above.
The terminal control method provided by the application comprises the steps of obtaining a connection request sent by a terminal, and establishing a bidirectional communication link with the terminal by using the connection request; if the control instruction is detected, generating an instruction task corresponding to the control instruction; and sending the instruction task to a target terminal corresponding to the control instruction through the target bidirectional communication link, and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
Therefore, the method can utilize the server to remotely control the terminal, and after the connection request sent by the terminal is obtained, the bidirectional communication link with the terminal can be established, and the bidirectional communication link ensures that the server can send data to the terminal so as to control the terminal. Specifically, after the control command is detected, the task to be executed and the object, i.e., the target terminal, which needs to execute the task may be determined according to the information in the control command. According to the task to be executed, an instruction task can be generated and sent to the target terminal through a target bidirectional communication link between the target terminal and the instruction task, the target terminal executes the instruction task after receiving the instruction task, and response information after execution is sent to the server side through the target bidirectional communication link. By the mode, the terminal can be controlled by the server side, the terminal does not need to be operated manually, and the complexity of terminal control is reduced.
In addition, the application also provides a terminal control device, electronic equipment and a computer readable storage medium, and the terminal control device, the electronic equipment and the computer readable storage medium also have the beneficial effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a terminal control method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal control device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. 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 application.
Referring to fig. 1, fig. 1 is a flowchart of a terminal control method according to an embodiment of the present disclosure. The method comprises the following steps:
s101: and acquiring a connection request sent by the terminal, and establishing a bidirectional communication link with the terminal by using the connection request.
All or part of the steps in the embodiment of the present application may be performed by any service node in the distributed service side. When the terminal wants to connect with the server, a connection request is sent to the server, and after receiving the connection request, the server can establish a two-way communication link with the terminal by using the connection request. The bidirectional communication link refers to a link through which the terminal and the server can transmit data to each other. The specific establishment method of the bidirectional communication link is not limited. In an implementation manner, the terminal and the server may establish a bidirectional communication link by using a websocket technology, and a connection request sent by the terminal may include information such as a version number and a serial number. Illustratively, the connection request is specifically: ws:// ip: port/websocket plug _ ver ═ 3.0.0-131-. The server establishes a bidirectional communication link with the terminal after receiving the connection request, and caches information of the link in the memory so as to communicate with the terminal by using the link.
Besides establishing the bidirectional communication link, the server can also establish terminal information, wherein the terminal information is used for recording the state information of the terminal and can be stored in a database table so as to monitor the terminal at the server. Specifically, the following steps may be further performed:
step 11: and generating a data table item corresponding to the terminal by using the unique identification information in the connection request.
Step 12: and if the heartbeat data packet sent by the terminal according to the preset period is obtained, analyzing the heartbeat data packet to obtain the running state information, and updating the local state information in the data table item by using the running state information.
The unique identification information refers to information that can uniquely identify the terminal identity, and may be, for example, a serial number. And after the unique identification information is obtained, the unique identification information is used as the identification information of the terminal information to create a data table item corresponding to the terminal. In order to ensure the survival of the bidirectional communication link and prevent the link from being closed due to no data transmission caused by timeout, the terminal and the server maintain the link by sending heartbeat data packets, the heartbeat data packets may be sent according to a preset period, for example, the preset period may be 15 seconds, and the data packets are transmitted through the bidirectional communication link.
In this embodiment, the heartbeat data packet includes running state information, where the running state information refers to information used for representing a running condition of the terminal, and specifically may be APP (application) state, on-off state, electric quantity, and the like. And determining a corresponding data table entry according to the unique identification information in the heartbeat data packet, and updating the data table entry by using the running state information, specifically replacing the original local state information in the data table entry. The operation state information is transmitted through the heartbeat data packet, and the operation state of the terminal can be monitored at the server side.
Further, in some cases, the bidirectional communication link may be disconnected due to an abnormal factor, and in such a case, the following steps may be performed:
step 21: and if the disconnection of the bidirectional communication link is detected, judging whether a reconnection request sent by the terminal is received.
Step 22: and if the reconnection request is received, recovering the bidirectional communication link with the terminal.
Specifically, after the bidirectional communication link is disconnected, the terminal may send a reconnection request for a preset number of times, which may be 3 times for example. And if the bidirectional communication link is not recovered after the terminal sends the reconnection request for the preset times, executing application restart, and resending the reconnection request after the restart. And after detecting the reconnection request, reestablishing the two-way communication link with the terminal, wherein the corresponding data table entry is not changed but is continuously used.
S102: and if the control instruction is detected, generating an instruction task corresponding to the control instruction.
The control instruction is an instruction for instructing to control the terminal, and the instruction may be sent to the server by a third-party control device, or the control instruction may be input on the server by a user. The null-branch instruction is used to specify the task that needs to be performed, and the terminal that performs the task. Upon detection of a control instruction, a corresponding instruction task may be generated therefrom. The instruction task refers to a task that the terminal needs to execute, and may be embodied as a plurality of task data packets.
It is understood that the type of the terminal connected to the server may be one or more, and the specific content, format, etc. of the corresponding instruction task may be different for different types of terminals even if the same task is performed. In this case, in order to be able to correctly control various types of terminals, the connection request includes a terminal type, and the process of generating the instruction task corresponding to the control instruction may include:
step 31: and determining the task type according to the control instruction.
Step 32: and determining task data based on the task type and the terminal type, and generating an instruction task by using the task data.
The control instruction can specify a task type, specifically, the control instruction may have a task tag, and the task tag may uniquely identify a task to be executed, and specifically may be a task name or a task sequence number. From the task flags, the task type may be determined. For different types of terminals, different task data are required to be adopted to generate the instruction tasks, so after the task types are determined, the task data are determined by utilizing the task data and the terminal types, and the task data are packaged according to a packaging mode and a format matched with the terminal types to obtain the instruction tasks. The specific content and execution mode of the instruction task are not limited, and for example, the instruction task may be a task of opening a specific APP, or may be a task of uploading GPS (Global Positioning System) information by the terminal.
S103: and sending the instruction task to a target terminal corresponding to the control instruction through the target bidirectional communication link, and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
And after the instruction task is obtained, the instruction task is sent to a target terminal specified by the control instruction, and the target terminal specifies the instruction task. And after the execution is finished, the target terminal sends response information to the server terminal, which indicates that the instruction task is finished. The embodiment does not limit the processing manner of the response information, and for example, the response information may be reported, or the response information may be added to the target data entry corresponding to the target terminal, or part of the content of the target data entry corresponding to the target terminal may be updated by using the response information.
In practical application, each service node in the server (cluster) can send an instruction task to any terminal, and one terminal can only execute one instruction task at one time. Therefore, in order to avoid that the terminal receives more than one instruction task at the same time, the process of sending the instruction task to the target terminal corresponding to the control instruction through the target bidirectional communication link may include:
step 41: and sending an instruction task to the target terminal through the target bidirectional communication link.
Step 42: and removing the target terminal from the candidate terminal cluster.
And after the control instruction is sent to the target terminal, removing the target terminal from the candidate terminal cluster. The candidate terminal cluster is a cluster formed by terminals that can receive the command task, and the target terminal that is executing the command task cannot receive the command task again, and is therefore removed from the candidate terminal cluster. The embodiment is not limited to a specific manner of removing the cover. For example, task tags may be assigned to target terminals, and terminals without task tags collectively form a candidate terminal cluster.
Correspondingly, after response information sent by the target bidirectional communication link after the target terminal executes the instruction task is received, the target terminal is added into the candidate terminal cluster.
Further, when the command task is transmitted, it is more necessary to determine whether or not the designated target terminal is available. Specifically, the process of sending the command task to the target terminal corresponding to the control command through the target bidirectional communication link may include:
step 51: and judging whether a target terminal exists in the candidate terminal cluster.
Step 52: and if the target terminal does not exist, putting the instruction task into a waiting queue.
Step 53: and if the target terminal exists, sending the instruction task to the target terminal.
If the target terminal does not exist, the target terminal is indicated to be currently executing the task, so that the instruction task is put into a waiting queue, whether the target terminal exists in the candidate terminal cluster can be judged after waiting for the preset time, until the target terminal is detected, and the instruction task is sent to the target terminal.
By applying the terminal control method provided by the embodiment of the application, the server can be used for remotely controlling the terminal, and after the connection request sent by the terminal is obtained, the bidirectional communication link with the terminal can be established, so that the bidirectional communication link ensures that the server can send data to the terminal so as to control the terminal. Specifically, after the control command is detected, the task to be executed and the object, i.e., the target terminal, which needs to execute the task may be determined according to the information in the control command. According to the task to be executed, an instruction task can be generated and sent to the target terminal through a target bidirectional communication link between the target terminal and the instruction task, the target terminal executes the instruction task after receiving the instruction task, and response information after execution is sent to the server side through the target bidirectional communication link. By the mode, the terminal can be controlled by the server side, the terminal does not need to be operated manually, and the complexity of terminal control is reduced.
In the following, the terminal control device provided in the embodiment of the present application is introduced, and the terminal control device described below and the terminal control method described above may be referred to correspondingly.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a terminal control device according to an embodiment of the present application, including:
a link establishing module 110, configured to obtain a connection request sent by a terminal, and establish a bidirectional communication link with the terminal by using the connection request;
a task generating module 120, configured to generate an instruction task corresponding to the control instruction if the control instruction is detected;
the sending module 130 is configured to send the instruction task to a target terminal corresponding to the control instruction through the target bidirectional communication link, and receive response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
Optionally, the connection request comprises a terminal type;
a task generation module 120, comprising:
the type determining unit is used for determining the task type according to the control instruction;
and the generating unit is used for determining task data based on the task type and the terminal type and generating an instruction task by using the task data.
Optionally, the method further comprises:
the data table item generating module is used for generating a data table item corresponding to the terminal by using the unique identification information in the connection request;
and the table item updating module is used for analyzing the heartbeat data packet to obtain the running state information and updating the local state information in the data table items by using the running state information if the heartbeat data packet sent by the terminal according to the preset period is obtained.
Optionally, the method further comprises:
the reconnection judgment module is used for judging whether a reconnection request sent by the terminal is received or not if the disconnection of the bidirectional communication link is detected;
the recovery module is used for recovering the bidirectional communication link with the terminal if a reconnection request is received;
after the bidirectional communication link is disconnected, if the bidirectional communication link is not recovered after the terminal sends the reconnection request for the preset times, the application is restarted, and the reconnection request is sent again after the application is restarted.
Optionally, the sending module 130 includes:
the sending unit is used for sending an instruction task to the target terminal through the target bidirectional communication link;
and the removing unit is used for removing the target terminal from the candidate terminal cluster.
Optionally, the method further comprises:
and the adding module is used for adding the target terminal into the candidate terminal cluster.
Optionally, the sending module 130 includes:
the existence judging unit is used for judging whether a target terminal exists in the candidate terminal cluster;
the waiting unit is used for putting the instruction task into a waiting queue if the target terminal does not exist;
and the direct sending unit is used for sending the instruction task to the target terminal if the target terminal exists.
In the following, the electronic device provided by the embodiment of the present application is introduced, and the electronic device described below and the terminal control method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
The processor 101 is configured to control the overall operation of the electronic device 100, so as to complete all or part of the steps in the terminal control method; the memory 102 is used to store various types of data to support operation at the electronic device 100, such data may include, for example, instructions for any application or method operating on the electronic device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: Wi-Fi part, Bluetooth part, NFC part.
The electronic Device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to execute the terminal control method according to the above embodiments.
The following describes a computer-readable storage medium provided in an embodiment of the present application, and the computer-readable storage medium described below and the terminal control method described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described terminal control method.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A terminal control method, comprising:
acquiring a connection request sent by a terminal, and establishing a bidirectional communication link with the terminal by using the connection request;
if the control instruction is detected, generating an instruction task corresponding to the control instruction;
and sending the instruction task to a target terminal corresponding to the control instruction through a target bidirectional communication link, and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
2. The terminal control method according to claim 1, wherein the connection request includes a terminal type;
the generating of the instruction task corresponding to the control instruction comprises:
determining the task type according to the control instruction;
and determining task data based on the task type and the terminal type, and generating the instruction task by using the task data.
3. The terminal control method according to claim 1, further comprising:
generating a data table item corresponding to the terminal by using the unique identification information in the connection request;
and if a heartbeat data packet sent by the terminal according to a preset period is obtained, analyzing the heartbeat data packet to obtain running state information, and updating the local state information in the data table item by using the running state information.
4. The terminal control method according to claim 1, further comprising:
if the disconnection of the bidirectional communication link is detected, judging whether a reconnection request sent by the terminal is received;
if the reconnection request is received, recovering the bidirectional communication link with the terminal;
and after the bidirectional communication link is disconnected, if the bidirectional communication link is not recovered after the terminal sends the reconnection request for the preset times, executing application restart, and resending the reconnection request after the restart.
5. The terminal control method according to claim 1, wherein the sending the command task to the target terminal corresponding to the control command through the target bidirectional communication link includes:
sending the instruction task to the target terminal through the target bidirectional communication link;
removing the target terminal from the candidate terminal cluster.
6. The terminal control method according to claim 5, further comprising, after receiving a response message sent by the target terminal via the target bidirectional communication link after the target terminal executes the command task:
and adding the target terminal into the candidate terminal cluster.
7. The terminal control method according to claim 5, wherein the sending the command task to the target terminal corresponding to the control command through the target bidirectional communication link includes:
judging whether the target terminal exists in the candidate terminal cluster or not;
if the target terminal does not exist, the instruction task is put into a waiting queue;
and if the target terminal exists, sending the instruction task to the target terminal.
8. A terminal control apparatus, comprising:
the link establishing module is used for acquiring a connection request sent by a terminal and establishing a bidirectional communication link with the terminal by using the connection request;
the task generation module is used for generating an instruction task corresponding to the control instruction if the control instruction is detected;
and the sending module is used for sending the instruction task to a target terminal corresponding to the control instruction through a target bidirectional communication link and receiving response information sent by the target terminal through the target bidirectional communication link after the target terminal executes the instruction task.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the terminal control method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the terminal control method according to any one of claims 1 to 7.
CN202111106301.9A 2021-09-22 2021-09-22 Terminal control method and device, electronic equipment and readable storage medium Pending CN113806175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111106301.9A CN113806175A (en) 2021-09-22 2021-09-22 Terminal control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111106301.9A CN113806175A (en) 2021-09-22 2021-09-22 Terminal control method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113806175A true CN113806175A (en) 2021-12-17

Family

ID=78939847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111106301.9A Pending CN113806175A (en) 2021-09-22 2021-09-22 Terminal control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113806175A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657370A (en) * 2017-01-03 2017-05-10 腾讯科技(深圳)有限公司 Data transmission method and device
CN109936587A (en) * 2017-12-15 2019-06-25 北京京东尚科信息技术有限公司 Control method, control device, electronic equipment and storage medium
CN110784533A (en) * 2019-10-25 2020-02-11 北京百度网讯科技有限公司 Communication method, communication device, relay module, control terminal, and storage medium
WO2020147091A1 (en) * 2019-01-17 2020-07-23 Oppo广东移动通信有限公司 Wireless communication method and device
CN111641610A (en) * 2020-05-19 2020-09-08 深信服科技股份有限公司 Remote response and remote control method, device, equipment and storage medium
CN112698927A (en) * 2019-10-23 2021-04-23 杭州海康威视数字技术股份有限公司 Bidirectional communication method, device, electronic equipment and machine-readable storage medium
CN112767936A (en) * 2021-01-06 2021-05-07 镁佳(北京)科技有限公司 Voice conversation method, device, storage medium and electronic equipment
CN112910741A (en) * 2021-02-26 2021-06-04 平安普惠企业管理有限公司 Interface testing method and device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657370A (en) * 2017-01-03 2017-05-10 腾讯科技(深圳)有限公司 Data transmission method and device
CN109936587A (en) * 2017-12-15 2019-06-25 北京京东尚科信息技术有限公司 Control method, control device, electronic equipment and storage medium
WO2020147091A1 (en) * 2019-01-17 2020-07-23 Oppo广东移动通信有限公司 Wireless communication method and device
CN112698927A (en) * 2019-10-23 2021-04-23 杭州海康威视数字技术股份有限公司 Bidirectional communication method, device, electronic equipment and machine-readable storage medium
CN110784533A (en) * 2019-10-25 2020-02-11 北京百度网讯科技有限公司 Communication method, communication device, relay module, control terminal, and storage medium
CN111641610A (en) * 2020-05-19 2020-09-08 深信服科技股份有限公司 Remote response and remote control method, device, equipment and storage medium
CN112767936A (en) * 2021-01-06 2021-05-07 镁佳(北京)科技有限公司 Voice conversation method, device, storage medium and electronic equipment
CN112910741A (en) * 2021-02-26 2021-06-04 平安普惠企业管理有限公司 Interface testing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
CN109416762B (en) Techniques for distributed behavior and knowledge of the internet of things
CN109117361B (en) Remote debugging method, related equipment and system for small program
WO2019103999A1 (en) Generating and deploying machine learning models packages
CN108234171B (en) Data processing method, system and device
CN110324174B (en) Block chain environment detection method, equipment, device and storage medium
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN107205041B (en) Audio device upgrading method, audio device and intelligent sound box
CN111611054B (en) Application deployment method and device
US20150067146A1 (en) Custom correlation of a distributed business transaction
CN106027631B (en) Data transmission method and device
EP2784661B1 (en) Computer program product, information processing method, and information processing apparatus
CN114089974B (en) Cloud code development system, method, device, equipment and storage medium
JP2020509622A (en) Wireless network type detection method and apparatus and electronic device
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
US9723480B2 (en) Information processing device, server device, data communication system, data communication method, and computer-readable storage medium storing data communication program
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
JP2018092565A (en) Cloud relay device, cloud connection processing method, and program
US20060009198A1 (en) Apparatus and method for delivering messages to a mobile information terminal
CN111930565B (en) Process fault self-healing method, device and equipment for components in distributed management system
CN113806175A (en) Terminal control method and device, electronic equipment and readable storage medium
CN111190761A (en) Log output method and device, storage medium and electronic equipment
CN106060959B (en) Method and device for preventing network connection message from being retransmitted and android system
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
JP2011257994A (en) Update api detection system, update api detection apparatus, update api detection method, and update api detection program

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