A device control method, apparatus, storage medium, and terminal device

By acquiring and displaying the current and expected values ​​of the embedded system's hardware in real time, and utilizing dynamic display and assisted perception methods, the problem of misunderstanding caused by delayed response of GUI controls is solved, thus improving the user experience.

CN115617239BActive Publication Date: 2026-04-24XIAN NOVASTAR TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAN NOVASTAR TECH
Filing Date
2022-10-31
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In embedded systems, due to limited hardware resources and long processing chains, there is a significant delay in the system's response to user operations. This can lead users to mistakenly believe that the expected values ​​displayed by the GUI controls are inconsistent with the actual hardware values, resulting in misunderstandings and a reduced user experience.

Method used

By acquiring the current values ​​of the system hardware in real time and displaying them separately from the expected values, dynamic display effects and auxiliary perception methods are used to show the gap between the current values ​​and the expected values, thus eliminating misunderstandings.

Benefits of technology

It clearly and intuitively displays the gap between the current state and the expected state of the system hardware, improving the user experience, eliminating misunderstandings, and without increasing software complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115617239B_ABST
    Figure CN115617239B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of device control, and particularly relates to a device control method and device, a computer readable storage medium and a terminal device. The method comprises the following steps: in response to a user operation instruction, displaying a system hardware expected value indicated in the user operation instruction; and acquiring a system hardware current value in real time and displaying the system hardware current value. Through the above method, the system hardware current value and the system hardware expected value are represented separately, and the understanding deviation of a user that the system hardware current value is the expected value is fundamentally eliminated, the user experience is improved, and the method has strong ease of use and practicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of equipment control technology, and in particular relates to an equipment control method, apparatus, computer-readable storage medium and terminal equipment. Background Technology

[0002] With the development of science and technology, various communication and electronic products have emerged. Compared with consoles, graphical user interfaces (GUIs) can display information more intuitively and to a greater extent, thus becoming the preferred choice for embedded system software to realize user interaction.

[0003] Software users, based on long-term operating habits, naturally assume that the displayed values ​​of GUI controls are consistent with the actual system values—a "what you see is what you get" approach. However, for embedded devices such as industrial controllers, edge gateways, and low-cost IoT devices, their hardware resources are limited or connected to long processing chains, resulting in significant delays in the system's response to user commands. For example, after receiving a color enhancement command, a transmitting card device needs to go through a series of processes—CPU, FPGA, network, receiving card, network, FPGA, and CPU—to complete a system modification. This entire chain takes seconds. When the system responds to user operations, the actual system hardware values ​​often lag behind the values ​​displayed by the GUI controls, causing misunderstandings and degrading the user experience. To eliminate these misunderstandings, software engineers typically employ various remedial measures such as communication sampling, screen freezing, and ignoring input. However, these measures introduce additional complexity into software development and are often costly with low returns. Summary of the Invention

[0004] In view of this, embodiments of this application provide a device control method, apparatus, computer-readable storage medium, and terminal device to solve the problem that existing device control methods may cause user misunderstandings, resulting in a poor user experience.

[0005] A first aspect of this application provides a device control method, which may include:

[0006] In response to user operation commands, display the expected system hardware values ​​indicated in the user operation commands;

[0007] Get and display the current system hardware values ​​in real time.

[0008] In one specific implementation of the first aspect, real-time acquisition of the current value of the system hardware may include: determining the target system hardware corresponding to the user operation command; and periodically acquiring the current value of the system hardware from the target system hardware at preset time intervals.

[0009] In one specific implementation of the first aspect, the device control method may further include: if the current value of the system hardware remains unchanged within a preset time and is not equal to the expected value of the system hardware, then the expected value of the system hardware is changed to the current value of the system hardware, and a preset prompt message is issued; wherein the prompt message is used to indicate that the target system hardware has failed.

[0010] In one specific implementation of the first aspect, displaying the current value of the system hardware may include: displaying the change process of the current value of the system hardware with a preset dynamic display effect.

[0011] In one specific implementation of the first aspect, the device control method may further include: stopping the display of the current system hardware value when the current system hardware value is equal to the expected system hardware value.

