Computer control method and device, equipment and medium

By detecting the weight change of objects above the computer control device, the computer is automatically controlled to lock the screen or unlock it, which solves the problem of users forgetting to lock the screen and realizes automatic privacy protection.

CN120408734APending Publication Date: 2025-08-01INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510533502.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

When using a computer, users may easily forget to lock the screen when leaving or have no time to lock the screen, resulting in privacy leakage.

Method used

By detecting the weight change of the object above the computer control device, the computer is automatically controlled to lock the screen or unlock the computer, and the weighing sensor and communication module are connected to the computer, and preset weight threshold conditions are set to realize automatic control of the computer.

Benefits of technology

It realizes automatic locking of the screen when the user leaves and automatic unlocking when returning, protecting the user's privacy and avoiding privacy leakage caused by forgetting to lock the screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120408734A_ABST
    Figure CN120408734A_ABST
Patent Text Reader

Abstract

The invention discloses a computer control method and device, equipment and a medium, and relates to the technical field of computers.The computer control method comprises the steps that the current state of a computer and the target weight of an object located above a preset computer control device at present are detected; judging whether the target weight meets a preset weight threshold condition or not, and obtaining a corresponding judgment result; and performing corresponding control operation on the computer based on the current state of the computer and the judgment result. Visibly, the target weight of the object above the preset computer control device is detected, when the object above the preset computer control device leaves, the target weight is changed, at the moment, the computer can be controlled to execute corresponding operations such as screen locking and screen turning off, and then the privacy of a user is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a computer control method, device, equipment and medium. Background Art

[0002] When using a computer, users often need to manually lock the screen, turn off the screen, pause multimedia playback, and perform other operations after leaving the computer. When users need to leave for an emergency, they may forget to lock the screen, not have enough time to lock the screen, or even forget whether the screen has been locked. Therefore, how to automatically control the locking and opening of the computer screen is a problem currently needed by those skilled in the art. Summary of the Invention

[0003] The purpose of the embodiments of the present invention is to provide a computer control method, device, equipment and medium that can automatically control the computer to perform corresponding screen lock and screen open operations according to the change of the target weight of an object above the preset computer control device to protect user privacy.

[0004] In a first aspect, the present invention discloses a computer control method, comprising:

[0005] detecting a current state of the computer and a target weight of an object currently positioned above a preset computer control device;

[0006] Determine whether the target weight meets the preset weight threshold condition and obtain the corresponding judgment result;

[0007] Perform corresponding control operations on the computer based on the current state of the computer and the judgment result.

[0008] Optionally, before detecting the current state of the computer and the target weight of the object currently located above the preset computer control device, the method further includes:

[0009] The computer is communicatively connected to a preset computer control device; the communication connection includes a relay connection or a direct connection.

[0010] Optionally, after the computer is communicatively connected to the preset computer control device, the method further includes:

[0011] Setting a preset weight threshold condition for a preset computer control device via a preset key input component and an object weight display component;

[0012] Or, a preset weight threshold condition set by the computer for a preset computer control device is received through a target communication method; the target communication method includes any one or a combination of communication based on a serial communication interface, communication based on an Ethernet interface, and wireless communication.

[0013] Optionally, receiving, through a target communication method, a preset weight threshold condition set by a computer for a preset computer control device, including:

[0014] Detecting an initial weight of an object located above the preset computer control device;

[0015] Sending the initial weight to the computer so that the computer reads, displays, and processes the initial weight through a corresponding host computer, and sets a preset weight threshold condition for the preset computer control device based on the initial weight;

[0016] Receiving the preset weight threshold condition sent by the computer through the target communication method.

[0017] Optionally, detecting the current state of the computer and the target weight of an object currently located above the preset computer control device, including:

[0018] Communicating with the computer based on the target communication method, and detecting the current state of the computer through a corresponding communication result;

[0019] Using a preset weighing sensor to detect the target weight of an object currently located above the preset computer control device; the preset weighing sensor includes a strain gauge sensor or a capacitive sensor.

[0020] Optionally, the preset weight threshold condition includes a preset minimum weight threshold and a preset maximum weight threshold;

[0021] Correspondingly, determining whether the target weight meets the preset weight threshold condition, including:

[0022] Determining the magnitude relationship between the target weight and the preset minimum weight threshold and the preset maximum weight threshold;

