A method, device and storage medium for remotely controlling the power on and off of a service terminal

Through the remote control method of cloud PC service terminal and cloud PC server, the problem of idle host and no WOL function after cloud server transformation is solved, and the remote switch control of PC host is realized, and resource utilization and management efficiency are improved.

CN119520180BActive Publication Date: 2025-04-18BANGYAN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510069200.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-18
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

In the prior art, the cloud server transforms the user's original host or local server idle, resulting in waste of resources, and some computers do not support the Wake On Lan (WOL) function, and remote power-on and shutdown control cannot be realized.

Method used

The remote control service terminal switch is realized through the cloud PC service terminal, and the electrical connection between the cloud PC server and the cloud PC service terminal is utilized, and the full duplex communication protocol (Websocket) of TCP is combined to realize the power switch control of the PC host. The method includes a cloud PC server to obtain the on-off status of the PC host, a user issues the on-off control data frame, a cloud PC service terminal parses and sends control information to the PC host, and implements the on-off operation through GPIO control of the MOS on-off time.

Benefits of technology

Remote power-on and shutdown control of computers that do not support WOL functions is realized, avoiding resource waste and improving the management efficiency of cloud server systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520180B_ABST
    Figure CN119520180B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device and storage medium for remote control service terminal power on / off, the method comprising: a cloud PC server obtains the power on / off status of the current PC host through a cloud PC service terminal; if a power on / off control data frame is received, the cloud PC server transmits the power on / off control data frame to the cloud PC server terminal based on the full-duplex communication protocol of TCP; after the cloud PC service terminal receives the power on / off control data frame, it parses the power on / off control data frame to obtain power on / off control information; the cloud PC service terminal sends the power on / off control information to the PC host. The method, device and storage medium for remote control service terminal power on / off realize the power on / off control of the PC host through the cloud PC service terminal, so that some computers that do not support the WOL function can also realize remote power on / off control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud PC servers, and in particular to a method, device and storage medium for remotely controlling the power on and off of a service terminal. Background Art

[0002] As cloud server vendors' technology becomes more advanced, cloud servers can not only provide high-quality services but also reduce the huge costs of building their own computer rooms. Cloud servers have become an optimal choice for Internet companies. However, due to the transformation of cloud servers, users' original hosts or local servers are idle, resulting in a large amount of resource waste. Summary of the invention

[0003] The present invention provides a method, device and storage medium for remotely controlling the power on and off of a service terminal, aiming to solve at least one of the technical problems existing in the prior art.

[0004] The technical solution of the present invention is a remote control service terminal power on / off method, which is applied to a cloud PC system. The remote control service terminal power on / off device includes: a data center network; a cloud PC server, wherein a computing blade for providing computing services is provided in the cloud PC server, and the cloud PC server is electrically connected to the data center network; a cloud PC user terminal, which is used to provide input and output devices for user operations, and the cloud PC user terminal is electrically connected to the cloud PC server through the data center network; a cloud PC management platform, which is used to comprehensively manage the cloud PC system, and the cloud PC management platform is electrically connected to the data center network; a cloud PC service terminal, which supports a network-based power management function (WOL, Wake On Lan), and the cloud PC service terminal is electrically connected to the data center network; a PC host, and the PC host is connected to the cloud PC service terminal through a remote power on / off control interface. The remote control service terminal power on / off method includes the following steps:

[0005] S100, the cloud PC server obtains the power on / off status of the current PC host through the cloud PC service terminal;

[0006] S200, if the power on / off control data frame is received, the cloud PC server transmits the power on / off control data frame to the cloud PC server terminal based on the TCP full-duplex communication protocol (Websocket);

[0007] S300: After receiving the power on / off control data frame, the cloud PC service terminal parses the power on / off control data frame to obtain power on / off control information;

[0008] S400: The cloud PC service terminal sends power on and power off control information to the PC host.

[0009] Further, the step S100 includes the following steps:

[0010] S110, the PC host sends the current power on / off status information to the cloud PC service terminal through the remote power on / off control interface by actively reporting or responding to inquiries;

[0011] S120, based on the TCP full-duplex communication protocol (Websocket), the cloud PC service terminal sends the detected power on / off status information of the PC host to the cloud PC management platform;

[0012] S130: The cloud PC management platform receives and processes the power on / off status information of the PC host.

[0013] Furthermore, the step S100 also includes:

[0014] S140, the user logs in to the cloud PC system through the cloud PC user terminal and checks the power on / off status of the current PC host;

[0015] S150: The user controls the remote PC host to start or shut down by sending a power on or power off control data frame.

[0016] Further, the step S400 includes:

[0017] S410, the cloud PC service terminal configures the GPIO control register according to the power on and power off control information;

[0018] S420, the cloud PC service terminal outputs a GPIO control signal pulse, which is output to the remote power on / off control interface via the internal interface circuit of the cloud PC service terminal;

[0019] S430, cloud PC server controls the external MOS conduction time length to be different, and realizes different modes of remote power on / off control.

[0020] Further, in step S430,

[0021] When the cloud PC server controls the MOS to be turned on for 500ms through GPIO, the PC host performs the power-on operation;

[0022] When the cloud PC server controls the MOS to be turned on for 6S through GPIO, the PC host performs the shutdown operation;

[0023] When the cloud PC server controls the MOS to be turned on for 2S through GPIO, the PC host performs a sleep operation.

[0024] Furthermore, in step S430, the power control function at least includes power on, power off, restart, sleep, and a custom power control function.

[0025] Furthermore, the present invention also provides a remote control service terminal power on / off device, which is used to execute the remote control service terminal power on / off method. The remote control service terminal power on / off device comprises:

[0026] Data center network;

[0027] A cloud PC server, wherein a computing blade for providing computing services is disposed in the cloud PC server, and the cloud PC server is electrically connected to the data center network;

[0028] A cloud PC user terminal is used to provide input and output devices for user operations. The cloud PC user terminal is electrically connected to the cloud PC server through a data center network.

[0029] A cloud PC management platform, used for comprehensive management of the cloud PC system, wherein the cloud PC management platform is electrically connected to the data center network;

[0030] A cloud PC service terminal, the cloud PC service terminal supports a network-based power management function (WOL, Wake OnLan), and the cloud PC service terminal is electrically connected to the data center network;

[0031] The PC host, the power on / off interface of the PC host mainboard is connected to the cloud PC service terminal via a remote power on / off control interface.

[0032] Furthermore, the remote power on / off control interface is a Phoenix terminal interface or a USB interface.

[0033] Furthermore, the Phoenix terminal interface is a 2*2 terminal, including a PIN1-DET terminal, a PIN2-CTRL1 terminal, a PIN3-GND terminal and a PIN4-CTRL2 terminal.

[0034] Furthermore, the present invention also provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the remote control service terminal power on and off method is implemented.

[0035] The beneficial effects of the present invention are:

[0036] The remote control service terminal power on / off method, device and storage medium implement power on / off control of a PC host through a cloud PC service terminal, so that some computers that do not support the WOL (Wake On Lan) function can also implement remote power on / off control. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The figure is an overall flow chart of the method for remotely controlling the power on and off of a service terminal.

[0038] Figure 2 This is a structural diagram of the power on / off device of the remote control service terminal.

[0039] Figure 3 This is a schematic diagram of the connection structure between the cloud PC service terminal and the detection port in the remote control service terminal power on and off device.

[0040] Figure 4 This is a schematic diagram of the bit definition of the data direction register GPIO_SWPORT_DDR GPIO in the remote control service terminal power on / off device.

[0041] Figure 5 The figure is a schematic diagram of the bit definition of the GPIO data register GPIO_SWPORT_DR in the remote control service terminal power on / off device.

[0042] Figure 6 This is a schematic diagram of a cloud PC server in a remote control service terminal power on / off device controlling the power on / off by controlling the duration of MOS conduction through GPIO.

[0043] Figure 7 This is a timing diagram of the power-on control of the PC host in the remote control service terminal power-on and power-off device.

[0044] Figure 8 This is a timing diagram of the remote control service terminal power on / off device for shutting down or hibernating a PC host.

[0045] 100, data center network; 200, cloud PC server; 300, cloud PC user terminal; 400, cloud PC management platform; 500, cloud PC service terminal; 600, PC host. DETAILED DESCRIPTION

[0046] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0047] It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature, or it may be indirectly fixed or connected to the other feature. In addition, the descriptions of up, down, left, right, top, bottom, etc. used in the present invention are only relative to the relative positional relationship of the components of the present invention in the drawings.

[0048] In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art. The terms used in this specification are only for describing specific embodiments, not for limiting the present invention. The term "and / or" used herein includes any combination of one or more related listed items.

[0049] It should be understood that, although the terms first, second, third, etc. may be used to describe various elements in the present disclosure, these elements should not be limited to these terms. These terms are only used to distinguish elements of the same type from each other. For example, without departing from the scope of the present disclosure, the first element may also be referred to as the second element, and similarly, the second element may also be referred to as the first element.