[0012] In one specific implementation of the first aspect, the device control method may further include: calculating the system hardware gap between the expected value of the system hardware and the current value of the system hardware; determining the target sound intensity corresponding to the system hardware gap based on a preset sound intensity correspondence; wherein the sound intensity correspondence is the correspondence between the system hardware gap and the sound intensity; and adjusting the preset sound intensity of the sound-generating device to the target sound intensity.

[0013] In one specific implementation of the first aspect, the device control method may further include: calculating the system hardware gap between the expected value of the system hardware and the current value of the system hardware; determining the target light intensity corresponding to the system hardware gap based on a preset light intensity correspondence; wherein the light intensity correspondence is the correspondence between the system hardware gap and the light intensity; and adjusting the preset light intensity of the light-emitting device to the target light intensity.

[0014] A second aspect of the embodiments of this application provides a device control apparatus, which may include:

[0015] The system hardware expected value display module is used to display the system hardware expected value indicated in the user operation command in response to the user operation command;

[0016] The system hardware current value display module is used to obtain and display the current system hardware values ​​in real time.

[0017] A third aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above-described device control methods.

[0018] A fourth aspect of this application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-described device control methods.

[0019] The fifth aspect of this application provides a computer program product that, when run on a terminal device, causes the terminal device to execute the steps of any of the above-described device control methods.

[0020] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment responds to user operation commands and displays the expected value of the system hardware indicated in the user operation commands; it also acquires and displays the current value of the system hardware in real time. In this application embodiment, by separately representing the expected value and the current value of the system hardware, the gap between the current state of the system hardware and the user's expected state is clearly and intuitively displayed. This eliminates the need to introduce work that increases software complexity, fundamentally eliminating the user's misunderstanding that the expected value is the same as the current value, improving the user experience, and demonstrating strong usability and practicality. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A schematic flowchart illustrating a device control method provided in an embodiment of this application;

[0023] Figure 2 A schematic diagram of a speaker volume display interface provided in an embodiment of this application;

[0024] Figure 3 This is another schematic diagram of a speaker volume display interface provided in the embodiments of this application;

[0025] Figure 4 A schematic diagram of a display interface with an example of display resolution provided in this application embodiment;

[0026] Figure 5 This is a schematic diagram of an example of a display interface in sRGB mode provided in an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of an example of a display brightness display interface provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of an example prompt message display interface provided in an embodiment of this application;

[0029] Figure 8 This is a structural diagram of one embodiment of a device control device according to the present application.

[0030] Figure 9 This is a schematic block diagram of a terminal device in an embodiment of this application. Detailed Implementation

[0031] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0032] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0033] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0034] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0035] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0036] Furthermore, in the description of this application, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0037] GUIs offer unparalleled advantages over consoles, and their intuitive ease of use makes them the preferred choice for embedded system software. In most low-latency systems, the expected value set for system hardware via the GUI is the same as the current value of the system hardware. Therefore, users naturally equate the expected value displayed on the GUI with the current value. However, in embedded systems, especially high-latency ones, the system hardware performance is lower, and setting the hardware via the GUI requires a certain response time. This means that the current value of the system hardware during this time is not equal to the expected value displayed on the GUI. But based on long-term usage habits, users naturally assume that the expected value displayed on the GUI is the current value, leading to a misunderstanding.

[0038] In view of this, embodiments of this application provide a device control method, apparatus, computer-readable storage medium, and terminal device. The device control method provided by these embodiments can separately characterize the expected value and the current value of the system hardware, and dynamically display the process of the current value approaching the expected value, fundamentally eliminating the user's misunderstanding that the expected value is the same as the current value, improving user experience, and possessing strong usability and practicality.

[0039] First, please refer to Figure 1 One embodiment of a device control method in this application may include:

[0040] Step S101: In response to the user operation command, display the expected system hardware value indicated in the user operation command.

[0041] The user operation commands are used to set system hardware values, which may include, but are not limited to, speakers, monitors, cameras, microphones, printers, scanners, etc.

[0042] Specifically, users can generate user operation commands to configure any one or more system hardware such as speakers, displays, cameras, microphones, printers, and scanners through any of the following methods: mouse click, mouse drag, keyboard input, or preset key presses. This application does not impose specific limitations on this, and the configuration can be made according to actual needs.

[0043] When a user operation command is received, the expected value of the system hardware indicated in the user operation command can be displayed in a preset way, for example, it can be displayed on a preset GUI control.

[0044] Step S102: Obtain the current value of the system hardware in real time and display the current value of the system hardware.

