CN111966420B - Electronic device and remote control method thereof, terminal device and readable storage medium - Google Patents
Electronic device and remote control method thereof, terminal device and readable storage medium Download PDFInfo
- Publication number
- CN111966420B CN111966420B CN202011122913.2A CN202011122913A CN111966420B CN 111966420 B CN111966420 B CN 111966420B CN 202011122913 A CN202011122913 A CN 202011122913A CN 111966420 B CN111966420 B CN 111966420B
- Authority
- CN
- China
- Prior art keywords
- control module
- control
- main board
- module
- power
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/544—Remote
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明实施例提供了一种电子设备,包括第一主板与第二主板,第一主板包括通信模块与第一控制模块,第二主板包括第二控制模块,第二主板配设有开机结构与状态监测结构;通信模块与第一控制模块连接,在第一主板处于开机状态的情况下,通信模块用于接收远程控制指令,第一控制模块用于控制开机结构进行动作,第一控制模块还用于在接收到状态监测结构发送的目标信号的情况下,与第二控制模块建立通信连接。本发明实施例还提供了一种远程控制方法、终端设备及可读存储介质。本发明实施例降低了针对电子设备的远程控制的繁琐度,提高远程控制效率。
An embodiment of the present invention provides an electronic device, including a first main board and a second main board, the first main board includes a communication module and a first control module, the second main board includes a second control module, and the second main board is provided with a boot structure and State monitoring structure; the communication module is connected to the first control module, and when the first main board is in the power-on state, the communication module is used to receive remote control instructions, the first control module is used to control the power-on structure to perform actions, and the first control module also It is used for establishing a communication connection with the second control module in the case of receiving the target signal sent by the state monitoring structure. Embodiments of the present invention further provide a remote control method, a terminal device, and a readable storage medium. The embodiments of the present invention reduce the complexity of remote control for electronic equipment and improve the efficiency of remote control.
Description
技术领域technical field
本发明涉及远程控制技术领域,尤其涉及一种电子设备及其远程控制方法、终端设备及可读存储介质。The present invention relates to the technical field of remote control, and in particular, to an electronic device and a remote control method thereof, a terminal device and a readable storage medium.
背景技术Background technique
随着信息技术的发展,针对例如计算机等电子设备的远程开机控制也日益常见。现有技术中,通常采用能够与远程服务器进行通信的开机器来对电子设备进行开机控制;然而,当电子设备开机后,若需要实现对电子设备的进一步控制,则需要将电子设备与远程服务器之间重新建立通信连接,进而导致电子设备的远程控制过程比较繁琐,远程控制效率较低。With the development of information technology, remote power-on control for electronic devices such as computers is increasingly common. In the prior art, a power-on machine capable of communicating with a remote server is usually used to control the power-on of the electronic device; however, after the electronic device is powered on, if further control of the electronic device is required, it is necessary to connect the electronic device to the remote server. The communication connection between them is re-established, which in turn leads to a cumbersome remote control process of the electronic device and low remote control efficiency.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种电子设备及其远程控制方法、终端设备及可读存储介质,以解决当电子设备开机后,若需要实现对电子设备的进一步控制,则需要将电子设备与远程服务器之间重新建立通信连接,进而导致电子设备的远程控制过程比较繁琐,远程控制效率较低的问题。Embodiments of the present invention provide an electronic device and a remote control method thereof, a terminal device, and a readable storage medium, so as to solve the problem that when the electronic device is turned on, if further control of the electronic device needs to be realized, it is necessary to connect the electronic device with the remote server. The communication connection is re-established between the two devices, which in turn leads to the problem that the remote control process of the electronic device is cumbersome and the remote control efficiency is low.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供了一种电子设备,包括第一主板与第二主板,所述第一主板包括通信模块与第一控制模块,所述第二主板包括第二控制模块,所述第二主板配设有开机结构与状态监测结构;其中,In a first aspect, an embodiment of the present invention provides an electronic device, including a first motherboard and a second motherboard, the first motherboard includes a communication module and a first control module, the second motherboard includes a second control module, so The second mainboard is equipped with a boot structure and a state monitoring structure; wherein,
所述开机结构用于对所述第二主板进行开机触发,所述状态监测结构用于针对第二主板的运行状态进行监测以获得状态监测信号;The startup structure is used to trigger the startup of the second main board, and the state monitoring structure is used to monitor the operating state of the second main board to obtain a state monitoring signal;
所述通信模块与所述第一控制模块连接,在所述第一主板处于开机状态的情况下,所述通信模块用于接收远程控制指令,所述第一控制模块用于控制所述开机结构进行动作,所述第一控制模块还用于在接收到所述状态监测结构发送的目标信号的情况下,与所述第二控制模块建立通信连接,所述目标信号为用于表征所述第二主板处于已开机的运行状态的状态监测信号。The communication module is connected to the first control module, and when the first motherboard is in a powered-on state, the communication module is used to receive remote control instructions, and the first control module is used to control the power-on structure performing an action, the first control module is further configured to establish a communication connection with the second control module in the case of receiving a target signal sent by the state monitoring structure, where the target signal is used to characterize the first control module 2. Status monitoring signal that the main board is in the running state of being powered on.
第二方面,本发明实施例还提供了一种远程控制方法,应用于上述的电子设备,所述方法包括:In a second aspect, an embodiment of the present invention further provides a remote control method, which is applied to the above-mentioned electronic device, and the method includes:
在第一主板处于开机状态的情况下,通过通信模块接收远程开机指令;When the first motherboard is in a powered-on state, receive a remote power-on instruction through the communication module;
通过第一控制模块依据所述远程开机指令控制开机结构进行动作,以对所述第二主板进行开机;The first control module controls the boot structure to perform actions according to the remote boot command, so as to boot the second motherboard;
在所述第一控制模块接收到状态监测结构发送的目标信号的情况下,控制所述第一控制模块与所述第二控制模块建立通信连接,所述目标信号用于表征所述第二主板处于已开机的运行状态。When the first control module receives the target signal sent by the state monitoring structure, the first control module is controlled to establish a communication connection with the second control module, and the target signal is used to represent the second main board is in a powered-on operating state.
第三方面,本发明实施例还提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的方法。In a third aspect, an embodiment of the present invention further provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program implement the above method.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program implements the foregoing method when executed by a processor.
本发明实施例提供的电子设备,包括第一主板与第二主板,第一主板包括通信模块与第一控制模块,第二主板包括第二控制模块,同时第二控制模块配设有开机结构与状态监测结构;开机结构用于对第二主板进行开机触发,状态监测结构用于针对第二主板的运行状态进行监测以获得状态监测信号,当第一控制模块接收到状态监测结构发送的用于表征第二主板处于已开机状态的目标信号时,可以与第二控制模块之间建立通信连接,进而可以基于远程控制指令实现对第二主板的进一步的控制,而无需在第二主板与远程服务器之间重新建立直接的通信连接关系,进而降低了针对电子设备的远程控制的繁琐度,提高远程控制效率。The electronic device provided by the embodiment of the present invention includes a first main board and a second main board, the first main board includes a communication module and a first control module, the second main board includes a second control module, and the second control module is equipped with a boot structure and The state monitoring structure; the power-on structure is used to trigger the power-on of the second main board, and the state monitoring structure is used to monitor the running state of the second main board to obtain a state monitoring signal, when the first control module receives the signal sent by the state monitoring structure for When the target signal indicating that the second main board is in a powered-on state, a communication connection can be established with the second control module, and further control of the second main board can be realized based on the remote control instruction, without the need for the second main board and the remote server. A direct communication connection relationship is re-established between them, thereby reducing the complexity of remote control for electronic devices and improving remote control efficiency.
附图说明Description of drawings
图1为本发明实施例提供的电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图2为本发明第一个实施例提供的远程控制方法的流程图;2 is a flowchart of a remote control method provided by a first embodiment of the present invention;
图3为本发明第二个实施例提供的远程控制方法的流程图;3 is a flowchart of a remote control method provided by a second embodiment of the present invention;
图4为本发明第三个实施例提供的远程控制方法的流程图;4 is a flowchart of a remote control method provided by a third embodiment of the present invention;
图5为本发明实施例中实现远程关机的流程图。FIG. 5 is a flowchart of realizing remote shutdown in an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。在下面的描述中,提供诸如具体的配置和组件的特定细节仅仅是为了帮助全面理解本发明的实施例。因此,本领域技术人员应该清楚,可以对这里描述的实施例进行各种改变和修改而不脱离本发明的范围和精神。另外,为了清楚和简洁,省略了对已知功能和构造的描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided merely to assist in a comprehensive understanding of embodiments of the present invention. Accordingly, it should be apparent to those skilled in the art that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
除非另作定义,本发明中使用的技术术语或者科学术语应当为本发明所属领域内具有一般技能的人士所理解的通常意义。本发明中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。同样,“一个”或者“一”等类似词语也不表示数量限制,而是表示存在至少一个。Unless otherwise defined, technical or scientific terms used in the present invention should have the ordinary meaning as understood by those of ordinary skill in the art to which the present invention belongs. The terms "first," "second," and similar terms used herein do not denote any order, quantity, or importance, but are merely used to distinguish different components. Likewise, "a" or "an" and the like do not denote a quantitative limitation, but rather denote the presence of at least one.
如图1所示,本发明实施例提供的电子设备100,包括第一主板110与第二主板120,第一主板110包括通信模块111与第一控制模块112,第二主板120包括第二控制模块121,第二主板120配设有开机结构123与状态监测结构122;其中,As shown in FIG. 1 , an
开机结构123用于对第二主板120进行开机触发,状态监测结构122用于针对第二主板120的运行状态进行监测以获得状态监测信号;The
通信模块111与第一控制模块112连接,在第一主板110处于开机状态的情况下,通信模块111用于接收远程控制指令,第一控制模块112用于控制开机结构123进行动作,第一控制模块112还用于在接收到状态监测结构122发送的目标信号的情况下,与第二控制模块121建立通信连接,目标信号为用于表征第二主板120处于已开机的运行状态的状态监测信号。The
容易理解的是,对于电子设备100,包括第一主板110与第二主板120,两者可以分别对应一个操作系统。本实施例中,第一主板110的初始状态可以是处于开机状态的,以实现对第二主板120的开机等类型动作的控制。It is easy to understand that the
第一主板110包括通信模块111,用于与远程服务器进行通信,例如,通信模块111可以是WiFi通信模块111或者有线通信模块111等,并通过路由器与远程服务器通信连接。而在一些可行的应用场景中,通信模块111也可以是蓝牙模块、ZigBee模块等类型的通信模块111,以直接和附近的服务器进行通信连接。The first
在一个较佳的实施方式中,第一主板110可以处于与电源通电保持的状态,同时,第一主板110可以对应为一不带界面的运行的操作系统,当第一主板110上电后,第一主板110会直接开机,且通信模块111开始等待接收远程服务器发送的远程控制指令。当然,在实际应用中,第一主板110也可以连接触控屏或者操作按键等,通过用户的触发操作来进行开机。In a preferred embodiment, the first
第一控制模块112与通信模块111连接主要指通信模块111可以将接收到的远程控制指令传输到第一控制模块112。而在一些应用场景中,第一控制模块112通常也可以通过通信模块111将一些特定的信息发送至远程服务器。The connection between the
第二主板120配设有开机结构123与状态监测结构122,开机结构123主要用于对第二主板120进行开机触发,例如,开机结构123可以是一继电器;或者开机结构123也可以是一位移触发件,用于模拟对第一主板110的开机键的按压操作等。容易理解的是,无论对于继电器还是位移触发件,均可以基于第一主板110发送的特定信号进行动作,以实现第二主板120的开机。The second
状态监测结构122可以是对例如电压、电流等参数的监测结构,容易理解的是,第二主板120在开机前,通常是无法监测到主板总线电源的,基于这一点,可以对第二主板120是否开机进行有效的监测。换而言之,本实施例中,状态检测结构可以包括对主板总线电源的监测结构,并将对主板总线电源的监测结果发送至第一控制模块112。The
当第一控制模块112接收到目标信号后,可以与第二控制模块121建立通信连接。此处的目标信号,主要是指状态监测结构122发送的用于表征第二主板120处于已开机的运行状态的状态监测信号,例如,可以是指上文的用于表征已监测到第二主板120的主板总线电源的信号。第一控制模块112与第二控制模块121在建立通信连接的过程中,可以是第一控制模块112主动请求建立通信连接,也可以是第二控制模块121主动请求建立通信连接,此处不做限定。After the
容易理解的是,第二控制模块121属于第二主板120的主要组成部分,第二主板120在已开机的状态下,第二控制模块121也可以相应运行;第二控制模块121可以是第二主板120的主要处理及运算模块,在第一控制模块112与第二控制模块121建立了通信连接的情况下,通过第一控制模块112可以直接控制第二控制模块121进行相应动作,以实现例如控制第二主板120所对应操作系统进行黑屏、进入屏幕保护、启动制定应用程序、软件安装、文件存储、截取屏幕信息或者针对操作系统的运行状态和动作情况进行获取等等动作,此处不做具体限定。It is easy to understand that the
对于第一控制模块112与第二控制模块121,可以基于串行接口或者并行接口等方式进行通信,例如RS485或者RS232接口等,此处也不做具体限定。The
结合以上描述可见,在第二主板120开机后,仅需要在电子设备100内部进行第一控制模块112与第二控制模块121之间通信连接的建立,后续即可通过通信模块111到第一控制模块112再到第二控制模块121等链路,将远程控制指令传输到第二控制模块121,实现对第二主板120的控制;同时,也可以通过反向的传输,将第二主板120相关的数据,如运行状态数据或者操作系统运行数据等发送至远程服务器;进而无需再在第二主板120与远程服务器之间建立通信连接。It can be seen from the above description that after the
本发明实施例提供的电子设备100,包括第一主板110与第二主板120,第一主板110包括通信模块111与第一控制模块112,第二主板120包括第二控制模块121,同时第二控制模块121配设有开机结构123与状态监测结构122;开机结构123用于对第二主板120进行开机触发,状态监测结构122用于针对第二主板120的运行状态进行监测以获得状态监测信号,当第一控制模块112接收到状态监测结构122发送的用于表征第二主板120处于已开机状态的目标信号时,可以与第二控制模块121之间建立通信连接,进而可以基于远程控制指令实现对第二主板120的进一步的控制,而无需在第二主板120与远程服务器之间重新建立直接的通信连接关系,进而降低了针对电子设备100的远程控制的繁琐度,提高远程控制效率。The
结合一用户针对电子设备100进行远程开机的实际应用场景,用户可以通过移动终端中的微信小程序或者手机应用程序(Application,APP)来进行远程控制操作,移动终端可将响应用户操作而形成的远程控制指令,通过4G、5G或者WiFi等发送至远程服务器,并由远程服务器将远程控制指令转发至电子设备100的通信模块111。当然,上述移动终端也可以直接与电子设备100的通信模块111进行通信,即采用移动终端替代了远程服务器的功能。Combined with a practical application scenario in which a user remotely turns on the
可选地,开机结构123包括上电继电器与开机继电器,上电继电器用于控制第二主板120与电源通断电,开机继电器用于对第二主板120的开机键进行触发;Optionally, the power-on
目标信号为状态监测结构122在第二主板120与电源通电,且第二主板120的开机键被触发后发送到第一控制模块112的信号。The target signal is a signal sent by the
本实施例中,针对第二主板120的开机过程,可以分为上电与开机两个阶段,换而言之,第二主板120的初始状态可以是未上电的状态;当通信模块111接收到远程服务器发送的上电控制指令时,将上电控制指令发送至第一控制模块112,而第一控制模块112可以基于上电控制指令,控制上电继电器进行动作,以将第二主板120与电源进行接通。相似地,当通信模块111接收到开机控制指令时,第一控制模块112可以基于开机控制指令,控制开机继电器进行动作,以对第二主板120的开机键进行触发。In this embodiment, the power-on process of the second
容易理解的是,上述来自远程服务器的上电控制指令与开机控制指令,均可以是远程控制指令的组成部分。状态监测结构122可以通过对第二主板120的运行状态的监测,来判断相应的继电器是否正常动作,例如,当状态监测结构122监测到第二主板120的主板电源时,可以认为上电继电器已正常动作,当状态监测结构122监测到第二主板120的主板总线电源时,可以认为开机继电器已正常动作;而相应的监测结果,即上述的状态监测信号,可以由状态监测结构122发送到第一控制模块112。当监测到第二主板120的主板总线电源时,可以认为第二主板120与电源通电,且第二主板120的开机键被触发,相应地,状态监测结构122此时发送至第一控制模块112的信号即为目标信号。It is easy to understand that, the above power-on control instructions and power-on control instructions from the remote server may be components of the remote control instructions. The
本实施例中,将第二主板120的开机过程分为上电与开机两个阶段,也就是说,由于可以实现对第二主板120的远程上电控制,而无需针对第二主板120时时保持上电的状态,能够在一定程度上保护第二主板120上与上电相关的电子元件,提高第二主板120的使用寿命。In this embodiment, the power-on process of the
在一个示例中,第一控制模块112还可以将状态监测信号通过通信模块111发送到远程服务器,以便进一步使得进行远程控制的用户能够获取到第二主板120的实时状态。In one example, the
在一个示例中,第二主板120也可以设置为上电即开机,这一过程可以基于现有技术进行实现,此处不再赘述;而相应地,电子设备100的通信模块111可以在接收到上电控制指令的情况下,即可完成对第二主板120的开机过程,节省开机操作步骤。In an example, the second
可选地,第二控制模块121与状态监测结构122连接;Optionally, the
第二控制模块121还用于在与第一控制模块112建立通信连接的情况下,获取来自状态监测结构122的状态监测信号,并将状态监测信号发送至第一控制模块112。The
容易理解的是,状态监测结构122除了可以对第二主板120的上电与开机状态进行监测外,还可以针对第二主板120的运行状态进行监控,其中,由于第二主板120在开机运行的状态下,需要监测的内容较多,因此,可以将状态监测结构122与第二控制模块121连接,使得第二控制模块121能够对状态监测结构122获取的状态监测信号进行整合或处理后,通过主板接口直接发送到第一控制模块112,并在后续由通信模块111发送至远程服务器。It is easy to understand that the
本实施例中,通过将第二控制模块121与状态监测结构122连接,可以在第一控制模块112与第二控制模块121建立通信连接的情况下,直接通过主板接口来传输状态监测信号,提供信号的传输效率。In this embodiment, by connecting the
容易理解的是,对于第二主板120配设的状态监测结构122,可以是指第二主板120中本身集成的用于状态监测的电路,也可以是指额外为第二主板120配置的用于状态检测的电路。It is easy to understand that the
可选地,第二控制模块121还用于在与第一控制模块112建立通信连接的情况下,按预设频率向第一控制模块112发送心跳信号。Optionally, the
对于心跳信号,主要是用于对第一控制模块112与第二控制模块121是否处于通信连接状态进行监控;换而言之,当第一控制模块112能够按照预设频率接收到心跳信号时,说明第一控制模块112与第二控制模块121处于通信连接的状态;而第一控制模块112在一较长时间段内未能接收到心跳信号时,说明第一控制模块112与第二控制模块121已断开通信连接。The heartbeat signal is mainly used to monitor whether the
与此同时,第一控制模块112还可以依据接收心跳信号的状态,将与第二控制模块121的通信连接状态通过通信模块111发送至远程服务器。结合以上说明可见,本实施例中,通过第二控制模块121按预设频率向第一控制模块112发送心跳信号,有助于对两者之间的通信连接状态进行有效监控。At the same time, the
本发明实施例还提供了一种应用于上述的电子设备的远程控制方法,如图2所示,该方法包括:The embodiment of the present invention also provides a remote control method applied to the above electronic device, as shown in FIG. 2 , the method includes:
步骤201,在第一主板处于开机状态的情况下,通过通信模块接收远程开机指令;Step 201, in the case that the first motherboard is in a powered-on state, receive a remote power-on instruction through a communication module;
步骤202,通过第一控制模块依据远程开机指令控制开机结构进行动作,以对第二主板进行开机;
步骤203,在第一控制模块接收到状态监测结构发送的目标信号的情况下,控制第一控制模块与第二控制模块建立通信连接,目标信号用于表征第二主板处于已开机的运行状态。
对于电子设备的具体构造已在上述电子设备的实施例中进行了说明,此处不再赘述。以下结合一实际应用场景对本实施例提供的远程控制方法进行说明:The specific structure of the electronic device has been described in the above-mentioned embodiments of the electronic device, and will not be repeated here. The remote control method provided by this embodiment will be described below in conjunction with an actual application scenario:
用户可以通过移动终端向远程服务器发送远程开机指令,远程服务器可以根据身份或地址信息,将远程开机指令发送至对应的电子设备。电子设备通过通信模块接收远程开机指令,同时通过第一控制模块依据远程开机指令控制开机结构,以对第二主板进行开机;当第二主板开机完成后,可以在第一控制模块与第二主板的第二控制模块之间建立通信连接,以便基于用户移动终端、远程服务器、通信模块、第一控制模块以及第二控制模块的通信链路,实现对第二主板的运行或者第二主板对应的操作系统的运行的进一步控制。The user can send the remote power-on instruction to the remote server through the mobile terminal, and the remote server can send the remote power-on instruction to the corresponding electronic device according to the identity or address information. The electronic device receives the remote boot command through the communication module, and at the same time controls the boot structure through the first control module according to the remote boot command, so as to boot the second main board; after the second main board is booted, the first control module and the second main board can be connected A communication connection is established between the second control module of the device, so as to realize the operation of the second motherboard or the corresponding Further control of the operation of the operating system.
结合以上实际应用场景可见,本发明实施例提供的远程控制方法,在基于远程开机指令实现第二主板开机的情况下,无需第二主板进一步与远程服务器建立通信连接,而是在电子设备内部建立第一控制模块与第二控制模块之间的通信连接,即可实现远程对第二主板的进一步控制,进而降低了针对电子设备的远程控制的繁琐度,提高远程控制效率。Combining the above practical application scenarios, it can be seen that in the remote control method provided by the embodiment of the present invention, when the second main board is powered on based on the remote boot command, it is not necessary for the second main board to further establish a communication connection with the remote server, but to establish a communication connection inside the electronic device. The communication connection between the first control module and the second control module can realize further remote control of the second motherboard, thereby reducing the complexity of remote control for electronic equipment and improving the efficiency of remote control.
在一个示例中,远程开机指令可以包括上电控制指令与开机控制指令,也就是说,可以将第二主板的开机过程分为上电和开机两个阶段;与此同时,可以将第二主板在开机过程中的实时状态,反馈给用户。In one example, the remote power-on command may include a power-on control command and a power-on control command, that is, the power-on process of the second motherboard may be divided into two stages: power-on and power-on; at the same time, the second motherboard may be The real-time status during the boot process is fed back to the user.
以下结合一些实际应用场景对本示例进行说明,其中,远程服务器可以对应为公网服务器。This example is described below with reference to some practical application scenarios, where the remote server may correspond to a public network server.
当通信模块接收来自公网服务器上电控制指令后,与第一控制模块通信使其执行指令上电,第一控制模块会通过上电继电器对第二主板的电源进行接通,并将执行结果原路反馈给公网服务器,过程中,公网服务器对电子设备的监控状态由“未上电”→“未开机”。After the communication module receives the power-on control command from the public network server, it communicates with the first control module to power on the execution command. The first control module will turn on the power of the second motherboard through the power-on relay, and send the execution result. The original way is fed back to the public network server. During the process, the monitoring status of the electronic equipment by the public network server is changed from "not powered on" → "not powered on".
当通信模块接受到公网服务器开机控制指令后,与第一控制模块通信使其执行指令开机,第一控制模块会通过开机继电器对第二主板的开机键进行触发,并将正在卡机中的结果原路反馈给公网服务器,等待第二主板开机后,第二主板所包括的第二控制模块通过主板串口RS485向第一控制模块的主板串口RS485发送已启动指令和第二主板的相关运行信息汇报指令,第一控制模块收到串口已启动指令和第二主板的相关运行信息汇报指令,再次将开机结果和第二主板的运行状态信息,通过通信模块按照指令执行结果反馈给公网服务器,整个过程中,公网服务器对电子设备的监控状态由“未开机”→“开机中”→“已开机,并在公网服务器显示电子设备的运行信息”。When the communication module receives the power-on control command of the public network server, it communicates with the first control module to execute the command to power on. The first control module will trigger the power-on button of the second motherboard through the power-on relay, and will The result is fed back to the public network server in the same way. After the second main board is turned on, the second control module included in the second main board sends the started command and the related operation of the second main board to the main board serial port RS485 of the first control module through the main board serial port RS485. Information reporting command, the first control module receives the serial port startup command and the second mainboard's related operating information reporting command, and then feeds back the boot result and the second mainboard's operating status information to the public network server through the communication module according to the command execution result. , During the whole process, the monitoring status of the electronic equipment by the public network server is changed from "not powered on" → "starting up" → "started up, and the operation information of the electronic equipment is displayed on the public network server".
结合以上应用场景可见,在一些可选的实施例中,可以在第一控制模块与第二控制模块建立通信连接之后,通过第二控制模块向第一控制模块发送状态监测结构获取的状态监测信号。It can be seen from the above application scenarios that, in some optional embodiments, after the first control module and the second control module establish a communication connection, the second control module can send the state monitoring signal obtained by the state monitoring structure to the first control module. .
也就是说,如图3所示,在本实施例中,上述远程控制方法包括:That is to say, as shown in FIG. 3 , in this embodiment, the above-mentioned remote control method includes:
步骤301,通过通信模块接收远程开机指令;
步骤302,通过第一控制模块依据远程开机指令控制开机结构进行动作,以对第二主板进行开机;
步骤303,在第一控制模块接收到状态监测结构发送的目标信号的情况下,控制第一控制模块与第二控制模块建立通信连接,目标信号用于表征第二主板处于已开机的运行状态;
步骤304,通过第二控制模块向第一控制模块发送状态监测结构获取的状态监测信号。
如此,在第二主板开机后,通过第二控制模块可以将状态监测结构获取的各类状态监测信号进行整合或处理后,发送至第一控制模块,提高数据传输效率。后续可通过通信模块将这些状态监测信号相关的信息进一步发送至远程服务器。In this way, after the second motherboard is powered on, various state monitoring signals obtained by the state monitoring structure can be integrated or processed by the second control module, and then sent to the first control module to improve data transmission efficiency. Subsequently, the information related to these status monitoring signals can be further sent to the remote server through the communication module.
在一个示例中,第二主板开机后,基于远程控制,可以使得第二主板执行不同的流程,例如,远程控制第二主板进行黑屏、进入屏幕保护、启动指定应用、分发软件安装、分发文件、截取操作系统的屏幕信息,或者直接控制操作系统都是可以的,此处不一一列举。同时通过通信模块,可以向远程服务器汇报电子设备的实时运行信息,例如CPU使用率、内存使用率,磁盘使用率等等。本示例可以实现对整个远程控制的执行流程、电子设备以及对于电子设备的各种系统运行状态和动作进行实时精确监控和控制。In one example, after the second main board is powered on, based on remote control, the second main board can be made to execute different processes, for example, remotely controlling the second main board to perform a black screen, enter a screen saver, start a specified application, distribute software installation, distribute files, It is possible to capture the screen information of the operating system or directly control the operating system, which will not be listed here. At the same time, through the communication module, the real-time operation information of the electronic device, such as CPU usage, memory usage, disk usage, etc., can be reported to the remote server. This example can realize real-time accurate monitoring and control of the entire remote control execution process, electronic equipment, and various system operating states and actions of the electronic equipment.
相应地,为实现上述远程控制过程,该示例中,远程控制方法包括:Correspondingly, in order to realize the above-mentioned remote control process, in this example, the remote control method includes:
通过通信模块接收中间控制指令;Receive intermediate control instructions through the communication module;
将中间控制指令通过第一控制模块发送至第二控制模块,其中,中间控制指令包括黑屏控制指令、进入屏幕保护控制指令、启动应用控制指令、分发软件安装控制指令、分发文件控制指令、截屏控制指令以及获取实时运行信息控制指令中的至少一项。Send the intermediate control instructions to the second control module through the first control module, wherein the intermediate control instructions include black screen control instructions, screen saver control instructions, application startup control instructions, distribution software installation control instructions, distribution file control instructions, and screenshot control. at least one of an instruction and a control instruction for acquiring real-time operating information.
对于黑屏控制指令,用于控制第二主板进行黑屏,具体来说,第二主板可以响应黑屏控制指令,控制与第二主板连接的显示屏进行黑屏;相似地,进入屏幕保护控制指令,可以最终用于控制上述显示屏进入屏幕保护状态;启动应用控制指令,可以用于启动第二主板对应操作系统中的特定应用程序;分发软件安装控制指令,可以用于控制在第二主板对应操作系统中安装特定的软件;分发文件控制指令,可以用于控制第二主板对应存储设备,对接收到的图片、文档、视频等类型的文件进行存储,或者将上述存储设备中的文件进行分发等;截屏控制指令用于控制对第二主板对应显示屏的显示界面进行截屏;获取实时运行信息控制指令可以用于控制获取第二主板,或者与第二主板连接的CPU、内存、磁盘等设备的实时运行数据进行获取。For the black screen control command, it is used to control the second main board to perform a black screen. Specifically, the second main board can respond to the black screen control command and control the display screen connected to the second main board to perform a black screen; similarly, entering the screen saver control command can finally It is used to control the above-mentioned display screen to enter the screen saver state; start the application control instruction, which can be used to start a specific application program in the operating system corresponding to the second motherboard; distribute the software installation control instruction, which can be used to control the operating system corresponding to the second motherboard Install specific software; distribute file control instructions, which can be used to control the storage device corresponding to the second motherboard, store received pictures, documents, videos and other types of files, or distribute files in the above storage devices, etc.; screenshot The control instruction is used to control the screen capture of the display interface of the display screen corresponding to the second motherboard; the control instruction to obtain real-time operation information can be used to control the acquisition of the second motherboard, or the real-time operation of the CPU, memory, disk and other equipment connected to the second motherboard data is acquired.
可选地,如图4所示,在另一实施例中,上述远程控制方法包括:Optionally, as shown in FIG. 4 , in another embodiment, the above-mentioned remote control method includes:
步骤401,通过通信模块接收远程开机指令;
步骤402,通过第一控制模块依据远程开机指令控制开机结构进行动作,以对第二主板进行开机;
步骤403,在第一控制模块接收到状态监测结构发送的目标信号的情况下,控制第一控制模块与第二控制模块建立通信连接,目标信号用于表征第二主板处于已开机的运行状态;
步骤404,通过第二控制模块按预设频率向第一控制模块发送心跳信号。
如上文,心跳信号,主要是用于对第一控制模块与第二控制模块是否处于通信连接状态进行监控。本实施例中通过第二控制模块按预设频率向第一控制模块发送心跳信号,有助于对两者之间的通信连接状态进行有效监控。As mentioned above, the heartbeat signal is mainly used to monitor whether the first control module and the second control module are in a communication connection state. In this embodiment, the second control module sends a heartbeat signal to the first control module at a preset frequency, which helps to effectively monitor the communication connection state between the two.
可选地,为实现对第二主板的远程关机控制,如图5所示,本实施例中,在通过第二控制模块按预设频率向第一控制模块发送心跳信号之后,上述远程控制方法还包括:Optionally, in order to realize the remote shutdown control of the second motherboard, as shown in FIG. 5 , in this embodiment, after the second control module sends a heartbeat signal to the first control module at a preset frequency, the above-mentioned remote control method is performed. Also includes:
步骤501,通过通信模块接收远程关机指令;
步骤502,将远程关机指令通过第一控制模块发送至第二控制模块,并通过第二控制模块控制开机结构进行动作,以对第一主板进行关机;
步骤503,在第一控制模块在预设时间内未接收到心跳信号的情况下,通过第一控制模块生成关机确认信号。
以下结合一些具体应用场景对本实施例进行说明,其中,远程服务器可以对应为公网服务器:This embodiment is described below with reference to some specific application scenarios, wherein the remote server may correspond to a public network server:
当通信模块接收到公网服务器远程关机指令后,与第一控制模块通信使其执行关机过程。具体来说,第一控制模块会通过主板串口RS485向第二控制模块的主板串口RS485发送远程关机指令,第二主板关机后会断开串口的心跳联系;此处的心跳联系,可以是例如每1s,第一控制模块和第二控制模块会进行一次心跳,确保第二主板实时在线。当心跳包断开时,结合之前发送给第二控制模块的远程关机指令,判断第二主板已关机。第一控制模块通过通信模块按照指令执行结果反馈给公网服务器,整个过程中,公网服务器对电子设备的监控状态由“已开机,并在公网服务器显示终端设别运行信息”→“已关机”。After the communication module receives the remote shutdown instruction of the public network server, it communicates with the first control module to execute the shutdown process. Specifically, the first control module will send a remote shutdown command to the mainboard serial port RS485 of the second control module through the mainboard serial port RS485, and after the second mainboard shuts down, the heartbeat connection of the serial port will be disconnected; the heartbeat connection here can be, for example, every 1s, the first control module and the second control module will perform a heartbeat to ensure that the second motherboard is online in real time. When the heartbeat packet is disconnected, it is determined that the second main board has been shut down in combination with the remote shutdown command previously sent to the second control module. The first control module feeds back the execution result of the instruction to the public network server through the communication module. During the whole process, the monitoring status of the electronic device by the public network server is changed from "started up, and the terminal device operation information is displayed on the public network server" → "already". Shut down".
进一步地,当通信模块接收公网服务器断电指令后,与第一控制模块通信使其执行断电操作,第一控制模块会通过相应的继电器对第二主板的电源进行断开,并将执行结果原路反馈给公网服务器,过程中,公网服务器对电子设备的监控状态由“未开机”→“未上电”。Further, after the communication module receives the power-off instruction of the public network server, it communicates with the first control module to execute the power-off operation, and the first control module disconnects the power supply of the second motherboard through the corresponding relay, and executes the power-off operation. The result is fed back to the public network server in the same way. During the process, the monitoring status of the electronic device by the public network server is changed from "not powered on" → "not powered on".
可选地,本发明实施例还提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的远程控制方法。Optionally, an embodiment of the present invention further provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program When the above-mentioned remote control method is realized.
可选地,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的远程控制方法。Optionally, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program implements the foregoing remote control method when executed by a processor.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011122913.2A CN111966420B (en) | 2020-10-20 | 2020-10-20 | Electronic device and remote control method thereof, terminal device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011122913.2A CN111966420B (en) | 2020-10-20 | 2020-10-20 | Electronic device and remote control method thereof, terminal device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111966420A CN111966420A (en) | 2020-11-20 |
CN111966420B true CN111966420B (en) | 2021-01-29 |
Family
ID=73386949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011122913.2A Active CN111966420B (en) | 2020-10-20 | 2020-10-20 | Electronic device and remote control method thereof, terminal device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111966420B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882759A (en) * | 2021-02-10 | 2021-06-01 | 联想(北京)有限公司 | Control method and device and electronic equipment |
CN115701070A (en) * | 2021-07-16 | 2023-02-07 | 京东方科技集团股份有限公司 | Computer equipment, its remote control method, and related equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102955704A (en) * | 2011-08-26 | 2013-03-06 | 联咏科技股份有限公司 | Software execution method and electronic device thereof |
CN104656515B (en) * | 2015-01-21 | 2017-09-29 | 广州视睿电子科技有限公司 | Remote control method and system for dual-system intelligent equipment |
CN105045599A (en) * | 2015-08-12 | 2015-11-11 | 创维光电科技(深圳)有限公司 | Television and computer integrated machine and method for realizing remote startup and shutdown control of same |
CN110515662B (en) * | 2019-07-17 | 2021-01-01 | 湖南新云网科技有限公司 | Remote control method, system, equipment and readable storage medium for dual-system equipment |
-
2020
- 2020-10-20 CN CN202011122913.2A patent/CN111966420B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111966420A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10961651B2 (en) | Internet of things washing machine control method, control system, and washing machine | |
US20190052476A1 (en) | Smart appliance control method and smart appliance | |
US11463955B2 (en) | Method for implementing low power consumption on standby for bluetooth security device and bluetooth security device | |
US8578182B2 (en) | Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same | |
CN108206842B (en) | Cloud desktop remote access method and system | |
CN111966420B (en) | Electronic device and remote control method thereof, terminal device and readable storage medium | |
CN104572564A (en) | Method for realizing communication of Android mobile equipment and USB OTG (On-The-Go) host computer | |
CN112350861A (en) | Log obtaining method and device, computer equipment and storage medium | |
CN106506174A (en) | Control method for remote equipment, remote server and remote equipment | |
CN111930222A (en) | Control method and device and electronic equipment | |
CN112860408A (en) | Process keep-alive method, device and system in cloud reality machine and storage medium | |
CN113609107A (en) | Database management method and device, electronic equipment and storage medium | |
WO2018184594A1 (en) | Method for remotely controlling device and remote control system | |
CN111246199A (en) | Control method and device for camera test, terminal equipment and storage medium | |
CN111770522B (en) | Method, device, terminal and storage medium for identifying data dialing abnormality | |
CN106161409A (en) | A kind of agent framework service system including local component and method | |
CN112882759A (en) | Control method and device and electronic equipment | |
CN110943350A (en) | WIFI smart jack, based on WIFI smart jack's computer watchdog system | |
TWI493458B (en) | Computer device and restart method thereof | |
WO2024046049A1 (en) | Communication method and apparatus, storage medium and terminal device | |
US20230058633A1 (en) | Device and method for diagnosing and configuring a hydraulic device based on wireless local area network | |
CN104394023A (en) | Failure collecting method and system for network access terminal | |
CN112769196B (en) | A charging control method, device, electronic equipment and charger | |
CN102193609B (en) | Setting method and electronic device of power lock | |
CN112584085B (en) | Dual-mode-supporting starting method and system, UVC (ultraviolet video coding) equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park. Patentee after: New Cloud Technology Group Co.,Ltd. Country or region after: China Address before: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park. Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd. Country or region before: China |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Electronic devices and their remote control methods, terminal devices, and readable storage media Granted publication date: 20210129 Pledgee: Agricultural Bank of China Limited Changsha Yuhua District sub branch Pledgor: New Cloud Technology Group Co.,Ltd. Registration number: Y2024980048365 |