Device function setting method, device, device and storage medium

By monitoring the power-on time and power-off times of integrated circuit devices, and adjusting the number of function markers to control functions, the inconvenience and limitations of the device without buttons or touch screen configurations are solved, and convenient function settings are achieved.

CN116560253BActive Publication Date: 2024-08-30SHENZHEN FENGRUNDA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310438256.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-08-30
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

When existing integrated circuit devices are not configured with buttons or touch screens, function control and operation are inconvenient, resulting in limitations in use.

Method used

By monitoring the device power-on time and the number of power outages, adjusting the number of function tags to control device functions, and using preset conditions to reset and increment the number of function tags to achieve function settings.

Benefits of technology

In the absence of button or touch screen configuration, the set functions of the device can be entered by accumulating the number of power outages, which solves the inconvenience and limitations of using the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116560253B
    Figure CN116560253B
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, device and storage medium for setting device functions, the method comprising: monitoring device power-on time and device power-off times; when the device power-on time and the device power-off times meet preset function setting conditions, adjusting the device function mark number, the device function mark number is used to control the device function; setting the device function based on the adjusted device function mark number. Since the present invention monitors the device power-on time and the device power-off times, when the device power-on time and the device power-off times meet the preset function setting conditions, adjusting the device function mark number, and then setting the device function according to the adjusted device function mark number, the device set by the above method, compared with the existing device, can enter the device set function by accumulating the number of power-off times when there is no configuration such as buttons or touch screens, thereby solving the inconvenience and limitation of the existing device when in use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the widespread application of embedded technology, the application fields of integrated circuit devices are also expanding, and have been widely used in home appliances, automobiles, medical treatment, industrial automation and other fields. The application of integrated circuit devices has made great progress and development at the current stage.

[0003] At present, if there is no button or touch screen connected to the integrated circuit device, the function control and operation of the device cannot be directly performed, which will lead to inconvenience and limitations in use. Therefore, making the function setting more convenient and reliable is a major problem that needs to be solved urgently.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for setting device functions, aiming to solve the technical problems of inconvenience and limitations in the use of device functions in the prior art.

[0006] To achieve the above object, the present invention provides a method for setting device functions, the method comprising the following steps:

[0007] Monitor the device power-on time and the number of times the device is powered off;

[0008] When the device power-on time and the device power-off times meet the preset function setting conditions, adjusting the device function mark number, the device function mark number is used to control the device function;

[0009] Set device capabilities based on the adjusted number of device capability tags.

[0010] Optionally, when the device power-on time and the device power-off times meet preset function setting conditions, the step of adjusting the number of device function flags includes:

[0011] Determine whether the device power-on time exceeds the preset time;

[0012] If not, determining whether the number of power outages of the device reaches a preset threshold;

[0013] When the number of power outages of the device reaches a preset threshold, the accumulated number of power outages of the device is reset, and the number of function flags of the device is adjusted.

[0014] Optionally, when the number of power-off times of the device reaches a preset threshold, the step of resetting the accumulated number of power-off times of the device and adjusting the number of function flags of the device includes:

[0015] When the cumulative number of power outages of the device reaches a preset threshold, the cumulative number of power outages of the device is reset, and the number of function flags of the device is incremented;

[0016] When the number of device function flags exceeds a preset range, the number of device function flags is reset.

[0017] Optionally, after the step of determining whether the device power-on time exceeds a preset time, the method further includes:

[0018] If the device power-on time exceeds the preset time, the number of power-off times of the device is reset;

[0019] When the number of power outages of the device reaches a preset threshold, the accumulated number of power outages of the device is reset and the number of function marks of the device is adjusted.

[0020] Optionally, before the step of monitoring the device power-on time and the number of device power-off times, the step further includes:

[0021] Initialize the device function flag number and the device power-off times;

[0022] Determine whether the device function flag number and the cumulative number of power failures of the device are original data;

[0023] If so, the device function flag number and the cumulative number of power failures of the device are initialized again.