[0045] The real-time acquisition of the current system hardware value can be achieved by periodically sampling the current system hardware value from the target system hardware at preset time intervals. The preset time interval can be the same as the system clock or any preset time interval. This application embodiment does not specifically limit this and can set it according to actual needs.

[0046] In response to user commands, the system periodically samples the current values ​​of the system hardware to obtain these values ​​in real time. It can be understood that the sampling time interval can remain constant from the initial sampling of the current hardware values, or the rate of change of the current hardware values ​​can be calculated based on the latest and previous samples, and the sampling time interval can be adjusted accordingly to improve system resource utilization.

[0047] When the current value of the system hardware is obtained, it can be displayed in a preset way, such as displaying the current value of the system hardware in a preset area of ​​the GUI control.

[0048] It is understandable that the display area of ​​the current system hardware value on the GUI control is preset, and in order to distinguish the current system hardware value from the expected system hardware value, the display area of ​​the current system hardware value does not overlap with the display area of ​​the expected system hardware value.

[0049] In one possible implementation, the display area of ​​the GUI control can be set by the developer during the development process.

[0050] In another possible embodiment, the display area can be set by the developer during the development process, or it can be customized by the user.

[0051] It is understandable that the aforementioned GUI controls correspond to system hardware. Before obtaining the current value of the system hardware and displaying it on the GUI control, it is necessary to determine the target system hardware corresponding to the GUI control based on the preset control correspondence. After determining the target system hardware, the current value of the target hardware can be obtained in real time using the method described above and displayed on the corresponding GUI control. Simultaneously, this control correspondence can be used to configure the system hardware using the GUI control. When the user operates the GUI control through mouse clicks, keyboard input, etc., they can configure the system hardware bound to that GUI control. For example, the speaker volume progress bar corresponds to the system speaker volume; dragging or clicking the speaker volume progress bar allows setting the speaker volume; the monitor brightness progress bar corresponds to the system monitor brightness; dragging or clicking the monitor brightness progress bar allows setting the monitor brightness. However, this does not mean that a system hardware can only be configured through a single GUI control. The same system hardware can be configured through different GUI controls on different interfaces.

[0052] In one possible embodiment, the user can configure the system speakers via a speaker progress bar.

[0053] In another possible embodiment, in addition to setting the speaker through the speaker progress bar, the user can also set the speaker volume through the corresponding numeric input box control or the increase / decrease button group control.

[0054] Furthermore, when displaying both the current and expected system hardware values ​​on a GUI control, the current and expected system hardware values ​​can be displayed in different ways to help users better distinguish between them.

[0055] In one possible embodiment, the current value of the system hardware is displayed using a font color that is different from the font color of the target value of the system hardware.

[0056] In one possible embodiment, the current value of the system hardware is displayed using a font type that is different from the font type of the target value of the system hardware.

[0057] In another possible embodiment, the current value of the system hardware is displayed using a font color and font type that are different from the target value of the system hardware.

[0058] In one possible embodiment, the font type and font color of the current system hardware value and the expected system hardware value are set by the developers during the development process.

[0059] In another possible embodiment, the font type and font color of the current system hardware value and the expected system hardware value can be set by the developer during the development process, or can be customized by the user.

[0060] Furthermore, the display of the current value of the system hardware can be presented in the form of specific numerical values, percentages, etc., and this application does not impose any specific limitations on this.

[0061] In one possible embodiment, the current system hardware value is presented as a specific numerical value. For example, if the system hardware value is changed from 20 to 30, meaning the expected system hardware value is set to 30, then when the current system hardware value is presented as 25, it indicates that the current system hardware value is 25.

[0062] In one possible embodiment, the current system hardware value is presented as a percentage, representing the degree to which the current value has approached the expected value. For example, if the system hardware value is changed from 0 to 100, i.e., the expected system hardware value is set to 100, then when the current system hardware value is 30%, it indicates that 30% of the process of the system hardware value approaching 100 from 0 has been completed.

[0063] In another possible embodiment, the current value of the system hardware is displayed only through a preset dynamic display effect without using a specific numerical value. The degree of change of the dynamic display effect indicates the gap between the current value and the expected value. The greater the degree of change of the dynamic display effect, the smaller the gap between the current value and the expected value. The speed of change of the dynamic display effect indicates the speed at which the current value approaches the expected value. The faster the speed of change of the dynamic display effect, the faster the current value approaches the expected value.