[0050] Reference Figures 1 to 8 In some embodiments, the technical solution of the present invention is a remote control service terminal power on / off method, which is applied to a remote control service terminal power on / off device, which includes: a data center network 100; a cloud PC server 200, wherein a computing blade for providing computing services is provided in the cloud PC server 200, and the cloud PC server 200 is electrically connected to the data center network 100; a cloud PC user terminal 300, which is used to provide an input / output device for user operation, and the cloud PC user terminal 300 is electrically connected to the cloud PC server 200 through the data center network 100; a cloud PC management platform 400, which is used to comprehensively manage the cloud PC system, and the cloud PC management platform 400 is electrically connected to the data center network 100; a cloud PC service terminal 500, wherein the cloud PC service terminal 500 supports a network-based power management function (WOL, Wake On Lan), the cloud PC service terminal 500 is electrically connected to the data center network 100; the PC host 600, the PC host 600 and the cloud PC service terminal 500 are connected through a remote power on / off control interface, refer to Figure 1 The remote control service terminal power on / off method comprises the following steps:

[0051] S100, the cloud PC server 200 obtains the power on / off status of the current PC host 600 through the cloud PC service terminal 500;

[0052] S200, if the power on / off control data frame is received, the cloud PC server 200 transmits the power on / off control data frame to the cloud PC server 200 terminal based on the TCP full-duplex communication protocol (Websocket);

[0053] S300, after receiving the power on / off control data frame, the cloud PC service terminal 500 parses the power on / off control data frame to obtain power on / off control information;

[0054] S400 , the cloud PC service terminal 500 sends power on / off control information to the PC host 600 .

[0055] The beneficial effects of the present invention are:

[0056] The remote control service terminal power on / off method, device and storage medium can realize the power on / off control of the PC host 600 through the cloud PC service terminal 500, so that some computers that do not support the WOL (Wake On Lan) function can also realize remote power on / off control.

[0057] Further, refer to Figure 1 , the step S100 includes the following steps;

[0058] S110, the PC host 600 sends the current power on / off status information to the cloud PC service terminal 500 through the remote power on / off control interface by actively reporting or responding to inquiries;

[0059] S120, based on the TCP full-duplex communication protocol (Websocket), the cloud PC service terminal 500 sends the detected power on / off status information of the PC host 600 to the cloud PC management platform 400;

[0060] S130 , the cloud PC management platform 400 receives and processes the power on / off status information of the PC host 600 .

[0061] In a specific embodiment, in step S110, referring to Figure 3 The cloud PC service terminal 500 determines the power on / off state of the PC host 600 by periodically detecting the level state of the PWR_ON / OFF_DETECT signal of the port. When PWR_ON / OFF_DET is at a high level H, it indicates that the PC host is in the shutdown state. At this time, the PC host can be controlled to start up through the port. When PWR_ON / OFF_DET is at a low level L, it indicates that the PC host is in the power on state. At this time, the PC host can be controlled to shut down or sleep through the port.

[0062] Further, refer to Figure 1 , the step S100 further includes:

[0063] S140, the user logs in to the cloud PC system through the cloud PC user terminal 300 and checks the power on / off status of the current PC host 600;

[0064] S150 , the user controls the remote PC host 600 to start or shut down by sending a start or shut down control data frame.

[0065] Further, refer to Figure 1 , the step S400 includes:

[0066] S410, the cloud PC service terminal 500 configures the GPIO control register according to the power on and power off control information;

[0067] S420, the cloud PC service terminal 500 outputs a GPIO control signal pulse, which is output to the remote power on / off control interface via the internal interface circuit of the cloud PC service terminal 500;

[0068] S430, the cloud PC server 200 controls the external MOS conduction time length to be different, and realizes different modes of remote power on / off control.

[0069] In a specific embodiment, in step S410, the GPIO control of the CPU involves two register operations, namely, the data register: GPIO_SWPORT_DR, the data direction control register: GPIO_SWPORT_DDR, the default values ​​of the two registers: 0x00000000, the control circuit uses the two GPIOs of the CPU, and connects the XOR gate to control the N-MOS for switch control. The two GPIOs of the CPU are used to achieve more reliable switch control and prevent false triggering due to unstable GPIO levels (uncertain high and low levels) during the power-on initialization process of the CPU. Only when the CPU starts stably and actively initiates control, at this time, it is necessary to enable the two GPIOs of the same BANK to opposite levels at the same time (such as: GPIO0 is H, GPIO1 is L, or GPIO0 is L, GPIO1 is H), can the XOR gate circuit be driven to output H level and drive the MOS tube to conduct.

[0070] Reference Figure 4 and Figure 5 , which are the definitions of the data register GPIO_SWPORT_DR and the data direction control register GPIO_SWPORT_DDR. The specific definitions are different for different processors. The following takes the definition of one processor as an example. The others are similar.

