CN114442987A - Device control method, apparatus, computer device, storage medium, and program product - Google Patents

Device control method, apparatus, computer device, storage medium, and program product Download PDF

Info

Publication number
CN114442987A
CN114442987A CN202111615308.3A CN202111615308A CN114442987A CN 114442987 A CN114442987 A CN 114442987A CN 202111615308 A CN202111615308 A CN 202111615308A CN 114442987 A CN114442987 A CN 114442987A
Authority
CN
China
Prior art keywords
display
state
signal
signal waveform
current state
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.)
Granted
Application number
CN202111615308.3A
Other languages
Chinese (zh)
Other versions
CN114442987B (en
Inventor
常胜彪
王喜强
李岳峰
张则民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202111615308.3A priority Critical patent/CN114442987B/en
Publication of CN114442987A publication Critical patent/CN114442987A/en
Application granted granted Critical
Publication of CN114442987B publication Critical patent/CN114442987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application relates to a device control method, an apparatus, a computer device, a storage medium, and a program product. The method comprises the following steps: the terminal equipment acquires a state signal output by a control circuit of a display connected with the terminal equipment, acquires a signal waveform of the state signal, determines the current state of the display according to the signal waveform, and controls the state of the terminal equipment according to the current state of the display. In this scheme, the terminal device may determine the current state of the display based on a waveform corresponding to the state signal output by the control circuit of the display, so as to control the terminal device to be in a corresponding state based on the current state of the display. Because the state signal that the control circuit of display exported all can be exported for general display, consequently, need not carry out special customization to the display, the suitability is strong, has reduced the software and hardware cost of display.

Description

Device control method, apparatus, computer device, storage medium, and program product
Technical Field
The present application relates to the field of computer technologies, and in particular, to a device control method, apparatus, computer device, storage medium, and program product.
Background
Generally, a computer host (PC) and a display are both independently controlled, that is, a user performs a power on/off operation on the display and a user performs a power on/off operation on the PC as two independent actions, which do not have a certain time sequence and logic relationship, and in a scenario of starting the display and the PC or in a scenario of closing the display and the PC, the user needs to perform two operations, which is relatively troublesome to control.
In the prior art, the joint control of the display and the PC is realized by binding the display and a power switch of the PC through an ATX power supply PS-ON signal; the display is controlled to communicate with the PC through wireless connection modes such as Bluetooth or WIFI, and therefore the display and the PC are controlled in a combined mode.
However, in both of the above two methods, a dedicated display needs to be customized according to a specific scene, so the existing joint control method increases the cost of software and hardware of the display, and has certain limitations.
Disclosure of Invention
In view of the above, it is desirable to provide a device control method, apparatus, computer device, storage medium, and program product that can be applied to linkage control between a general-purpose display and a computer host.
In a first aspect, the present application provides a device control method, including:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of the state signal, and determining the current state of the display according to the signal waveform;
and controlling the state of the terminal equipment according to the current state of the display.
In this embodiment, the terminal device may determine the current state of the display based on the waveform corresponding to the state signal output by the control circuit of the display, so as to control the terminal device to be in the corresponding state based on the current state of the display. Because the state signal that the control circuit of display exported all can be exported for general display, consequently, need not carry out special customization to the display, the suitability is strong, has reduced the software and hardware cost of display.
In one optional embodiment, acquiring the status signal output by the control circuit of the display connected to the terminal device includes:
and acquiring the state signal through a Video Graphics Array (VGA) interface or a high-definition multimedia interface (HDMI) interface between the terminal equipment and the display.
Because HDMI or VGA interface are the signal interface that general display possessed, obtain its corresponding status signal through the EDID that HDMI or VGA correspond, need not specially customize the cable, also need not to customize the display, only need terminal equipment pass through HDMI or VGA cable and be connected with the display can. Carry out the linkage through VGA or HDMI cable, need not extra transmission medium, signal stability can be guaranteed to the mode of cable transmission, and signal transmission reliability compares wireless transmission and improves greatly.
In one alternative embodiment, determining the current state of the display from the signal waveform comprises:
determining the current state of the display corresponding to the signal waveform of the state signal according to the mapping relation between the signal waveform and the state of the display; the display state comprises any one of a power-on state, a power-off state and a dormant state.
In this embodiment, the terminal device may determine the current state of the display corresponding to the signal waveform of the received state signal according to a mapping relationship between a preset signal waveform and a state of the display, and the mapping relationship includes a waveform corresponding to a sleep state of the display, so that the current state of the display may be determined more finely, and the state of the terminal device is controlled more accurately based on the current state of the display.
In one optional embodiment, the method further comprises:
performing voltage conversion processing on the state signal to obtain a processed state signal;
acquiring a signal waveform of the status signal, and determining a current status of the display according to the signal waveform, including:
and acquiring the signal waveform of the processed state signal, and determining the current state of the display corresponding to the signal waveform of the state signal according to the mapping relation between the signal waveform and the state of the display.
In this embodiment, the voltage conversion processing is performed on the status signal output by the control circuit of the display, so that the terminal device can receive the status signal in an effective and safe environment, and perform subsequent operations based on the status signal, thereby ensuring the validity of the status signal.
In one optional embodiment, the terminal device includes a CPLD and a GPU, and controls the state of the terminal device according to the current state of the display, including:
and the CPLD generates a control instruction according to the current state of the display and sends the control instruction to the GPU so as to control the state of the GPU.
In this embodiment, the device control method may be implemented by a CPLD in the terminal device, and the CPLD may generate a control instruction of the relevant firmware including the GPU in the terminal device according to the current state of the display, thereby achieving the purpose that the CPLD jointly controls the status of each relevant firmware of the terminal device based on the state of the display.
In one optional embodiment, the control circuit of the display comprises an extended display identification data EDID chip;
the method for acquiring the state signal output by the control circuit of the display connected with the terminal equipment comprises the following steps:
and acquiring a state signal output by an EDID chip of a display connected with the terminal equipment.
In this embodiment, different status signals can be output through the EDIDs corresponding to different interfaces of the display, so that the current status of the display is determined according to the status signals, no additional cable is required, and the cost is reduced.
In a second aspect, the present application also provides an apparatus for controlling a device, the apparatus including:
the acquisition module is used for acquiring a state signal output by a control circuit of a display connected with the terminal equipment;
the determining module is used for acquiring the signal waveform of the state signal and determining the current state of the display according to the signal waveform;
and the control module is used for controlling the state of the terminal equipment according to the current state of the display.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the method provided in the first aspect below when the processor executes the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method provided by the first aspect.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program that when executed by a processor implements the method provided by the first aspect.
The terminal device obtains a state signal output by a control circuit of a display connected with the terminal device, obtains a signal waveform of the state signal, determines the current state of the display according to the signal waveform, and controls the state of the terminal device according to the current state of the display. In this scheme, the terminal device may determine the current state of the display based on a waveform corresponding to the state signal output by the control circuit of the display, so as to control the terminal device to be in a corresponding state based on the current state of the display. Because the state signal that the control circuit of display exported all can be exported for general display, consequently, need not carry out special customization to the display, the suitability is strong, has reduced the software and hardware cost of display.
Drawings
FIG. 1 is a diagram showing an application environment of a device control method according to an embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method for controlling a device according to an embodiment;
FIG. 3 is a flowchart illustrating an apparatus control method according to another embodiment;
FIG. 4 is a flowchart illustrating an apparatus control method according to another embodiment;
fig. 5 is a schematic diagram illustrating connection among the EDID, the CPLD, and the CPU in the device control method according to the embodiment;
FIG. 6 is a block diagram showing the construction of an apparatus control device according to an embodiment;
FIG. 7 is a block diagram showing the construction of an apparatus control device in another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
At present, a PC and a display are generally controlled independently, namely after the display is turned on and turned off, a user needs to synchronously perform an additional step of turning on and turning off the PC, and the linkage control effect of the display and the PC cannot be achieved.
In the prior art, the linkage effect is achieved by binding the display and the PC power switch through an ATX power PS-ON signal. However, in this solution, the display needs to be customized specifically, and a general display cannot implement this function; moreover, the display is bound with the PC ATX power supply PS-ON circuit, an extra independent cable is needed to connect the PC and the display, an extra cable is needed, the cable is complex to install, and the appearance of a product is affected by wiring and layout. In addition, when the display is shut down, the main board is forcibly powered off in a mode of directly cutting off the AC by the ATX, the damage to system software and main board hardware is great, and when the display cannot be in a dormant standby state, the machine is synchronously in an S3 state, and only the linkage function under two states of power-on and power-off can be realized.
In addition, the wireless connection between the display and the PC is realized through Bluetooth, WIFI and other modes in the prior art, and the purpose of linkage control of the PC and the display is achieved. However, the scheme also needs a special display to be matched with a PC for use, the common display in the market does not have wireless functions such as Bluetooth or WIFI, the display needs to be customized independently when the function is added, the product cost and the development period of software and hardware of the display are increased, the wireless connection is complex to set, the signal interference is large, the requirement on the working environment is high, and the reliability is low.
Based on the technical problems related to the prior art, embodiments of the present application provide a device control method, which can be applied to an application environment as shown in fig. 1. The display 101 and the terminal device 102 are in communication connection, where the communication connection may be a wired connection or a wireless connection, and the wired connection may be implemented by a VGA cable through a VGA interface of the display, or implemented by an HDMI signal cable through an HDMI interface of the display, for example. The wireless connection can be in mode connection such as the mode connection of mode connection for through bluetooth, WIFI. The data storage system may store data that the terminal device 102 needs to process. The data storage system may be integrated on the terminal device 102, or may be placed on the cloud or other network server. The display 101 may be, but is not limited to, a cathode ray tube display, a plasma display, a liquid crystal display, an LED display, etc.; the terminal Device 102 may be a stand-alone host corresponding to various personal computers, internet of things devices, and the like, and optionally, the terminal Device may include one or more processors such as a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a Complex Programmable Logic Device (CPLD), a Micro Controller Unit (MCU), and the like, and the Device control method provided in the following embodiments is executed by any one of the processors.
In one embodiment, as shown in fig. 2, a device control method is provided, which is described by taking the application of the method to the terminal device in fig. 1 as an example, and includes the following steps:
step 201, acquiring a state signal output by a control circuit of a display connected with the terminal device.
Alternatively, the terminal device may be a Personal Computer (PC), and the control circuit of the display may include an Extended Display Identification Data (EDID) chip, a Micro Control Unit (MCU), and the like having a processor for collecting a display status signal. The embodiment is illustrated by an EDID chip, which is a built-in chip in a universal display, and the EDID chip can output parameter information including information about the display and its performance, such as vendor information of the display, maximum image size, color settings, vendor presets, limits on frequency range, and character strings for display name and serial number, meanwhile, based on the interface provided by the display, the EDIDs corresponding to different interfaces are different, for example, common interfaces include Digital Visual Interface (DVI), Video Graphics Array (VGA), High Definition Multimedia Interface (HDMI), Display Interface (DP), because the characteristics and the bandwidth of each interface are different, the EDIDs of different interfaces are also different, that is, the terminal device can obtain the status signals output by different interfaces through different control circuits.
Optionally, the status signal is acquired through a video graphics array VGA interface or a high definition multimedia interface HDMI interface between the terminal device and the display.
In this embodiment, the terminal device may obtain, through the EDID corresponding to the VGA interface, the VGA status signal output through the VGA interface; or, the terminal device may obtain the HDMI status signal output through the HDMI interface through the EDID corresponding to the HDMI interface. Optionally, the VGA status signal includes a VGA clock signal VGA _ DDC _ CLK and a VGA data signal VGA _ DDC _ DAT, and the HDMI status signal includes an HDMI clock signal HDMI _ SCL and an HDMI data signal HDMI _ SDA.
Because HDMI or VGA interface are the signal interface that general display possessed, obtain its corresponding status signal through the EDID that HDMI or VGA correspond, need not specially customize the cable, also need not to customize the display, only need terminal equipment pass through HDMI or VGA cable and be connected with the display can. Carry out the linkage through VGA or HDMI cable, need not extra transmission medium, signal stability can be guaranteed to the mode of cable transmission, and signal transmission reliability compares wireless transmission and improves greatly.
Step 202, acquiring a signal waveform of the status signal, and determining a current status of the display according to the signal waveform.
Optionally, after the terminal device acquires the state signal, the terminal device may perform waveform analysis on the state signal, determine a signal waveform corresponding to the state signal, and determine a current state of a display corresponding to the signal waveform according to a waveform feature of the signal waveform. Illustratively, the terminal device may obtain a mapping relationship between the signal waveform and the display state, and determine, based on the mapping relationship, a current state of the display corresponding to the signal waveform of the state signal; or, the terminal device may further extract a signal waveform feature of the status signal, and identify and match a current status of the corresponding display based on the waveform feature, which is not limited in this embodiment.
Illustratively, the states of the display include the display being in a power-up state, the display being in a power-down state, the display being in a state of hibernating to memory.
And step 203, controlling the state of the terminal equipment according to the current state of the display.
In this embodiment, the terminal device controls relevant firmware in the terminal device to be in a corresponding state according to the determined current state of the display, and the relevant firmware may include, for example, a GPU in the terminal device, a power supply, other VR chips in a motherboard, and the like.
Optionally, the end device includes a CPLD and a GPU, and the CPLD generates a control instruction according to the current state of the display, and sends the control instruction to the GPU to control the state of the GPU.
In this embodiment, the CPLD is used as a processor in the terminal device, receives a state signal output by the display through the control circuit, determines a current state of the display according to a signal waveform of the state signal, generates a control instruction for controlling the related firmware of the terminal device according to the current state of the display after the CPLD determines the current state of the display, and transmits the control instruction to the related firmware respectively to control the related firmware to be in a corresponding state, where the related firmware is taken as a GPU for example.
Exemplarily, the CPLD determines that the current state of the display is a power-on state, generates a power-on control instruction, transmits the power-on control instruction to related firmware including the GPU, and controls the GPU and other related firmware to be powered on; the CPLD determines that the current state of the display is a power-off state, generates a power-off control instruction, transmits the power-off control instruction to relevant firmware including the GPU, and controls the GPU and other relevant firmware to power off; the CPLD determines that the current state of the display is the sleep state, generates a sleep control instruction, transmits the sleep control instruction to the relevant firmware including the GPU, and controls the GPU and the other relevant firmware to enter the sleep state.
In the device control method, the terminal device acquires a state signal output by a control circuit of a display connected with the terminal device, acquires a signal waveform of the state signal, determines the current state of the display according to the signal waveform, and controls the state of the terminal device according to the current state of the display. In this scheme, the terminal device may determine the current state of the display based on a waveform corresponding to the state signal output by the control circuit of the display, so as to control the terminal device to be in a corresponding state based on the current state of the display. Because the state signal that the control circuit of display exported all can be exported for general display, consequently, need not carry out special customization to the display, the suitability is strong, has reduced the software and hardware cost of display.
After receiving the status signal, the terminal device may determine the current state of the display indicated by the status signal according to the waveform of the status signal, and in an alternative embodiment, the determining the current state of the display according to the waveform of the status signal includes:
determining the current state of the display corresponding to the signal waveform of the state signal according to the mapping relation between the signal waveform and the state of the display; the display state comprises any one of a power-on state, a power-off state and a dormant state.
Alternatively, the mapping relationship between the signal waveform and the display state may be preset, and for example, the mapping relationship may be stored in the mapping relationship between the signal waveform characteristic and a display state code, where the display state code is used to indicate the display state, for example, S0 indicates that the display state is a power-on state, S3 indicates that the display state is a sleep state, and S5 indicates that the display state is a power-off state. Optionally, the state of the display corresponding to the signal waveform a is an S0 power-on state; the state of the display corresponding to the signal waveform B is the S3 sleep state, and the state of the display corresponding to the signal waveform C is the S5 power-down state. Alternatively, the mapping relationship may be stored in a storage space designated by the terminal device, and the terminal device obtains the mapping relationship from the storage space before executing the above steps. It should be noted that, here, the state that the display is in the hibernation state refers to a state Suspend to RAM in which the display is hibernated to the memory.
In this embodiment, after acquiring the signal waveform of the status signal, the terminal device matches the signal waveform with each signal waveform in the mapping relationship, determines the signal waveform matching the current signal waveform, and determines the display status code corresponding to the signal waveform according to the matched signal waveform, thereby determining the current status of the display, which is not limited in this embodiment.
In this embodiment, the terminal device may determine the current state of the display corresponding to the signal waveform of the received state signal according to a mapping relationship between a preset signal waveform and a state of the display, and the mapping relationship includes a waveform corresponding to a sleep state of the display, so that the current state of the display may be determined more finely, and the state of the terminal device is controlled more accurately based on the current state of the display.
Before receiving the status signal, the terminal device needs to perform signal preprocessing on the status signal, and in an alternative embodiment, as shown in fig. 3, the method further includes:
step 301, performing voltage conversion processing on the status signal to obtain a processed status signal.
In this embodiment, the terminal device may further perform voltage conversion on the status signal before receiving the status signal, and for example, the status signal may be voltage-converted by a voltage conversion module of 3.3V to 5V, so as to obtain the status signal after the voltage conversion processing.
Step 302, acquiring the signal waveform of the processed status signal, and determining the current status of the display corresponding to the signal waveform of the status signal according to the mapping relationship between the signal waveform and the status of the display.
In this embodiment, the terminal device determines the current state of the display corresponding to the signal waveform according to the signal waveform corresponding to the state signal after the voltage conversion processing, and the determination method is similar to that in the above embodiment, which is not described herein again.
In this embodiment, the voltage conversion processing is performed on the status signal output by the control circuit of the display, so that the terminal device can receive the status signal in an effective and safe environment, and perform subsequent operations based on the status signal, thereby ensuring the validity of the status signal.
To better explain the above method, as shown in fig. 4, the present embodiment provides an apparatus control method, which specifically includes:
s101, acquiring a state signal output by an EDID chip in a display through a Video Graphics Array (VGA) interface or a high-definition multimedia interface (HDMI) interface between terminal equipment and the display;
s102, performing voltage conversion processing on the state signal to obtain a processed state signal;
s103, acquiring the signal waveform of the processed state signal, and determining the current state of the display corresponding to the signal waveform of the state signal according to the mapping relation between the signal waveform and the state of the display;
and S104, generating a control instruction by the CPLD in the terminal equipment according to the current state of the display, and sending the control instruction to the GPU so as to control the state of the GPU.
Exemplarily, referring to fig. 5, the EDID in the display outputs a VGA clock signal VGA _ DDC _ CLK and a VGA data signal VGA _ DDC _ DAT through the VGA interface, and after voltage conversion from 3.3V to 5V, the CPLD receives the VGA clock signal VGA _ DDC _ CLK and the VGA data signal VGA _ DDC _ DAT, and determines the current state of the display according to the signal waveforms of the VGA clock signal VGA _ DDC _ CLK and the VGA data signal VGA _ DDC _ DAT and the mapping relationship between the signal waveforms and the display state, thereby generating a control instruction to control the POWER supply BUTTON in the GPU or the terminal device, and other VR chips to be in corresponding states.
Similarly, the EDID in the display outputs the HDMI clock signal HDMI _ SCL and the HDMI data signal HDMI _ SDA through the HDMI interface, and after the voltage conversion of 3.3V to 5V, the CPLD receives the HDMI clock signal HDMI _ SCL and the HDMI data signal HDMI _ SDA, and determines the current state of the display according to the signal waveforms of the HDMI clock signal HDMI _ SCL and HDMI data signal HDMI _ SDA and the mapping relationship between the signal waveforms and the display state, thereby generating a control instruction to control the POWER supply BUTTON on in the GPU or the terminal device and other VR chips to be in corresponding states.
In this embodiment, because the VGA signal output by the control circuit of the display through the VGA interface or the HDMI signal output through the HDMI interface are both signals that can be output by the universal display, the display does not need to be specially customized, the applicability is strong, and the software and hardware costs of the display are reduced; and the state of the display also comprises a dormant state, the terminal equipment can also control related firmware of the terminal equipment to enter the dormant state according to the dormant state of the display, the related firmware in the terminal equipment cannot be powered down forcibly, and the safety of the terminal equipment and the related firmware is protected to a certain extent.
The implementation principle and technical effect of the device control method provided by the above embodiment are similar to those of the method embodiment, and are not described herein again.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an apparatus control device for implementing the apparatus control method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so the specific limitations in one or more embodiments of the device control apparatus provided below may refer to the limitations on the device control method in the foregoing, and are not described herein again.
In one embodiment, as shown in fig. 6, there is provided an apparatus control device including: an obtaining module 01, a determining module 02 and a control module 03, wherein:
the acquisition module 01 is used for acquiring a state signal output by a control circuit of a display connected with the terminal equipment;
the determining module 02 is used for acquiring the signal waveform of the state signal and determining the current state of the display according to the signal waveform;
and the control module 03 is configured to control the state of the terminal device according to the current state of the display.
In one optional embodiment, the obtaining module 01 is configured to obtain the status signal through a VGA interface or a high definition multimedia interface HDMI interface between the terminal device and the display.
In one optional embodiment, the determining module 02 is configured to determine, according to a mapping relationship between a signal waveform and a display state, a current state of the display corresponding to the signal waveform of the state signal; the display state comprises any one of a power-on state, a power-off state and a dormant state.
In one of the alternative embodiments, as shown in fig. 7, the apparatus further comprises a processing module 04;
the processing module 04 is configured to perform voltage conversion processing on the status signal to obtain a processed status signal;
the determining module 02 is further configured to obtain a signal waveform of the processed status signal, and determine a current state of the display corresponding to the signal waveform of the status signal according to a mapping relationship between the signal waveform and a state of the display.
In one optional embodiment, the terminal device includes a CPLD and a GPU, and the control module 03 is configured to generate a control instruction by the CPLD according to the current state of the display, and send the control instruction to the GPU to control the state of the GPU.
In one optional embodiment, the control circuit of the display includes an extended display identification data EDID chip; the obtaining module 01 is used for obtaining a status signal output by an EDID chip of a display connected with the terminal device.
The respective modules in the above-described device control apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface 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, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing device control data. 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 device control method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of the state signal, and determining the current state of the display according to the signal waveform;
and controlling the state of the terminal equipment according to the current state of the display.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of the state signal, and determining the current state of the display according to the signal waveform;
and controlling the state of the terminal equipment according to the current state of the display.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of the state signal, and determining the current state of the display according to the signal waveform;
and controlling the state of the terminal equipment according to the current state of the display.
The implementation principle and technical effect of the computer program product provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. An apparatus control method, characterized in that the method comprises:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of the state signal, and determining the current state of the display according to the signal waveform;
and controlling the state of the terminal equipment according to the current state of the display.
2. The method of claim 1, wherein obtaining the status signal output by the control circuit of the display connected to the terminal device comprises:
and acquiring the state signal through a Video Graphics Array (VGA) interface or a high-definition multimedia interface (HDMI) interface between the terminal equipment and the display.
3. The method of claim 1, wherein determining the current state of the display from the signal waveform comprises:
determining the current state of the display corresponding to the signal waveform of the state signal according to the mapping relation between the signal waveform and the state of the display; the display state comprises any one of a power-on state, a power-off state and a dormant state.
4. The method of claim 3, further comprising:
performing voltage conversion processing on the state signal to obtain a processed state signal;
the acquiring a signal waveform of the status signal and determining a current status of the display according to the signal waveform includes:
and acquiring the signal waveform of the processed state signal, and determining the current state of the display corresponding to the signal waveform of the state signal according to the mapping relation between the signal waveform and the state of the display.
5. The method according to any of claims 1-4, wherein said terminal device comprises a CPLD and a GPU, and said controlling the state of said terminal device according to the current state of said display comprises:
and the CPLD generates a control instruction according to the current state of the display and sends the control instruction to the GPU so as to control the state of the GPU.
6. The method according to any one of claims 1 to 4, wherein the control circuit of the display comprises an extended display identification data EDID chip;
the acquiring of the state signal output by the control circuit of the display connected with the terminal device includes:
and acquiring the state signal output by the EDID chip of the display connected with the terminal equipment.
7. An apparatus control device, characterized in that the device comprises:
the acquisition module is used for acquiring a state signal output by a control circuit of a display connected with the terminal equipment;
the determining module is used for acquiring the signal waveform of the state signal and determining the current state of the display according to the signal waveform;
and the control module is used for controlling the state of the terminal equipment according to the current state of the display.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202111615308.3A 2021-12-27 2021-12-27 Device control method, device, computer device, storage medium, and program product Active CN114442987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111615308.3A CN114442987B (en) 2021-12-27 2021-12-27 Device control method, device, computer device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111615308.3A CN114442987B (en) 2021-12-27 2021-12-27 Device control method, device, computer device, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN114442987A true CN114442987A (en) 2022-05-06
CN114442987B CN114442987B (en) 2024-03-12

Family

ID=81366546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111615308.3A Active CN114442987B (en) 2021-12-27 2021-12-27 Device control method, device, computer device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN114442987B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020030572A (en) * 2000-10-19 2002-04-25 윤종용 Computer system capable of converting power state by operation of monitor power button and power management method of the same
CN1420413A (en) * 2001-11-21 2003-05-28 联想(北京)有限公司 Method and device for controlling simultaneous turn-on and trun-off of computer host and display
US20050114716A1 (en) * 2003-11-21 2005-05-26 Chih-Ping O Monitor and method for controlling power-on and power-off of host computer
US20090094386A1 (en) * 2007-10-09 2009-04-09 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Display, computer system and method for controlling a computer to fall asleep
CN101609360A (en) * 2008-06-16 2009-12-23 联想(北京)有限公司 Computing machine power-economizing method, computing machine and display
CN101685337A (en) * 2008-09-27 2010-03-31 联想(北京)有限公司 Desk computer and power-saving method thereof
CN102236399A (en) * 2010-04-22 2011-11-09 鸿富锦精密工业(深圳)有限公司 Computer system
CN102508537A (en) * 2011-11-10 2012-06-20 孙统利 Method for controlling computer switch
CN206249149U (en) * 2016-09-09 2017-06-13 昆山龙腾光电有限公司 Computer switch control device and computer
CN106959729A (en) * 2016-01-08 2017-07-18 天津三星电子有限公司 A kind of electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020030572A (en) * 2000-10-19 2002-04-25 윤종용 Computer system capable of converting power state by operation of monitor power button and power management method of the same
CN1420413A (en) * 2001-11-21 2003-05-28 联想(北京)有限公司 Method and device for controlling simultaneous turn-on and trun-off of computer host and display
US20050114716A1 (en) * 2003-11-21 2005-05-26 Chih-Ping O Monitor and method for controlling power-on and power-off of host computer
US20090094386A1 (en) * 2007-10-09 2009-04-09 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Display, computer system and method for controlling a computer to fall asleep
CN101609360A (en) * 2008-06-16 2009-12-23 联想(北京)有限公司 Computing machine power-economizing method, computing machine and display
CN101685337A (en) * 2008-09-27 2010-03-31 联想(北京)有限公司 Desk computer and power-saving method thereof
CN102236399A (en) * 2010-04-22 2011-11-09 鸿富锦精密工业(深圳)有限公司 Computer system
CN102508537A (en) * 2011-11-10 2012-06-20 孙统利 Method for controlling computer switch
CN106959729A (en) * 2016-01-08 2017-07-18 天津三星电子有限公司 A kind of electronic equipment
CN206249149U (en) * 2016-09-09 2017-06-13 昆山龙腾光电有限公司 Computer switch control device and computer

Also Published As

Publication number Publication date
CN114442987B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
US8914653B2 (en) Method and system for providing hybrid-shutdown and fast startup processes
US9098305B2 (en) Computer system and bootup and shutdown method thereof
US8538720B2 (en) Cold boot test system and method for electronic devices
US9304544B2 (en) System and display control method for external device
US10304546B2 (en) External storage device and method of setting reference frequency for the same
US11624788B2 (en) Display module test platform
KR102256136B1 (en) An energy-saving computer system by controlling the power of CPU cores and controlling method therefor
US8443234B2 (en) Bios refresh device and method using the same
US8275999B2 (en) Methods for providing power to an information handling system upon receiving a hot plug detect signal from a video display
US20080270783A1 (en) Method for determining a rebooting action of a computer system and related computer system
US10115375B2 (en) Systems and methods for enabling a systems management interface with an alternate frame buffer
CN114442987B (en) Device control method, device, computer device, storage medium, and program product
US20220270538A1 (en) Display mode setting determinations
CN115562738B (en) Port configuration method, component and hard disk expansion device
US20150123875A1 (en) Power management device and method
CN113625854A (en) Mainboard power-on control system, method and device and readable storage medium
US10460649B2 (en) Automatically selecting a set of parameter values that provide a higher link score
TWI587150B (en) Electronic device with multiple interfaces
CN105068835A (en) Mobile terminal and debugging information display method thereof
US9824051B2 (en) Access appliance providing direct display data channel (DDC) interface connection and stored monitor calibration information
US20220393677A1 (en) Integrated circuit, control method, and system
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN113467729B (en) Electronic device and multi-screen display method
US11922855B2 (en) Changing LCD display timing controller settings for different graphics processor requirements
CN114121138B (en) Memory voltage testing method, device, computing equipment and system

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