[0024] Optionally, the step of setting the device function based on the adjusted number of device function flags includes:

[0025] Monitor the number of device function markers after adjustment;

[0026] The device functions are respectively set by the device program when the device function mark number is adjusted to a preset value.

[0027] Optionally, the device function setting method further includes:

[0028] Monitor equipment power outage time;

[0029] When the power-off time of the device exceeds the preset duration, the cumulative power-off times of the device are incremented.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a device for setting device functions, the device comprising:

[0031] Equipment monitoring module, used to monitor equipment power-on time and equipment power-off times;

[0032] A function adjustment module, used for adjusting the device function mark number when the device power-on time and the device power-off times meet the preset function setting conditions, and the device function mark number is used to control the device function;

[0033] The function setting module is used to set the device function based on the adjusted device function tag number.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also proposes a device function setting device, which includes: a memory, a processor, and a device function setting program stored in the memory and executable on the processor, and the device function setting program is configured to implement the steps of the device function setting method described above.

[0035] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a device function setting program is stored, and when the device function setting program is executed by a processor, the steps of the device function setting method described above are implemented.

[0036] The present invention discloses a method, apparatus, device and storage medium for setting device functions, the method comprising: monitoring device power-on time and device power-off times; when the device power-on time and the device power-off times meet preset function setting conditions, adjusting the device function mark number, the device function mark number is used to control the device function; setting the device function based on the adjusted device function mark number. Since the present invention monitors the device power-on time and the device power-off times, when the device power-on time and the device power-off times meet the preset function setting conditions, adjusting the device function mark number, and then setting the device function according to the adjusted device function mark number, the device set by the above method, compared with the existing device, can enter the device set function by accumulating the number of power-off times when there is no configuration such as buttons or touch screens, thereby solving the inconvenience and limitation of the existing device when in use. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of the structure of a device function setting device for a hardware operating environment involved in an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for setting device functions of the present invention;

[0039] Figure 3 A schematic diagram of a flow chart of a second embodiment of a method for setting device functions according to the present invention;

[0040] Figure 4 A schematic diagram of a flow chart of a third embodiment of a method for setting device functions according to the present invention;

[0041] Figure 5 This is a structural block diagram of the first embodiment of the device function setting apparatus of the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] Reference Figure 1 , Figure 1 A schematic diagram of a device structure for setting device functions in a hardware operating environment involved in an embodiment of the present invention.

[0045] like Figure 1 As shown, the device function setting device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0046] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the functional setting device of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0047] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a device function setting program.

[0048] exist Figure 1In the device function setting device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the device function setting device of the present invention can be set in the device function setting device, and the device function setting device calls the device function setting program stored in the memory 1005 through the processor 1001, and executes the device function setting method provided by the embodiment of the present invention.

[0049] The embodiment of the present invention provides a method for setting device functions, referring to Figure 2 , Figure 2 It is a flowchart of the first embodiment of the device function setting method of the present invention.

[0050] In this embodiment, the device function setting method includes the following steps:

[0051] Step S10: Monitor the device power-on time and the number of times the device is powered off.

[0052] It should be noted that the execution subject of the method of this embodiment can be a control device with data processing, network communication and program running functions, such as a device function setting device; it can also be other electronic devices with the same or similar functions, or a function setting system equipped with the electronic device. This embodiment and the following embodiments will take the device function setting device (referred to as the function setting device) as the execution subject to illustrate the device function setting method of the present invention.

[0053] It is understandable that the device power-on time may be the time for powering on the device, including the time from powering on the device to powering off the device. The number of device power-off times may be the number of cumulative power-off times of the device, and each time the device completes a power-off, the cumulative number of device power-off times will increase.

[0054] It should be understood that monitoring the power-on time of the device and the number of power-off times of the device may be real-time monitoring of whether the power-on time corresponding to each power-on operation and the number of power-off times of the device change.