[0023] If the target weight is greater than or equal to the preset minimum weight threshold and less than or equal to the preset maximum weight threshold, it is determined that the target weight meets the preset weight threshold condition;

[0024] Otherwise, it is determined that the target weight does not meet the preset weight threshold condition.

[0025] Optionally, performing corresponding control operations on the computer based on the current state of the computer and the determination result, including:

[0026] When the current state of the computer is the working state, if the weight of the target object meets the preset weight threshold condition, then re-jump to the step of detecting the current state of the computer and the weight of the target object;

[0027] When the current state of the computer is the working state, if the weight of the target object does not meet the preset weight threshold condition, a first control operation is performed on the computer; the first control operation includes any one or a combination of a screen locking operation, a screen turning off operation, and a volume turning off operation;

[0028] When the current state of the computer is the locked screen state, if the weight of the target object meets the preset weight threshold condition, a second control operation is performed on the computer; the second control operation includes an unlocking operation and / or a volume turning on operation;

[0029] When the current state of the computer is the locked screen state, if the weight of the target object does not meet the preset weight threshold condition, it jumps back to the step of detecting the current state of the computer and the weight of the target object.

[0030] In a second aspect, the present invention discloses a computer control device, including:

[0031] A state and weight detection module, configured to detect the current state of the computer and the target weight of an object currently located above the preset computer control device;

[0032] A judgment module, configured to judge whether the target weight meets the preset weight threshold condition and obtain a corresponding judgment result;

[0033] A control module, configured to perform corresponding control operations on the computer based on the current state of the computer and the judgment result.

[0034] In a third aspect, the present invention discloses an electronic device, including:

[0035] A memory, configured to store a computer program;

[0036] A processor, configured to execute the computer program to implement the computer control method as described above.

[0037] In a fourth aspect, the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer control method as described above is implemented.

[0038] When controlling the computer in this application, first, the current state of the computer and the target weight of an object currently located above the preset computer control device are detected; it is judged whether the target weight meets the preset weight threshold condition, and a corresponding judgment result is obtained; finally, corresponding control operations are performed on the computer based on the current state of the computer and the judgment result.

[0039] Beneficial effects: By detecting the target weight of an object above a pre-designed computer control device, when the object above the pre-designed computer control device leaves, the target weight changes. At this time, the computer can be controlled to perform corresponding operations such as locking the screen and turning off the screen. When the object above the pre-designed computer control device returns, the target weight changes again. At this time, the computer is controlled to perform corresponding unlocking operations, thereby protecting user privacy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] To more clearly illustrate the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0041] Figure 1 It is a flowchart of a computer control method provided by an embodiment of the present invention;

[0042] Figure 2 It is a schematic diagram of communication connection between a computer and a pre-designed computer control device provided by an embodiment of the present invention;

[0043] Figure 3 It is a schematic diagram of the composition of a pre-designed computer control device provided by an embodiment of the present invention;

[0044] Figure 4 It is a schematic diagram of the connection between a pre-designed computer control device and a computer provided by an embodiment of the present invention;

[0045] Figure 5 It is a flowchart of a specific computer control method provided by an embodiment of the present invention;

[0046] Figure 6 It is another schematic diagram of the connection between a pre-designed computer control device and a computer provided by an embodiment of the present invention;

[0047] Figure 7 It is a schematic diagram of the structure of a computer control device provided by an embodiment of the present invention;

[0048] Figure 8 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0050] The terms "including" and "having" in the specification of the present invention and the accompanying drawings, as well as any variations related to "including" and "having", are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units not listed.

[0051] In order to enable those skilled in the art of the present technology to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0052] In some solutions, when controlling a computer, a pressure indicator of a seat cushion is used to detect the weight. However, the human body weight is greatly affected by factors such as sitting postures and has low accuracy. Or a passive infrared PIR (Passive Infrared Radiation) sensor is used to detect the presence of a user, which can achieve shutting down the computer when the person leaves, but cannot identify the information of the computer owner and cannot achieve turning on the computer when the person comes. Or a passive infrared PIR sensor is used to detect the presence of a user, which can achieve shutting down the computer when the person leaves, but cannot identify the information of the computer owner and cannot achieve turning on the computer when the person comes. To solve the above technical problems, the present invention provides a computer control method, device, equipment and medium, which can automatically control the computer to perform corresponding screen locking and unlocking operations according to the change of the target weight of the object above the pre-designed computer control device, protecting the privacy of users.

