Disclosure of Invention
The embodiment of the application provides a remote equipment control system, a remote equipment control method, an electronic device and a storage medium, which are used for at least solving the problem of high control power consumption of remote equipment in the related technology.
In a first aspect, an embodiment of the present application provides a remote device control system, where the system includes a master device and a remote device, where the remote device includes a processing module, a network module, a first power module, and a second power module;
The system comprises a processing module, a first power module, a second power module, a network module, a first power module, a second power module and a control module, wherein the processing module is connected with the network module and is used for processing working information of the remote equipment;
the main control equipment is used for sending a network wake-up packet to the network module under the condition that the remote equipment is detected to be in a power-off state;
The network module is used for sending a starting level signal to the first power supply module based on the network wakeup packet, wherein the starting level signal is used for controlling the first power supply module to enter the working state from the shutdown state.
In some embodiments, the processing module is configured to send a shutdown level signal to the first power module based on preset shutdown indication information, where the shutdown level signal is used to control the first power module to enter the shutdown state from the working state.
In some embodiments, the remote device further comprises a third power module and a function control module, wherein the first power module is respectively connected with the function control module and the third power module;
The processing module is further used for sending a shutdown identifier to the function control module based on the shutdown instruction information under the condition that the shutdown instruction information is received;
And the function control module is used for sending the shutdown level signal to the first power supply module based on the shutdown identifier under the condition that the shutdown identifier is received, so that the first power supply module stops supplying power to the function control module and the third power supply module.
In some of these embodiments, the functional control module includes a communication interface;
The communication interface is used for detecting whether the processing module sends the shutdown identification or not and transmitting the shutdown identification to the function control module under the condition that the shutdown identification is detected.
In some of these embodiments, the remote device has at least two;
The main control equipment is also used for acquiring local area network addresses of the remote equipment in the shutdown state and respectively sending network wake-up packets to the corresponding network modules in the remote equipment based on the local area network addresses.
In some of these embodiments, the remote device further comprises a function control module;
The processing module is also used for generating working identification information after the first power supply module in the working state supplies power, and sending the working identification information to the function control module for storage;
the function control module is further used for acquiring a judging result of whether the remote equipment is in a working state or not based on the working identification information, and feeding back the judging result to the processing equipment.
In a second aspect, an embodiment of the present application provides a remote device control method, where a second power module of a remote device supplies power to a network module of the remote device, and the second power module is continuously in a working state, where the method includes:
And under the condition that the remote equipment is detected to be in a shutdown state, sending a network wakeup packet to a network module, so that the network module sends a startup level signal to a first power module based on the network wakeup packet, wherein the first power module is used for supplying power to a processing module of the remote equipment, and the startup level signal is used for controlling the first power module to enter a working state from the shutdown state.
In some embodiments, the remote device has at least two, and the sending the wake-on-network packet to the network module comprises:
And acquiring local area network addresses of the remote equipment in the shutdown state, and respectively sending network wakeup packets to the corresponding network modules in the remote equipment based on the local area network addresses.
In a third aspect, an embodiment of the present application provides an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the remote device control method according to the second aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a remote device control method as described in the second aspect above.
Compared with the related art, the remote equipment control system, the method, the electronic device and the storage medium comprise a main control equipment and remote equipment, wherein the remote equipment comprises a processing module, a network module, a first power module and a second power module, the processing module is connected with the network module and used for processing working information of the remote equipment, the first power module is used for supplying power to the processing module, the second power module is used for supplying power to the network module, the second power module is continuously in a working state, the main control equipment is used for sending a network wakeup packet to the network module when the remote equipment is detected to be in a shutdown state, the network module is used for sending a startup level signal to the first power module based on the network wakeup packet, and the startup level signal is used for controlling the first power module to enter the working state from the shutdown state, so that the problem of high control power consumption of the remote equipment is solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person of ordinary skill in the art based on the embodiments provided by the present application without making any inventive effort, are intended to fall within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the described embodiments of the application can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," and similar referents in the context of the application are not to be construed as limiting the quantity, but rather as singular or plural. The terms "comprises," "comprising," "includes," "including," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in connection with the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes the association relationship of the association object, and indicates that three relationships may exist, for example, "a and/or B" may indicate that a exists alone, a and B exist simultaneously, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
This embodiment provides a remote device control system, and fig. 1 is a block diagram of a remote device control system according to an embodiment of the present application, where the system includes a master device 12 and a remote device 14, and as shown in fig. 1, the remote device 14 includes a processing module 142, a network module 144, a first power module 146, and a second power module 148. It is understood that the remote device 14 may be an external device such as a keyboard, a display, or a mouse (Keyboard Video Mouse, abbreviated as KVM) that is coupled to the master device 12. The remote device 14 may be one or more in this embodiment. The master device 12 refers to a control device such as a computer or a single-chip microcomputer for controlling the remote device 14. Specifically, fig. 2 is a schematic diagram of a remote device connection structure according to an embodiment of the present application, as shown in fig. 2, a master device 12 may be connected to N remote devices 14 through a lan via a routing device, where the master device 12 may wake up a single or multiple remote devices 14, and N is a positive integer.
The processing module 142 is connected to the network module 144 for communication, and is used for processing the working information of the remote device 14, for example, the remote device 14 may be a keyboard, where the processing module 142 is used for receiving an instruction input by a user through the keyboard, and transmitting the working information generated by analyzing the instruction to the master control device 12. The first power module 146 is configured to supply power to the processing module 142, the second power module 148 is configured to supply power to the network module 144, and the second power module 148 is continuously in operation. It is appreciated that the first power module 146 and/or the second power module 148 may employ a SWITCH, a power controller including an enable terminal, a transistor, or other components or circuitry to implement an automatic switching function.
The above-mentioned master device 12 is configured to send a network wakeup packet to the network module 144 when detecting that the remote device 14 is in a power-off state, and it is understood that the master device 12 may determine whether the remote device 14 is in the power-off state by acquiring information such as a work monitoring result of the remote device 14, and send the network wakeup packet to the network module 144 of the remote device 14 when receiving a power-on instruction indicating that the user is power-on, or when detecting that the remote device 14 needs to be waken. The network module 144 is configured to send a power-on level signal to the first power module 146 based on the network wake-up packet, where the power-on level signal is configured to control the first power module 146 to enter the working state from the power-off state. The network module 144 may be a network card chip or the like for providing a network to the remote device 14. Specifically, the network module 144 may send a power-on level signal to the first power module 146 to control the first power module 146 to start supplying power in response to the wake-on-network packet.
In the related art, after the remote device 14 is turned off, it is usually required to detect whether the network card chip sends a power supply of a wake-up signal for supplying power, which results in an increase of control power consumption of the remote device 14 switch; in the above embodiment of the present application, when the remote device 14 processes the power-off state, the second power module 148 continuously supplies power to the network module 144, and sends the power-on level signal to the first power module 146 based on the network wake-up packet sent by the master device 12 through the network module 144, so that the first power module 146 starts to work and supplies power to the device, thereby realizing the control mode, only one second power module 148 is required to continuously supply power to the network module 144 in the whole control process, ensuring that the consumption and the power consumption of the remote device 14 in the power-off state are the lowest, solving the problem of high control power consumption of the remote device 14, and realizing the energy-saving control system of the remote device 14 with low power consumption.
In some embodiments, the processing module 142 is configured to send a shutdown level signal to the first power module 146 based on preset shutdown indication information, where the shutdown level signal is used to control the first power module 146 to enter the shutdown state from the working state. Specifically, the shutdown instruction information may be generated by the processing module 142, that is, the processing module 142 automatically realizes the startup and shutdown, or the shutdown instruction information is generated by the master control device under the condition that the remote device 14 in the working state is detected, and the master control device 12 sends the shutdown instruction information to the processing module 142 corresponding to the remote device 14, after receiving the shutdown instruction information sent by the master control device 12, the processing apparatus may analyze the shutdown instruction information, and further generate a shutdown level signal to the first power module 146 based on the obtained analysis result, so as to control the first power module 146 to be turned off, thereby realizing the automatic shutdown of the power supply of the processing module 142, and after the remote device 14 is automatically turned off, only the second power module 148 for supplying power to the network module 144 still continues to work.
By the above embodiment, after the remote device 14 is automatically turned off, only one second power module 148 is needed to continuously supply power to the network module 144, and all other peripheral modules do not work, so that the power consumption of the whole device can be minimized, thereby effectively reducing the power consumption controlled by the remote device 14.
In some embodiments, the remote device 14 further includes a third power module and a function control module, wherein the first power module 146 is connected to the function control module and the third power module, and the third power module is connected to the processing module 142 and is used for supplying power to the processing module 142. The function control module is used for controlling the switch of each power supply connected with the function control module, and meanwhile, the function control module can also realize the control of other functions such as watchdog function, fan control, buzzer control and the like. It should be noted that, in this embodiment, by setting the function control module, the power control function and the service processing function are separately set, so that the processing efficiency of the processing module 142 can be effectively improved, and meanwhile, the response speed of power control is also improved, thereby effectively improving the control efficiency of the remote device 14.
The processing module 142 is further configured to send a shutdown identifier to the function control module based on the shutdown instruction information when the shutdown instruction information is received, and the function control module is configured to send the shutdown level signal to the first power module 146 based on the shutdown identifier when the shutdown identifier is received, so that the first power module 146 stops supplying power to the function control module and the third power module, and power of the function control module and the processing module 142 is automatically turned off.
With the above embodiment, after the remote device 14 is automatically turned off, both the first power module 146 and the third power module have been turned off, and only the second power module 148 is in the power-on state, thereby further reducing the control power consumption of the remote device 14.
In some embodiments, the function control module includes a communication interface for detecting whether the processing module 142 transmits the shutdown identifier, and transmitting the shutdown identifier to the function control module if the shutdown identifier is detected. The shutdown identifier may be information such as an identifier code of the flag location 1, which is used to indicate that the current remote device 14 needs to be shutdown. It should be noted that the communication interface is also used for outputting a normal operation signal. In addition, the function control module may be further provided with a first interface for transmitting signals to the first function control module and a second interface for transmitting signals to the third power module, where the first interface and/or the second interface may use General-purpose input/output (GPIO) or the like. Through the above embodiment, the communication interface of the function control module detects whether the processing module 142 sends the shutdown identifier, thereby effectively improving the response speed of automatic shutdown of the remote device 14.
Specifically, fig. 3 is a flowchart of a processing module controlling shutdown according to an embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:
Step S301, a control flow is started. At this time, the first power module and the third power module are both in working states.
In step S302, the processing module outputs a normal working signal through the communication interface.
Step S303, detecting the shutdown instruction information, judging whether to instruct the remote equipment to shutdown, and if not, returning to execute the step S302.
Step S304, if the judgment result of the step S303 is yes, a shutdown identification is output to the function control module through the communication interface. Ending the control flow.
FIG. 4 is a flowchart of a function control module controlling shutdown according to an embodiment of the application, as shown in FIG. 4, the flowchart includes the following steps:
step S401, control flow starts. The function control module outputs a high-level signal to the first power supply module through the first interface, and simultaneously outputs a high-level signal to the third power supply module through the second interface.
Step S402, the function control module detects the shutdown identifier through the communication interface and judges whether the remote equipment is instructed to shutdown, if not, the step S401 is executed again.
In step S403, if the determination result in step S402 is yes, a low level signal is output to the first power module through the first interface.
In step S404, the first power module is turned off, so that the remote device is in a power-off state. Ending the control flow.
In some embodiments, the remote devices have at least two remote devices, and the master device 12 is further configured to obtain lan addresses of the remote devices in the power-off state, and send network wake-up packets to the network modules 144 in the corresponding remote devices 14 respectively based on the lan addresses. The lan Address may be a medium access Control Address (MEDIA ACCESS Control Address, abbreviated as MAC Address). Specifically, in the case where the master control device 12 is connected to a plurality of remote devices 14, the master control device 12 may monitor the working and running conditions of each remote device 14 in real time, when monitoring that a certain remote device 14 or a certain remote device 14 is in a shutdown state and needs to wake up the master control device 12, the master control device 12 may obtain the lan address of each remote device 14 input by a user through the upper computer software, send a network wake-up packet to the network module 144 of the corresponding remote device 14 by one key, and the network module 144 of each remote device 14 may control the first power module 146 to enable based on the received network wake-up packet, thereby implementing an automatic wake-up method of one-to-many remote devices 14, and effectively improving the convenience of remote device 14 control.
In some embodiments, the remote device 14 further includes a function control module, the processing module 142 is further configured to generate operation identification information after the first power module 146 in the working state supplies power, and send the operation identification information to the function control module for storage, where the operation identification information is used to indicate the working operation condition of the remote device 14, for example, the processing module 142 may generate the identification code of the flag location 1 after the first power module 146 supplies power, i.e. after the remote device 14 wakes up autonomously, and send the identification code as the operation identification information to the function control module. The function control module is further configured to obtain a determination result of whether the remote device 14 is in a working state based on the working identification information, and feed back the determination result to the processing device. It will be appreciated that the processing module 142 may also generate a corresponding determination result indicating whether the remote device 14 is in an operating state directly based on the operation identification information while sending the operation identification information to the function control module. This determination may also be sent by processing module 142 or a functional control module to master device 12 so that master device 12 monitors the operational performance of remote device 14 in real time. Through the above embodiment, the processing module 142 sends the work identification information after the remote device 14 is normally started and informs the function control module, so that the function control module performs power control based on the work identification information, thereby further improving the accuracy of remote device 14 control.
In the following, an embodiment of the present application will be described in detail with reference to a practical application scenario, and fig. 5 is a schematic structural diagram of a remote device according to an embodiment of the present application, as shown in fig. 5, where the remote device includes a processing module, a function control module, a network module, a first power module, a second power module, and a third power module. The processing module is connected with the communication interface of the function control module through a communication link. The function control module is also respectively connected with the first power supply module and the third power supply module, and transmits a level signal to the first power supply module through the GPIO1 and transmits a signal to the third power supply module through the GPIO2, wherein the first power supply module is used for supplying power to the function control module and the third power supply module, and the third power supply module is used for supplying power to the processing module. The processing module is also connected to the network module for communication. The network module can be in communication connection with other devices through an RJ45 interface and the like, and is also respectively connected with a second power module and a first power module, wherein the second power module is used for supplying power to the network module.
Specifically, when the processing module is normally powered off, a power off identification or a power off signal is sent to inform the functional control module of power off, when the functional control module receives the power off identification or the power off signal, a control level signal is output through the GPIO1 to close the first power supply module, so that the power supply of the processing module and the functional control module is closed, and at the moment, the second power supply module independently supplies power to the network module, and the network module can work normally. The main control equipment is connected with the remote equipment through a local area network, in the starting process, firstly, the main control equipment obtains the MAC address of the remote equipment input by a user through upper computer software, and sends a network wake-up packet to the corresponding remote equipment based on the MAC address by one key, when a network module of the remote equipment receives the network wake-up packet, a low-level signal, namely, a wake-up signal, is output to a first power module to enable the first power module, after the first power module is enabled, the third power module and the function control module are simultaneously powered, and after the function control module is powered, the third power module is controlled to be enabled, so that the processing module is powered.
The embodiment also provides a remote equipment control method which is applied to the main control equipment, wherein the main control equipment is connected with at least one remote equipment, the remote equipment comprises a processing module, a network module, a first power module and a second power module, the processing module is connected with the network module and is used for processing working information of the remote equipment, the first power module is used for supplying power to the processing module, the second power module is used for supplying power to the network module, and the second power module is continuously in a working state. The flow of the remote equipment control method comprises the following steps:
Step S610, under the condition that the remote equipment in the shutdown state is detected, a network wake-up packet is sent to the network module, so that the network module sends a startup level signal to the first power module based on the network wake-up packet, wherein the startup level signal is used for controlling the first power module to enter the working state from the shutdown state.
Through the above step S610, under the condition that the remote device processes the power-off state, the second power module continuously supplies power to the network module, and sends the power-on level signal to the first power module based on the network wake-up packet sent by the main control device through the network module, so that the first power module starts to work and supplies power to the device.
In some embodiments, the remote device control method further comprises the step of sending a shutdown instruction message to the processing module when the remote device in the working state is detected, wherein the processing module sends a shutdown level signal to the first power module based on the shutdown instruction message when the shutdown instruction message is received, and the shutdown level signal is used for controlling the first power module to enter the shutdown state from the working state.
In some embodiments, the remote device has at least two, and the sending the wake-on-network packet to the network module further comprises the steps of:
Step S611, obtain LAN address of the remote device in the power-off state, and send network wake-up packets to the corresponding network modules in the remote device based on the LAN address.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
In some of these embodiments, a computer device is provided, which may be a server, and fig. 6 is a block diagram of the interior of a computer device according to an embodiment of the present application, as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing work identification information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a remote device control method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, under the condition that the remote equipment in a shutdown state is detected, a network wakeup packet is sent to a network module, so that the network module sends a startup level signal to a first power module based on the network wakeup packet, the first power module is used for supplying power to a processing module of the remote equipment, and the startup level signal is used for controlling the first power module to enter the working state from the shutdown state.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the remote device control method in the above embodiment, the embodiment of the present application may be implemented by providing a storage medium. The storage medium having stored thereon a computer program which, when executed by a processor, implements a remote device control method of any of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.