[0071] The data register GPIO_SWPORT_DR and the data direction control register GPIO_SWPORT_DDR are both 32 bits, corresponding to the 16 GPIOs in a BANK of the CPU. The upper 16 bits are the enable control bits, and the lower 16 bits correspond to each specific GPIO.

[0072] The data register GPIO_SWPORT_DDR and the data direction control register GPIO_SWPORT_DR are both 0x00000000 by default. When the GPIO_SWPORT_DDR register is configured to 0x00000003 and the GPIO_SWPORT_DR register is configured to 0x00000002, the duration is controlled by the interval of the CPU writing the control register, such as shutdown control, the interval is 6s.

[0073] Further, refer to Figure 1 In the step S430,

[0074] When the cloud PC server 200 controls the MOS to be turned on for 500ms through the GPIO, the PC host 600 performs a power-on operation;

[0075] When the cloud PC server 200 controls the MOS to be turned on for 6S via GPIO, the PC host 600 performs a shutdown operation;

[0076] When the cloud PC server 200 controls the MOS to be turned on for 2S through the GPIO, the PC host 600 performs a sleep operation.

[0077] In a specific embodiment, referring to Figure 6 , by controlling the conduction time of the MOS tube through GPIO, replacing the hardware button on the PC host, remote control of power on and off is realized (note: here it is not by sending control pulses with different duty cycles to the PC host): when the control signal H level lasts for 500ms, the PC host 600 performs a power-on operation; when the control signal H level lasts for 2s, the PC host 600 performs a sleep operation; when the control signal H level lasts for 6s, the PC host 600 performs a power-off operation.

[0078] Further, refer to Figure 1 In step S430, the power control function at least includes power on, power off, restart, sleep, and a custom power control function.

[0079] Further, refer to Figure 2 The present invention further proposes a remote control service terminal power on / off device, which is used to execute the remote control service terminal power on / off method. The remote control service terminal power on / off device comprises:

[0080] Data center network 100;

[0081] A cloud PC server 200, wherein a computing blade for providing computing services is disposed in the cloud PC server 200, and the cloud PC server 200 is electrically connected to the data center network 100;

[0082] The cloud PC user terminal 300 is used to provide an input and output device for user operation. The cloud PC user terminal 300 is electrically connected to the cloud PC server 200 through the data center network 100;

[0083] A cloud PC management platform 400, used for comprehensive management of the cloud PC system, the cloud PC management platform 400 is electrically connected to the data center network 100;

[0084] A cloud PC service terminal 500, the cloud PC service terminal 500 supports a network-based power management function (WOL, Wake On Lan), and the cloud PC service terminal 500 is electrically connected to the data center network 100;

[0085] The PC host 600, the power on / off interface of the mainboard of the PC host 600 is connected to the cloud PC service terminal 500 via a remote power on / off control interface.

[0086] Further, refer to Figure 2 The remote power on / off control interface is a Phoenix terminal interface or a USB interface.

[0087] Furthermore, the Phoenix terminal interface is a 2*2 terminal, including a PIN1-DET terminal, a PIN2-CTRL1 terminal, a PIN3-GND terminal and a PIN4-CTRL2 terminal.

[0088] Reference Figure 3 and Figure 7 When it is detected that the PC host is in the shutdown state (PWR_ON / OFF_DETECT: H), the PC host can be powered on.

[0089] Reference Figure 3 and Figure 8 When it is detected that the PC host is in the power-on state (PWR_ON / OFF_DETECT: L), the PC host can be shut down or hibernate controlled.

[0090] Furthermore, the present invention also provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the remote control service terminal power on and off method is implemented.

[0091] The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation. As long as the technical effect of the present invention is achieved by the same means, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of protection of the present disclosure. All should belong to the protection scope of the present invention. Within the protection scope of the present invention, its technical scheme and / or implementation method can have various modifications and changes.

Claims