[0053] See Figure 1 As shown, the embodiments of the present invention provide a computer control method, including:

[0054] Step S11, detecting the current state of the computer and the target weight of the object currently located above the pre-designed computer control device.

[0055] In the embodiments of the present invention, the computer is first communicatively connected to the pre-designed computer control device; the communication connection includes a relay connection or a direct connection. As Figure 2As shown, the pre-designed computer control device has a communication connection with a computer in the working state. The communication methods include, but are not limited to, serial communication interfaces (such as RS-232 (Recommended Standard 232, asynchronous transmission standard interface), RS-485), or Ethernet interfaces, or wireless communication modules (such as Bluetooth, Wi-Fi (wireless network communication technology)), etc. The communication connection includes, but is not limited to, relay connection or direct connection.

[0056] At the same time, as Figure 3 shown, the pre-designed computer control device in the present invention consists of a weighing sensor module, a control module, a communication module, a power supply module, and a human-computer interaction module. Among them, the weighing sensor module is used to detect the weight of the object above the computer control device; the communication module is used to communicate with computer devices; the power supply module is used for power supply and power management of the computer control device; the control module is composed of a processor (CPU (Central Processing Unit, central processor), a memory (RAM / ROM (Random Access Memory / Read-Only Memory (random access memory / read-only memory))), an input / output interface (I / O (Input / Output, input / output)), and an analog / digital signal processing circuit. It is used to process the weighing sensor signals, execute control logic, communicate with computer devices through the control communication module, and perform operations such as locking the screen, turning off the screen, and turning down the volume on the computer.

[0057] Preferably, a human-computer interaction module is provided on the computer control device, including a display module and a button input module. The display module is implemented by a display screen and its driving circuit, and can display the object weight in real time. The button input module, in cooperation with the display module, can set a preset weight range for the pre-designed computer control device. That is to say, the present invention can set a preset weight threshold condition for the pre-designed computer control device through the preset button input component and the object weight display component. Here, the preset weight threshold condition is a preset weight range. In addition, as Figure 2 shown, after the computer control device is communicatively connected to the computer in the powered-on state, the weight of the object above detected by the computer control device can be sent to the computer and read, displayed, and processed by the computer host. The computer can set a preset weight range for the computer control device through the communication method. Specifically, the present invention can receive the preset weight threshold condition set by the computer for the pre-designed computer control device through the target communication method; the target communication method includes any one or a combination of several of communicating based on a serial communication interface, communicating based on an Ethernet interface, and wireless communication.

[0058] More specifically, when receiving the preset weight threshold condition set by the computer for the pre-designed computer control device through the target communication method, first detect the initial weight of the object located above the pre-designed computer control device; send the initial weight to the computer so that the computer can read, display, and process the initial weight through the corresponding host computer, and set the preset weight threshold condition for the pre-designed computer control device based on the initial weight; receive the preset weight threshold condition sent by the computer through the target communication method. Among them, when setting the preset weight threshold condition (preset weight range), it can be a preset minimum weight threshold and a preset maximum weight threshold set according to the initial weight of the object located above the pre-designed computer control device. All weights within the preset minimum weight threshold and the preset maximum weight threshold are considered normal situations, and in other cases, corresponding processing needs to be performed on the computer. It can also be an allowable error value set according to the initial weight of the object located above the pre-designed computer control device, and determine whether corresponding processing needs to be performed on the computer based on the magnitude relationship between the difference between the initial weight and the changed weight and the allowable error value.

[0059] In the embodiment of the present invention, communicate with the computer based on the target communication method, and detect the current state of the computer through the corresponding communication result; use a preset weighing sensor to detect the target weight of the object currently located above the pre-designed computer control device; the preset weighing sensor includes a strain gauge sensor or a capacitive sensor. Specifically, the pre-designed computer control device communicates with the computer device through the communication module according to communication methods such as a serial communication interface, an Ethernet interface, or a wireless communication module to determine whether the current computer device is in the power-on state or the locked screen state. And a preset weighing sensor is used to detect the target weight of the object currently located above the pre-designed computer control device. Here, the preset weighing sensor is located in the weighing sensor module, and the weighing sensor module is used to detect the weight of the object above the computer control device and can be implemented by a strain gauge sensor, a capacitive sensor, etc. Then the weight of the object above detected by the pre-designed computer control device can be sent to the computer and read, displayed, and processed by the computer host computer.

[0060] Step S12: Determine whether the target weight meets the preset weight threshold condition and obtain the corresponding judgment result.

[0061] In an embodiment of the present invention, in a specific embodiment, the preset weight threshold condition includes a preset minimum weight threshold and a preset maximum weight threshold. Therefore, when determining whether the target weight meets the preset weight threshold condition, it is to determine the magnitude relationship between the target weight and the preset minimum weight threshold and the preset maximum weight threshold; if the target weight is greater than or equal to the preset minimum weight threshold and less than or equal to the preset maximum weight threshold, it is determined that the target weight meets the preset weight threshold condition; otherwise, it is determined that the target weight does not meet the preset weight threshold condition. For example, the preset minimum weight threshold is set to 40 kg and the preset maximum weight threshold is set to 55 kg, and the target weight of the object currently located above the preset computer control device is 50 kg. At this time, the target weight of 50 kg is greater than the preset minimum weight threshold of 40 kg and less than the preset maximum weight threshold of 55 kg, so it can be determined that the target weight meets the preset weight threshold condition.

[0062] Step S13: Perform corresponding control operations on the computer based on the current state of the computer and the judgment result.

[0063] In an embodiment of the present invention, after obtaining the corresponding judgment result and the current state of the computer according to the above steps, further operations can be performed based on the current state of the computer and the judgment result. When the current state of the computer is the working state in the present invention, if the weight of the target object meets the preset weight threshold condition, it will jump back to the step of detecting the current state of the computer and the weight of the target object; when the current state of the computer is the working state, if the weight of the target object does not meet the preset weight threshold condition, a first control operation is performed on the computer; the first control operation includes any one or a combination of several of the lock screen operation, the screen off operation, and the volume off operation; when the current state of the computer is the locked screen state, if the weight of the target object meets the preset weight threshold condition, a second control operation is performed on the computer; the second control operation includes an unlock operation and / or a volume on operation; when the current state of the computer is the locked screen state, if the weight of the target object does not meet the preset weight threshold condition, it will jump back to the step of detecting the current state of the computer and the weight of the target object. In a specific embodiment, when the current state of the computer is the working state, the target weight of the object currently located above the preset computer control device is 50 kg. At this time, the target weight of 50 kg is greater than the preset minimum weight threshold of 40 kg and less than the preset maximum weight threshold of 55 kg. It is determined that the target weight meets the preset weight threshold condition, which means that the object located above the preset computer control device has not left the preset computer control device. At this time, there is no need to perform operations such as locking the screen on the computer, and it is necessary to continue to monitor the target weight of the object currently located above the preset computer control device until the target weight does not meet the preset weight threshold condition, indicating that the object currently located above the preset computer control device has left the preset computer control device, and then the computer can be controlled to perform operations such as locking the screen, turning off the screen, and turning off the volume. That is, the preset computer control device communicates with the computer device through the control communication module and performs operations such as locking the screen, turning off the screen, and turning off the volume on the computer. When the current state of the computer is the working state and the target weight of 50 kg is greater than the preset minimum weight threshold of 40 kg and less than the preset maximum weight threshold of 55 kg, it is determined that the target weight meets the preset weight threshold condition, which means that the object located above the preset computer control device has returned to its original position. At this time, it is necessary to control the computer to perform an unlock operation to achieve automatic unlocking. If it is determined that the target weight meets the preset weight threshold condition, it means that there is no object located above the preset computer control device. At this time, it is necessary to continue to monitor the target weight of the object currently located above the preset computer control device until the target weight meets the preset weight threshold condition. Through such an operation cycle, the automatic control of the computer in different situations is realized, thereby protecting the user's privacy.

[0064] It should be noted that, in order to further protect personal privacy, an alarm module and an information storage module can also be set in the pre-designed computer control device. First of all, the pre-designed computer control device not only needs to be connected to the computer, but can also be wirelessly connected to the mobile phone of the computer user. The information storage module is used to record and store the weight of the user of the target computer or the personal items of the user in the historical state. When the computer is in the locked screen state, if it is detected that there is a certain error between the weight of the object above the pre-designed computer control device and the historical weight stored in the information storage module, the corresponding alarm information will be sent to the user's mobile phone through the alarm module, and the computer user will be warned through the alarm information that there may be other people operating the current computer, and there is a possibility of privacy leakage.

[0065] Beneficial effects: By detecting the target weight of the object above the pre-designed computer control device, when the object above the pre-designed computer control device leaves, the target weight changes, and at this time, the computer can be controlled to perform corresponding operations such as locking the screen and turning off the screen. When the object above the pre-designed computer control device returns, the target weight changes again, and at this time, the computer is controlled to perform corresponding unlocking operations, thereby protecting the user's privacy.

[0066] Based on the previous embodiment, the present invention discloses a computer control method, which realizes the control of the computer through a pre-designed computer control device. Next, the computer control method will be described in detail for a specific pre-designed computer control device.

[0067] In a specific embodiment, the pre-designed computer control device can be an electronic scale, such as Figure 4 shown, the electronic scale is connected to the computer through a USB (Universal Serial Bus) cable, and the electronic scale controls the computer to lock or unlock the screen according to the weight of the object above it, so as to realize the control of the computer. Combined with Figure 5Specifically, first, the electronic scale is connected to a computer in the boot state. After the electronic scale and the computer in the boot state are communicatively connected via USB, the weight of the object above the electronic scale detected by the electronic scale can be sent to the computer and read, displayed, and processed by the computer's upper computer. The computer can preset the weight range for the electronic scale via the USB cable. Then, the piezoelectric sensor module in the electronic scale is used to detect the current state of the computer to determine whether the computer is in the locked screen state. If the computer is in the working state, the piezoelectric sensor module is used to detect the weight of the object above the electronic scale. If the weight of the object above the electronic scale is within the preset weight range, the process jumps back to the step of detecting the current state of the computer. If the weight of the object above the electronic scale is not within the preset weight range, it is determined that the object above the electronic scale has left, and then the MCU (Microcontroller Unit) control module is used to control the computer to perform operations such as locking the screen, turning off the screen, and turning down the volume. It should be noted that the object above the electronic scale can be a person or other weighable items. If the object above the electronic scale is a personal item, when the personal item is not within the preset weight range, it can be determined that the personal item has left the electronic scale, and it can be considered that the person has left the work station (the premise of this operation is that the person places the personal item on the electronic scale when operating the computer and takes away the personal item when leaving the work station). At this time, it is necessary to immediately control the computer to perform operations such as locking the screen, turning off the screen, and turning down the volume to turn off the computer screen.

[0068] If the computer is in the locked screen state, the piezoelectric sensor module is used to detect the weight of the object above the electronic scale. If the weight of the object above the electronic scale is not within the preset weight range, the process jumps back to the step of detecting the current state of the computer. If the weight of the object above the electronic scale is within the preset weight range, it is determined that the object above the electronic scale has returned to its original position, and then the MCU control module is used to control the computer to perform operations such as unlocking the screen and turning up the volume. For example, if the object above the electronic scale is a personal item, when the weight of the personal item is within the preset weight range, it means that the personal item has been placed back above the electronic scale, and it can be determined that the person has returned to the work station. At this time, it is necessary to control the computer to perform operations such as turning on the screen. In this way, the automated operation of unlocking when a person arrives and locking the screen when a person leaves can be realized. In this way, the preset weight for unlocking can be set more accurately. When the person leaves and takes away the personal item, the computer can automatically perform operations such as locking the screen, turning off the screen, and turning down the volume to protect personal privacy. When the person returns and places the personal item back, the personal information can be accurately identified to unlock the screen.

[0069] In another specific embodiment, the pre-set computer control device can be a seat cushion, as Figure 6 shown. The seat cushion is wirelessly connected to the computer via a USB wireless receiver plugged into the computer's USB interface. The seat cushion controls the locking or unlocking of the computer according to the weight of the object above it, thereby realizing the control of the computer. Combining Figure 5Specifically, first, the seat cushion is connected to a powered-on computer. After the electronic scale and the powered-on computer are wirelessly connected and communicate through a USB wireless receiver plugged into the computer's USB interface, the weight of the object above detected by the weighing sensor module in the seat cushion can be sent to the computer and read, displayed, and processed by the computer's upper computer. The computer can preset a weight range for the seat cushion through the USB wireless receiver. Then, the seat cushion detects the current state of the computer to determine whether the computer is in a locked screen state. If the computer is in a working state, the weight of the object above the seat cushion is detected through the weighing sensor module. If the weight of the object above the seat cushion is within the preset weight range, the process jumps back to the step of detecting the current state of the computer. If the weight of the object above the seat cushion is not within the preset weight range, it is determined that the object above the seat cushion has left, and then the computer is controlled by the MCU control module to perform operations such as locking the screen, turning off the screen, and turning down the volume. It should be noted that the object above the seat cushion is generally a person. Expanding on this, when it is detected that the weight of the person above the seat cushion is not within the preset weight range, it means that the person is not sitting on the seat cushion, and it can be determined that the person has left the work station. At this time, the control module in the seat cushion needs to control the computer to perform operations such as locking the screen, turning off the screen, and turning down the volume to turn off the computer screen. It should be noted that a preset time can also be set here. When the time when the person leaves the seat cushion is greater than the preset time, then control the computer to perform operations such as locking the screen, turning off the screen, and turning down the volume, and do not immediately control the computer to perform the screen locking operation to avoid turning off the computer when the person just stands up to move but has not left the work station, thereby avoiding the phenomenon of frequent screen unlocking and locking.

[0070] If the computer is in a locked screen state, the weight of the object above the seat cushion is detected through the weighing sensor module. If the weight of the object above the seat cushion is not within the preset weight range, the process jumps back to the step of detecting the current state of the computer. If the weight of the object above the seat cushion is within the preset weight range, it is determined that the object above the seat cushion has returned to its original position, and then the computer is controlled by the control module to perform operations such as unlocking and turning up the volume. Specifically, when the weight of the person above the seat cushion is within the preset weight range, it can be determined that the person has returned to the work station. At this time, the control module of the seat cushion needs to be used to control the computer to perform operations such as turning on the computer and the screen. In this way, automatic operations of unlocking when a person arrives and locking the screen when a person leaves can be achieved. Thus, it can be realized that the computer automatically performs operations such as locking the screen, turning off the screen, and turning down the volume after the human body leaves, protecting personal privacy.

[0071] It should be noted that the preset computer control device in the present invention includes but is not limited to the above-mentioned electronic scale and seat cushion, and can also be some items such as office chairs, stools, sofas, floors, weighing scales, wired or wireless keyboards, etc. that can perform weight detection and have contact with people or objects, and no specific limitations are made here.

[0072] Beneficial effects: By detecting the weight of a human body or an object and controlling a computer to perform operations such as locking the screen, turning off the screen, and turning down the volume according to the weight change, the present invention meets the user's needs and protects personal privacy.

[0073] See Figure 7 As shown, an embodiment of the present invention provides a computer control device, including:

[0074] A status and weight detection module 11, configured to detect the current status of the computer and the target weight of an object currently located above the pre-designed computer control device;

[0075] A judgment module 12, configured to judge whether the target weight meets a preset weight threshold condition and obtain a corresponding judgment result;

[0076] A control module 13, configured to perform corresponding control operations on the computer based on the current status of the computer and the judgment result.

[0077] Since the embodiments of the device part correspond to the above-mentioned embodiments, the embodiments of the device part are described with reference to the embodiments of the above-mentioned method part and will not be repeated here.

[0078] Beneficial effects: By detecting the target weight of an object above the pre-designed computer control device, when the object above the pre-designed computer control device leaves, the target weight changes, and at this time, the computer can be controlled to perform corresponding operations such as locking the screen and turning off the screen. When the object above the pre-designed computer control device returns, the target weight changes again, and at this time, the computer is controlled to perform corresponding unlocking operations, thereby protecting the user's privacy.

[0079] Further, an embodiment of the present application also discloses an electronic device, Figure 8 It is a structural diagram of an electronic device shown according to an exemplary embodiment. The content in the figure cannot be regarded as any limitation on the scope of use of the present application. The electronic device may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the computer control method disclosed in any of the foregoing embodiments. In addition, the electronic device in this embodiment may specifically be an electronic computer.

[0080] In this embodiment, the power supply 23 is used to provide operating voltages for the various hardware devices on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and no specific limitation is imposed on it here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and no specific limitation is imposed here.

[0081] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, a random access memory, a magnetic disk, an optical disc, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0082] Among them, the operating system 221 is used to manage and control the various hardware devices and the computer program 222 on the electronic device, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program capable of implementing the computer control method executed by the electronic device disclosed in any of the foregoing embodiments, the computer program 222 can further include computer programs capable of performing other specific tasks.