[0055] Specifically, the way to monitor the power-on time of the device can be through the use of an energy meter, which can monitor the power consumption of the device, so that the power-on time of the device can be calculated based on the power consumption, but it is necessary to consider the impact of factors such as the power and voltage of the device on the energy meter. It is also possible to use a timer, start the timer when the device is powered on, and record the time from power-on to power-off of the device. The accuracy and stability of the timer need to be guaranteed during the process. It is also possible to use an electronic circuit to monitor the power-on time of the device, such as using an RC circuit to calculate the power-on time by measuring the capacitor voltage. It is also possible to use a software program: run a software program in the device, the program can record the time when the device is powered on and powered off, and save the recorded time in the device's memory. The stability and correctness of the program need to be guaranteed during the process.

[0056] Step S20: When the device power-on time and the device power-off times meet the preset function setting conditions, the device function mark number is adjusted, and the device function mark number is used to control the device function.

[0057] It is understandable that the preset function setting condition can be a pre-set condition for function setting, and when the device meets the preset function setting condition, the device function mark number is adjusted. The device function mark number can be a data measuring the current state of the device, which is used to control the device function.

[0058] It should be understood that when the device power-on time and the device power-off times meet the preset function setting conditions, the device function flag number is adjusted. The way to adjust the device function flag number can be a cyclic incremental adjustment, which is adjusted cyclically increasing or decreasing within a certain range, for example, adjusting within the range of 1 to 10, and adjusting from 1 again after adjusting to 10. It can also be a cyclic exponential adjustment, which is adjusted in an exponential form within a certain range, for example, adjusting within the range of 1 to 2 to the power of 10, and adjusting from 1 again after adjusting to 2 to the power of 10. The device function flag number can also be adjusted by a preset algorithm.

[0059] Step S30: Setting the device function based on the adjusted device function tag number.

[0060] It is understandable that when the device power-on time and the number of device power-off times meet the preset function setting conditions, the device function tag number is adjusted, and then the device function is set based on the adjusted device function tag number.

[0061] It should be understood that the device function can be set based on the adjusted device function tag number by monitoring the adjusted device function tag number; and then setting the device function respectively when the device function tag number is adjusted to a preset value through the device program.

[0062] In a specific implementation, the function setting device monitors the device power-on time and the number of device power-off times. When the device power-on time and the number of device power-off times meet the preset function setting conditions, the function setting device adjusts the device function tag number, and the function setting device monitors the adjusted device function tag number; then the device function is set respectively through the device program when the device function tag number is adjusted to the preset value. For example, an integrated circuit device A (including an LED) is cyclically incremented within the range of 1-10 when the device power-on time and the number of device power-off times of device A meet the preset function setting conditions. When the corresponding value of the device function tag number is 1, the corresponding function of the current device A is set to turn on the LED. When the corresponding value of the device function tag number is 2, the corresponding function of the current device A is set to turn off the LED. When the corresponding value of the device function tag number is 3, the corresponding function of the current device A is set to make the LED flash. The setting is performed cyclically in this way.

[0063] In this embodiment, the device power-on time and the number of device power-off times are monitored; when the device power-on time and the number of device power-off times meet the preset function setting conditions, the device function mark number is adjusted, and the device function mark number is used to control the device function; the device function is set based on the adjusted device function mark number. Since the present invention monitors the device power-on time and the number of device power-off times, and when the device power-on time and the number of device power-off times meet the preset function setting conditions, the device function mark number is adjusted, and then the device function is set according to the adjusted device function mark number, the device set by the above method, compared with the existing device, can enter the device set function by accumulating the number of power off times when there is no configuration such as buttons or touch screens, thereby solving the inconvenience and limitations of the existing device when in use.

[0064] refer to Figure 4 , Figure 4 This is a flow chart of the second embodiment of the device function setting method of the present invention.

[0065] Based on the above first embodiment, in this embodiment, step S20 includes:

[0066] Step S201: Determine whether the device power-on time exceeds a preset time.