[0064] For example, the preset dynamic display effect is a linear color gradient from RGB values ​​(255, 255, 255) to (0, 0, 0). The system hardware value is set from the original 30 to 50, that is, the expected value of the system hardware is set to 50. Then, when the current value of the system hardware is 40, the area of ​​the dynamic display effect will display the color indicated by the intermediate value (125, 125, 125) between RGB values ​​(255, 255, 255) and (0, 0, 0). The faster the color changes from the color indicated by RGB values ​​(255, 255, 255) to the color indicated by (0, 0, 0), the faster the current value approaches the expected value.

[0065] Understandably, the time it takes for the current value of the system hardware to approach its expected value is determined by the performance of the system hardware. When the system hardware performance is poor, such as when the system hardware suffers wear and tear during long-term use, resulting in performance degradation, the time taken for this change will be longer than the time taken when the system hardware performance is good.

[0066] To allow users to perceive the process of the system's current value approaching the expected value of the system hardware, this embodiment uses a preset dynamic display effect to show the change process of the system hardware's current value on a GUI control. This dynamic display effect can be a linear color gradient, a radial color gradient, etc., and is not specifically limited in this embodiment; it can be set according to actual needs.

[0067] In one possible implementation, a linear color gradient effect is used to display the change process of the system hardware's current values. The principle of linear gradient is to divide the RGB values ​​between color 1 and color 2 into n equal parts, and then display these n equal parts of color values ​​sequentially. The value n, the RGB values ​​of color 1 and color 2 are preset and can be set by developers during development or customized by users. For example, if the RGB values ​​of color 1 are (R1, G1, B1) and the RGB values ​​of color 2 are (R2, G2, B2), dividing the RGB values ​​of color 1 and color 2 into n equal parts results in n transition colors from color 1 to color 2. The RGB values ​​(Rg, Gg, Bg) of each transition color can be obtained using the following formula:

[0068]

[0069]

[0070]

[0071] Where m is the m-th division in n equal parts, and m ≤ n.

[0072] In another possible embodiment, a radial color gradient effect is used to display the change process of the system hardware's current value. The principle of radial gradient is similar to that of linear gradient, but the shape of its display area is an ellipse or circle that gradually changes from the focal point to the radius. The gradient focal point is the starting point of the gradient effect; it can be the focal point of an ellipse, the center of a circle, or other preset points. The focal point and focal length of the ellipse, and the center and radius of the circle are preset and can be set by developers during development or customized by the user. The radial color gradient can present the effect of two colors spreading from the gradient focal point to the circumference; the degree and speed of change respectively represent the difference between the current value and the expected value, and the speed at which the current value approaches the expected value.

[0073] When the current system hardware value equals the expected system hardware value, the acquisition of the current system hardware value is stopped, and the display of the current system hardware value and dynamic display effect on the GUI control is canceled to indicate that the expected system hardware value is the current system hardware value.

[0074] It is important to understand that when system hardware malfunctions, such as when abnormal driver control causes the current system hardware value to fail to reach the expected value (manifested as the current system hardware value remaining unchanged for a preset time but not equal to the expected value), the expected system hardware value needs to be changed to the current system hardware value, and a preset prompt message needs to be issued to indicate that the system hardware has malfunctioned. This preset prompt message is set by the developers during the development process. The display method of this prompt message can include, but is not limited to, pop-up prompts, page prompts, label prompts, animated prompts, etc., and the sound, graphics, colors, and text of the prompt message can be set according to actual needs; this application does not impose specific restrictions.

[0075] The following will be based on Figure 1 The device control method shown in the illustration, combined with specific application scenarios, provides a detailed description of the device control method provided in the embodiments of this application.