[0083] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the computer control method disclosed above. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details are not described herein again.

[0084] Furthermore, this application also discloses a computer program product, including a computer program / instructions; wherein, when the computer program / instructions are executed by a processor, they implement the computer control method disclosed above. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details are not described herein again.

[0085] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method section.

[0086] Those skilled in the art may further realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0087] The steps of the methods or algorithms described in connection with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0088] Finally, it should also be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0089] The technical solutions provided in this application have been introduced in detail above. Specific examples have been used herein to illustrate the principles and implementation manners of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to this application.

Claims

1. A computer control method, characterized in that, Including: Detecting the current state of the computer and the target weight of an object currently located above the pre-designed computer control device; Judging whether the target weight meets the preset weight threshold condition and obtaining the corresponding judgment result; Performing corresponding control operations on the computer based on the current state of the computer and the judgment result.

2. The computer control method according to claim 1, wherein Before detecting the current state of the computer and the target weight of an object currently located above the pre-designed computer control device, it further includes: Communicatively connecting the computer with the pre-designed computer control device; the communication connection includes relay connection or direct connection.

3. The computer control method according to claim 2, wherein After communicatively connecting the computer with the pre-designed computer control device, it further includes: Setting the preset weight threshold condition for the pre-designed computer control device through a preset key input component and an object weight display component; Or, receiving the preset weight threshold condition set by the computer for the pre-designed computer control device through a target communication method; the target communication method includes any one or a combination of several of communication based on a serial communication interface, communication based on an Ethernet interface, and wireless communication.