[0067] It is understandable that the preset duration may be a preset power-on duration. The working state of the device at this time is determined by judging whether the power-on time of the device exceeds the preset duration.

[0068] It should be noted that when setting the preset duration, it is necessary to determine it according to the device usage scenario, because the duration for determining the current working status of the device may be different in different scenarios, and the preset duration in different scenarios may be different. For example, when using the device in smart furniture, the preset duration may be different from that in other scenarios.

[0069] In a specific implementation, for example, when determining whether the power-on time of the smart curtain device exceeds a preset time, the preset time corresponding to the power-on time of the smart curtain can be set to 8s according to usage.

[0070] Step S202: If not, determine whether the number of power outages of the device reaches a preset threshold.

[0071] It should be noted that the preset threshold value may be a threshold value corresponding to the number of power-off times of the device set in advance. When the power-on time of the device does not exceed the preset time, it is determined whether the number of power-off times of the device reaches the preset threshold value.

[0072] In a specific implementation, for example, when determining whether the number of power-off times of the smart curtain device has reached a preset number, the number of power-off times of the device corresponding to the smart curtain can be set to 3 times according to usage.

[0073] Furthermore, in order to make the device function setting more convenient, after step S201, it also includes: if the device power-on time exceeds the preset duration, the number of power-off times of the device is reset; until the number of power-off times of the device reaches a preset threshold, the cumulative number of power-off times of the device is reset, and the device function mark number is adjusted.

[0074] It should be noted that if the device is powered on for longer than the preset time, it means that the device is currently in function use and is not in the process of setting the device function. The number of power-off times of the device is reset.

[0075] It is understandable that the way to reset the number of power outages of the device can be to add a code for resetting the number of power outages in the program of the device, and reset the number of power outages through program execution. It is also possible to add a circuit for automatically resetting the number of power outages in the circuit of the device, and achieve automatic resetting through circuit detection and control.

[0076] In a specific implementation, if the device power-on time exceeds the preset duration, the function setting device resets the number of device power-offs of the device to be set; until the number of device power-offs of the device to be set reaches the preset threshold, the function setting device resets the cumulative number of device power-offs and then adjusts the number of device function tags. For example, when setting smart curtains, if the power-on time of the smart curtains exceeds 8s, the function setting device resets the number of device power-offs of the smart curtains until the number of device power-offs of the smart curtains reaches 3 times, the function setting device resets the number of device power-offs of the smart curtains and then adjusts the number of device function tags corresponding to the smart curtains.

[0077] Step S203: When the number of power outages of the device reaches a preset threshold, the accumulated number of power outages of the device is reset, and the number of function flags of the device is adjusted.

[0078] Furthermore, in order to make the device function setting more reliable, the step S203 includes: when the cumulative number of power outages of the device reaches a preset threshold, resetting the cumulative number of power outages of the device and increasing the device function mark number; when the device function mark number exceeds a preset range, resetting the device function mark number.

[0079] It should be noted that when the cumulative number of power outages of the device reaches a preset threshold, the function setting device resets the cumulative number of power outages of the device and then increments the device function tag number. When the device function tag number exceeds a preset range, the device function tag number is reset and the device function tag number is set to increase cyclically within the preset range.

[0080] In this embodiment, it is determined whether the device power-on time exceeds the preset duration; if not, it is determined whether the number of power-off times of the device reaches the preset threshold; when the number of power-off times of the device reaches the preset threshold, the cumulative number of power-off times of the device is reset, and the number of function flags is adjusted. In this embodiment, it is determined whether the device power-on time exceeds the preset duration. If it does not exceed, it is determined whether the number of power-off times of the device reaches the preset threshold. When the number of power-off times of the device reaches the preset threshold, the cumulative number of power-off times of the device is reset and the number of function flags is adjusted. By adjusting the number of function flags by determining whether the device power-on time and the cumulative number of power-off times meet the requirements, the device function settings can be made more reliable.

[0081] refer to Figure 5 , Figure 5 It is a flowchart of the third embodiment of the device function setting method of the present invention.