1. A remote control service terminal power on / off method, the remote control service terminal power on / off method being applied to a remote control service terminal power on / off device, the remote control service terminal power on / off device comprising: Data Center Network (100); A cloud PC server (200), wherein a computing blade for providing computing services is disposed in the cloud PC server (200), and the cloud PC server (200) is electrically connected to the data center network (100); a cloud PC user terminal (300), which is used to provide an input and output device for user operation, and the cloud PC user terminal (300) is electrically connected to the cloud PC server (200) through the data center network (100); a cloud PC management platform (400), which is used to comprehensively manage the cloud PC system, and the cloud PC management platform (400) is electrically connected to the data center network (100); a cloud PC service terminal (500), wherein the cloud PC service terminal (500) supports a network-based power management function, and the cloud PC service terminal (500) is electrically connected to the data center network (100); The PC host (600) is connected to the cloud PC service terminal (500) via a remote power on / off control interface, wherein the remote control service terminal power on / off method comprises the following steps: S100, the cloud PC server (200) obtains the power on / off status of the current PC host (600) through the cloud PC service terminal (500); S200, if a power on / off control data frame is received, the cloud PC server (200) transmits the power on / off control data frame to the cloud PC server (200) terminal based on the TCP full-duplex communication protocol; S300, after receiving the power on / off control data frame, the cloud PC service terminal (500) parses the power on / off control data frame to obtain power on / off control information; S400, the cloud PC service terminal (500) sends power on and power off control information to the PC host (600); The step S400 includes: S410, the cloud PC service terminal (500) configures the GPIO control register according to the power on / off control information; In the step S410, the GPIO control of the CPU involves two register operations, namely, the data register GPIO_SWPORT_DR and the data direction control register GPIO_SWPORT_DDR. The default values ​​of the data register GPIO_SWPORT_DR and the data direction control register GPIO_SWPORT_DDR are both 0x00000000. The control circuit uses two GPIOs of the CPU and connects to an XOR gate to control the N-MOS for switch control. S420, the cloud PC service terminal (500) outputs a GPIO control signal pulse, which is output to a remote power on / off control interface via an internal interface circuit of the cloud PC service terminal (500); S430: The cloud PC server (200) controls the external MOS to have different conduction time lengths, thereby realizing remote power on / off control in different ways.

2. The method for remotely controlling the power on and off of a service terminal according to claim 1, characterized in that: The step S100 includes the following steps: S110, the PC host (600) sends the current power on / off status information to the cloud PC service terminal (500) through the remote power on / off control interface by actively reporting or responding to inquiries; S120, based on the TCP full-duplex communication protocol, the cloud PC service terminal (500) sends the detected power on / off status information of the PC host (600) to the cloud PC management platform (400); S130: The cloud PC management platform (400) receives and processes the power on / off status information of the PC host (600).

3. The method for remotely controlling the power on and off of a service terminal according to claim 2, characterized in that: The step S100 also includes: S140, the user logs in to the cloud PC system through the cloud PC user terminal (300) and checks the power on / off status of the current PC host (600); S150, the user controls the remote PC host (600) to start or shut down by sending a power on or power off control data frame.

4. The method for remotely controlling the power on and off of a service terminal according to claim 1, characterized in that: In the step S430, When the cloud PC server (200) controls the MOS to be turned on for 500ms via GPIO, the PC host (600) performs a power-on operation; When the cloud PC server (200) controls the MOS to be turned on for 6 seconds via GPIO, the PC host (600) performs a shutdown operation; When the cloud PC server (200) controls the MOS to be turned on for 2S via the GPIO, the PC host (600) performs a sleep operation.

5. The method for remotely controlling the power on and off of a service terminal according to claim 1, characterized in that: In the step S430, the power control function at least includes power on, power off, restart, sleep, and a custom power control function.

6. A remote control service terminal power on / off device, used to execute the remote control service terminal power on / off method according to any one of claims 1 to 5, characterized in that: The remote control service terminal power on / off device comprises: Data Center Network (100); A cloud PC server (200), wherein a computing blade for providing computing services is arranged in the cloud PC server (200), and the cloud PC server (200) is electrically connected to the data center network (100); A cloud PC user terminal (300), used for providing an input and output device for user operation, wherein the cloud PC user terminal (300) is electrically connected to a cloud PC server (200) via a data center network (100); A cloud PC management platform (400), used for comprehensively managing the cloud PC system, the cloud PC management platform (400) being electrically connected to the data center network (100); A cloud PC service terminal (500), the cloud PC service terminal (500) supporting a network-based power management function, the cloud PC service terminal (500) being electrically connected to the data center network (100); A PC host (600), wherein a power on / off interface of a mainboard of the PC host (600) is connected to the cloud PC service terminal (500) via a remote power on / off control interface.

7. The remote control service terminal power on / off device according to claim 6, characterized in that: The remote power on / off control interface is a Phoenix terminal interface or a USB interface.

8. The remote control service terminal power on / off device according to claim 7, characterized in that: The Phoenix terminal interface is a 2*2 terminal, including a PIN1-DET terminal, a PIN2-CTRL1 terminal, a PIN3-GND terminal and a PIN4-CTRL2 terminal.

9. A computer-readable storage medium having program instructions stored thereon, wherein the program instructions are executed by a processor to implement the method according to any one of claims 1 to 5.