4. The computer control method according to claim 3, wherein The receiving the preset weight threshold condition set by the computer for the pre-designed computer control device through the target communication method includes: Detecting the initial weight of an object located above the pre-designed computer control device; Sending the initial weight to the computer so that the computer can read, display, and process the initial weight through a corresponding upper computer, and set the preset weight threshold condition for the pre-designed computer control device based on the initial weight; Receiving the preset weight threshold condition sent by the computer through the target communication method.

5. The computer control method according to claim 3, characterized in that, The detecting the current state of the computer and the target weight of an object currently located above the pre-designed computer control device includes: Communicating with the computer based on the target communication method and detecting the current state of the computer through the corresponding communication result; Using a preset weighing sensor to detect the target weight of an object currently located above the pre-designed computer control device; the preset weighing sensor includes a strain gauge sensor or a capacitive sensor.

6. The computer control method according to any one of claims 1 to 5, characterized in that, The preset weight threshold condition includes a preset minimum weight threshold and a preset maximum weight threshold; Correspondingly, the judging whether the target weight meets the preset weight threshold condition includes: Judging the magnitude relationship between the target weight and the preset minimum weight threshold and the preset maximum weight threshold; If the target weight is greater than or equal to the preset minimum weight threshold and less than or equal to the preset maximum weight threshold, it is determined that the target weight meets the preset weight threshold condition; Otherwise, it is determined that the target weight does not meet the preset weight threshold condition.