[0082] Based on the above embodiments, in this embodiment, before step S10, the following steps may also be included:

[0083] Step S001: Initialize the device function flag number and the device power-off times.

[0084] It is understandable that the device function flag number and the number of device power-off times can be initialized by initializing the non-volatile storage area corresponding to the device function flag number and the number of device power-off times, initializing the device function flag number and the number of device power-off times, and reading the above two types of data in a non-volatile manner.

[0085] In a specific implementation, the function setting device initializes the non-volatile storage area corresponding to the device function flag number and the device power-off times, initializes the device function flag number and the device power-off times, and then the function setting device reads the non-volatile data of the device function flag number and the device power-off times.

[0086] Step S002: Determine whether the device function mark number and the cumulative number of power-off times of the device are original data.

[0087] It is understandable that the original data can be the original data in the non-volatile storage area. After the non-volatile data of the device function flag number and the device power-off times are read, it is determined whether the device function flag number and the cumulative power-off times of the device are the original data to determine whether the above two types of data need to be initialized again.

[0088] Step S003: If yes, the device function flag number and the accumulated power-off times of the device are initialized again.

[0089] It is understandable that if the device function flag number and the device cumulative power-off times are original data in the non-volatile storage area, the device function flag number and the device cumulative power-off times are initialized again.

[0090] In a specific implementation, if the device function tag number and the cumulative number of device power-offs are original data in the non-volatile storage area, the function setting device will re-initialize the device function tag number and the cumulative number of device power-offs. For example, when setting up a smart curtain device, the function setting device initializes the non-volatile storage area corresponding to the device function tag number and the number of device power-offs of the smart curtain device, initializes the device function tag number and the number of device power-offs, and then the function setting device reads the non-volatile data of the device function tag number and the number of device power-offs. If the device function tag number and the cumulative number of device power-offs are original data in the non-volatile storage area, the device function tag number and the cumulative number of device power-offs are initialized again to ensure that the device function tag number and the cumulative number of device power-offs corresponding to the smart curtain device are initialized to 0.

[0091] Furthermore, in order to further improve the efficiency of device function setting, the method also includes the following steps: monitoring the power off time of the device; when the power off time of the device exceeds a preset duration, incrementing the cumulative number of power off times of the device.

[0092] It should be understood that the function setting device monitors the power off time of the device. When the power off time of the device exceeds the preset duration, the function setting device increases the cumulative power off times of the device to ensure that the power off time exceeds the preset duration and the power of the device is fully consumed.

[0093] In a specific implementation, for example, the function setting device monitors the power-off time of the smart curtain device. When the power-off time of the device exceeds the preset 3s, the function setting device increases the cumulative number of power-off times of the device, and the power-off is maintained for more than 3s to fully consume the power.

[0094] In this embodiment, the number of device function flags and the number of device power-off times are initialized; it is determined whether the number of function flags and the number of cumulative power-off times of the device are original data; if so, the number of function flags and the number of cumulative power-off times of the device are initialized again. In this embodiment, the number of device function flags and the number of device power-off times are initialized multiple times to ensure that the number of device function flags and the number of device power-off times are within a reasonable range during the adjustment process. This further improves the convenience and reliability of device function setting.

[0095] In addition, an embodiment of the present invention further provides a storage medium, on which a device function setting program is stored. When the device function setting program is executed by a processor, the steps of the device function setting method described above are implemented.

[0096] Reference Figure 5 , Figure 5 It is a structural block diagram of the first embodiment of the CNC system host access control device of the present invention.

[0097] like Figure 5 As shown, the CNC system host access control device provided in the embodiment of the present invention includes: a device monitoring module 501 , a function adjustment module 502 and a function setting module 503 .

[0098] The device monitoring module 501 is used to monitor the device power-on time and the number of device power-off times.

[0099] It is understandable that the device power-on time may be the time for powering on the device, including the time from powering on the device to powering off the device. The number of device power-off times may be the number of cumulative power-off times of the device, and each time the device completes a power-off, the cumulative number of device power-off times will increase.