[0076] For example, Figure 2 This is a schematic diagram of a speaker volume display interface provided in an embodiment of this application. Users can set the speaker volume by dragging the speaker volume progress bar or directly clicking any point on the progress bar; each point on the progress bar represents a numerical value. In this embodiment, the user sets the expected speaker volume value to 60 by dragging the speaker volume progress bar 201. In response to this command, the system displays the expected speaker volume value 202 on the speaker volume progress bar. The system periodically acquires the current speaker volume value at a preset time interval, which is 1ms in this embodiment, and displays the current speaker volume value 203 on the progress bar. When the current speaker volume value is updated, the current speaker volume value 203 is also updated in real time. In this embodiment, a linear gradient effect 204 from blue to white is used to display the process of the current speaker volume value approaching the expected speaker volume value. The linear gradient effect in the figure uses lines of different densities; the greater the line density, the darker the gradient effect. The degree of change in the gradient effect is positively correlated with the speed at which the current speaker volume value approaches the expected speaker volume value. Therefore, the user can intuitively perceive the difference between the current and expected speaker volume values.

[0077] For example, Figure 3This is another example of a speaker volume display interface provided in this application embodiment. Users can set the speaker volume using a preset physical knob. In this embodiment, rotating the physical knob clockwise increases the speaker volume, and rotating it counter-clockwise decreases the speaker volume. When the user rotates the preset physical knob, the system responds to the instruction and displays the expected speaker volume value 301 indicated by the instruction on the speaker volume circular control. The system periodically acquires the current speaker volume value at preset time intervals, which is 1ms in this embodiment, and displays the current speaker volume value 302 on the speaker volume circular control. When the current speaker volume value is updated, the current speaker volume value 302 is also updated in real time. In this embodiment, a radial gradient effect 303 from blue to white is used to show the process of the current speaker volume value approaching the expected speaker volume value. This linear gradient effect uses lines of varying densities; the higher the line density, the darker the gradient effect. The degree of change in the gradient effect is positively correlated with the speed at which the current speaker volume value approaches the expected speaker volume value. Therefore, users can intuitively perceive the difference between the current and expected speaker volume values.

[0078] For example, Figure 4 This is a schematic diagram of a display interface illustrating a monitor resolution, provided as an embodiment of this application. Users can configure the system hardware by selecting different options from the drop-down list control. In this embodiment, reference is made to... Figure 4 (a) The user can view the available options for the system display resolution by clicking drop-down button 401. When the user clicks drop-down button 401, the drop-down list expands as follows: Figure 4 As shown in (b), option box 402 displays all available options, including 1680×1050, 1600×900, 1440×900, and 1400×1050 in this embodiment. When there are many options, a scroll bar can be displayed, allowing the user to view all available options by dragging the scroll bar. The scroll bar is not shown in the figure. The user selects the display resolution by clicking on the available options, such as... Figure 4 As shown in (c), the user clicks option 403 to set the desired monitor resolution to 1600×900. Accordingly, the system indicates that the option is selected by displaying a "√" in the corresponding position for the 1600×900 option. Figure 4As shown in (d), in response to the command, the expected display resolution of 1600×900 is displayed on the preset display area 404. Simultaneously, the system periodically acquires the current display resolution value at preset time intervals; in this embodiment, the preset time interval is 1ms. The current display resolution value is not displayed in the graph, but rather the difference between the current value and the expected value is displayed through a dynamic display effect 405. In this embodiment, the dynamic display effect is a linear color gradient from green to white. This gradient effect is displayed in the graph using lines of varying densities; a higher line density indicates a darker gradient, and the gradient speed is positively correlated with the rate at which the current value approaches the expected value. This provides the user with an intuitive understanding of the system's response to the display resolution setting command.

[0079] For example, Figure 5 This is a schematic diagram of an example of a monitor's sRGB mode display interface provided in an embodiment of this application. The user can toggle the monitor's sRGB mode on and off using checkboxes. Figure 5 As shown in (a), checkbox 501 is not selected, indicating that the monitor's sRGB mode is off. Users can select checkbox 501 by clicking the mouse, typing on the keyboard, etc. Figure 5 As shown in (b), when the user selects the checkbox, the system displays a "√" on the checkbox to indicate that it is selected, and the monitor's sRGB mode is enabled. In response to this instruction, the speed at which the monitor's sRGB mode is enabled is displayed through a dynamic display effect 502. In this embodiment, the dynamic display effect is a linear gradient from red to white, displayed using lines of varying densities. A higher line density indicates a darker gradient, and the gradient speed is positively correlated with the sRGB mode enabling speed. This provides the user with an intuitive understanding of the system's sRGB mode enabling instruction. Similarly, when the user deselects checkbox 501 to disable the monitor's sRGB mode, the checkbox will no longer display a "√," and the disabling speed is also displayed using a dynamic display effect. The specific implementation process is the same as described above and will not be repeated here.