7. The computer control method according to claim 6, wherein The performing corresponding control operations on the computer based on the current state of the computer and the judgment result includes: When the current state of the computer is the working state, if the weight of the target object meets the preset weight threshold condition, re-jump to the step of detecting the current state of the computer and the weight of the target object; When the current state of the computer is the working state, if the weight of the target object does not meet the preset weight threshold condition, a first control operation is performed on the computer; the first control operation includes any one or a combination of a screen locking operation, a screen turning off operation, and a volume turning off operation; When the current state of the computer is the locked screen state, if the weight of the target object meets the preset weight threshold condition, a second control operation is performed on the computer; the second control operation includes an unlocking operation and / or a volume turning on operation; When the current state of the computer is the locked screen state, if the weight of the target object does not meet the preset weight threshold condition, it jumps back to the step of detecting the current state of the computer and the weight of the target object.

8. A computer control device, characterized in that, Including: A state and weight detection module for detecting the current state of the computer and the target weight of the object currently located above the preset computer control device; A judgment module for judging whether the target weight meets the preset weight threshold condition and obtaining a corresponding judgment result; A control module for performing corresponding control operations on the computer based on the current state of the computer and the judgment result.

9. An electronic device, characterized in that, Including: A memory for storing computer programs; A processor for executing the computer program to implement the steps of the computer control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps of the computer control method according to any one of claims 1 to 7 are implemented.