[0100] It should be understood that monitoring the power-on time of the device and the number of power-off times of the device may be real-time monitoring of whether the power-on time corresponding to each power-on operation and the number of power-off times of the device change.

[0101] Specifically, the way to monitor the power-on time of the device can be through the use of an energy meter, which can monitor the power consumption of the device, so that the power-on time of the device can be calculated based on the power consumption, but it is necessary to consider the impact of factors such as the power and voltage of the device on the energy meter. It is also possible to use a timer, start the timer when the device is powered on, and record the time from power-on to power-off of the device. The accuracy and stability of the timer need to be guaranteed during the process. It is also possible to use an electronic circuit to monitor the power-on time of the device, such as using an RC circuit to calculate the power-on time by measuring the capacitor voltage. It is also possible to use a software program: run a software program in the device, the program can record the time when the device is powered on and powered off, and save the recorded time in the device's memory. The stability and correctness of the program need to be guaranteed during the process.

[0102] The function adjustment module 502 is used to adjust the device function mark number when the device power-on time and the device power-off times meet the preset function setting conditions. The device function mark number is used to control the device function.

[0103] It is understandable that the preset function setting condition can be a pre-set condition for function setting, and when the device meets the preset function setting condition, the device function mark number is adjusted. The device function mark number can be a data measuring the current state of the device, which is used to control the device function.

[0104] It should be understood that when the device power-on time and the device power-off times meet the preset function setting conditions, the device function flag number is adjusted. The way to adjust the device function flag number can be a cyclic incremental adjustment, which is adjusted cyclically increasing or decreasing within a certain range, for example, adjusting within the range of 1 to 10, and adjusting from 1 again after adjusting to 10. It can also be a cyclic exponential adjustment, which is adjusted in an exponential form within a certain range, for example, adjusting within the range of 1 to 2 to the power of 10, and adjusting from 1 again after adjusting to 2 to the power of 10. The device function flag number can also be adjusted by a preset algorithm.

[0105] The function setting module 503 is used to set the device function based on the adjusted device function tag number.

[0106] It is understandable that when the device power-on time and the number of device power-off times meet the preset function setting conditions, the device function tag number is adjusted, and then the device function is set based on the adjusted device function tag number.

[0107] It should be understood that the device function can be set based on the adjusted device function tag number by monitoring the adjusted device function tag number; and then setting the device function respectively when the device function tag number is adjusted to a preset value through the device program.

[0108] In a specific implementation, the function setting device monitors the device power-on time and the number of device power-off times. When the device power-on time and the number of device power-off times meet the preset function setting conditions, the function setting device adjusts the device function tag number, and the function setting device monitors the adjusted device function tag number; then the device function is set respectively through the device program when the device function tag number is adjusted to the preset value. For example, an integrated circuit device A (including an LED) is cyclically incremented within the range of 1-10 when the device power-on time and the number of device power-off times of device A meet the preset function setting conditions. When the corresponding value of the device function tag number is 1, the corresponding function of the current device A is set to turn on the LED. When the corresponding value of the device function tag number is 2, the corresponding function of the current device A is set to turn off the LED. When the corresponding value of the device function tag number is 3, the corresponding function of the current device A is set to make the LED flash. The setting is performed cyclically in this way.

[0109] In this embodiment, the device power-on time and the number of device power-off times are monitored; when the device power-on time and the number of device power-off times meet the preset function setting conditions, the device function mark number is adjusted, and the device function mark number is used to control the device function; the device function is set based on the adjusted device function mark number. Since the present invention monitors the device power-on time and the number of device power-off times, and when the device power-on time and the number of device power-off times meet the preset function setting conditions, the device function mark number is adjusted, and then the device function is set according to the adjusted device function mark number, the device set by the above method, compared with the existing device, can enter the device set function by accumulating the number of power off times when there is no configuration such as buttons or touch screens, thereby solving the inconvenience and limitations of the existing device when in use.