[0080] For example, Figure 6 This is a schematic diagram of a display brightness interface provided in an embodiment of this application. The user adjusts the display brightness by clicking the corresponding increase / decrease button group controls. Clicking the "↑" button in the increase / decrease button group increases the display brightness value; clicking the "↓" button decreases the display brightness value. Figure 6(a) shows the monitor brightness increase / decrease button group. The numerical display box 601 displays the monitor brightness value. At this time, the current monitor brightness value is consistent with the expected monitor brightness value, which is "35". The user can increase the monitor brightness value by clicking the "↑" button 602, and similarly, decrease the monitor brightness value by clicking the "↓" button 603. It can be understood that each click of the "↑" button 602 or the "↓" button 603 will increase or decrease the monitor brightness value by 1. Figure 6 As shown in (b), the user increases the display brightness setting by clicking the "↑" button 602. In this embodiment, clicking the "↑" button 602 once increases the display brightness setting by 1. At this time, the display brightness value 601 increases by 1 from the original "35" to "36", and "36" is the expected display brightness value. Figure 6 As shown in (c), the user decreases the monitor brightness value by clicking the "↓" button 603. In this embodiment, clicking the "↓" button 603 once decreases the monitor brightness value by 1. The monitor brightness value then decreases by 1 from the original "35" to "34," which is the expected brightness value. Alternatively, the user can directly input the monitor brightness value by clicking the numerical display box 601. Figure 6 As shown in (d), when the user clicks the numerical display box 601, the numerical display box 601 becomes an input-enabled state. At this time, the cursor is displayed after the numerical value "35", and the user can use the keyboard or mouse to perform numerical editing operations. Figure 6 As shown in (e), the user inputs "55" into the numerical display box 601 using the keyboard. When the user clicks on an area outside this control, the system is instructed to end the numerical editing operation, and the cursor disappears from the numerical input box 601. Figure 6 As shown in (f), the numerical input box 601 displays the expected brightness value of the monitor as "55". In response to this command, the system acquires the current brightness value of the monitor in real time and displays the process of the current brightness value approaching the expected brightness value through a dynamic display effect. In this embodiment, the dynamic display effect is a linear color gradient from yellow to white. This gradient effect is displayed in the image using lines of varying densities; a higher line density indicates a darker gradient. The gradient speed is positively correlated with the rate at which the current value approaches the expected value, thus providing the user with an intuitive understanding of the system's response to the monitor brightness setting command.

[0081] For example, Figure 7This is a schematic diagram of an example prompt message display interface provided in an embodiment of this application. In this embodiment, the user sets the speaker volume to 90 by dragging the speaker volume progress bar, meaning the expected speaker volume value is 90. However, if the current speaker volume value remains at 80 for 3 seconds, the system begins monitoring for fault information and changes the expected speaker volume value back to 80, issuing a corresponding prompt message. Figure 7 As shown, the pop-up window 701 displays a fault message 702, indicating that the speaker has malfunctioned and cannot be set to the expected value of 90. The user can close the pop-up by clicking the close button 703.

[0082] In addition, to display changes in the current values ​​of the system hardware, besides using dynamic display effects, auxiliary sensing methods can also be used, including but not limited to displaying changes through one or more of the following methods: sound, light, or smell.

[0083] Understandably, in order to more intuitively demonstrate the process of the current value approaching the expected value, the rate of change of the aforementioned sound, light, or smell can be positively correlated with the rate of approach of the current value to the expected value.

[0084] In one possible embodiment, a changing sound is used to display the process of the current display brightness value approaching the expected display brightness value. The current display brightness value is acquired in real time, the difference between the expected and current values ​​is calculated, and a target sound intensity corresponding to this difference is determined based on a preset sound intensity correspondence. Finally, the sound intensity of a preset sound-generating device is adjusted to the target sound intensity to display the difference value. The sound intensity correspondence is the relationship between the display brightness difference value and the sound intensity. In this embodiment, the preset sound-generating device is a system loudspeaker, and the preset sound intensity correspondence is: y = kx, where y is the target sound intensity, k is a proportionality coefficient, and x is the absolute value of the difference between the expected and current values, k ≠ 0. The smaller the difference between the current and expected display brightness values, the smaller the target sound intensity. When the loudspeaker's sound intensity decreases, it indicates that the current display brightness value is approaching the expected value, and the rate of change in sound intensity indicates the rate at which the current value approaches the expected value.

