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

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

Info

Publication number
CN114442987B
CN114442987B CN202111615308.3A CN202111615308A CN114442987B CN 114442987 B CN114442987 B CN 114442987B CN 202111615308 A CN202111615308 A CN 202111615308A CN 114442987 B CN114442987 B CN 114442987B
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.)
Active
Application number
CN202111615308.3A
Other languages
Chinese (zh)
Other versions
CN114442987A (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

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 present application relates to a device control method, apparatus, computer device, storage medium, and 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 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 a corresponding state based on the current state of the display. Because the state signals output by the control circuit of the display are signals which can be output by the general display, special customization of the display is not needed, the applicability is strong, and the software and hardware cost of the display is reduced.

Description

Device control method, device, computer device, storage medium, and program product
Technical Field
The present invention relates to the field of computer technology, and in particular, to a device control method, apparatus, computer device, storage medium, and program product.
Background
Generally, a host computer (PC) and a display are independently controlled, that is, a user performs an on-off operation on the display and a user performs an on-off operation on the PC as two independent actions, which do not have a certain time sequence and logic relationship, and the user needs to perform two operations in a scene of starting the display and the PC or a scene of closing the display and the PC, which is troublesome to control.
In the prior art, the joint control of the display and the PC is realized in a mode that the display and a power switch of the PC are bound through an ATX power PS-ON signal; the wireless connection mode such as Bluetooth or WIFI is adopted to control the display to communicate with the PC, so that the combined control of the display and the PC is realized.
However, in both the above two modes, a dedicated display needs to be customized according to a specific scene, so that the existing joint control method increases the cost of software and hardware of the display, and has a certain limitation.
Disclosure of Invention
In view of the foregoing, 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 host computer.
In a first aspect, the present application provides an apparatus control method, including:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of a 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 a corresponding state based on the current state of the display. Because the state signals output by the control circuit of the display are signals which can be output by the general display, special customization of the display is not needed, the applicability is strong, and the software and hardware cost of the display is reduced.
In one of the alternative embodiments, acquiring a status signal output by a control circuit of a display connected to the terminal device includes:
and acquiring a 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 the HDMI or VGA interface is the signal interface of the general display, the corresponding state signal is obtained through the EDID corresponding to the HDMI or VGA, no special customizing cable is needed, no customizing display is needed, and only the terminal equipment is connected with the display through the HDMI or VGA cable. Through VGA or HDMI cable linkage, need not extra transmission medium, signal stability can be guaranteed to cable transmission's mode, and signal transmission reliability compares wireless transmission and improves greatly.
In one of the alternative embodiments, determining the current state of the display from the signal waveform 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 includes any one of a power-on state, a power-off state, and a sleep state.
In this embodiment, the terminal device may determine, according to a mapping relationship between a preset signal waveform and a display state, a current state of the display corresponding to the signal waveform of the received state signal, where the mapping relationship includes a waveform corresponding to a sleep state of the display, and may determine, more precisely, the current state of the display, so that the state of the terminal device is controlled based on the current state of the display more accurately.
In one of the alternative embodiments, the method further comprises:
performing voltage conversion processing on the state signal to obtain a processed state signal;
acquiring a signal waveform of the state signal, and determining the current state of the display according to the signal waveform, wherein the method comprises the following steps of:
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 process 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 of the alternative embodiments, the terminal device includes a CPLD and a GPU, and controlling the state of the terminal device according to the current state of the display includes:
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 processor CPLD in the terminal device, where the CPLD may generate, according to the current state of the display, a control instruction of related firmware including the GPU in the terminal device, so as to implement the purpose of jointly controlling the states of the related firmware of the terminal device based on the state of the display.
In one of the alternative embodiments, the control circuit of the display includes an extended display identification data EDID chip;
acquiring a state signal output by a control circuit of a display connected with a terminal device, comprising:
and acquiring a state signal output by an EDID chip of a display connected with the terminal equipment.
In this embodiment, different status signals may be output through 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 needed, and cost is reduced.
In a second aspect, the present application further provides an apparatus control device, 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 following first aspect when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method provided in the first aspect.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the method provided in the first aspect.
The device control method, the device, the computer device, the storage medium and the computer program product are characterized in that 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 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 a corresponding state based on the current state of the display. Because the state signals output by the control circuit of the display are signals which can be output by the general display, special customization of the display is not needed, the applicability is strong, and the software and hardware cost of the display is reduced.
Drawings
FIG. 1 is a diagram of an application environment for a device control method in one embodiment;
FIG. 2 is a flow chart of a method of controlling a device in one embodiment;
FIG. 3 is a flow chart of a method of controlling a device according to another embodiment;
FIG. 4 is a flow chart of a method of controlling a device according to another embodiment;
FIG. 5 is a schematic diagram of the connections between EDID, CPLD, CPU in the device control method according to one embodiment;
FIG. 6 is a block diagram of the device control apparatus in one embodiment;
FIG. 7 is a block diagram showing the structure of a device control apparatus in another embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
At present, the PC and the display are generally controlled independently, namely, after the display is turned on or off, a user needs to synchronously perform additional on or off steps on 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 supply switch through an ATX power supply PS-ON signal. However, in this solution, the display needs to be specially customized, and the general display cannot realize this function; and, the display binds with PC ATX power PS-ON circuit, needs extra individual cable to connect PC and display, needs extra cable, and the cable installation is loaded down with trivial details, goes out line and overall arrangement and influences the product outward appearance. In addition, when the display is powered off, the mainboard is powered off forcibly in a mode that the ATX is directly powered off, the damage to system software and the mainboard hardware is extremely large, and when the display is in a dormant standby state, the machine is in an S3 state synchronously, and only the linkage function in the two states of power-on and power-off can be realized.
In addition, in the prior art, wireless connection between the display and the PC is realized through Bluetooth WIFI and other modes, so that the aim of linkage control of the PC and the display is fulfilled. However, the scheme also needs to be matched with a PC for use, the common display on the market has no wireless functions such as Bluetooth or WIFI, the display needs to be customized independently for increasing the functions, the product cost and the development period of software and hardware of the display are increased, the wireless connection is complicated, 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, the embodiment of the application provides a device control method, which can be applied to an application environment as shown in fig. 1. The display 101 is in communication connection with the terminal device 102, where the communication connection may be a wired connection or a wireless connection, and the wired connection may implement VGA cable connection through a VGA interface of the display or implement HDMI signal cable connection through an HDMI interface of the display, for example. The wireless connection may be a connection through bluetooth, WIFI, etc. 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 located on the cloud or other network server. Wherein 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 personal computer, a stand alone host corresponding to an internet of things device, or the like, and optionally, the terminal device may include one or more processors such as a field programmable gate array (Field Programmable Gate Array, FPGA), a programmable logic device (Programmable Logic Device, PLD), a complex programmable logic device (Complex Programmable Logic Device, CPLD), and a micro-control unit (Microcontroller Unit, MCU), 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, there is provided a device control method, which is described by taking application of the method to the terminal device in fig. 1 as an example, and includes the following steps:
step 201, a status signal output by a control circuit of a display connected to a terminal device is obtained.
Alternatively, the terminal device may be a personal computer (Personal Computer, PC), and the control circuit of the display may include an extended display identification data (Extended display identification data, EDID) chip, a micro control unit (Microcontroller Unit, MCU), or the like, having a processor for collecting display status signals. In this embodiment, an EDID chip is described as an internal chip in a general Display, where the EDID chip may output parameter information including information about a Display and its performance, such as vendor information, a maximum image size, a color setting, a vendor preset, a limitation of a frequency range, and a character string of a Display name and a serial number, and meanwhile, based on interfaces provided by the Display, EDIDs corresponding to different interfaces are also different, for example, common interfaces include a digital video interface (Digital Visual Interface, DVI), a video graphics array (Video Graphics Array, VGA), a high-definition multimedia interface (High Definition Multimedia Interface, HDMI), a Display interface (Display Port, DP), and the like, and due to different characteristics and bandwidths of each interface, EDIDs of different interfaces are also different, that is, a terminal device may obtain status signals output by different interfaces through different control circuits.
Optionally, the status signal is obtained 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 EDID corresponding to the VGA interface, a VGA state 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 state signal includes a VGA clock signal vga_ddc_clk and a VGA data signal vga_ddc_dat, and the HDMI state signal includes an HDMI clock signal hdmi_scl and an HDMI data signal hdmi_sda.
Because the HDMI or VGA interface is the signal interface of the general display, the corresponding state signal is obtained through the EDID corresponding to the HDMI or VGA, no special customizing cable is needed, no customizing display is needed, and only the terminal equipment is connected with the display through the HDMI or VGA cable. Through VGA or HDMI cable linkage, need not extra transmission medium, signal stability can be guaranteed to cable transmission's mode, and signal transmission reliability compares wireless transmission and improves greatly.
Step 202, obtaining a signal waveform of the status signal, and determining the current status of the display according to the signal waveform.
Optionally, after the terminal device obtains the status signal, waveform analysis may be performed on the status signal, to determine a signal waveform corresponding to the status signal, and according to waveform characteristics of the signal waveform, determine a current state of the display corresponding to the signal waveform. 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 also extract a signal waveform feature of the status signal, and identify, based on the waveform feature, a current status of the display corresponding thereto, which is not limited in this embodiment.
The state of the display includes, for example, the display being in a powered-up state, the display being in a powered-down state, and the display being in a dormant to memory state.
And 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 a GPU in the terminal device, a power supply, other VR chips in the motherboard, and the like, for example.
Optionally, the terminal device includes a CPLD and a GPU, where the CPLD generates a control instruction according to a 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 serves as a processor in the terminal device, the CPLD receives a status signal output by the display through the control circuit, determines a current state of the display according to a signal waveform of the status signal, generates control instructions for controlling relevant 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 instructions to the relevant firmware respectively to control the relevant firmware to be in a corresponding state, and the relevant firmware is taken as a GPU for illustration.
For example, if the CPLD determines that the current state of the display is a power-on state, a power-on control instruction is generated, the power-on control instruction is transmitted to related firmware including the GPU, and the GPU and other related firmware are controlled to power on; the CPLD determines that the current state of the display is a power-down state, generates a power-down control instruction, transmits the power-down control instruction to related firmware including the GPU, and controls the GPU and other related firmware to power down; the CPLD determines that the current state of the display is a sleep state, and generates a sleep control instruction, and transmits the sleep control instruction to related firmware including the GPU to control the GPU and other related 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 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 a corresponding state based on the current state of the display. Because the state signals output by the control circuit of the display are signals which can be output by the general display, special customization of the display is not needed, the applicability is strong, and the software and hardware cost of the display is reduced.
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 one optional embodiment, determining the current state of the display according to the signal waveform 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 includes any one of a power-on state, a power-off state, and a sleep state.
Alternatively, the mapping relationship between the signal waveform and the display state may be preset, and illustratively, the mapping relationship may be stored in the mapping relationship and may be a mapping relationship between a signal waveform feature 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-down 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 an S3 dormant state, and the state of the display corresponding to the signal waveform C is an 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, the display being in the sleep state refers to a state Suspend to RAM in which the display is dormant to the memory.
In this embodiment, after the terminal device obtains the signal waveform of the status signal, the signal waveform is matched with each signal waveform in the mapping relationship, and the signal waveform matched with the current signal waveform is determined, so that the display status code corresponding to the signal waveform is determined according to the matched signal waveform, and the current status of the display is determined.
In this embodiment, the terminal device may determine, according to a mapping relationship between a preset signal waveform and a display state, a current state of the display corresponding to the signal waveform of the received state signal, where the mapping relationship includes a waveform corresponding to a sleep state of the display, and may determine, more precisely, the current state of the display, so that the state of the terminal device is controlled based on the current state of the display more accurately.
The terminal device needs to perform signal preprocessing on the status signal before receiving the status signal, and in one 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 may, for example, perform voltage conversion on the status signal by using a voltage conversion module of 3.3V to 5V, thereby obtaining the status signal after the voltage conversion process.
Step 302, obtaining 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, according to a signal waveform corresponding to the status signal after the voltage conversion processing, a current status of the display corresponding to the signal waveform, where a determination manner is similar to that in the foregoing embodiment, and details are not repeated herein.
In this embodiment, the voltage conversion process 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 order 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 graphic 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 a 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;
s104, the CPLD in the terminal equipment 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.
Illustratively, referring to fig. 5, the EDID in the display outputs the VGA clock signal vga_ddc_clk and the VGA data signal vga_ddc_dat through the VGA interface, and after the 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 state of the display, so as to generate a control command, and control the POWER 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 from 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 the HDMI data signal hdmi_sda and the mapping relationship between the signal waveforms and the state of the display, thereby generating a control instruction, and controlling the POWER BUTTON and other VR chips in the GPU or the terminal device 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 by the HDMI interface are all signals that can be output by the general display, special customization of the display is not required, the applicability is strong, and the software and hardware cost of the display is reduced; and the state of the display also comprises a dormant state, and the terminal equipment can control the relevant firmware of the terminal equipment to enter the dormant state according to the dormant state of the display, so that the relevant firmware in the terminal equipment cannot be powered down forcedly, and the safety of the terminal equipment and the relevant firmware is protected to a certain extent.
The device control method provided in the above embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device control device for realizing the device control method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more apparatus control apparatuses provided below may refer to the limitation of the apparatus control method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 6, there is provided an apparatus control device including: an acquisition module 01, a determination module 02 and a control module 03, wherein:
an acquisition module 01, configured to acquire a status signal output by a control circuit of a display connected to a terminal device;
a determining module 02, configured to obtain a signal waveform of the status signal, and determine a current status of the display according to the signal waveform;
and the control module 03 is used for controlling the state of the terminal equipment according to the current state of the display.
In one alternative embodiment, the acquiring module 01 is configured to acquire the status signal through a video graphics array 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 includes any one of a power-on state, a power-off state, and a sleep state.
In one alternative embodiment, as shown in fig. 7, the apparatus further includes a processing module 04;
the processing module 04 is used for performing voltage conversion processing on the state signals to obtain processed state signals;
the determining module 02 is further configured to obtain a signal waveform of the processed status signal, and determine a current status of the display corresponding to the signal waveform of the status signal according to a mapping relationship between the signal waveform and the status of the display.
In one alternative embodiment, the terminal device includes a CPLD and a GPU, and the control module 03 is configured to generate a control instruction according to the current state of the display by the CPLD, and send the control instruction to the GPU to control the state of the GPU.
In one of the alternative embodiments, the control circuit of the display includes an extended display identification data EDID chip; and the acquisition module 01 is used for acquiring the state signal output by the EDID chip of the display connected with the terminal equipment.
The respective modules in the above-described device control apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which 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, 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 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.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than 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 stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a state signal output by a control circuit of a display connected with terminal equipment;
acquiring a signal waveform of a 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 computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
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 a 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 computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
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 a 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 computer program product provided in the above embodiment has similar principles and technical effects to those of the above method embodiment, and will not be described herein.
It should be noted that, user information (including but not limited to user equipment 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.
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, database, or other medium used in the various 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 (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-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 units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of controlling a device, the method comprising:
acquiring a state signal output by an Extended Display Identification Data (EDID) chip of a display connected with terminal equipment;
acquiring a signal waveform of the 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 controlling the state of the terminal equipment according to the current state of the display.
2. The method of claim 1, wherein the 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 the display state comprises any one of a power-up state, a power-down state, and a sleep state.
4. A method according to claim 3, characterized in that the method further comprises:
performing voltage conversion processing on the state signal to obtain a processed state signal;
the obtaining the signal waveform of the state signal, and determining the current state 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 the terminal device comprises a CPLD and a GPU, and wherein controlling the state of the terminal device according to the current state of the 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-4, wherein determining a current state of the display corresponding to the signal waveform of the status signal according to the mapping relationship between the signal waveform and the display state comprises:
matching the signal waveform with each signal waveform in the mapping relation, and acquiring the matched signal waveform from the mapping relation;
determining display state codes corresponding to the signal waveforms according to the matched signal waveforms;
and determining the current state of the display according to the corresponding display state code.
7. A device control apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a state signal output by an Extended Display Identification Data (EDID) chip of a display connected with the terminal equipment;
the determining module is used for obtaining the signal waveform of the 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 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 implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
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 CN114442987A (en) 2022-05-06
CN114442987B true 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 (8)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI278813B (en) * 2003-11-21 2007-04-11 Acer Inc Monitor capable of controlling the power of host computer and the controlling method therefor
CN101408795A (en) * 2007-10-09 2009-04-15 鸿富锦精密工业(深圳)有限公司 Display, computer system and method for controlling computer sleep

Patent Citations (8)

* 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
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
CN114442987A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US8914653B2 (en) Method and system for providing hybrid-shutdown and fast startup processes
US20140184619A1 (en) System-on-chip performing dynamic voltage and frequency scaling
US9990885B2 (en) Throttling power consumption based on a current draw of an organic light emitting diode (OLED)
US11624788B2 (en) Display module test platform
KR20180109626A (en) Method and electronic device for driving a display at low power
CN106873954B (en) Method for initializing peripheral device and electronic device using the same
US9489924B2 (en) Boot display device detection and selection techniques in multi-GPU devices
US10228750B2 (en) Reducing the power consumption of an information handling system capable of handling both dynamic and static display applications
US8275999B2 (en) Methods for providing power to an information handling system upon receiving a hot plug detect signal from a video display
US7900030B2 (en) Method for determining a rebooting action of a computer system and related computer system
US10460649B2 (en) Automatically selecting a set of parameter values that provide a higher link score
US10115375B2 (en) Systems and methods for enabling a systems management interface with an alternate frame buffer
CN107863087B (en) Display system and display method thereof
US9984016B2 (en) Systems and methods for hardware arbitration of a communications bus
CN114442987B (en) Device control method, device, computer device, storage medium, and program product
US20220270538A1 (en) Display mode setting determinations
TW201624192A (en) Computer system, adaptable hibernation control module and control method thereof
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN114694326B (en) Expansion display device of face payment device and face payment system
TWI587150B (en) Electronic device with multiple interfaces
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN117631793B (en) Reset method, reset device, computer equipment and storage medium
US11513810B1 (en) Information handling system with display device interface supporting dynamic configuration of link data rate
US9558529B2 (en) Rendering video data in an information handling system using a management controller
US9824051B2 (en) Access appliance providing direct display data channel (DDC) interface connection and stored monitor calibration information

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