[0110] Other embodiments or specific implementations of the device function setting apparatus of the present invention may refer to the above-mentioned method embodiments and will not be described in detail here.

[0111] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0112] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0114] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for setting device functions, characterized in that: The device function setting method comprises the following steps: Monitor the device power-on time and the number of times the device is powered off; When the device power-on time and the device power-off times meet the preset function setting conditions, adjusting the device function mark number, the device function mark number is used to control the device function; Setting device capabilities based on the adjusted device capability flag number; Wherein, when the device power-on time and the device power-off times meet the preset function setting conditions, the step of adjusting the number of device function flags includes: Determine whether the device power-on time exceeds the preset time; If not, the accumulated number of power outages of the device is incremented, and it is determined whether the number of power outages of the device reaches a preset threshold; When the number of power outages of the device reaches a preset threshold, resetting the accumulated number of power outages of the device and adjusting the number of function marks of the device; Wherein, after the step of determining whether the device power-on time exceeds a preset time, the method further includes: If the device power-on time exceeds the preset time, the number of power-off times of the device is reset; When the number of power outages of the device reaches a preset threshold, the accumulated number of power outages of the device is reset and the number of function marks of the device is adjusted.

2. The method according to claim 1, characterized in that When the number of power-off times of the device reaches a preset threshold, the step of resetting the accumulated number of power-off times of the device and adjusting the number of function flags of the device comprises: When the cumulative number of power outages of the device reaches a preset threshold, the cumulative number of power outages of the device is reset, and the number of function flags of the device is incremented; When the number of device function flags exceeds a preset range, the number of device function flags is reset.

3. The method according to any one of claims 1 to 2, characterized in that Before the step of monitoring the device power-on time and the number of device power-off times, the method further includes: Initialize the device function flag number and the device power-off times; Determine whether the device function flag number and the cumulative number of power failures of the device are original data; If so, the device function flag number and the cumulative number of power failures of the device are initialized again.

4. The method according to any one of claims 1 to 2, characterized in that The step of setting the device function based on the adjusted number of device function flags includes: Monitor the number of device function markers after adjustment; The device functions are respectively set by the device program when the device function mark number is adjusted to a preset value.

5. The method according to any one of claims 1 to 2, characterized in that The device function setting method also includes: Monitor equipment power outage time; When the power-off time of the device exceeds the preset duration, the cumulative power-off times of the device are incremented.

6. A device function setting device, characterized in that: The device comprises: Equipment monitoring module, used to monitor equipment power-on time and equipment power-off times; A function adjustment module, used for adjusting the device function mark number when the device power-on time and the device power-off times meet the preset function setting conditions, and the device function mark number is used to control the device function; A function setting module, used for setting a device function based on the adjusted device function tag number; The function adjustment module is also used to determine whether the device power-on time exceeds a preset time; If not, the accumulated number of power outages of the device is incremented, and it is determined whether the number of power outages of the device reaches a preset threshold; When the number of power outages of the device reaches a preset threshold, resetting the accumulated number of power outages of the device and adjusting the number of function marks of the device; The function adjustment module is further used to reset the number of power-off times of the device if the power-on time of the device exceeds a preset time; When the number of power outages of the device reaches a preset threshold, the accumulated number of power outages of the device is reset and the number of function marks of the device is adjusted.

7. A device function setting device, characterized in that: The device comprises: a memory, a processor, and a device function setting program stored in the memory and executable on the processor, wherein the device function setting program is configured to implement the steps of the device function setting method according to any one of claims 1 to 5.

8. A storage medium, characterized in that: The storage medium stores a device function setting program, and when the device function setting program is executed by the processor, the steps of the device function setting method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Intelligent electric appliance mode switching method and device

    CN107340723A

  • Method for restoring factory settings through outage

    CN112579346A

  • Power-off duration detection method and device, electronic equipment and storage medium

    CN114325481A