[0085] In another possible embodiment, varying light is used to demonstrate the process of the speaker volume approaching a predicted speaker volume value. By acquiring the current speaker volume value in real time, the difference between the predicted and current speaker volume values ​​is calculated. A target light intensity corresponding to this difference value is determined based on a preset light intensity correspondence. Finally, the light intensity of a preset light-emitting device is adjusted to the target light intensity to display the difference value. Here, the light intensity correspondence is the relationship between the speaker volume difference value and the light intensity. In this embodiment, the preset light-emitting device is a display, and the preset light intensity correspondence is: y = x2 Where y is the target light intensity and x is the absolute value of the difference. The smaller the difference between the speaker's current value and its expected value, the smaller the target light intensity. When the monitor's light intensity decreases, it indicates that the speaker's current value is approaching its expected value, and the rate of change in light intensity indicates the rate at which the current value approaches the expected value.

[0086] Understandably, users can choose the appropriate auxiliary sensing method to display the process of the system hardware's current value approaching the expected value, based on their actual situation. Furthermore, if the system hardware malfunctions and the current value fails to reach the expected value, the expected value will be changed back to the current value, and the auxiliary sensing method will also stop displaying the data.

[0087] In summary, the embodiments of this application fundamentally eliminate the misunderstanding that the expected value is the same as the current value by separately displaying the expected value and the current value of the system hardware, without introducing work that increases software complexity. Furthermore, by using dynamic display effects and / or auxiliary perception methods, the process of the current value approaching the expected value is clearly and intuitively shown, improving the user experience and demonstrating strong usability and practicality.

[0088] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0089] Corresponding to the device control method described in the above embodiments, Figure 8 This illustration shows a structural diagram of one embodiment of a device control apparatus provided in this application.

[0090] In this embodiment, a device control apparatus may include:

[0091] The system hardware expected value display module 801 is used to display the system hardware expected value indicated in the user operation command in response to the user operation command;

[0092] The system hardware current value display module 802 is used to acquire and display the current value of the system hardware in real time.

[0093] In one specific implementation of this application embodiment, the system hardware current value display module may include:

[0094] The target system hardware determination unit is used to determine the target system hardware corresponding to the user operation command.

[0095] The system hardware current value acquisition unit is used to periodically acquire the current value of the system hardware from the target system hardware at preset time intervals.

[0096] In one specific implementation of this application embodiment, the system hardware current value display module may further include:

[0097] The fault indication unit is used to change the expected value of the system hardware to the current value of the system hardware and issue a preset prompt message if the current value of the system hardware remains unchanged within a preset time and is not equal to the expected value of the system hardware.

[0098] In one specific implementation of this application embodiment, the system hardware current value display module may further include:

[0099] The dynamic display unit is used to display the changes in the current values ​​of the system hardware with preset dynamic display effects.

[0100] In one specific implementation of this application embodiment, the system hardware current value display module may further include:

[0101] The stop display unit is used to stop displaying the current system hardware value when the current system hardware value equals the expected system hardware value.

[0102] In one specific implementation of this application embodiment, the device control apparatus may further include:

[0103] The sound intensity control module is used to calculate the system hardware gap between the expected value and the current value of the system hardware; determine the target sound intensity corresponding to the system hardware gap based on the preset sound intensity correspondence; wherein, the sound intensity correspondence is the correspondence between the system hardware gap and the sound intensity; and adjust the preset sound intensity of the sound-generating device to the target sound intensity.

[0104] In one specific implementation of this application embodiment, the device control apparatus may further include:

[0105] The light intensity control module is used to calculate the system hardware gap between the expected value and the current value of the system hardware; determine the target light intensity corresponding to the system hardware gap based on the preset light intensity correspondence; wherein, the light intensity correspondence is the correspondence between the system hardware gap and the light intensity; and adjust the preset light intensity of the light-emitting device to the target light intensity.

[0106] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0107] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0108] Figure 9 A schematic block diagram of a terminal device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0109] like Figure 9 As shown, the terminal device 9 in this embodiment includes a processor 901, a memory 902, and a computer program 903 stored in the memory 902 and executable on the processor 901. When the processor 901 executes the computer program 903, it implements the steps described in the various device control method embodiments above, for example... Figure 1 Steps S101 to S102 are shown. Alternatively, when processor 901 executes computer program 903, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 8 The functions of modules 801 to 802 are shown.

[0110] For example, computer program 903 may be divided into one or more modules / units, one or more of which are stored in memory 902 and executed by processor 901 to complete this application. One or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 903 in terminal device 9.

[0111] Terminal device 9 can be a desktop computer, laptop, PDA, or other computing device. Those skilled in the art will understand that... Figure 9 This is merely an example of terminal device 9 and does not constitute a limitation on terminal device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal device 9 may also include input / output devices, network access devices, buses, etc.

[0112] The processor 901 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0113] The memory 902 can be an internal storage unit of the terminal device 9, such as a hard disk or RAM of the terminal device 9. The memory 902 can also be an external storage device of the terminal device 9, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the terminal device 5. Furthermore, the memory 902 can include both internal and external storage units of the terminal device 9. The memory 902 is used to store computer programs and other programs and data required by the terminal device 9. The memory 902 can also be used to temporarily store data that has been output or will be output.

[0114] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0115] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0116] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software 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 beyond the scope of this application.

[0117] In the embodiments provided in this application, it should be understood that the disclosed apparatus / terminal devices and methods can be implemented in other ways. For example, the apparatus / terminal device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0118] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0119] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0120] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.

[0121] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A device control method, characterized in that, include: In response to a user operation command, the expected system hardware value indicated in the user operation command is displayed; The system can acquire and display the current values ​​of the system hardware in real time. The display area for the current value of the system hardware does not overlap with the display area for the expected value of the system hardware. After acquiring the current value of the system hardware in real time, the method further includes: calculating the system hardware gap between the expected value of the system hardware and the current value of the system hardware; determining the target sound intensity corresponding to the system hardware gap based on a preset sound intensity correspondence; wherein the sound intensity correspondence is the correspondence between the system hardware gap and the sound intensity; and adjusting the sound intensity of the preset sound-generating device to the target sound intensity.

2. The equipment control method according to claim 1, characterized in that, The real-time acquisition of the current system hardware values ​​includes: Determine the target system hardware corresponding to the user operation command; The system hardware current value is periodically obtained from the target system hardware at preset time intervals.

3. The equipment control method according to claim 2, characterized in that, Also includes: If the current value of the system hardware remains unchanged within a preset time and is not equal to the expected value of the system hardware, then the expected value of the system hardware is changed to the current value of the system hardware, and a preset prompt message is issued; wherein, the prompt message is used to indicate that the target system hardware has failed.

4. The equipment control method according to claim 1, characterized in that, The display of the current values ​​of the system hardware includes: The system displays the change process of the current values ​​of the hardware using a preset dynamic display effect.

5. The equipment control method according to claim 1, characterized in that, Also includes: When the current value of the system hardware equals the expected value of the system hardware, stop displaying the current value of the system hardware.

6. The equipment control method according to any one of claims 1 to 5, characterized in that, After acquiring the current system hardware values ​​in real time, it also includes: Calculate the system hardware gap between the expected system hardware value and the current system hardware value; The target light intensity corresponding to the system hardware gap value is determined according to a preset light intensity correspondence relationship; wherein, the light intensity correspondence relationship is the correspondence between the system hardware gap value and the light intensity. Adjust the light intensity of the preset light-emitting device to the target light intensity.

7. A device control apparatus, characterized in that, include: The system hardware expected value display module is used to display the system hardware expected value indicated in the user operation command in response to the user operation command; The system hardware current value display module is used to acquire and display the current system hardware value in real time; the display area of ​​the current system hardware value does not overlap with the display area of ​​the expected system hardware value. A sound intensity control module is used to calculate the system hardware gap between the expected value of the system hardware and the current value of the system hardware; and to determine the target sound intensity corresponding to the system hardware gap according to a preset sound intensity correspondence; wherein, the sound intensity correspondence is the correspondence between the system hardware gap and the sound intensity. Adjust the sound intensity of the preset sound-generating device to the target sound intensity.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the device control method as described in any one of claims 1 to 6.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the device control method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Alcohol detector calibrating device and method

    CN107192833A

  • Early warning method and device for nuclear power operation system of nuclear power station and electronic equipment

    CN112820433A